@narmi/design_system 5.1.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.scss +1 -1
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/Checkbox/index.d.ts +2 -2
- package/dist/types/Checkbox/index.d.ts.map +1 -1
- package/dist/types/TableSelect/index.d.ts +5 -2
- package/dist/types/TableSelect/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
73
|
*/var D9;function Pv(){return D9||(D9=1,process.env.NODE_ENV!=="production"&&function(){var n=60103,t=60106,e=60107,r=60108,i=60114,o=60109,s=60110,a=60112,l=60113,u=60120,d=60115,f=60116,h=60121,p=60122,m=60117,v=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var I=Symbol.for;n=I("react.element"),t=I("react.portal"),e=I("react.fragment"),r=I("react.strict_mode"),i=I("react.profiler"),o=I("react.provider"),s=I("react.context"),a=I("react.forward_ref"),l=I("react.suspense"),u=I("react.suspense_list"),d=I("react.memo"),f=I("react.lazy"),h=I("react.block"),p=I("react.server.block"),m=I("react.fundamental"),I("react.scope"),I("react.opaque.id"),v=I("react.debug_trace_mode"),I("react.offscreen"),b=I("react.legacy_hidden")}var y=!1;function x(te){return!!(typeof te=="string"||typeof te=="function"||te===e||te===i||te===v||te===r||te===l||te===u||te===b||y||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===o||te.$$typeof===s||te.$$typeof===a||te.$$typeof===m||te.$$typeof===h||te[0]===p))}function g(te){if(typeof te=="object"&&te!==null){var Y=te.$$typeof;switch(Y){case n:var fe=te.type;switch(fe){case e:case i:case r:case l:case u:return fe;default:var re=fe&&fe.$$typeof;switch(re){case s:case a:case f:case d:case o:return re;default:return Y}}case t:return Y}}}var M=s,w=o,z=n,A=a,C=e,H=f,E=d,L=t,F=i,$=r,X=l,_=!1,B=!1;function W(te){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(te){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(te){return g(te)===s}function O(te){return g(te)===o}function k(te){return typeof te=="object"&&te!==null&&te.$$typeof===n}function V(te){return g(te)===a}function U(te){return g(te)===e}function R(te){return g(te)===f}function G(te){return g(te)===d}function ee(te){return g(te)===t}function Q(te){return g(te)===i}function D(te){return g(te)===r}function oe(te){return g(te)===l}ze.ContextConsumer=M,ze.ContextProvider=w,ze.Element=z,ze.ForwardRef=A,ze.Fragment=C,ze.Lazy=H,ze.Memo=E,ze.Portal=L,ze.Profiler=F,ze.StrictMode=$,ze.Suspense=X,ze.isAsyncMode=W,ze.isConcurrentMode=N,ze.isContextConsumer=T,ze.isContextProvider=O,ze.isElement=k,ze.isForwardRef=V,ze.isFragment=U,ze.isLazy=R,ze.isMemo=G,ze.isPortal=ee,ze.isProfiler=Q,ze.isStrictMode=D,ze.isSuspense=oe,ze.isValidElementType=x,ze.typeOf=g}()),ze}var O9;function kv(){return O9||(O9=1,process.env.NODE_ENV==="production"?xn.exports=Cv():xn.exports=Pv()),xn.exports}var W4,_9;function zv(){if(_9)return W4;_9=1;var n=bn(),t=It(),e=M9(),r=n.boolean,i=n.number,o=n.spaceSeparated,s=n.commaSeparated,a=n.commaOrSpaceSeparated;return W4=t({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-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",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:e,properties:{about:a,accentHeight:i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i,amplitude:i,arabicForm:null,ascent:i,attributeName:null,attributeType:null,azimuth:i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i,by:null,calcMode:null,capHeight:i,className:o,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:i,diffuseConstant:i,direction:null,display:null,dur:null,divisor:i,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:i,enableBackground:null,end:null,event:null,exponent:i,externalResourcesRequired:null,fill:null,fillOpacity:i,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:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i,horizOriginX:i,horizOriginY:i,id:null,ideographic:i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i,k:i,k1:i,k2:i,k3:i,k4:i,kernelMatrix:a,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i,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:i,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i,overlineThickness:i,paintOrder:null,panose1:null,path:null,pathLength:i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:o,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i,pointsAtY:i,pointsAtZ:i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:a,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:a,rev:a,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:a,requiredFeatures:a,requiredFonts:a,requiredFormats:a,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:i,specularExponent:i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i,strikethroughThickness:i,string:null,stroke:null,strokeDashArray:a,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i,strokeOpacity:i,strokeWidth:null,style:null,surfaceScale:i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:a,tabIndex:i,tableValues:null,target:null,targetX:i,targetY:i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:a,to:null,transform:null,u1:null,u2:null,underlinePosition:i,underlineThickness:i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i,values:null,vAlphabetic:i,vMathematical:i,vectorEffect:null,vHanging:i,vIdeographic:i,version:null,vertAdvY:i,vertOriginX:i,vertOriginY:i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),W4}var Y4,N9;function $v(){if(N9)return Y4;N9=1;var n=s9(),t=m9(),e=y9(),r=w9(),i=C9(),o=zv();return Y4=n([e,t,r,i,o]),Y4}var G4,A9;function Tv(){if(A9)return G4;A9=1;var n=l9(),t=p9(),e=u9(),r="data";G4=a;var i=/^data[-\w.:]+$/i,o=/-[a-z]/g,s=/[A-Z]/g;function a(h,p){var m=n(p),v=p,b=e;return m in h.normal?h.property[h.normal[m]]:(m.length>4&&m.slice(0,4)===r&&i.test(p)&&(p.charAt(4)==="-"?v=l(p):p=u(p),b=t),new b(v,p))}function l(h){var p=h.slice(5).replace(o,f);return r+p.charAt(0).toUpperCase()+p.slice(1)}function u(h){var p=h.slice(4);return o.test(p)?h:(p=p.replace(s,d),p.charAt(0)!=="-"&&(p="-"+p),r+p)}function d(h){return"-"+h.toLowerCase()}function f(h){return h.charAt(1).toUpperCase()}return G4}const Dv={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 In={},F9;function Ov(){if(F9)return In;F9=1,In.parse=r,In.stringify=i;var n="",t=" ",e=/[ \t\n\r\f]+/g;function r(o){var s=String(o||n).trim();return s===n?[]:s.split(e)}function i(o){return o.join(t).trim()}return In}var En={},L9;function _v(){if(L9)return En;L9=1,En.parse=r,En.stringify=i;var n=",",t=" ",e="";function r(o){for(var s=[],a=String(o||e),l=a.indexOf(n),u=0,d=!1,f;!d;)l===-1&&(l=a.length,d=!0),f=a.slice(u,l).trim(),(f||!d)&&s.push(f),u=l+1,l=a.indexOf(n,u);return s}function i(o,s){var a=s||{},l=a.padLeft===!1?e:t,u=a.padRight?t:e;return o[o.length-1]===e&&(o=o.concat(e)),o.join(u+n+l).trim()}return En}var R4,K9;function Nv(){if(K9)return R4;K9=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,e=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
74
74
|
`,u="/",d="*",f="",h="comment",p="declaration";R4=function(v,b){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];b=b||{};var I=1,y=1;function x(F){var $=F.match(t);$&&(I+=$.length);var X=F.lastIndexOf(l);y=~X?F.length-X:y+F.length}function g(){var F={line:I,column:y};return function($){return $.position=new M(F),A(),$}}function M(F){this.start=F,this.end={line:I,column:y},this.source=b.source}M.prototype.content=v;function w(F){var $=new Error(b.source+":"+I+":"+y+": "+F);if($.reason=F,$.filename=b.source,$.line=I,$.column=y,$.source=v,!b.silent)throw $}function z(F){var $=F.exec(v);if($){var X=$[0];return x(X),v=v.slice(X.length),$}}function A(){z(e)}function C(F){var $;for(F=F||[];$=H();)$!==!1&&F.push($);return F}function H(){var F=g();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var $=2;f!=v.charAt($)&&(d!=v.charAt($)||u!=v.charAt($+1));)++$;if($+=2,f===v.charAt($-1))return w("End of comment missing");var X=v.slice(2,$-2);return y+=2,x(X),v=v.slice($),y+=2,F({type:h,comment:X})}}function E(){var F=g(),$=z(r);if($){if(H(),!z(i))return w("property missing ':'");var X=z(o),_=F({type:p,property:m($[0].replace(n,f)),value:X?m(X[0].replace(n,f)):f});return z(s),_}}function L(){var F=[];C(F);for(var $;$=E();)$!==!1&&(F.push($),C(F));return F}return A(),L()};function m(v){return v?v.replace(a,f):f}return R4}var X4,B9;function Av(){if(B9)return X4;B9=1;var n=Nv();function t(e,r){var i=null;if(!e||typeof e!="string")return i;for(var o,s=n(e),a=typeof r=="function",l,u,d=0,f=s.length;d<f;d++)o=s[d],l=o.property,u=o.value,a?r(l,u,o):u&&(i||(i={}),i[l]=u);return i}return X4=t,X4}var H9;function Fv(){if(H9)return Mn;H9=1;const n=c,t=kv(),e=$v(),r=Tv(),i=Dv,o=Ov(),s=_v(),a=Av();Mn.hastToReact=f,Mn.hastChildrenToReact=d;const l={}.hasOwnProperty,u=new Set(["table","thead","tbody","tfoot","tr"]);function d(y,x){const g=[];let M=-1,w;for(;++M<x.children.length;)w=x.children[M],w.type==="element"?g.push(f(y,w,M,x)):w.type==="text"?(x.type!=="element"||!u.has(x.tagName)||w.value!==`
|
|
75
|
-
`)&&g.push(w.value):w.type==="raw"&&!y.options.skipHtml&&g.push(w.value);return g}function f(y,x,g,M){const w=y.options,z=y.schema,A=x.tagName,C={};let H=z,E;if(z.space==="html"&&A==="svg"&&(H=e,y.schema=H),x.properties)for(E in x.properties)l.call(x.properties,E)&&m(C,E,x.properties[E],y);(A==="ol"||A==="ul")&&y.listDepth++;const L=d(y,x);(A==="ol"||A==="ul")&&y.listDepth--,y.schema=z;const F=x.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,g].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,x.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,x.children,C.title)),!X&&A==="code"&&M.type==="element"&&M.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&M.type==="element"){const _=h(x);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(M,x),C.ordered=M.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=y.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&M.type==="element"&&(C.isHeader=M.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=I(F)),!X&&w.rawSourcePos&&(C.sourcePosition=x.position),!X&&w.includeElementIndex&&(C.index=p(M,x),C.siblingCount=p(M)),X||(C.node=x),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(y){let x=-1;for(;++x<y.children.length;){const g=y.children[x];if(g.type==="element"&&g.tagName==="input")return g}return null}function p(y,x){let g=-1,M=0;for(;++g<y.children.length&&y.children[g]!==x;)y.children[g].type==="element"&&M++;return M}function m(y,x,g,M){const w=r(M.schema,x);let z=g;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?y[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(y[w.attribute]=z))}function v(y){const x={};try{a(y,g)}catch{}return x;function g(M,w){const z=M.slice(0,4)==="-ms-"?`ms-${M.slice(4)}`:M;x[z.replace(/-([a-z])/g,b)]=w}}function b(y,x){return x.toUpperCase()}function I(y){return[y.start.line,":",y.start.column,"-",y.end.line,":",y.end.column].map(x=>String(x)).join("")}return Mn}var J4,V9;function Lv(){if(V9)return J4;V9=1;const n=c,t=Es(),e=Zp(),r=Uh(),i=Mv(),o=X0(),s=Ev(),a=wv(),l=Sv(),u=Fv().hastChildrenToReact;J4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const x in h)if(d.call(h,x)&&d.call(m,x)){const g=h[x];console.warn(`[react-markdown] Warning: please ${g.to?`use \`${g.to}\` instead of`:"remove"} \`${x}\` (see <${f}#${g.id}> for more info)`),delete h[x]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let b;typeof m.children=="string"?b=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),b=t());const I=v.runSync(v.parse(b),b);if(I.type!=="root")throw new TypeError("Expected a `root` node");let y=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},I));return m.className&&(y=n.createElement("div",{className:m.className},y)),y}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,J4}var Kv=Lv();const Bv=F0(Kv),l6=({isDisabled:n=!1,children:t})=>c.createElement("div",{className:ae(["nds-disabledShim",{"nds-disabledShim--disabled":n}]),"aria-disabled":n?"true":"false"},t);function Q4(){return Q4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Q4.apply(null,arguments)}const Hv=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,isDisabled:l=!1,indeterminate:u=!1,value:d,hasError:f,error:h,kind:p="normal",testId:m,...v})=>{const b=l||a,I=c.useRef(null),y=s!==void 0,[x,g]=c.useState(y?s:o||!1),[M,w]=c.useState(!1),z=p==="card",A=({href:L,children:F})=>c.createElement("a",{href:L,target:"_blank",rel:"noreferrer"},F);c.useEffect(()=>{y&&g(s),I.current&&(I.current.indeterminate=u)},[s,u]);const C=L=>{y||g(F=>!F),e(L)},H=()=>{w(!0)},E=()=>{w(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${p}`},c.createElement(l6,{isDisabled:b},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${p}`,"fontWeight--default",{"nds-checkbox--checked":x||u,"nds-checkbox--disabled":b,"nds-checkbox--focused":M,"padding--y--xl padding--x rounded--all border--all":z}])},c.createElement("span",{className:ae([{"narmi-icon-check":!u,"narmi-icon-minus":u,error:f||!!h}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(Bv,{components:{a:function({href:L,children:F}){return A({href:L,children:F})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",Q4({ref:I,onFocus:H,onBlur:E,onChange:C,checked:x,defaultChecked:o,disabled:b,name:i,id:r&&r.toString(),value:d,"data-testid":m},v,{type:"checkbox"})))),c.createElement(D1,{marginTop:"xs",error:h}))},q9=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Vv=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s,hasBorder:a=!1})=>{const l=typeof i=="function",u=!l&&typeof r=="function",d=t==="primary"||t==="secondary"?"theme":t;return c.createElement(bt,{elementType:l?"button":"div",onClick:l?i:void 0,type:l?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":l,"nds-chip--button":l,"nds-chip--hasBorder":a}])},c.createElement(de,{alignItems:"center",gapSize:"xs"},o&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(de.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(de.Item,{shrink:!0},c.createElement(q9,{kind:d,value:e})),s&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),u&&c.createElement(de.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function Z4(){return Z4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Z4.apply(null,arguments)}const qv=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="s",error:a,isDisabled:l,disabled:u})=>{const d=l??u??!1,f=["interactive","toggle","button"].some(v=>n===v),h=f&&n!=="button",p=()=>{const v={};return f&&(v.role="button",v.tabIndex="0",a||(v.onClick=e,v.onKeyUp=b=>{const{key:I}=b;(I==="Enter"||I===" ")&&e(b)})),h&&(v["aria-pressed"]=r),v},m=c.createElement("div",Z4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":f,"nds-contentCard--error":f&&a,"nds-contentCard--disabled":d}])},p()),i);return c.createElement(c.Fragment,null,f?c.createElement(l6,{isDisabled:d},m):m,a&&c.createElement(D1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var e5;const jv=(e5=c.useInsertionEffect)!==null&&e5!==void 0?e5:Fe;function Re(n){const t=c.useRef(null);return jv(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function Uv(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Re(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Re(s=>{r.current=s(t),i()});return[t,o]}const wn={prefix:String(Math.round(Math.random()*1e10)),current:0},j9=c.createContext(wn),Wv=c.createContext(!1);let Yv=!!(typeof window<"u"&&window.document&&window.document.createElement),t5=new WeakMap;function Gv(n=!1){let t=c.useContext(j9),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=t5.get(o);s==null?t5.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,t5.delete(o))}e.current=++t.current}return e.current}function Rv(n){let t=c.useContext(j9);t===wn&&!Yv&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let e=Gv(!!n),r=t===wn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function Xv(n){let t=c.useId(),[e]=c.useState(Sn()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${wn.prefix}`;return n||`${r}-${t}`}const Jv=typeof c.useId=="function"?Xv:Rv;function Qv(){return!1}function Zv(){return!0}function em(n){return()=>{}}function Sn(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(em,Qv,Zv):c.useContext(Wv)}let tm=!!(typeof window<"u"&&window.document&&window.document.createElement),Et=new Map,c6;typeof FinalizationRegistry<"u"&&(c6=new FinalizationRegistry(n=>{Et.delete(n)}));function I1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Jv(t),o=c.useRef(null);if(c6&&c6.register(o,i),tm){const s=Et.get(i);s&&!s.includes(r)?s.push(r):Et.set(i,[r])}return Fe(()=>{let s=i;return()=>{c6&&c6.unregister(o),Et.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function nm(n,t){if(n===t)return n;let e=Et.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Et.get(t);return r?(r.forEach(i=>i.current=n),n):t}function n5(n=[]){let t=I1(),[e,r]=Uv(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function r5(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},f1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function rm(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function im(n){return rm(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let om=!1;function Cn(){return om}function Ne(n,t){if(!Cn())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:im(e)?e=e.host:e=e.parentNode}return!1}const Xe=(n=document)=>{var t;if(!Cn())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function xe(n){return Cn()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class sm{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function am(n,t,e,r){return Cn()?new sm(n,t,e,r):n.createTreeWalker(t,e,r)}function U9(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=U9(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function lm(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=U9(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=r5(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=lm(o,s):i==="id"&&o&&s?t.id=nm(o,s):t[i]=s!==void 0?s:o}}return t}function W9(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=Y9(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Y9(n[o],null)})}}}function Y9(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const cm=new Set(["id"]),um=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),dm=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fm=new Set(["dir","lang","hidden","inert","translate"]),G9=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),pm=/^(data-.*)$/;function et(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(cm.has(l)||e&&um.has(l)||r&&dm.has(l)||i&&fm.has(l)||o&&G9.has(l)||l.endsWith("Capture")&&G9.has(l.slice(0,-7))||s?.has(l)||pm.test(l))&&(a[l]=n[l]);return a}function p1(n){if(hm())n.focus({preventScroll:!0});else{let t=vm(n);n.focus(),mm(t)}}let Pn=null;function hm(){if(Pn==null){Pn=!1;try{document.createElement("div").focus({get preventScroll(){return Pn=!0,!0}})}catch{}}return Pn}function vm(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function mm(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function kn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function i5(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function F1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const tt=F1(function(){return i5(/^Mac/i)}),gm=F1(function(){return i5(/^iPhone/i)}),R9=F1(function(){return i5(/^iPad/i)||tt()&&navigator.maxTouchPoints>1}),o5=F1(function(){return gm()||R9()}),ym=F1(function(){return tt()||o5()}),bm=F1(function(){return kn(/AppleWebKit/i)&&!X9()}),X9=F1(function(){return kn(/Chrome/i)}),s5=F1(function(){return kn(/Android/i)}),Mm=F1(function(){return kn(/Firefox/i)}),xm=c.createContext({isNative:!0,open:wm,useHref:n=>n});function zn(){return c.useContext(xm)}function Im(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function nt(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;Mm()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(tt()?o=!0:s=!0);let u=bm()&&tt()&&!R9()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});nt.isOpening=e,p1(n),n.dispatchEvent(u),nt.isOpening=!1}nt.isOpening=!1;function Em(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function wm(n,t){Em(n,e=>nt(e,t))}function Sm(n){let t=zn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function Cm(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&Im(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let U1=new Map,a5=new Set;function J9(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);i||(i=new Set,U1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),U1.delete(r.target)),U1.size===0)){for(let o of a5)o();a5.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?J9():document.addEventListener("DOMContentLoaded",J9));function Pm(){for(const[n]of U1)"isConnected"in n&&!n.isConnected&&U1.delete(n)}function Q9(n){requestAnimationFrame(()=>{Pm(),U1.size===0?n():a5.add(n)})}function rt(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function km(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=I1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function $n(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function Z9(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function zm(){return typeof window.ResizeObserver<"u"}function $m(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(zm()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function l5(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function c5(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function Tm(n,t){const e=[];for(;n&&n!==document.documentElement;)c5(n,t)&&e.push(n),n=n.parentElement;return e}let Dm=0;const u5=new Map;function Om(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=u5.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${Dm++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},u5.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),u5.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function Tn(n,t,e,r){let i=Re(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function e8(n,t){let e=t8(n,t,"left"),r=t8(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),b=m+n.clientWidth,I=v+n.clientHeight,y=parseInt(d,10)||0,x=parseInt(h,10)||0,g=parseInt(f,10)||0,M=parseInt(p,10)||0;e<=s+M?s=e-parseInt(u,10)-M:e+i>b-g&&(s+=e+i-b+g),r<=v+y?a=r-parseInt(l,10)-y:r+o>I-x&&(a+=r+o-I+x),n.scrollLeft=s,n.scrollTop=a}function t8(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function n8(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Tm(n);for(let u of l)e8(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function d5(n){return n.mozInputSource===0&&n.isTrusted?!0:s5()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function _m(n){return!s5()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function Nm(n,t,e){let r=Re(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const Am="react-aria-clear-focus",Fm="react-aria-focus";function wt(n){return tt()?n.metaKey:n.ctrlKey}const Lm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Km(n){const t=f1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Bm(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function f5(n,t){return Lm?n.checkVisibility():n.nodeName!=="#comment"&&Km(n)&&Bm(n,t)&&(!n.parentElement||f5(n.parentElement,n))}const p5=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Hm=p5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";p5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Vm=p5.join(':not([hidden]):not([tabindex="-1"]),');function r8(n){return n.matches(Hm)&&f5(n)&&!i8(n)}function qm(n){return n.matches(Vm)&&f5(n)&&!i8(n)}function i8(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Dn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function h5(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function On(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function u6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=On(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor(On(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor(On((e-t)/r,r))*r),o=On(o,r),o}const o8=Symbol("default");function _n({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Nn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function s8(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||o8;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function v5(n,t,e){let r=s8(e,n.slot)||{},{ref:i,...o}=r,s=$n(c.useMemo(()=>W9(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function jm(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class m5{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new m5(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=e}}class g5{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new g5,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(a8(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();a8(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function a8(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class l8{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class St extends l8{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof St?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof St?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new m5(t,`react-aria-${++e.nodeId}`)}}class Um extends l8{get isConnected(){return this.isMounted}createElement(t){return new St(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof St&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof St&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function c8(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const y5=c.createContext(!1);function Wm(n){if(c.useContext(y5))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(y5.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Ym(n){let t=(e,r)=>c.useContext(y5)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function b5(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function u8(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function d8(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Re(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=b5(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let An=!1;function f8(n){for(;n&&!r8(n);)n=n.parentElement;let t=f1(n),e=t.document.activeElement;if(!e||e===n)return;An=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,p1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,p1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),An=!1,r=!1},u=requestAnimationFrame(l);return l}let Ct="default",M5="",Fn=new WeakMap;function x5(n){if(o5()){if(Ct==="default"){const t=Pe(n);M5=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ct="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";Fn.set(n,n.style[t]),n.style[t]="none"}}function Ln(n){if(o5()){if(Ct!=="disabled")return;Ct="restoring",setTimeout(()=>{Q9(()=>{if(Ct==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=M5||""),M5="",Ct="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&Fn.has(n)){let t=Fn.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),Fn.delete(n)}}const Kn=c.createContext({register:()=>{}});Kn.displayName="PressResponderContext";function Gm(n,t){return t.get?t.get.call(n):t.value}function p8(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function Rm(n,t){var e=p8(n,t,"get");return Gm(n,e)}function Xm(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jm(n,t,e){Xm(n,t),t.set(n,e)}function Qm(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function h8(n,t,e){var r=p8(n,t,"set");return Qm(n,r,e),e}function Zm(n){let t=c.useContext(Kn);if(t){let{register:e,...r}=t;n=De(r,n),e()}return l5(t,n.ref),n}var Bn=new WeakMap;class Hn{continuePropagation(){h8(this,Bn,!1)}get shouldStopPropagation(){return Rm(this,Bn)}constructor(t,e,r,i){Jm(this,Bn,{writable:!0,value:void 0}),h8(this,Bn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const v8=Symbol("linkClicked"),m8="react-aria-pressable-style",g8="data-react-aria-pressable";function Vn(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Zm(n),[m,v]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:I,removeAllGlobalListeners:y}=rt(),x=Re((E,L)=>{let F=b.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Hn("pressstart",L,E);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),g=Re((E,L,F=!0)=>{let $=b.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Hn("pressend",L,E);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Hn("press",L,E);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),M=Re((E,L)=>{let F=b.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Hn("pressup",L,E);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Re(E=>{let L=b.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&g(it(L.target,E),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),f||Ln(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Re(E=>{d&&w(E)}),A=Re(E=>{s?.(E)}),C=Re((E,L)=>{if(s){let F=new MouseEvent("click",E);u8(F,L),s(b5(F))}}),H=c.useMemo(()=>{let E=b.current,L={onKeyDown($){if(E5($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,xe($.nativeEvent))){var X;M8(xe($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!E.isPressed&&!$.repeat){E.target=$.currentTarget,E.isPressed=!0,E.pointerType="keyboard",_=x($,"keyboard");let B=$.currentTarget,W=N=>{E5(N,B)&&!N.repeat&&Ne(B,xe(N))&&E.target&&M(it(E.target,N),"keyboard")};I(Pe($.currentTarget),"keyup",r5(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&tt()&&((X=E.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,xe($.nativeEvent)))&&$&&$.button===0&&!E.isTriggeringEvent&&!nt.isOpening){let X=!0;if(a&&$.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||d5($.nativeEvent))){let _=x($,"virtual"),B=M($,"virtual"),W=g($,"virtual");A($),X=_&&B&&W}else if(E.isPressed&&E.pointerType!=="keyboard"){let _=E.pointerType||$.nativeEvent.pointerType||"virtual",B=M(it($.currentTarget,$),_),W=g(it($.currentTarget,$),_,!0);X=B&&W,E.isOverTarget=!1,A($),w($)}E.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(E.isPressed&&E.target&&E5($,E.target)){var _;M8(xe($),$.key)&&$.preventDefault();let W=xe($),N=Ne(E.target,xe($));g(it(E.target,$),"keyboard",N),N&&C($,E.target),y(),$.key!=="Enter"&&I5(E.target)&&Ne(E.target,W)&&!$[v8]&&($[v8]=!0,nt(E.target,$,!1)),E.isPressed=!1,(_=E.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=E.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let W=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let N of W.values())(B=E.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(_m(_.nativeEvent)){E.pointerType="virtual";return}E.pointerType=_.pointerType;let B=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=_.pointerId,E.target=_.currentTarget,f||x5(E.target),B=x(_,E.pointerType);let W=xe(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),I(Pe(_.currentTarget),"pointerup",$,!1),I(Pe(_.currentTarget),"pointercancel",X,!1)}B&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,xe(_.nativeEvent))&&_.button===0){if(u){let B=f8(_.target);B&&E.disposables.push(B)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,xe(_.nativeEvent))||E.pointerType==="virtual"||_.button===0&&!E.isPressed&&M(_,E.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,x(it(E.target,_),E.pointerType))},L.onPointerLeave=_=>{_.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,g(it(E.target,_),E.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===E.activePointerId&&E.isPressed&&_.button===0&&E.target){if(Ne(E.target,xe(_))&&E.pointerType!=null){let B=!1,W=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(B?w(_):(p1(E.target),E.target.click()))},80);I(_.currentTarget,"click",()=>B=!0,!0),E.disposables.push(()=>clearTimeout(W))}else w(_);E.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=_.currentTarget,E.pointerType=d5(_.nativeEvent)?"virtual":"mouse",C1.flushSync(()=>x(_,E.pointerType))&&_.stopPropagation(),u){let W=f8(_.target);W&&E.disposables.push(W)}I(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,B=x(_,E.pointerType)),B&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,B=g(_,E.pointerType,!1),z(_)),B&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&_.button===0&&!E.isPressed&&M(_,E.pointerType||"mouse")};let $=_=>{if(_.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(_.target)&&E.pointerType!=null||w(_),E.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=eg(_.nativeEvent);if(!B)return;E.activePointerId=B.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=_.currentTarget,E.pointerType="touch",f||x5(E.target),x(W1(E.target,_),E.pointerType)&&_.stopPropagation(),I(f1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let B=y8(_.nativeEvent,E.activePointerId),W=!0;B&&b8(B,_.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,W=x(W1(E.target,_),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,W=g(W1(E.target,_),E.pointerType,!1),z(W1(E.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let B=y8(_.nativeEvent,E.activePointerId),W=!0;B&&b8(B,_.currentTarget)&&E.pointerType!=null?(M(W1(E.target,_),E.pointerType),W=g(W1(E.target,_),E.pointerType),C(_.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(W=g(W1(E.target,_),E.pointerType,!1)),W&&_.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&Ln(E.target),y()},L.onTouchCancel=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&(_.stopPropagation(),E.isPressed&&w(W1(E.target,_)))};let X=_=>{E.isPressed&&Ne(xe(_),E.target)&&w({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}return L},[I,a,u,y,f,w,z,g,x,M,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const E=Pe(h.current);if(!E||!E.head||E.getElementById(m8))return;const L=E.createElement("style");L.id=m8,L.textContent=`
|
|
75
|
+
`)&&g.push(w.value):w.type==="raw"&&!y.options.skipHtml&&g.push(w.value);return g}function f(y,x,g,M){const w=y.options,z=y.schema,A=x.tagName,C={};let H=z,E;if(z.space==="html"&&A==="svg"&&(H=e,y.schema=H),x.properties)for(E in x.properties)l.call(x.properties,E)&&m(C,E,x.properties[E],y);(A==="ol"||A==="ul")&&y.listDepth++;const L=d(y,x);(A==="ol"||A==="ul")&&y.listDepth--,y.schema=z;const F=x.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,g].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,x.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,x.children,C.title)),!X&&A==="code"&&M.type==="element"&&M.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&M.type==="element"){const _=h(x);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(M,x),C.ordered=M.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=y.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&M.type==="element"&&(C.isHeader=M.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=I(F)),!X&&w.rawSourcePos&&(C.sourcePosition=x.position),!X&&w.includeElementIndex&&(C.index=p(M,x),C.siblingCount=p(M)),X||(C.node=x),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(y){let x=-1;for(;++x<y.children.length;){const g=y.children[x];if(g.type==="element"&&g.tagName==="input")return g}return null}function p(y,x){let g=-1,M=0;for(;++g<y.children.length&&y.children[g]!==x;)y.children[g].type==="element"&&M++;return M}function m(y,x,g,M){const w=r(M.schema,x);let z=g;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?y[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(y[w.attribute]=z))}function v(y){const x={};try{a(y,g)}catch{}return x;function g(M,w){const z=M.slice(0,4)==="-ms-"?`ms-${M.slice(4)}`:M;x[z.replace(/-([a-z])/g,b)]=w}}function b(y,x){return x.toUpperCase()}function I(y){return[y.start.line,":",y.start.column,"-",y.end.line,":",y.end.column].map(x=>String(x)).join("")}return Mn}var J4,V9;function Lv(){if(V9)return J4;V9=1;const n=c,t=Es(),e=Zp(),r=Uh(),i=Mv(),o=X0(),s=Ev(),a=wv(),l=Sv(),u=Fv().hastChildrenToReact;J4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const x in h)if(d.call(h,x)&&d.call(m,x)){const g=h[x];console.warn(`[react-markdown] Warning: please ${g.to?`use \`${g.to}\` instead of`:"remove"} \`${x}\` (see <${f}#${g.id}> for more info)`),delete h[x]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let b;typeof m.children=="string"?b=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),b=t());const I=v.runSync(v.parse(b),b);if(I.type!=="root")throw new TypeError("Expected a `root` node");let y=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},I));return m.className&&(y=n.createElement("div",{className:m.className},y)),y}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,J4}var Kv=Lv();const Bv=F0(Kv),l6=({isDisabled:n=!1,children:t})=>c.createElement("div",{className:ae(["nds-disabledShim",{"nds-disabledShim--disabled":n}]),"aria-disabled":n?"true":"false"},t);function Q4(){return Q4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Q4.apply(null,arguments)}const Hv=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,isDisabled:l=!1,indeterminate:u=!1,value:d,hasError:f,error:h,kind:p="normal",testId:m,...v})=>{const b=l||a,I=c.useRef(null),y=s!==void 0,[x,g]=c.useState(y?s:o||!1),[M,w]=c.useState(!1),z=p==="card",A=({href:L,children:F})=>c.createElement("a",{href:L,target:"_blank",rel:"noreferrer"},F);c.useEffect(()=>{y&&g(s),I.current&&(I.current.indeterminate=u)},[s,u]);const C=L=>{y||g(F=>!F),e(L)},H=()=>{w(!0)},E=()=>{w(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${p}`},c.createElement(l6,{isDisabled:b&&p==="card"},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${p}`,"fontWeight--default",{"nds-checkbox--checked":x||u,"nds-checkbox--disabled":b,"nds-checkbox--focused":M,"padding--y--xl padding--x rounded--all border--all":z}])},c.createElement("span",{className:ae([{"narmi-icon-check":!u,"narmi-icon-minus":u,error:f||!!h}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(Bv,{components:{a:function({href:L,children:F}){return A({href:L,children:F})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",Q4({ref:I,onFocus:H,onBlur:E,onChange:C,checked:x,defaultChecked:o,disabled:b,name:i,id:r&&r.toString(),value:d,"data-testid":m},v,{type:"checkbox"})))),c.createElement(D1,{marginTop:"xs",error:h}))},q9=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Vv=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s,hasBorder:a=!1})=>{const l=typeof i=="function",u=!l&&typeof r=="function",d=t==="primary"||t==="secondary"?"theme":t;return c.createElement(bt,{elementType:l?"button":"div",onClick:l?i:void 0,type:l?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":l,"nds-chip--button":l,"nds-chip--hasBorder":a}])},c.createElement(de,{alignItems:"center",gapSize:"xs"},o&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(de.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(de.Item,{shrink:!0},c.createElement(q9,{kind:d,value:e})),s&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),u&&c.createElement(de.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function Z4(){return Z4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Z4.apply(null,arguments)}const qv=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="s",error:a,isDisabled:l,disabled:u})=>{const d=l??u??!1,f=["interactive","toggle","button"].some(v=>n===v),h=f&&n!=="button",p=()=>{const v={};return f&&(v.role="button",v.tabIndex="0",a||(v.onClick=e,v.onKeyUp=b=>{const{key:I}=b;(I==="Enter"||I===" ")&&e(b)})),h&&(v["aria-pressed"]=r),v},m=c.createElement("div",Z4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":f,"nds-contentCard--error":f&&a,"nds-contentCard--disabled":d}])},p()),i);return c.createElement(c.Fragment,null,f?c.createElement(l6,{isDisabled:d},m):m,a&&c.createElement(D1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var e5;const jv=(e5=c.useInsertionEffect)!==null&&e5!==void 0?e5:Fe;function Re(n){const t=c.useRef(null);return jv(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function Uv(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Re(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Re(s=>{r.current=s(t),i()});return[t,o]}const wn={prefix:String(Math.round(Math.random()*1e10)),current:0},j9=c.createContext(wn),Wv=c.createContext(!1);let Yv=!!(typeof window<"u"&&window.document&&window.document.createElement),t5=new WeakMap;function Gv(n=!1){let t=c.useContext(j9),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=t5.get(o);s==null?t5.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,t5.delete(o))}e.current=++t.current}return e.current}function Rv(n){let t=c.useContext(j9);t===wn&&!Yv&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let e=Gv(!!n),r=t===wn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function Xv(n){let t=c.useId(),[e]=c.useState(Sn()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${wn.prefix}`;return n||`${r}-${t}`}const Jv=typeof c.useId=="function"?Xv:Rv;function Qv(){return!1}function Zv(){return!0}function em(n){return()=>{}}function Sn(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(em,Qv,Zv):c.useContext(Wv)}let tm=!!(typeof window<"u"&&window.document&&window.document.createElement),Et=new Map,c6;typeof FinalizationRegistry<"u"&&(c6=new FinalizationRegistry(n=>{Et.delete(n)}));function I1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Jv(t),o=c.useRef(null);if(c6&&c6.register(o,i),tm){const s=Et.get(i);s&&!s.includes(r)?s.push(r):Et.set(i,[r])}return Fe(()=>{let s=i;return()=>{c6&&c6.unregister(o),Et.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function nm(n,t){if(n===t)return n;let e=Et.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Et.get(t);return r?(r.forEach(i=>i.current=n),n):t}function n5(n=[]){let t=I1(),[e,r]=Uv(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function r5(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},f1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function rm(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function im(n){return rm(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let om=!1;function Cn(){return om}function Ne(n,t){if(!Cn())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:im(e)?e=e.host:e=e.parentNode}return!1}const Xe=(n=document)=>{var t;if(!Cn())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function xe(n){return Cn()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class sm{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function am(n,t,e,r){return Cn()?new sm(n,t,e,r):n.createTreeWalker(t,e,r)}function U9(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=U9(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function lm(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=U9(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=r5(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=lm(o,s):i==="id"&&o&&s?t.id=nm(o,s):t[i]=s!==void 0?s:o}}return t}function W9(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=Y9(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Y9(n[o],null)})}}}function Y9(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const cm=new Set(["id"]),um=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),dm=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fm=new Set(["dir","lang","hidden","inert","translate"]),G9=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),pm=/^(data-.*)$/;function et(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(cm.has(l)||e&&um.has(l)||r&&dm.has(l)||i&&fm.has(l)||o&&G9.has(l)||l.endsWith("Capture")&&G9.has(l.slice(0,-7))||s?.has(l)||pm.test(l))&&(a[l]=n[l]);return a}function p1(n){if(hm())n.focus({preventScroll:!0});else{let t=vm(n);n.focus(),mm(t)}}let Pn=null;function hm(){if(Pn==null){Pn=!1;try{document.createElement("div").focus({get preventScroll(){return Pn=!0,!0}})}catch{}}return Pn}function vm(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function mm(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function kn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function i5(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function F1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const tt=F1(function(){return i5(/^Mac/i)}),gm=F1(function(){return i5(/^iPhone/i)}),R9=F1(function(){return i5(/^iPad/i)||tt()&&navigator.maxTouchPoints>1}),o5=F1(function(){return gm()||R9()}),ym=F1(function(){return tt()||o5()}),bm=F1(function(){return kn(/AppleWebKit/i)&&!X9()}),X9=F1(function(){return kn(/Chrome/i)}),s5=F1(function(){return kn(/Android/i)}),Mm=F1(function(){return kn(/Firefox/i)}),xm=c.createContext({isNative:!0,open:wm,useHref:n=>n});function zn(){return c.useContext(xm)}function Im(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function nt(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;Mm()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(tt()?o=!0:s=!0);let u=bm()&&tt()&&!R9()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});nt.isOpening=e,p1(n),n.dispatchEvent(u),nt.isOpening=!1}nt.isOpening=!1;function Em(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function wm(n,t){Em(n,e=>nt(e,t))}function Sm(n){let t=zn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function Cm(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&Im(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let U1=new Map,a5=new Set;function J9(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);i||(i=new Set,U1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),U1.delete(r.target)),U1.size===0)){for(let o of a5)o();a5.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?J9():document.addEventListener("DOMContentLoaded",J9));function Pm(){for(const[n]of U1)"isConnected"in n&&!n.isConnected&&U1.delete(n)}function Q9(n){requestAnimationFrame(()=>{Pm(),U1.size===0?n():a5.add(n)})}function rt(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function km(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=I1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function $n(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function Z9(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function zm(){return typeof window.ResizeObserver<"u"}function $m(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(zm()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function l5(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function c5(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function Tm(n,t){const e=[];for(;n&&n!==document.documentElement;)c5(n,t)&&e.push(n),n=n.parentElement;return e}let Dm=0;const u5=new Map;function Om(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=u5.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${Dm++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},u5.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),u5.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function Tn(n,t,e,r){let i=Re(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function e8(n,t){let e=t8(n,t,"left"),r=t8(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),b=m+n.clientWidth,I=v+n.clientHeight,y=parseInt(d,10)||0,x=parseInt(h,10)||0,g=parseInt(f,10)||0,M=parseInt(p,10)||0;e<=s+M?s=e-parseInt(u,10)-M:e+i>b-g&&(s+=e+i-b+g),r<=v+y?a=r-parseInt(l,10)-y:r+o>I-x&&(a+=r+o-I+x),n.scrollLeft=s,n.scrollTop=a}function t8(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function n8(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Tm(n);for(let u of l)e8(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function d5(n){return n.mozInputSource===0&&n.isTrusted?!0:s5()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function _m(n){return!s5()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function Nm(n,t,e){let r=Re(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const Am="react-aria-clear-focus",Fm="react-aria-focus";function wt(n){return tt()?n.metaKey:n.ctrlKey}const Lm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Km(n){const t=f1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Bm(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function f5(n,t){return Lm?n.checkVisibility():n.nodeName!=="#comment"&&Km(n)&&Bm(n,t)&&(!n.parentElement||f5(n.parentElement,n))}const p5=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Hm=p5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";p5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Vm=p5.join(':not([hidden]):not([tabindex="-1"]),');function r8(n){return n.matches(Hm)&&f5(n)&&!i8(n)}function qm(n){return n.matches(Vm)&&f5(n)&&!i8(n)}function i8(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Dn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function h5(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function On(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function u6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=On(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor(On(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor(On((e-t)/r,r))*r),o=On(o,r),o}const o8=Symbol("default");function _n({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Nn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function s8(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||o8;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function v5(n,t,e){let r=s8(e,n.slot)||{},{ref:i,...o}=r,s=$n(c.useMemo(()=>W9(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function jm(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class m5{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new m5(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=e}}class g5{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new g5,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(a8(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();a8(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function a8(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class l8{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class St extends l8{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof St?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof St?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new m5(t,`react-aria-${++e.nodeId}`)}}class Um extends l8{get isConnected(){return this.isMounted}createElement(t){return new St(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof St&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof St&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function c8(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const y5=c.createContext(!1);function Wm(n){if(c.useContext(y5))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(y5.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Ym(n){let t=(e,r)=>c.useContext(y5)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function b5(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function u8(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function d8(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Re(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=b5(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let An=!1;function f8(n){for(;n&&!r8(n);)n=n.parentElement;let t=f1(n),e=t.document.activeElement;if(!e||e===n)return;An=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,p1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,p1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),An=!1,r=!1},u=requestAnimationFrame(l);return l}let Ct="default",M5="",Fn=new WeakMap;function x5(n){if(o5()){if(Ct==="default"){const t=Pe(n);M5=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ct="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";Fn.set(n,n.style[t]),n.style[t]="none"}}function Ln(n){if(o5()){if(Ct!=="disabled")return;Ct="restoring",setTimeout(()=>{Q9(()=>{if(Ct==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=M5||""),M5="",Ct="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&Fn.has(n)){let t=Fn.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),Fn.delete(n)}}const Kn=c.createContext({register:()=>{}});Kn.displayName="PressResponderContext";function Gm(n,t){return t.get?t.get.call(n):t.value}function p8(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function Rm(n,t){var e=p8(n,t,"get");return Gm(n,e)}function Xm(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jm(n,t,e){Xm(n,t),t.set(n,e)}function Qm(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function h8(n,t,e){var r=p8(n,t,"set");return Qm(n,r,e),e}function Zm(n){let t=c.useContext(Kn);if(t){let{register:e,...r}=t;n=De(r,n),e()}return l5(t,n.ref),n}var Bn=new WeakMap;class Hn{continuePropagation(){h8(this,Bn,!1)}get shouldStopPropagation(){return Rm(this,Bn)}constructor(t,e,r,i){Jm(this,Bn,{writable:!0,value:void 0}),h8(this,Bn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const v8=Symbol("linkClicked"),m8="react-aria-pressable-style",g8="data-react-aria-pressable";function Vn(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Zm(n),[m,v]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:I,removeAllGlobalListeners:y}=rt(),x=Re((E,L)=>{let F=b.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Hn("pressstart",L,E);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),g=Re((E,L,F=!0)=>{let $=b.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Hn("pressend",L,E);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Hn("press",L,E);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),M=Re((E,L)=>{let F=b.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Hn("pressup",L,E);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Re(E=>{let L=b.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&g(it(L.target,E),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),f||Ln(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Re(E=>{d&&w(E)}),A=Re(E=>{s?.(E)}),C=Re((E,L)=>{if(s){let F=new MouseEvent("click",E);u8(F,L),s(b5(F))}}),H=c.useMemo(()=>{let E=b.current,L={onKeyDown($){if(E5($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,xe($.nativeEvent))){var X;M8(xe($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!E.isPressed&&!$.repeat){E.target=$.currentTarget,E.isPressed=!0,E.pointerType="keyboard",_=x($,"keyboard");let B=$.currentTarget,W=N=>{E5(N,B)&&!N.repeat&&Ne(B,xe(N))&&E.target&&M(it(E.target,N),"keyboard")};I(Pe($.currentTarget),"keyup",r5(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&tt()&&((X=E.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,xe($.nativeEvent)))&&$&&$.button===0&&!E.isTriggeringEvent&&!nt.isOpening){let X=!0;if(a&&$.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||d5($.nativeEvent))){let _=x($,"virtual"),B=M($,"virtual"),W=g($,"virtual");A($),X=_&&B&&W}else if(E.isPressed&&E.pointerType!=="keyboard"){let _=E.pointerType||$.nativeEvent.pointerType||"virtual",B=M(it($.currentTarget,$),_),W=g(it($.currentTarget,$),_,!0);X=B&&W,E.isOverTarget=!1,A($),w($)}E.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(E.isPressed&&E.target&&E5($,E.target)){var _;M8(xe($),$.key)&&$.preventDefault();let W=xe($),N=Ne(E.target,xe($));g(it(E.target,$),"keyboard",N),N&&C($,E.target),y(),$.key!=="Enter"&&I5(E.target)&&Ne(E.target,W)&&!$[v8]&&($[v8]=!0,nt(E.target,$,!1)),E.isPressed=!1,(_=E.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=E.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let W=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let N of W.values())(B=E.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(_m(_.nativeEvent)){E.pointerType="virtual";return}E.pointerType=_.pointerType;let B=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=_.pointerId,E.target=_.currentTarget,f||x5(E.target),B=x(_,E.pointerType);let W=xe(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),I(Pe(_.currentTarget),"pointerup",$,!1),I(Pe(_.currentTarget),"pointercancel",X,!1)}B&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,xe(_.nativeEvent))&&_.button===0){if(u){let B=f8(_.target);B&&E.disposables.push(B)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,xe(_.nativeEvent))||E.pointerType==="virtual"||_.button===0&&!E.isPressed&&M(_,E.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,x(it(E.target,_),E.pointerType))},L.onPointerLeave=_=>{_.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,g(it(E.target,_),E.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===E.activePointerId&&E.isPressed&&_.button===0&&E.target){if(Ne(E.target,xe(_))&&E.pointerType!=null){let B=!1,W=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(B?w(_):(p1(E.target),E.target.click()))},80);I(_.currentTarget,"click",()=>B=!0,!0),E.disposables.push(()=>clearTimeout(W))}else w(_);E.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=_.currentTarget,E.pointerType=d5(_.nativeEvent)?"virtual":"mouse",C1.flushSync(()=>x(_,E.pointerType))&&_.stopPropagation(),u){let W=f8(_.target);W&&E.disposables.push(W)}I(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,B=x(_,E.pointerType)),B&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,B=g(_,E.pointerType,!1),z(_)),B&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&_.button===0&&!E.isPressed&&M(_,E.pointerType||"mouse")};let $=_=>{if(_.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(_.target)&&E.pointerType!=null||w(_),E.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let B=eg(_.nativeEvent);if(!B)return;E.activePointerId=B.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=_.currentTarget,E.pointerType="touch",f||x5(E.target),x(W1(E.target,_),E.pointerType)&&_.stopPropagation(),I(f1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let B=y8(_.nativeEvent,E.activePointerId),W=!0;B&&b8(B,_.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,W=x(W1(E.target,_),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,W=g(W1(E.target,_),E.pointerType,!1),z(W1(E.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let B=y8(_.nativeEvent,E.activePointerId),W=!0;B&&b8(B,_.currentTarget)&&E.pointerType!=null?(M(W1(E.target,_),E.pointerType),W=g(W1(E.target,_),E.pointerType),C(_.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(W=g(W1(E.target,_),E.pointerType,!1)),W&&_.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&Ln(E.target),y()},L.onTouchCancel=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&(_.stopPropagation(),E.isPressed&&w(W1(E.target,_)))};let X=_=>{E.isPressed&&Ne(xe(_),E.target)&&w({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}return L},[I,a,u,y,f,w,z,g,x,M,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const E=Pe(h.current);if(!E||!E.head||E.getElementById(m8))return;const L=E.createElement("style");L.id=m8,L.textContent=`
|
|
76
76
|
@layer {
|
|
77
77
|
[${g8}] {
|
|
78
78
|
touch-action: pan-x pan-y pinch-zoom;
|