@linkdlab/funcnodes_react_flow 0.4.5 → 0.4.6
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/frontend/layout/components.d.ts +1 -1
- package/dist/funcnodes_react_flow.css +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +179 -180
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -693,7 +693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
693
693
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
694
694
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
695
695
|
* Copyright 2024 Fonticons, Inc.
|
|
696
|
-
*/const PD={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},OD={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},RD={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},MD={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},DD={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},FD={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},jD={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},LD={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},BD={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},zD={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},VD={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GD={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},$D={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},HD={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},WD={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};uD.autoAddCss=!1;const pt=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(zf,{...n})})},_v=e=>b.jsx(pt,{...e,icon:OD}),Vf=e=>b.jsx(pt,{...e,icon:HD}),Sv=e=>b.jsx(pt,{...e,icon:$D}),Ev=e=>b.jsx(pt,{...e,icon:VD}),XD=e=>b.jsx(pt,{...e,icon:RD}),YD=e=>b.jsx(pt,{...e,icon:PD}),UD=e=>b.jsx(pt,{...e,icon:WD}),Iv=e=>b.jsx(pt,{...e,icon:zD}),Gf=e=>b.jsx(pt,{...e,icon:DD}),Bi=Gf,kv=e=>b.jsx(pt,{...e,icon:GD}),ZD=e=>b.jsx(pt,{...e,icon:jD}),JD=e=>b.jsx(pt,{...e,icon:MD}),qD=e=>b.jsx(pt,{...e,icon:LD}),KD=e=>b.jsx(pt,{...e,icon:FD}),QD=e=>b.jsx(pt,{...e,icon:BD}),Ao=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:u=!0})=>{const c=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(u5,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(c5,{className:"dialogtitle",children:t}),b.jsx(f5,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(kv,{})})})]})});return b.jsxs(i5,{open:a,onOpenChange:c,modal:u,children:[e&&b.jsx(s5,{asChild:!0,children:e}),b.jsxs(a5,{container:d,children:[b.jsx(l5,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function $f(e){const t=e+"CollectionProvider",[n,r]=ir(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=T.useRef(null),v=T.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=bo(a),u=T.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ge(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=bo(c),p=T.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=T.useRef(null),S=Ge(y,C),E=i(c,m);return T.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=c;function g(h){const y=i(e+"CollectionConsumer",h);return T.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},g,r]}var e3=k.createContext(void 0);function Hf(e){const t=k.useContext(e3);return e||t||"ltr"}const t3=["top","right","bottom","left"],fr=Math.min,At=Math.max,Ka=Math.round,Qa=Math.floor,mn=e=>({x:e,y:e}),n3={left:"right",right:"left",bottom:"top",top:"bottom"},r3={start:"end",end:"start"};function Wf(e,t,n){return At(e,fr(t,n))}function zn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function To(e){return e.split("-")[1]}function Xf(e){return e==="x"?"y":"x"}function Yf(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Uf(e){return Xf(dr(e))}function o3(e,t,n){n===void 0&&(n=!1);const r=To(e),o=Uf(e),i=Yf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=el(s)),[s,el(s)]}function i3(e){const t=el(e);return[Zf(e),t,Zf(t)]}function Zf(e){return e.replace(/start|end/g,t=>r3[t])}function s3(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function a3(e,t,n,r){const o=To(e);let i=s3(Vn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Zf)))),i}function el(e){return e.replace(/left|right|bottom|top/g,t=>n3[t])}function l3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Av(e){return typeof e!="number"?l3(e):{top:e,right:e,bottom:e,left:e}}function tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tv(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),s=Uf(t),a=Yf(s),l=Vn(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(To(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const u3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Tv(u,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:c,y:f}=Tv(u,d,l)),h=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function zi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=zn(t,e),g=Av(p),y=a[d?f==="floating"?"reference":"floating":f],m=tl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=tl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const c3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=zn(e,t)||{};if(u==null)return{};const f=Av(c),d={x:n,y:r},p=Uf(o),g=Yf(p),h=await s.getDimensions(u),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const O=C/2-S/2,M=I/2-h[g]/2-1,w=fr(f[m],M),N=fr(f[x],M),R=w,L=I-h[g]-N,A=I/2-h[g]/2+O,j=Wf(R,A,L),D=!l.arrow&&To(o)!=null&&A!==j&&i.reference[g]/2-(A<R?w:N)-h[g]/2<0,z=D?A<R?A-R:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),f3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Vn(o),x=dr(a),v=Vn(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(v||!h?[el(a)]:i3(a)),E=g!=="none";!d&&E&&S.push(...a3(a,h,g,C));const I=[a,...S],O=await zi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&M.push(O[m]),f){const A=o3(o,s,C);M.push(O[A[0]],O[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var N,R;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(R=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=dr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return t3.some(t=>e[t]>=0)}const d3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=zn(e,t);switch(r){case"referenceHidden":{const i=await zi(t,{...o,elementContext:"reference"}),s=Nv(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pv(s)}}}case"escaped":{const i=await zi(t,{...o,altBoundary:!0}),s=Nv(i,n.floating);return{data:{escapedOffsets:s,escaped:Pv(s)}}}default:return{}}}}};async function p3(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Vn(n),a=To(n),l=dr(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=zn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const h3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await p3(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},g3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=zn(e,t),u={x:n,y:r},c=await zi(t,l),f=dr(Vn(o)),d=Xf(f);let p=u[d],g=u[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+c[y],v=p-c[m];p=Wf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+c[y],v=g-c[m];g=Wf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},m3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=zn(e,t),c={x:n,y:r},f=dr(o),d=Xf(f);let p=c[d],g=c[f];const h=zn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(u){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes(Vn(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=zn(e,t),c=await zi(t,u),f=Vn(o),d=To(o),p=dr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-c.top-c.bottom,v=g-c.left-c.right,C=fr(h-c[y],x),S=fr(g-c[m],v),E=!t.middlewareData.shift;let I=C,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=At(c.left,0),N=At(c.right,0),R=At(c.top,0),L=At(c.bottom,0);p?O=g-2*(w!==0||N!==0?w+N:At(c.left,c.right)):I=h-2*(R!==0||L!==0?R+L:At(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function nl(){return typeof window<"u"}function No(e){return Ov(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yn(e){var t;return(t=(Ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ov(e){return nl()?e instanceof Node||e instanceof Tt(e).Node:!1}function Kt(e){return nl()?e instanceof Element||e instanceof Tt(e).Element:!1}function bn(e){return nl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function Rv(e){return!nl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function b3(e){return["table","td","th"].includes(No(e))}function rl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jf(e){const t=qf(),n=Kt(e)?Qt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function v3(e){let t=pr(e);for(;bn(t)&&!Po(t);){if(Jf(t))return t;if(rl(t))return null;t=pr(t)}return null}function qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Po(e){return["html","body","#document"].includes(No(e))}function Qt(e){return Tt(e).getComputedStyle(e)}function ol(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rv(e)&&e.host||yn(e);return Rv(t)?t.host:t}function Mv(e){const t=pr(e);return Po(t)?e.ownerDocument?e.ownerDocument.body:e.body:bn(t)&&Vi(t)?t:Mv(t)}function Gi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Kf(s);return t.concat(s,s.visualViewport||[],Vi(o)?o:[],a&&n?Gi(a):[])}return t.concat(o,Gi(o,[],n))}function Kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dv(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ka(n)!==i||Ka(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Qf(e){return Kt(e)?e:e.contextElement}function Oo(e){const t=Qf(e);if(!bn(t))return mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dv(t);let s=(i?Ka(n.width):n.width)/r,a=(i?Ka(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const x3=mn(0);function Fv(e){const t=Tt(e);return!qf()||!t.visualViewport?x3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qf(e);let s=mn(1);t&&(r?Kt(r)&&(s=Oo(r)):s=Oo(e));const a=w3(i,n,r)?Fv(i):mn(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&Kt(r)?Tt(r):r;let g=d,h=Kf(g);for(;h&&r&&p!==g;){const y=Oo(h),m=h.getBoundingClientRect(),x=Qt(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,f*=y.y,l+=v,u+=C,g=Tt(h),h=Kf(g)}}return tl({width:c,height:f,x:l,y:u})}function ed(e,t){const n=ol(e).scrollLeft;return t?t.left+n:Br(yn(e)).left+n}function jv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ed(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function C3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=yn(r),a=t?rl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=mn(1);const c=mn(0),f=bn(r);if((f||!f&&!i)&&((No(r)!=="body"||Vi(s))&&(l=ol(r)),bn(r))){const p=Br(r);u=Oo(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!i?jv(s,l,!0):mn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function _3(e){return Array.from(e.getClientRects())}function S3(e){const t=yn(e),n=ol(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ed(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function E3(e,t){const n=Tt(e),r=yn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=qf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function I3(e,t){const n=Br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bn(e)?Oo(e):mn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Lv(e,t,n){let r;if(t==="viewport")r=E3(e,n);else if(t==="document")r=S3(yn(e));else if(Kt(t))r=I3(t,n);else{const o=Fv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tl(r)}function Bv(e,t){const n=pr(e);return n===t||!Kt(n)||Po(n)?!1:Qt(n).position==="fixed"||Bv(n,t)}function k3(e,t){const n=t.get(e);if(n)return n;let r=Gi(e,[],!1).filter(a=>Kt(a)&&No(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?pr(e):e;for(;Kt(s)&&!Po(s);){const a=Qt(s),l=Jf(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vi(s)&&!l&&Bv(e,s))?r=r.filter(c=>c!==s):o=a,s=pr(s)}return t.set(e,r),r}function A3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?rl(t)?[]:k3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=Lv(t,c,o);return u.top=At(f.top,u.top),u.right=fr(f.right,u.right),u.bottom=fr(f.bottom,u.bottom),u.left=At(f.left,u.left),u},Lv(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function T3(e){const{width:t,height:n}=Dv(e);return{width:t,height:n}}function N3(e,t,n){const r=bn(t),o=yn(t),i=n==="fixed",s=Br(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=mn(0);if(r||!r&&!i)if((No(t)!=="body"||Vi(o))&&(a=ol(t)),r){const d=Br(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=ed(o));const u=o&&!r&&!i?jv(o,a):mn(0),c=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:c,y:f,width:s.width,height:s.height}}function td(e){return Qt(e).position==="static"}function zv(e,t){if(!bn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yn(e)===n&&(n=n.ownerDocument.body),n}function Vv(e,t){const n=Tt(e);if(rl(e))return n;if(!bn(e)){let o=pr(e);for(;o&&!Po(o);){if(Kt(o)&&!td(o))return o;o=pr(o)}return n}let r=zv(e,t);for(;r&&b3(r)&&td(r);)r=zv(r,t);return r&&Po(r)&&td(r)&&!Jf(r)?n:r||v3(e)||n}const P3=async function(e){const t=this.getOffsetParent||Vv,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O3(e){return Qt(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:C3,getDocumentElement:yn,getClippingRect:A3,getOffsetParent:Vv,getElementRects:P3,getClientRects:_3,getDimensions:T3,getScale:Oo,isElement:Kt,isRTL:O3};function Gv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function M3(e,t){let n=null,r;const o=yn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;const g=Qa(f),h=Qa(o.clientWidth-(c+d)),y=Qa(o.clientHeight-(f+p)),m=Qa(c),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:At(0,fr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Gv(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function $v(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qf(e),c=o||i?[...u?Gi(u):[],...Gi(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&a?M3(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,h=l?Br(e):null;l&&y();function y(){const m=Br(e);h&&!Gv(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;c.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const D3=h3,F3=g3,j3=f3,L3=y3,B3=d3,Hv=c3,z3=m3,V3=(e,t,n)=>{const r=new Map,o={platform:R3,...n},i={...o.platform,_c:r};return u3(e,t,{...o,platform:i})};var il=typeof document<"u"?T.useLayoutEffect:T.useEffect;function sl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xv(e,t){const n=Wv(e);return Math.round(t*n)/n}function nd(e){const t=k.useRef(e);return il(()=>{t.current=e}),t}function G3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);sl(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),O=k.useRef(c),M=l!=null,w=nd(l),N=nd(o),R=nd(u),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};N.current&&(V.platform=N.current),V3(E.current,I.current,V).then(F=>{const _={...F,isPositioned:R.current!==!1};A.current&&!sl(O.current,_)&&(O.current=_,ku.flushSync(()=>{f(_)}))})},[d,t,n,N,R]);il(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[u]);const A=k.useRef(!1);il(()=>(A.current=!0,()=>{A.current=!1}),[]),il(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=Xv(D.floating,c.x),_=Xv(D.floating,c.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...Wv(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,c.x,c.y]);return k.useMemo(()=>({...c,update:L,refs:j,elements:D,floatingStyles:z}),[c,L,j,D,z])}const $3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hv({element:r.current,padding:o}).fn(n):{}:r?Hv({element:r,padding:o}).fn(n):{}}}},H3=(e,t)=>({...D3(e),options:[e,t]}),W3=(e,t)=>({...F3(e),options:[e,t]}),X3=(e,t)=>({...z3(e),options:[e,t]}),Y3=(e,t)=>({...j3(e),options:[e,t]}),U3=(e,t)=>({...L3(e),options:[e,t]}),Z3=(e,t)=>({...B3(e),options:[e,t]}),J3=(e,t)=>({...$3(e),options:[e,t]});var q3="Arrow",Yv=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yv.displayName=q3;var K3=Yv;function Uv(e){const[t,n]=k.useState(void 0);return Mr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rd="Popper",[Zv,al]=ir(rd),[Q3,Jv]=Zv(rd),qv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(Q3,{scope:t,anchor:r,onAnchorChange:o,children:n})};qv.displayName=rd;var Kv="PopperAnchor",Qv=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jv(Kv,n),s=k.useRef(null),a=Ge(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(Fe.div,{...o,ref:a})});Qv.displayName=Kv;var od="PopperContent",[eF,tF]=Zv(od),ex=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=Jv(od,n),[m,x]=k.useState(null),v=Ge(t,ce=>x(ce)),[C,S]=k.useState(null),E=Uv(C),I=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],R=N.length>0,L={padding:w,boundary:N.filter(rF),altBoundary:R},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=G3({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>$v(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[H3({mainAxis:o+O,alignmentAxis:s}),l&&W3({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?X3():void 0,...L}),l&&Y3({...L}),U3({...L,apply:({elements:ce,rects:pe,availableWidth:Ie,availableHeight:Ze})=>{const{width:ft,height:Dt}=pe.reference,Ft=ce.floating.style;Ft.setProperty("--radix-popper-available-width",`${Ie}px`),Ft.setProperty("--radix-popper-available-height",`${Ze}px`),Ft.setProperty("--radix-popper-anchor-width",`${ft}px`),Ft.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&J3({element:C,padding:a}),oF({arrowWidth:I,arrowHeight:O}),d&&Z3({strategy:"referenceHidden",...L})]}),[F,_]=rx(D),G=Lt(g);Mr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,P=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Mr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(eF,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:P,shouldHideArrow:H,children:b.jsx(Fe.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});ex.displayName=od;var tx="PopperArrow",nF={top:"bottom",right:"left",bottom:"top",left:"right"},nx=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=tF(tx,r),s=nF[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(K3,{...o,ref:n,style:{...o.style,display:"block"}})})});nx.displayName=tx;function rF(e){return e!==null}var oF=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=rx(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):u==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=s?f:`${p}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function rx(e){const[t,n="center"]=e.split("-");return[t,n]}var id=qv,sd=Qv,ox=ex,ix=nx,ad="rovingFocusGroup.onEntryFocus",iF={bubbles:!1,cancelable:!0},ll="RovingFocusGroup",[ld,sx,sF]=$f(ll),[aF,ax]=ir(ll,[sF]),[lF,uF]=aF(ll),lx=k.forwardRef((e,t)=>b.jsx(ld.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(ld.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(cF,{...e,ref:t})})}));lx.displayName=ll;var cF=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=k.useRef(null),p=Ge(t,d),g=Hf(i),[h=null,y]=yo({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Lt(u),C=sx(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(ad,v),()=>O.removeEventListener(ad,v)},[v]),b.jsx(lF,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(O=>y(O),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(O=>O+1),[]),onFocusableItemRemove:k.useCallback(()=>I(O=>O-1),[]),children:b.jsx(Fe.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,O=>{const M=!S.current;if(O.target===O.currentTarget&&M&&!m){const w=new CustomEvent(ad,iF);if(O.currentTarget.dispatchEvent(w),!w.defaultPrevented){const N=C().filter(D=>D.focusable),R=N.find(D=>D.active),L=N.find(D=>D.id===h),j=[R,L,...N].filter(Boolean).map(D=>D.ref.current);fx(j,c)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),ux="RovingFocusGroupItem",cx=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Dn(),l=i||a,u=uF(ux,n),c=u.currentTabStopId===l,f=sx(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(ld.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(Fe.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?u.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=pF(g,u.orientation,u.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=u.loop?hF(m,x+1):m.slice(x+1)}setTimeout(()=>fx(m))}})})})});cx.displayName=ux;var fF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pF(e,t,n){const r=dF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fF[r]}function fx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gF=lx,mF=cx,ud=["Enter"," "],yF=["ArrowDown","PageUp","Home"],dx=["ArrowUp","PageDown","End"],bF=[...yF,...dx],vF={ltr:[...ud,"ArrowRight"],rtl:[...ud,"ArrowLeft"]},xF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$i="Menu",[Hi,wF,CF]=$f($i),[zr,px]=ir($i,[CF,al,ax]),Wi=al(),hx=ax(),[gx,Vr]=zr($i),[_F,Xi]=zr($i),mx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Wi(t),[l,u]=k.useState(null),c=k.useRef(!1),f=Lt(i),d=Hf(o);return k.useEffect(()=>{const p=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(id,{...a,children:b.jsx(gx,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:b.jsx(_F,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s,children:r})})})};mx.displayName=$i;var SF="MenuAnchor",cd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(sd,{...o,...r,ref:t})});cd.displayName=SF;var EF="MenuPortal",[GJ,yx]=zr(EF,{forceMount:void 0}),Bt="MenuContent",[IF,fd]=zr(Bt),bx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(kF,{...o,ref:t}):b.jsx(AF,{...o,ref:t})})})})}),kF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu),r=k.useRef(null),o=Ge(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Hc(i)},[]),b.jsx(dd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),AF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu);return b.jsx(dd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),TF=bo("MenuContent.ScrollLock"),dd=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Vr(Bt,n),m=Xi(Bt,n),x=Wi(n),v=hx(n),C=wF(n),[S,E]=k.useState(null),I=k.useRef(null),O=Ge(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),N=k.useRef(0),R=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ma:k.Fragment,D=g?{as:TF,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,P=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=VF(H,_,P),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),Lc();const V=k.useCallback(F=>{var G,$;return L.current===((G=R.current)==null?void 0:G.side)&&$F(F,($=R.current)==null?void 0:$.area)},[]);return b.jsx(IF,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:N,onPointerGraceIntentChange:k.useCallback(F=>{R.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Ia,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(gF,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(ox,{role:"menu","aria-orientation":"vertical","data-state":Fx(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,P=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&P&&z(F.key));const H=I.current;if(F.target!==H||!bF.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);dx.includes(F.key)&&W.reverse(),BF(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Ui(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});bx.displayName=Bt;var NF="MenuGroup",pd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"group",...r,ref:t})});pd.displayName=NF;var PF="MenuLabel",vx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{...r,ref:t})});vx.displayName=PF;var ul="MenuItem",xx="menu.itemSelect",cl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=Xi(ul,e.__scopeMenu),a=fd(ul,e.__scopeMenu),l=Ge(t,i),u=k.useRef(!1),c=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(xx,{bubbles:!0,cancelable:!0});f.addEventListener(xx,p=>r==null?void 0:r(p),{once:!0}),py(f,d),d.defaultPrevented?u.current=!1:s.onClose()}};return b.jsx(wx,{...o,ref:l,disabled:n,onClick:he(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),u.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||ud.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});cl.displayName=ul;var wx=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=fd(ul,n),a=hx(n),l=k.useRef(null),u=Ge(t,l),[c,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(mF,{asChild:!0,...a,focusable:!r,children:b.jsx(Fe.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:he(e.onPointerMove,Ui(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Ui(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),OF="MenuCheckboxItem",Cx=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(kx,{scope:e.__scopeMenu,checked:n,children:b.jsx(cl,{role:"menuitemcheckbox","aria-checked":fl(n)?"mixed":n,...o,ref:t,"data-state":md(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(fl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Cx.displayName=OF;var _x="MenuRadioGroup",[RF,MF]=zr(_x,{value:void 0,onValueChange:()=>{}}),Sx=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Lt(r);return b.jsx(RF,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(pd,{...o,ref:t})})});Sx.displayName=_x;var Ex="MenuRadioItem",Ix=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=MF(Ex,e.__scopeMenu),i=n===o.value;return b.jsx(kx,{scope:e.__scopeMenu,checked:i,children:b.jsx(cl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":md(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ix.displayName=Ex;var hd="MenuItemIndicator",[kx,DF]=zr(hd,{checked:!1}),Ax=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=DF(hd,n);return b.jsx(Fn,{present:r||fl(i.checked)||i.checked===!0,children:b.jsx(Fe.span,{...o,ref:t,"data-state":md(i.checked)})})});Ax.displayName=hd;var FF="MenuSeparator",Tx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Tx.displayName=FF;var jF="MenuArrow",Nx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(ix,{...o,...r,ref:t})});Nx.displayName=jF;var gd="MenuSub",[LF,Px]=zr(gd),Ox=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Vr(gd,t),s=Wi(t),[a,l]=k.useState(null),[u,c]=k.useState(null),f=Lt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(id,{...s,children:b.jsx(gx,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:c,children:b.jsx(LF,{scope:t,contentId:Dn(),triggerId:Dn(),trigger:a,onTriggerChange:l,children:n})})})};Ox.displayName=gd;var Yi="MenuSubTrigger",Rx=k.forwardRef((e,t)=>{const n=Vr(Yi,e.__scopeMenu),r=Xi(Yi,e.__scopeMenu),o=Px(Yi,e.__scopeMenu),i=fd(Yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},c=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>c,[c]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(cd,{asChild:!0,...u,children:b.jsx(wx,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Fx(n.open),...e,ref:Sa(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Ui(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:he(e.onPointerLeave,Ui(f=>{var p,g;c();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||vF[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Rx.displayName=Yi;var Mx="MenuSubContent",Dx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu),a=Px(Mx,e.__scopeMenu),l=k.useRef(null),u=Ge(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(dd,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:he(e.onFocusOutside,c=>{c.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:he(e.onKeyDown,c=>{var p;const f=c.currentTarget.contains(c.target),d=xF[s.dir].includes(c.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),c.preventDefault())})})})})})});Dx.displayName=Mx;function Fx(e){return e?"open":"closed"}function fl(e){return e==="indeterminate"}function md(e){return fl(e)?"indeterminate":e?"checked":"unchecked"}function BF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function zF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function VF(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=zF(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function GF(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,c=t[s].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}function $F(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return GF(n,t)}function Ui(e){return t=>t.pointerType==="mouse"?e(t):void 0}var HF=mx,WF=cd,XF=bx,YF=pd,UF=vx,ZF=cl,JF=Cx,qF=Sx,KF=Ix,QF=Ax,ej=Tx,tj=Nx,nj=Ox,rj=Rx,oj=Dx,yd="DropdownMenu",[ij,$J]=ir(yd,[px]),ht=px(),[sj,jx]=ij(yd),Lx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=ht(t),u=k.useRef(null),[c=!1,f]=yo({prop:o,defaultProp:i,onChange:s});return b.jsx(sj,{scope:t,triggerId:Dn(),triggerRef:u,contentId:Dn(),open:c,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(HF,{...l,open:c,onOpenChange:f,dir:r,modal:a,children:n})})};Lx.displayName=yd;var Bx="DropdownMenuTrigger",zx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=jx(Bx,n),s=ht(n);return b.jsx(WF,{asChild:!0,...s,children:b.jsx(Fe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Sa(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});zx.displayName=Bx;var Vx="DropdownMenuContent",Gx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=jx(Vx,n),i=ht(n),s=k.useRef(!1);return b.jsx(XF,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!o.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gx.displayName=Vx;var aj="DropdownMenuGroup",$x=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(YF,{...o,...r,ref:t})});$x.displayName=aj;var lj="DropdownMenuLabel",uj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(UF,{...o,...r,ref:t})});uj.displayName=lj;var cj="DropdownMenuItem",Hx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ZF,{...o,...r,ref:t})});Hx.displayName=cj;var fj="DropdownMenuCheckboxItem",dj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(JF,{...o,...r,ref:t})});dj.displayName=fj;var pj="DropdownMenuRadioGroup",Wx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(qF,{...o,...r,ref:t})});Wx.displayName=pj;var hj="DropdownMenuRadioItem",Xx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(KF,{...o,...r,ref:t})});Xx.displayName=hj;var gj="DropdownMenuItemIndicator",mj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(QF,{...o,...r,ref:t})});mj.displayName=gj;var yj="DropdownMenuSeparator",bj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ej,{...o,...r,ref:t})});bj.displayName=yj;var vj="DropdownMenuArrow",xj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(tj,{...o,...r,ref:t})});xj.displayName=vj;var wj=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=ht(t),[a=!1,l]=yo({prop:r,defaultProp:i,onChange:o});return b.jsx(nj,{...s,open:a,onOpenChange:l,children:n})},Cj="DropdownMenuSubTrigger",Yx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(rj,{...o,...r,ref:t})});Yx.displayName=Cj;var _j="DropdownMenuSubContent",Ux=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(oj,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ux.displayName=_j;var Zx=Lx,Jx=zx,qx=Gx,Kx=$x,hr=Hx,Sj=Wx,Ej=Xx,Ij=wj,kj=Yx,Aj=Ux;const bd={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},Qx=k.createContext(void 0),Tj=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[u,c]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(bd).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),c(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(Qx.Provider,{value:{wKey:i,w:a,h:u},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),Nj=()=>{const e=k.useContext(Qx);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},Pj=(e,t)=>e==t?!1:e==""?!0:bd[e]<bd[t],Oj=e=>Pj(Nj().wKey,e),Ro=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([c,f])=>{c===""?a+=`direction-${f} `:a+=`${c}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([c,f])=>{c===""?l+=f?"grow ":"no-grow":l+=f?`${c}-grow `:`${c}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const u=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:u,...i,children:n})},e1=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o,expanderSize:i="40px",containerStyle:s,style:a,containerClassName:l,onExpandChange:u,...c})=>{const f={up:Gf,down:Iv,left:Sv,right:Vf}[e],d={up:Iv,down:Gf,left:Vf,right:Sv}[e],[p,g]=k.useState(t),h=O=>{p!==O&&(g(O),u&&u(O))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...c,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},Rj=({trigger:e,setOpen:t,open:n})=>{const[r,o]=T.useState(""),i=T.useContext(xe);return i.options.useWorkerManager?b.jsxs(Ao,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},Mj=({trigger:e,setOpen:t,open:n})=>{var c,f;const r=T.useContext(xe),[o,i]=T.useState(!1),s=r.workers(),a=(c=r.worker)==null?void 0:c.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",u=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});PR(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Ao,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:u,children:"Export"})]})})},Dj=()=>{const t=T.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},Fj=()=>{var p;const e=T.useContext(xe),t=e.workers(),[n,r]=T.useState(!1),[o,i]=T.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MR(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||yc,u=l&&Object.keys(t).length>0,c=e.worker&&e.worker.is_open,f=c&&l;return l||c?b.jsxs(b.Fragment,{children:[b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Worker ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[u&&b.jsxs(Ij,{children:[b.jsx(kj,{className:"headermenuitem submenuitem",children:b.jsxs(Ro,{direction:"row",children:["Select",b.jsx(Vf,{})]})}),b.jsx(Aj,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(Sj,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(Ej,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),c&&b.jsxs(b.Fragment,{children:[f&&b.jsx(hr,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(hr,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(hr,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(Rj,{open:n,setOpen:r}),b.jsx(Mj,{open:o,setOpen:i})]}):null},jj=()=>{const e=T.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async u=>{var d,p;const c=(d=u.target)==null?void 0:d.result;if(!c)return;const f=JSON.parse(c);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Nodespace ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[b.jsx(hr,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(hr,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(hr,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},Lj=({...e})=>{const t=T.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(Ro,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(Ro,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(Dj,{})}),(e.showmenu||yc)&&b.jsxs(Ro,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(Fj,{})}),(t.worker&&n.is_open||yc)&&b.jsx("div",{className:"headerelement",children:b.jsx(jj,{})})]})]})};function HJ(){}function WJ(){}function Bj(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gj={};function t1(e,t){return(Gj.jsx?Vj:zj).test(e)}const $j=/[ \t\n\f\r]/g;function Hj(e){return typeof e=="object"?e.type==="text"?n1(e.value):!1:n1(e)}function n1(e){return e.replace($j,"")===""}class Zi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zi.prototype.normal={},Zi.prototype.property={},Zi.prototype.space=void 0;function r1(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Zi(n,r,t)}function vd(e){return e.toLowerCase()}class xt{constructor(t,n){this.attribute=n,this.property=t}}xt.prototype.attribute="",xt.prototype.booleanish=!1,xt.prototype.boolean=!1,xt.prototype.commaOrSpaceSeparated=!1,xt.prototype.commaSeparated=!1,xt.prototype.defined=!1,xt.prototype.mustUseProperty=!1,xt.prototype.number=!1,xt.prototype.overloadedBoolean=!1,xt.prototype.property="",xt.prototype.spaceSeparated=!1,xt.prototype.space=void 0;let Wj=0;const be=Gr(),Qe=Gr(),o1=Gr(),te=Gr(),je=Gr(),Mo=Gr(),Nt=Gr();function Gr(){return 2**++Wj}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Qe,commaOrSpaceSeparated:Nt,commaSeparated:Mo,number:te,overloadedBoolean:o1,spaceSeparated:je},Symbol.toStringTag,{value:"Module"})),wd=Object.keys(xd);class Cd extends xt{constructor(t,n,r,o){let i=-1;if(super(t,n),i1(this,"space",o),typeof r=="number")for(;++i<wd.length;){const s=wd[i];i1(this,wd[i],(r&xd[s])===xd[s])}}}Cd.prototype.defined=!0;function i1(e,t,n){n&&(e[t]=n)}function Do(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Cd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vd(r)]=r,n[vd(i.attribute)]=r}return new Zi(t,n,e.space)}const s1=Do({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:je,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:te,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:je,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:Qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function a1(e,t){return t in e?e[t]:t}function l1(e,t){return a1(e,t.toLowerCase())}const Xj=Do({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mo,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:je,autoFocus:be,autoPlay:be,blocking:je,capture:null,charSet:null,checked:be,cite:null,className:je,cols:te,colSpan:null,content:null,contentEditable:Qe,controls:be,controlsList:je,coords:te|Mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:o1,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:je,height:te,hidden:be,high:te,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:je,itemRef:je,itemScope:be,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:te,pattern:null,ping:je,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:je,required:be,reversed:be,rows:te,rowSpan:te,sandbox:je,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:l1}),Yj=Do({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Nt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:je,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Mo,g2:Mo,glyphName:Mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a1}),u1=Do({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),c1=Do({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:l1}),f1=Do({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Uj={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"},Zj=/[A-Z]/g,d1=/-[a-z]/g,Jj=/^data[-\w.:]+$/i;function qj(e,t){const n=vd(t);let r=t,o=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jj.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(d1,Qj);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!d1.test(i)){let s=i.replace(Zj,Kj);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Cd}return new o(r,t)}function Kj(e){return"-"+e.toLowerCase()}function Qj(e){return e.charAt(1).toUpperCase()}const eL=r1([s1,Xj,u1,c1,f1],"html"),_d=r1([s1,Yj,u1,c1,f1],"svg");function tL(e){return e.join(" ").trim()}var Fo={},Sd,p1;function nL(){if(p1)return Sd;p1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
696
|
+
*/const PD={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},OD={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},RD={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},MD={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},DD={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},FD={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},jD={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},LD={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},BD={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},zD={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},VD={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GD={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},$D={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},HD={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},WD={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};uD.autoAddCss=!1;const pt=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(zf,{...n})})},_v=e=>b.jsx(pt,{...e,icon:OD}),Vf=e=>b.jsx(pt,{...e,icon:HD}),Sv=e=>b.jsx(pt,{...e,icon:$D}),Ev=e=>b.jsx(pt,{...e,icon:VD}),XD=e=>b.jsx(pt,{...e,icon:RD}),YD=e=>b.jsx(pt,{...e,icon:PD}),UD=e=>b.jsx(pt,{...e,icon:WD}),Iv=e=>b.jsx(pt,{...e,icon:zD}),Gf=e=>b.jsx(pt,{...e,icon:DD}),Bi=Gf,kv=e=>b.jsx(pt,{...e,icon:GD}),ZD=e=>b.jsx(pt,{...e,icon:jD}),JD=e=>b.jsx(pt,{...e,icon:MD}),qD=e=>b.jsx(pt,{...e,icon:LD}),KD=e=>b.jsx(pt,{...e,icon:FD}),QD=e=>b.jsx(pt,{...e,icon:BD}),Ao=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:u=!0})=>{const c=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(u5,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(c5,{className:"dialogtitle",children:t}),b.jsx(f5,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(Qy,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(kv,{})})})]})});return b.jsxs(i5,{open:a,onOpenChange:c,modal:u,children:[e&&b.jsx(s5,{asChild:!0,children:e}),b.jsxs(a5,{container:d,children:[b.jsx(l5,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function $f(e){const t=e+"CollectionProvider",[n,r]=ir(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=T.useRef(null),v=T.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=bo(a),u=T.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ge(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=bo(c),p=T.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=T.useRef(null),S=Ge(y,C),E=i(c,m);return T.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=c;function g(h){const y=i(e+"CollectionConsumer",h);return T.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},g,r]}var e3=k.createContext(void 0);function Hf(e){const t=k.useContext(e3);return e||t||"ltr"}const t3=["top","right","bottom","left"],fr=Math.min,At=Math.max,Ka=Math.round,Qa=Math.floor,mn=e=>({x:e,y:e}),n3={left:"right",right:"left",bottom:"top",top:"bottom"},r3={start:"end",end:"start"};function Wf(e,t,n){return At(e,fr(t,n))}function zn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function To(e){return e.split("-")[1]}function Xf(e){return e==="x"?"y":"x"}function Yf(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Vn(e))?"y":"x"}function Uf(e){return Xf(dr(e))}function o3(e,t,n){n===void 0&&(n=!1);const r=To(e),o=Uf(e),i=Yf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=el(s)),[s,el(s)]}function i3(e){const t=el(e);return[Zf(e),t,Zf(t)]}function Zf(e){return e.replace(/start|end/g,t=>r3[t])}function s3(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function a3(e,t,n,r){const o=To(e);let i=s3(Vn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Zf)))),i}function el(e){return e.replace(/left|right|bottom|top/g,t=>n3[t])}function l3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Av(e){return typeof e!="number"?l3(e):{top:e,right:e,bottom:e,left:e}}function tl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tv(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),s=Uf(t),a=Yf(s),l=Vn(t),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(To(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const u3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Tv(u,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=x??c,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:c,y:f}=Tv(u,d,l)),h=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function zi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=zn(t,e),g=Av(p),y=a[d?f==="floating"?"reference":"floating":f],m=tl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=tl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const c3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=zn(e,t)||{};if(u==null)return{};const f=Av(c),d={x:n,y:r},p=Uf(o),g=Yf(p),h=await s.getDimensions(u),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const O=C/2-S/2,M=I/2-h[g]/2-1,w=fr(f[m],M),N=fr(f[x],M),R=w,L=I-h[g]-N,A=I/2-h[g]/2+O,j=Wf(R,A,L),D=!l.arrow&&To(o)!=null&&A!==j&&i.reference[g]/2-(A<R?w:N)-h[g]/2<0,z=D?A<R?A-R:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),f3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=zn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Vn(o),x=dr(a),v=Vn(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(v||!h?[el(a)]:i3(a)),E=g!=="none";!d&&E&&S.push(...a3(a,h,g,C));const I=[a,...S],O=await zi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&M.push(O[m]),f){const A=o3(o,s,C);M.push(O[A[0]],O[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var N,R;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(R=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=dr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pv(e){return t3.some(t=>e[t]>=0)}const d3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=zn(e,t);switch(r){case"referenceHidden":{const i=await zi(t,{...o,elementContext:"reference"}),s=Nv(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pv(s)}}}case"escaped":{const i=await zi(t,{...o,altBoundary:!0}),s=Nv(i,n.floating);return{data:{escapedOffsets:s,escaped:Pv(s)}}}default:return{}}}}};async function p3(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Vn(n),a=To(n),l=dr(n)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=zn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const h3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await p3(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},g3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=zn(e,t),u={x:n,y:r},c=await zi(t,l),f=dr(Vn(o)),d=Xf(f);let p=u[d],g=u[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+c[y],v=p-c[m];p=Wf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+c[y],v=g-c[m];g=Wf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},m3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=zn(e,t),c={x:n,y:r},f=dr(o),d=Xf(f);let p=c[d],g=c[f];const h=zn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(u){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes(Vn(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=zn(e,t),c=await zi(t,u),f=Vn(o),d=To(o),p=dr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-c.top-c.bottom,v=g-c.left-c.right,C=fr(h-c[y],x),S=fr(g-c[m],v),E=!t.middlewareData.shift;let I=C,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=At(c.left,0),N=At(c.right,0),R=At(c.top,0),L=At(c.bottom,0);p?O=g-2*(w!==0||N!==0?w+N:At(c.left,c.right)):I=h-2*(R!==0||L!==0?R+L:At(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function nl(){return typeof window<"u"}function No(e){return Ov(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yn(e){var t;return(t=(Ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ov(e){return nl()?e instanceof Node||e instanceof Tt(e).Node:!1}function Kt(e){return nl()?e instanceof Element||e instanceof Tt(e).Element:!1}function bn(e){return nl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function Rv(e){return!nl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function b3(e){return["table","td","th"].includes(No(e))}function rl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jf(e){const t=qf(),n=Kt(e)?Qt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function v3(e){let t=pr(e);for(;bn(t)&&!Po(t);){if(Jf(t))return t;if(rl(t))return null;t=pr(t)}return null}function qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Po(e){return["html","body","#document"].includes(No(e))}function Qt(e){return Tt(e).getComputedStyle(e)}function ol(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(No(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rv(e)&&e.host||yn(e);return Rv(t)?t.host:t}function Mv(e){const t=pr(e);return Po(t)?e.ownerDocument?e.ownerDocument.body:e.body:bn(t)&&Vi(t)?t:Mv(t)}function Gi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Kf(s);return t.concat(s,s.visualViewport||[],Vi(o)?o:[],a&&n?Gi(a):[])}return t.concat(o,Gi(o,[],n))}function Kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dv(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ka(n)!==i||Ka(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Qf(e){return Kt(e)?e:e.contextElement}function Oo(e){const t=Qf(e);if(!bn(t))return mn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dv(t);let s=(i?Ka(n.width):n.width)/r,a=(i?Ka(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const x3=mn(0);function Fv(e){const t=Tt(e);return!qf()||!t.visualViewport?x3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qf(e);let s=mn(1);t&&(r?Kt(r)&&(s=Oo(r)):s=Oo(e));const a=w3(i,n,r)?Fv(i):mn(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&Kt(r)?Tt(r):r;let g=d,h=Kf(g);for(;h&&r&&p!==g;){const y=Oo(h),m=h.getBoundingClientRect(),x=Qt(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,f*=y.y,l+=v,u+=C,g=Tt(h),h=Kf(g)}}return tl({width:c,height:f,x:l,y:u})}function ed(e,t){const n=ol(e).scrollLeft;return t?t.left+n:Br(yn(e)).left+n}function jv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ed(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function C3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=yn(r),a=t?rl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=mn(1);const c=mn(0),f=bn(r);if((f||!f&&!i)&&((No(r)!=="body"||Vi(s))&&(l=ol(r)),bn(r))){const p=Br(r);u=Oo(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!i?jv(s,l,!0):mn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function _3(e){return Array.from(e.getClientRects())}function S3(e){const t=yn(e),n=ol(e),r=e.ownerDocument.body,o=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ed(e);const a=-n.scrollTop;return Qt(r).direction==="rtl"&&(s+=At(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function E3(e,t){const n=Tt(e),r=yn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=qf();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function I3(e,t){const n=Br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bn(e)?Oo(e):mn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Lv(e,t,n){let r;if(t==="viewport")r=E3(e,n);else if(t==="document")r=S3(yn(e));else if(Kt(t))r=I3(t,n);else{const o=Fv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tl(r)}function Bv(e,t){const n=pr(e);return n===t||!Kt(n)||Po(n)?!1:Qt(n).position==="fixed"||Bv(n,t)}function k3(e,t){const n=t.get(e);if(n)return n;let r=Gi(e,[],!1).filter(a=>Kt(a)&&No(a)!=="body"),o=null;const i=Qt(e).position==="fixed";let s=i?pr(e):e;for(;Kt(s)&&!Po(s);){const a=Qt(s),l=Jf(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vi(s)&&!l&&Bv(e,s))?r=r.filter(c=>c!==s):o=a,s=pr(s)}return t.set(e,r),r}function A3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?rl(t)?[]:k3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=Lv(t,c,o);return u.top=At(f.top,u.top),u.right=fr(f.right,u.right),u.bottom=fr(f.bottom,u.bottom),u.left=At(f.left,u.left),u},Lv(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function T3(e){const{width:t,height:n}=Dv(e);return{width:t,height:n}}function N3(e,t,n){const r=bn(t),o=yn(t),i=n==="fixed",s=Br(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=mn(0);if(r||!r&&!i)if((No(t)!=="body"||Vi(o))&&(a=ol(t)),r){const d=Br(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=ed(o));const u=o&&!r&&!i?jv(o,a):mn(0),c=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:c,y:f,width:s.width,height:s.height}}function td(e){return Qt(e).position==="static"}function zv(e,t){if(!bn(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yn(e)===n&&(n=n.ownerDocument.body),n}function Vv(e,t){const n=Tt(e);if(rl(e))return n;if(!bn(e)){let o=pr(e);for(;o&&!Po(o);){if(Kt(o)&&!td(o))return o;o=pr(o)}return n}let r=zv(e,t);for(;r&&b3(r)&&td(r);)r=zv(r,t);return r&&Po(r)&&td(r)&&!Jf(r)?n:r||v3(e)||n}const P3=async function(e){const t=this.getOffsetParent||Vv,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O3(e){return Qt(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:C3,getDocumentElement:yn,getClippingRect:A3,getOffsetParent:Vv,getElementRects:P3,getClientRects:_3,getDimensions:T3,getScale:Oo,isElement:Kt,isRTL:O3};function Gv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function M3(e,t){let n=null,r;const o=yn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;const g=Qa(f),h=Qa(o.clientWidth-(c+d)),y=Qa(o.clientHeight-(f+p)),m=Qa(c),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:At(0,fr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Gv(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function $v(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qf(e),c=o||i?[...u?Gi(u):[],...Gi(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&a?M3(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,h=l?Br(e):null;l&&y();function y(){const m=Br(e);h&&!Gv(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;c.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const D3=h3,F3=g3,j3=f3,L3=y3,B3=d3,Hv=c3,z3=m3,V3=(e,t,n)=>{const r=new Map,o={platform:R3,...n},i={...o.platform,_c:r};return u3(e,t,{...o,platform:i})};var il=typeof document<"u"?T.useLayoutEffect:T.useEffect;function sl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!sl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xv(e,t){const n=Wv(e);return Math.round(t*n)/n}function nd(e){const t=k.useRef(e);return il(()=>{t.current=e}),t}function G3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);sl(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),O=k.useRef(c),M=l!=null,w=nd(l),N=nd(o),R=nd(u),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};N.current&&(V.platform=N.current),V3(E.current,I.current,V).then(F=>{const _={...F,isPositioned:R.current!==!1};A.current&&!sl(O.current,_)&&(O.current=_,ku.flushSync(()=>{f(_)}))})},[d,t,n,N,R]);il(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[u]);const A=k.useRef(!1);il(()=>(A.current=!0,()=>{A.current=!1}),[]),il(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=Xv(D.floating,c.x),_=Xv(D.floating,c.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...Wv(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,c.x,c.y]);return k.useMemo(()=>({...c,update:L,refs:j,elements:D,floatingStyles:z}),[c,L,j,D,z])}const $3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hv({element:r.current,padding:o}).fn(n):{}:r?Hv({element:r,padding:o}).fn(n):{}}}},H3=(e,t)=>({...D3(e),options:[e,t]}),W3=(e,t)=>({...F3(e),options:[e,t]}),X3=(e,t)=>({...z3(e),options:[e,t]}),Y3=(e,t)=>({...j3(e),options:[e,t]}),U3=(e,t)=>({...L3(e),options:[e,t]}),Z3=(e,t)=>({...B3(e),options:[e,t]}),J3=(e,t)=>({...$3(e),options:[e,t]});var q3="Arrow",Yv=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yv.displayName=q3;var K3=Yv;function Uv(e){const[t,n]=k.useState(void 0);return Mr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rd="Popper",[Zv,al]=ir(rd),[Q3,Jv]=Zv(rd),qv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(Q3,{scope:t,anchor:r,onAnchorChange:o,children:n})};qv.displayName=rd;var Kv="PopperAnchor",Qv=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jv(Kv,n),s=k.useRef(null),a=Ge(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(Fe.div,{...o,ref:a})});Qv.displayName=Kv;var od="PopperContent",[eF,tF]=Zv(od),ex=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=Jv(od,n),[m,x]=k.useState(null),v=Ge(t,ce=>x(ce)),[C,S]=k.useState(null),E=Uv(C),I=(E==null?void 0:E.width)??0,O=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],R=N.length>0,L={padding:w,boundary:N.filter(rF),altBoundary:R},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=G3({strategy:"fixed",placement:M,whileElementsMounted:(...ce)=>$v(...ce,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[H3({mainAxis:o+O,alignmentAxis:s}),l&&W3({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?X3():void 0,...L}),l&&Y3({...L}),U3({...L,apply:({elements:ce,rects:pe,availableWidth:Ie,availableHeight:Ze})=>{const{width:ft,height:Dt}=pe.reference,Ft=ce.floating.style;Ft.setProperty("--radix-popper-available-width",`${Ie}px`),Ft.setProperty("--radix-popper-available-height",`${Ze}px`),Ft.setProperty("--radix-popper-anchor-width",`${ft}px`),Ft.setProperty("--radix-popper-anchor-height",`${Dt}px`)}}),C&&J3({element:C,padding:a}),oF({arrowWidth:I,arrowHeight:O}),d&&Z3({strategy:"referenceHidden",...L})]}),[F,_]=rx(D),G=Lt(g);Mr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,P=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Mr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(eF,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:P,shouldHideArrow:H,children:b.jsx(Fe.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});ex.displayName=od;var tx="PopperArrow",nF={top:"bottom",right:"left",bottom:"top",left:"right"},nx=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=tF(tx,r),s=nF[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(K3,{...o,ref:n,style:{...o.style,display:"block"}})})});nx.displayName=tx;function rF(e){return e!==null}var oF=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=rx(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):u==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=s?f:`${p}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function rx(e){const[t,n="center"]=e.split("-");return[t,n]}var id=qv,sd=Qv,ox=ex,ix=nx,ad="rovingFocusGroup.onEntryFocus",iF={bubbles:!1,cancelable:!0},ll="RovingFocusGroup",[ld,sx,sF]=$f(ll),[aF,ax]=ir(ll,[sF]),[lF,uF]=aF(ll),lx=k.forwardRef((e,t)=>b.jsx(ld.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(ld.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(cF,{...e,ref:t})})}));lx.displayName=ll;var cF=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=k.useRef(null),p=Ge(t,d),g=Hf(i),[h=null,y]=yo({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Lt(u),C=sx(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(ad,v),()=>O.removeEventListener(ad,v)},[v]),b.jsx(lF,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(O=>y(O),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(O=>O+1),[]),onFocusableItemRemove:k.useCallback(()=>I(O=>O-1),[]),children:b.jsx(Fe.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,O=>{const M=!S.current;if(O.target===O.currentTarget&&M&&!m){const w=new CustomEvent(ad,iF);if(O.currentTarget.dispatchEvent(w),!w.defaultPrevented){const N=C().filter(D=>D.focusable),R=N.find(D=>D.active),L=N.find(D=>D.id===h),j=[R,L,...N].filter(Boolean).map(D=>D.ref.current);fx(j,c)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),ux="RovingFocusGroupItem",cx=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Dn(),l=i||a,u=uF(ux,n),c=u.currentTabStopId===l,f=sx(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=u;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(ld.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(Fe.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?u.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=pF(g,u.orientation,u.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=u.loop?hF(m,x+1):m.slice(x+1)}setTimeout(()=>fx(m))}})})})});cx.displayName=ux;var fF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pF(e,t,n){const r=dF(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fF[r]}function fx(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function hF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gF=lx,mF=cx,ud=["Enter"," "],yF=["ArrowDown","PageUp","Home"],dx=["ArrowUp","PageDown","End"],bF=[...yF,...dx],vF={ltr:[...ud,"ArrowRight"],rtl:[...ud,"ArrowLeft"]},xF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$i="Menu",[Hi,wF,CF]=$f($i),[zr,px]=ir($i,[CF,al,ax]),Wi=al(),hx=ax(),[gx,Vr]=zr($i),[_F,Xi]=zr($i),mx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Wi(t),[l,u]=k.useState(null),c=k.useRef(!1),f=Lt(i),d=Hf(o);return k.useEffect(()=>{const p=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(id,{...a,children:b.jsx(gx,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:b.jsx(_F,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s,children:r})})})};mx.displayName=$i;var SF="MenuAnchor",cd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(sd,{...o,...r,ref:t})});cd.displayName=SF;var EF="MenuPortal",[GJ,yx]=zr(EF,{forceMount:void 0}),Bt="MenuContent",[IF,fd]=zr(Bt),bx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(kF,{...o,ref:t}):b.jsx(AF,{...o,ref:t})})})})}),kF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu),r=k.useRef(null),o=Ge(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Hc(i)},[]),b.jsx(dd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),AF=k.forwardRef((e,t)=>{const n=Vr(Bt,e.__scopeMenu);return b.jsx(dd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),TF=bo("MenuContent.ScrollLock"),dd=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Vr(Bt,n),m=Xi(Bt,n),x=Wi(n),v=hx(n),C=wF(n),[S,E]=k.useState(null),I=k.useRef(null),O=Ge(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),N=k.useRef(0),R=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ma:k.Fragment,D=g?{as:TF,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,P=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=VF(H,_,P),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),Lc();const V=k.useCallback(F=>{var G,$;return L.current===((G=R.current)==null?void 0:G.side)&&$F(F,($=R.current)==null?void 0:$.area)},[]);return b.jsx(IF,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:N,onPointerGraceIntentChange:k.useCallback(F=>{R.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Ia,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(gF,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(ox,{role:"menu","aria-orientation":"vertical","data-state":Fx(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,P=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&P&&z(F.key));const H=I.current;if(F.target!==H||!bF.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);dx.includes(F.key)&&W.reverse(),BF(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Ui(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});bx.displayName=Bt;var NF="MenuGroup",pd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"group",...r,ref:t})});pd.displayName=NF;var PF="MenuLabel",vx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{...r,ref:t})});vx.displayName=PF;var ul="MenuItem",xx="menu.itemSelect",cl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=Xi(ul,e.__scopeMenu),a=fd(ul,e.__scopeMenu),l=Ge(t,i),u=k.useRef(!1),c=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(xx,{bubbles:!0,cancelable:!0});f.addEventListener(xx,p=>r==null?void 0:r(p),{once:!0}),py(f,d),d.defaultPrevented?u.current=!1:s.onClose()}};return b.jsx(wx,{...o,ref:l,disabled:n,onClick:he(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),u.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||ud.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});cl.displayName=ul;var wx=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=fd(ul,n),a=hx(n),l=k.useRef(null),u=Ge(t,l),[c,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(mF,{asChild:!0,...a,focusable:!r,children:b.jsx(Fe.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:he(e.onPointerMove,Ui(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Ui(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),OF="MenuCheckboxItem",Cx=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(kx,{scope:e.__scopeMenu,checked:n,children:b.jsx(cl,{role:"menuitemcheckbox","aria-checked":fl(n)?"mixed":n,...o,ref:t,"data-state":md(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(fl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Cx.displayName=OF;var _x="MenuRadioGroup",[RF,MF]=zr(_x,{value:void 0,onValueChange:()=>{}}),Sx=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Lt(r);return b.jsx(RF,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(pd,{...o,ref:t})})});Sx.displayName=_x;var Ex="MenuRadioItem",Ix=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=MF(Ex,e.__scopeMenu),i=n===o.value;return b.jsx(kx,{scope:e.__scopeMenu,checked:i,children:b.jsx(cl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":md(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ix.displayName=Ex;var hd="MenuItemIndicator",[kx,DF]=zr(hd,{checked:!1}),Ax=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=DF(hd,n);return b.jsx(Fn,{present:r||fl(i.checked)||i.checked===!0,children:b.jsx(Fe.span,{...o,ref:t,"data-state":md(i.checked)})})});Ax.displayName=hd;var FF="MenuSeparator",Tx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Tx.displayName=FF;var jF="MenuArrow",Nx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Wi(n);return b.jsx(ix,{...o,...r,ref:t})});Nx.displayName=jF;var gd="MenuSub",[LF,Px]=zr(gd),Ox=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Vr(gd,t),s=Wi(t),[a,l]=k.useState(null),[u,c]=k.useState(null),f=Lt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(id,{...s,children:b.jsx(gx,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:c,children:b.jsx(LF,{scope:t,contentId:Dn(),triggerId:Dn(),trigger:a,onTriggerChange:l,children:n})})})};Ox.displayName=gd;var Yi="MenuSubTrigger",Rx=k.forwardRef((e,t)=>{const n=Vr(Yi,e.__scopeMenu),r=Xi(Yi,e.__scopeMenu),o=Px(Yi,e.__scopeMenu),i=fd(Yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},c=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>c,[c]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(cd,{asChild:!0,...u,children:b.jsx(wx,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Fx(n.open),...e,ref:Sa(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Ui(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:he(e.onPointerLeave,Ui(f=>{var p,g;c();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||vF[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Rx.displayName=Yi;var Mx="MenuSubContent",Dx=k.forwardRef((e,t)=>{const n=yx(Bt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Vr(Bt,e.__scopeMenu),s=Xi(Bt,e.__scopeMenu),a=Px(Mx,e.__scopeMenu),l=k.useRef(null),u=Ge(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Fn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(dd,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:he(e.onFocusOutside,c=>{c.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,c=>{s.onClose(),c.preventDefault()}),onKeyDown:he(e.onKeyDown,c=>{var p;const f=c.currentTarget.contains(c.target),d=xF[s.dir].includes(c.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),c.preventDefault())})})})})})});Dx.displayName=Mx;function Fx(e){return e?"open":"closed"}function fl(e){return e==="indeterminate"}function md(e){return fl(e)?"indeterminate":e?"checked":"unchecked"}function BF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function zF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function VF(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=zF(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function GF(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,u=t[s].x,c=t[s].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}function $F(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return GF(n,t)}function Ui(e){return t=>t.pointerType==="mouse"?e(t):void 0}var HF=mx,WF=cd,XF=bx,YF=pd,UF=vx,ZF=cl,JF=Cx,qF=Sx,KF=Ix,QF=Ax,ej=Tx,tj=Nx,nj=Ox,rj=Rx,oj=Dx,yd="DropdownMenu",[ij,$J]=ir(yd,[px]),ht=px(),[sj,jx]=ij(yd),Lx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=ht(t),u=k.useRef(null),[c=!1,f]=yo({prop:o,defaultProp:i,onChange:s});return b.jsx(sj,{scope:t,triggerId:Dn(),triggerRef:u,contentId:Dn(),open:c,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(HF,{...l,open:c,onOpenChange:f,dir:r,modal:a,children:n})})};Lx.displayName=yd;var Bx="DropdownMenuTrigger",zx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=jx(Bx,n),s=ht(n);return b.jsx(WF,{asChild:!0,...s,children:b.jsx(Fe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Sa(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});zx.displayName=Bx;var Vx="DropdownMenuContent",Gx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=jx(Vx,n),i=ht(n),s=k.useRef(!1);return b.jsx(XF,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!o.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gx.displayName=Vx;var aj="DropdownMenuGroup",$x=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(YF,{...o,...r,ref:t})});$x.displayName=aj;var lj="DropdownMenuLabel",uj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(UF,{...o,...r,ref:t})});uj.displayName=lj;var cj="DropdownMenuItem",Hx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ZF,{...o,...r,ref:t})});Hx.displayName=cj;var fj="DropdownMenuCheckboxItem",dj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(JF,{...o,...r,ref:t})});dj.displayName=fj;var pj="DropdownMenuRadioGroup",Wx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(qF,{...o,...r,ref:t})});Wx.displayName=pj;var hj="DropdownMenuRadioItem",Xx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(KF,{...o,...r,ref:t})});Xx.displayName=hj;var gj="DropdownMenuItemIndicator",mj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(QF,{...o,...r,ref:t})});mj.displayName=gj;var yj="DropdownMenuSeparator",bj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(ej,{...o,...r,ref:t})});bj.displayName=yj;var vj="DropdownMenuArrow",xj=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(tj,{...o,...r,ref:t})});xj.displayName=vj;var wj=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=ht(t),[a=!1,l]=yo({prop:r,defaultProp:i,onChange:o});return b.jsx(nj,{...s,open:a,onOpenChange:l,children:n})},Cj="DropdownMenuSubTrigger",Yx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(rj,{...o,...r,ref:t})});Yx.displayName=Cj;var _j="DropdownMenuSubContent",Ux=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return b.jsx(oj,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ux.displayName=_j;var Zx=Lx,Jx=zx,qx=Gx,Kx=$x,hr=Hx,Sj=Wx,Ej=Xx,Ij=wj,kj=Yx,Aj=Ux;const bd={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},Qx=k.createContext(void 0),Tj=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[u,c]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(bd).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),c(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(Qx.Provider,{value:{wKey:i,w:a,h:u},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),Nj=()=>{const e=k.useContext(Qx);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},Pj=(e,t)=>e==t?!1:e==""?!0:bd[e]<bd[t],Oj=e=>Pj(Nj().wKey,e),Ro=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([c,f])=>{c===""?a+=`direction-${f} `:a+=`${c}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([c,f])=>{c===""?l+=f?"grow ":"no-grow":l+=f?`${c}-grow `:`${c}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const u=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:u,...i,children:n})},e1=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o="18.75rem",expanderSize:i="2rem",containerStyle:s,style:a,containerClassName:l,onExpandChange:u,...c})=>{const f={up:Gf,down:Iv,left:Sv,right:Vf}[e],d={up:Iv,down:Gf,left:Vf,right:Sv}[e],[p,g]=k.useState(t),h=O=>{p!==O&&(g(O),u&&u(O))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...c,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},Rj=({trigger:e,setOpen:t,open:n})=>{const[r,o]=T.useState(""),i=T.useContext(xe);return i.options.useWorkerManager?b.jsxs(Ao,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},Mj=({trigger:e,setOpen:t,open:n})=>{var c,f;const r=T.useContext(xe),[o,i]=T.useState(!1),s=r.workers(),a=(c=r.worker)==null?void 0:c.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",u=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});PR(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Ao,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:u,children:"Export"})]})})},Dj=()=>{const t=T.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},Fj=()=>{var p;const e=T.useContext(xe),t=e.workers(),[n,r]=T.useState(!1),[o,i]=T.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MR(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||yc,u=l&&Object.keys(t).length>0,c=e.worker&&e.worker.is_open,f=c&&l;return l||c?b.jsxs(b.Fragment,{children:[b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Worker ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[u&&b.jsxs(Ij,{children:[b.jsx(kj,{className:"headermenuitem submenuitem",children:b.jsxs(Ro,{direction:"row",children:["Select",b.jsx(Vf,{})]})}),b.jsx(Aj,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(Sj,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(Ej,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),c&&b.jsxs(b.Fragment,{children:[f&&b.jsx(hr,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(hr,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(hr,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(hr,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(Rj,{open:n,setOpen:r}),b.jsx(Mj,{open:o,setOpen:i})]}):null},jj=()=>{const e=T.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async u=>{var d,p;const c=(d=u.target)==null?void 0:d.result;if(!c)return;const f=JSON.parse(c);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(Zx,{children:[b.jsx(Jx,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(Ro,{direction:"row",children:["Nodespace ",b.jsx(_v,{})]})})}),b.jsx(qx,{className:"headermenucontent funcnodescontainer",children:b.jsxs(Kx,{children:[b.jsx(hr,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(hr,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(hr,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},Lj=({...e})=>{const t=T.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(Ro,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(Ro,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(Dj,{})}),(e.showmenu||yc)&&b.jsxs(Ro,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(Fj,{})}),(t.worker&&n.is_open||yc)&&b.jsx("div",{className:"headerelement",children:b.jsx(jj,{})})]})]})};function HJ(){}function WJ(){}function Bj(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gj={};function t1(e,t){return(Gj.jsx?Vj:zj).test(e)}const $j=/[ \t\n\f\r]/g;function Hj(e){return typeof e=="object"?e.type==="text"?n1(e.value):!1:n1(e)}function n1(e){return e.replace($j,"")===""}class Zi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zi.prototype.normal={},Zi.prototype.property={},Zi.prototype.space=void 0;function r1(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Zi(n,r,t)}function vd(e){return e.toLowerCase()}class xt{constructor(t,n){this.attribute=n,this.property=t}}xt.prototype.attribute="",xt.prototype.booleanish=!1,xt.prototype.boolean=!1,xt.prototype.commaOrSpaceSeparated=!1,xt.prototype.commaSeparated=!1,xt.prototype.defined=!1,xt.prototype.mustUseProperty=!1,xt.prototype.number=!1,xt.prototype.overloadedBoolean=!1,xt.prototype.property="",xt.prototype.spaceSeparated=!1,xt.prototype.space=void 0;let Wj=0;const be=Gr(),Qe=Gr(),o1=Gr(),te=Gr(),je=Gr(),Mo=Gr(),Nt=Gr();function Gr(){return 2**++Wj}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Qe,commaOrSpaceSeparated:Nt,commaSeparated:Mo,number:te,overloadedBoolean:o1,spaceSeparated:je},Symbol.toStringTag,{value:"Module"})),wd=Object.keys(xd);class Cd extends xt{constructor(t,n,r,o){let i=-1;if(super(t,n),i1(this,"space",o),typeof r=="number")for(;++i<wd.length;){const s=wd[i];i1(this,wd[i],(r&xd[s])===xd[s])}}}Cd.prototype.defined=!0;function i1(e,t,n){n&&(e[t]=n)}function Do(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Cd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vd(r)]=r,n[vd(i.attribute)]=r}return new Zi(t,n,e.space)}const s1=Do({properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:je,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:te,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:je,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:Qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function a1(e,t){return t in e?e[t]:t}function l1(e,t){return a1(e,t.toLowerCase())}const Xj=Do({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mo,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:je,autoFocus:be,autoPlay:be,blocking:je,capture:null,charSet:null,checked:be,cite:null,className:je,cols:te,colSpan:null,content:null,contentEditable:Qe,controls:be,controlsList:je,coords:te|Mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:o1,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:je,height:te,hidden:be,high:te,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:je,itemRef:je,itemScope:be,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:be,optimum:te,pattern:null,ping:je,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:je,required:be,reversed:be,rows:te,rowSpan:te,sandbox:je,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:l1}),Yj=Do({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Nt,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:je,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Mo,g2:Mo,glyphName:Mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a1}),u1=Do({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),c1=Do({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:l1}),f1=Do({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Uj={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"},Zj=/[A-Z]/g,d1=/-[a-z]/g,Jj=/^data[-\w.:]+$/i;function qj(e,t){const n=vd(t);let r=t,o=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jj.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(d1,Qj);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!d1.test(i)){let s=i.replace(Zj,Kj);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Cd}return new o(r,t)}function Kj(e){return"-"+e.toLowerCase()}function Qj(e){return e.charAt(1).toUpperCase()}const eL=r1([s1,Xj,u1,c1,f1],"html"),_d=r1([s1,Yj,u1,c1,f1],"svg");function tL(e){return e.join(" ").trim()}var Fo={},Sd,p1;function nL(){if(p1)return Sd;p1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
697
697
|
`,u="/",c="*",f="",d="comment",p="declaration";Sd=function(h,y){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];y=y||{};var m=1,x=1;function v(L){var A=L.match(t);A&&(m+=A.length);var j=L.lastIndexOf(l);x=~j?L.length-j:x+L.length}function C(){var L={line:m,column:x};return function(A){return A.position=new S(L),O(),A}}function S(L){this.start=L,this.end={line:m,column:x},this.source=y.source}S.prototype.content=h;function E(L){var A=new Error(y.source+":"+m+":"+x+": "+L);if(A.reason=L,A.filename=y.source,A.line=m,A.column=x,A.source=h,!y.silent)throw A}function I(L){var A=L.exec(h);if(A){var j=A[0];return v(j),h=h.slice(j.length),A}}function O(){I(n)}function M(L){var A;for(L=L||[];A=w();)A!==!1&&L.push(A);return L}function w(){var L=C();if(!(u!=h.charAt(0)||c!=h.charAt(1))){for(var A=2;f!=h.charAt(A)&&(c!=h.charAt(A)||u!=h.charAt(A+1));)++A;if(A+=2,f===h.charAt(A-1))return E("End of comment missing");var j=h.slice(2,A-2);return x+=2,v(j),h=h.slice(A),x+=2,L({type:d,comment:j})}}function N(){var L=C(),A=I(r);if(A){if(w(),!I(o))return E("property missing ':'");var j=I(i),D=L({type:p,property:g(A[0].replace(e,f)),value:j?g(j[0].replace(e,f)):f});return I(s),D}}function R(){var L=[];M(L);for(var A;A=N();)A!==!1&&(L.push(A),M(L));return L}return O(),R()};function g(h){return h?h.replace(a,f):f}return Sd}var h1;function rL(){if(h1)return Fo;h1=1;var e=Fo&&Fo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=n;var t=e(nL());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),a=typeof o=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;a?o(u,c,l):c&&(i=i||{},i[u]=c)}}),i}return Fo}var Ji={},g1;function oL(){if(g1)return Ji;g1=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),i(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(o,a):u=u.replace(r,a),u.replace(t,s))};return Ji.camelCase=l,Ji}var qi,m1;function iL(){if(m1)return qi;m1=1;var e=qi&&qi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(rL()),n=oL();function r(o,i){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(a,l){a&&l&&(s[(0,n.camelCase)(a,i)]=l)}),s}return r.default=r,qi=r,qi}var sL=iL();const aL=ks(sL),y1=b1("end"),Ed=b1("start");function b1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function lL(e){const t=Ed(e),n=y1(e);if(t&&n)return{start:t,end:n}}function Ki(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v1(e.position):"start"in e||"end"in e?v1(e):"line"in e||"column"in e?Id(e):""}function Id(e){return x1(e&&e.line)+":"+x1(e&&e.column)}function v1(e){return Id(e&&e.start)+"-"+Id(e&&e.end)}function x1(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Ki(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}st.prototype.file="",st.prototype.name="",st.prototype.reason="",st.prototype.message="",st.prototype.stack="",st.prototype.column=void 0,st.prototype.line=void 0,st.prototype.ancestors=void 0,st.prototype.cause=void 0,st.prototype.fatal=void 0,st.prototype.place=void 0,st.prototype.ruleId=void 0,st.prototype.source=void 0;const kd={}.hasOwnProperty,uL=new Map,cL=/[A-Z]/g,fL=new Set(["table","tbody","thead","tfoot","tr"]),dL=new Set(["td","th"]),w1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wL(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=xL(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_d:eL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=C1(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function C1(e,t,n){if(t.type==="element")return hL(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gL(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yL(e,t,n);if(t.type==="mdxjsEsm")return mL(e,t);if(t.type==="root")return bL(e,t,n);if(t.type==="text")return vL(e,t)}function hL(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=_d,e.schema=o),e.ancestors.push(t);const i=S1(e,t.tagName,!1),s=CL(e,t);let a=Td(e,t);return fL.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Hj(l):!0})),_1(e,s,i,t),Ad(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function gL(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Qi(e,t.position)}function mL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qi(e,t.position)}function yL(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=_d,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:S1(e,t.name,!0),s=_L(e,t),a=Td(e,t);return _1(e,s,i,t),Ad(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function bL(e,t,n){const r={};return Ad(r,Td(e,t)),e.create(t,e.Fragment,r,n)}function vL(e,t){return t.value}function _1(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ad(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xL(e,t,n){return r;function r(o,i,s,a){const u=Array.isArray(s.children)?n:t;return a?u(i,s,a):u(i,s)}}function wL(e,t){return n;function n(r,o,i,s){const a=Array.isArray(i.children),l=Ed(r);return t(o,i,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function CL(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&kd.call(t.properties,o)){const i=SL(e,o,t.properties[o]);if(i){const[s,a]=i;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&dL.has(t.tagName)?r=a:n[s]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _L(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qi(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else Qi(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Td(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:uL;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=o.get(l)||0;s=l+"-"+u,o.set(l,u+1)}}const a=C1(e,i,s);a!==void 0&&n.push(a)}return n}function SL(e,t,n){const r=qj(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bj(n):tL(n)),r.property==="style"){let o=typeof n=="object"?n:EL(e,String(n));return e.stylePropertyNameCase==="css"&&(o=IL(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Uj[r.property]||r.property:r.attribute,n]}}function EL(e,t){try{return aL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=w1+"#cannot-parse-style-attribute",o}}function S1(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,s;for(;++i<o.length;){const a=t1(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=s}else r=t1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return kd.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qi(e)}function Qi(e,t){const n=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=w1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function IL(e){const t={};let n;for(n in e)kd.call(e,n)&&(t[kL(n)]=e[n]);return t}function kL(e){let t=e.replace(cL,AL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function AL(e){return"-"+e.toLowerCase()}const Nd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},TL={};function Pd(e,t){const n=TL,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return E1(e,r,o)}function E1(e,t,n){if(NL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return I1(e.children,t,n)}return Array.isArray(e)?I1(e,t,n):""}function I1(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=E1(e[o],t,n);return r.join("")}function NL(e){return!!(e&&typeof e=="object")}const k1=document.createElement("i");function Od(e){const t="&"+e+";";k1.innerHTML=t;const n=k1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Pt(e,t,n,r){const o=e.length;let i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function zt(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}const A1={}.hasOwnProperty;function T1(e){const t={};let n=-1;for(;++n<e.length;)PL(t,e[n]);return t}function PL(e,t){let n;for(n in t){const o=(A1.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){A1.call(o,s)||(o[s]=[]);const a=i[s];OL(o[s],Array.isArray(a)?a:a?[a]:[])}}}function OL(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pt(e,0,0,r)}function N1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function en(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gt=gr(/[A-Za-z]/),at=gr(/[\dA-Za-z]/),RL=gr(/[#-'*+\--9=?A-Z^-~]/);function dl(e){return e!==null&&(e<32||e===127)}const Rd=gr(/\d/),ML=gr(/[\dA-Fa-f]/),DL=gr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Re(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const pl=gr(new RegExp("\\p{P}|\\p{S}","u")),$r=gr(/\s/);function gr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jo(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&at(e.charCodeAt(n+1))&&at(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function _e(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return we(l)?(e.enter(n),a(l)):t(l)}function a(l){return we(l)&&i++<o?(e.consume(l),a):(e.exit(n),t(l))}}const FL={tokenize:jL};function jL(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_e(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return fe(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}const LL={tokenize:BL},P1={tokenize:zL};function BL(e){const t=this,n=[];let r=0,o,i,s;return a;function a(v){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&x();const C=t.events.length;let S=C,E;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){E=t.events[S][1].end;break}m(r);let I=C;for(;I<t.events.length;)t.events[I][1].end={...E},I++;return Pt(t.events,S+1,0,t.events.slice(C)),t.events.length=I,u(v)}return a(v)}function u(v){if(r===n.length){if(!o)return d(v);if(o.currentConstruct&&o.currentConstruct.concrete)return g(v);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P1,c,f)(v)}function c(v){return o&&x(),m(r),d(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(v)}function d(v){return t.containerState={},e.attempt(P1,p,g)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function g(v){if(v===null){o&&x(),m(0),e.consume(v);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),h(v)}function h(v){if(v===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return fe(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),h)}function y(v,C){const S=t.sliceStream(v);if(C&&S.push(null),v.previous=i,i&&(i.next=v),i=v,o.defineSkip(v.start),o.write(S),t.parser.lazy[v.start.line]){let E=o.events.length;for(;E--;)if(o.events[E][1].start.offset<s&&(!o.events[E][1].end||o.events[E][1].end.offset>s))return;const I=t.events.length;let O=I,M,w;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(M){w=t.events[O][1].end;break}M=!0}for(m(r),E=I;E<t.events.length;)t.events[E][1].end={...w},E++;Pt(t.events,O+1,0,t.events.slice(I)),t.events.length=E}}function m(v){let C=n.length;for(;C-- >v;){const S=n[C];t.containerState=S[1],S[0].exit.call(t,e)}n.length=v}function x(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function zL(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lo(e){if(e===null||Re(e)||$r(e))return 1;if(pl(e))return 2}function hl(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Md={name:"attention",resolveAll:VL,tokenize:GL};function VL(e,t){let n=-1,r,o,i,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};O1(f,-l),O1(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=zt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=zt(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=zt(u,hl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=zt(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=zt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Pt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function GL(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lo(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Lo(l),f=!c||c===2&&o||n.includes(l),d=!o||o===2&&c||n.includes(r);return u._open=!!(i===42?f:f&&(o||!d)),u._close=!!(i===42?d:d&&(c||!f)),t(l)}}function O1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $L={name:"autolink",tokenize:HL};function HL(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return gt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||dl(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):RL(p)?(e.consume(p),u):n(p)}function c(p){return at(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||at(p))&&r++<63){const g=p===45?d:f;return e.consume(p),g}return n(p)}}const es={partial:!0,tokenize:WL};function WL(e,t,n){return r;function r(i){return we(i)?_e(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||fe(i)?t(i):n(i)}}const R1={continuation:{tokenize:YL},exit:UL,name:"blockQuote",tokenize:XL};function XL(e,t,n){const r=this;return o;function o(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function YL(e,t,n){const r=this;return o;function o(s){return we(s)?_e(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(R1,t,n)(s)}}function UL(e){e.exit("blockQuote")}const M1={name:"characterEscape",tokenize:ZL};function ZL(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return DL(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const D1={name:"characterReference",tokenize:JL};function JL(e,t,n){const r=this;let o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=at,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=ML,c):(e.enter("characterReferenceValue"),i=7,s=Rd,c(f))}function c(f){if(f===59&&o){const d=e.exit("characterReferenceValue");return s===at&&!Od(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),c):n(f)}}const F1={partial:!0,tokenize:KL},j1={concrete:!0,name:"codeFenced",tokenize:qL};function qL(e,t,n){const r=this,o={partial:!0,tokenize:S};let i=0,s=0,a;return l;function l(E){return u(E)}function u(E){const I=r.events[r.events.length-1];return i=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===a?(s++,e.consume(E),c):s<3?n(E):(e.exit("codeFencedFenceSequence"),we(E)?_e(e,f,"whitespace")(E):f(E))}function f(E){return E===null||fe(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(F1,h,C)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||fe(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):we(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,p,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),d)}function p(E){return E===null||fe(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||fe(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),g)}function h(E){return e.attempt(o,C,y)(E)}function y(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),m}function m(E){return i>0&&we(E)?_e(e,x,"linePrefix",i+1)(E):x(E)}function x(E){return E===null||fe(E)?e.check(F1,h,C)(E):(e.enter("codeFlowValue"),v(E))}function v(E){return E===null||fe(E)?(e.exit("codeFlowValue"),x(E)):(e.consume(E),v)}function C(E){return e.exit("codeFenced"),t(E)}function S(E,I,O){let M=0;return w;function w(j){return E.enter("lineEnding"),E.consume(j),E.exit("lineEnding"),N}function N(j){return E.enter("codeFencedFence"),we(j)?_e(E,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):R(j)}function R(j){return j===a?(E.enter("codeFencedFenceSequence"),L(j)):O(j)}function L(j){return j===a?(M++,E.consume(j),L):M>=s?(E.exit("codeFencedFenceSequence"),we(j)?_e(E,A,"whitespace")(j):A(j)):O(j)}function A(j){return j===null||fe(j)?(E.exit("codeFencedFence"),I(j)):O(j)}}}function KL(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Dd={name:"codeIndented",tokenize:eB},QL={partial:!0,tokenize:tB};function eB(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),_e(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(QL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function tB(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):_e(e,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):fe(s)?o(s):n(s)}}const nB={name:"codeText",previous:oB,resolve:rB,tokenize:iB};function rB(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function oB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iB(e,t,n){let r=0,o,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,c(f)):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||fe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),o++,c):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class sB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ts(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ts(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ts(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ts(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ts(this.left,n.reverse())}}}function ts(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function L1(e){const t={};let n=-1,r,o,i,s,a,l,u;const c=new sB(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,aB(c,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(c.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...c.get(o)[1].start},a=c.slice(o,n),a.unshift(r),c.splice(o,n-o+1,a))}}return Pt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function aB(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,f,d=-1,p=n,g=0,h=0;const y=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(h=d+1,y.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),d=y.length;d--;){const m=a.slice(y[d],y[d+1]),x=i.pop();l.push([x,x+m.length-1]),e.splice(x,2,m)}for(l.reverse(),d=-1;++d<l.length;)u[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return u}const lB={resolve:cB,tokenize:fB},uB={partial:!0,tokenize:dB};function cB(e){return L1(e),e}function fB(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):fe(a)?e.check(uB,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function dB(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_e(e,i,"linePrefix")}function i(s){if(s===null||fe(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function B1(e,t,n,r,o,i,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||dl(m)?n(m):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),d(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function h(m){return!c&&(m===null||m===41||Re(m))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(m)):c<u&&m===40?(e.consume(m),c++,h):m===41?(e.consume(m),c--,h):m===null||m===32||m===40||dl(m)?n(m):(e.consume(m),m===92?y:h)}function y(m){return m===40||m===41||m===92?(e.consume(m),h):h(m)}}function z1(e,t,n,r,o,i){const s=this;let a=0,l;return u;function u(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||fe(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!we(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function V1(e,t,n,r,o,i){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(o),e.consume(d),e.exit(o),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===s?(e.exit(i),l(s)):d===null?n(d):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_e(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||fe(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function ns(e,t){let n;return r;function r(o){return fe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):we(o)?_e(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const pB={name:"definition",tokenize:gB},hB={partial:!0,tokenize:mB};function gB(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return z1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return o=en(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Re(p)?ns(e,u)(p):u(p)}function u(p){return B1(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(hB,f,f)(p)}function f(p){return we(p)?_e(e,d,"whitespace")(p):d(p)}function d(p){return p===null||fe(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function mB(e,t,n){return r;function r(a){return Re(a)?ns(e,o)(a):n(a)}function o(a){return V1(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return we(a)?_e(e,s,"whitespace")(a):s(a)}function s(a){return a===null||fe(a)?t(a):n(a)}}const yB={name:"hardBreakEscape",tokenize:bB};function bB(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return fe(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const vB={name:"headingAtx",resolve:xB,tokenize:wB};function xB(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function wB(e,t,n){let r=0;return o;function o(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Re(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):we(c)?_e(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Re(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const CB=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],G1=["pre","script","style","textarea"],_B={concrete:!0,name:"htmlFlow",resolveTo:IB,tokenize:kB},SB={partial:!0,tokenize:TB},EB={partial:!0,tokenize:AB};function IB(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function kB(e,t,n){const r=this;let o,i,s,a,l;return u;function u(P){return c(P)}function c(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),f}function f(P){return P===33?(e.consume(P),d):P===47?(e.consume(P),i=!0,h):P===63?(e.consume(P),o=3,r.interrupt?t:_):gt(P)?(e.consume(P),s=String.fromCharCode(P),y):n(P)}function d(P){return P===45?(e.consume(P),o=2,p):P===91?(e.consume(P),o=5,a=0,g):gt(P)?(e.consume(P),o=4,r.interrupt?t:_):n(P)}function p(P){return P===45?(e.consume(P),r.interrupt?t:_):n(P)}function g(P){const H="CDATA[";return P===H.charCodeAt(a++)?(e.consume(P),a===H.length?r.interrupt?t:R:g):n(P)}function h(P){return gt(P)?(e.consume(P),s=String.fromCharCode(P),y):n(P)}function y(P){if(P===null||P===47||P===62||Re(P)){const H=P===47,J=s.toLowerCase();return!H&&!i&&G1.includes(J)?(o=1,r.interrupt?t(P):R(P)):CB.includes(s.toLowerCase())?(o=6,H?(e.consume(P),m):r.interrupt?t(P):R(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):i?x(P):v(P))}return P===45||at(P)?(e.consume(P),s+=String.fromCharCode(P),y):n(P)}function m(P){return P===62?(e.consume(P),r.interrupt?t:R):n(P)}function x(P){return we(P)?(e.consume(P),x):w(P)}function v(P){return P===47?(e.consume(P),w):P===58||P===95||gt(P)?(e.consume(P),C):we(P)?(e.consume(P),v):w(P)}function C(P){return P===45||P===46||P===58||P===95||at(P)?(e.consume(P),C):S(P)}function S(P){return P===61?(e.consume(P),E):we(P)?(e.consume(P),S):v(P)}function E(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),l=P,I):we(P)?(e.consume(P),E):O(P)}function I(P){return P===l?(e.consume(P),l=null,M):P===null||fe(P)?n(P):(e.consume(P),I)}function O(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Re(P)?S(P):(e.consume(P),O)}function M(P){return P===47||P===62||we(P)?v(P):n(P)}function w(P){return P===62?(e.consume(P),N):n(P)}function N(P){return P===null||fe(P)?R(P):we(P)?(e.consume(P),N):n(P)}function R(P){return P===45&&o===2?(e.consume(P),D):P===60&&o===1?(e.consume(P),z):P===62&&o===4?(e.consume(P),G):P===63&&o===3?(e.consume(P),_):P===93&&o===5?(e.consume(P),F):fe(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(SB,$,L)(P)):P===null||fe(P)?(e.exit("htmlFlowData"),L(P)):(e.consume(P),R)}function L(P){return e.check(EB,A,$)(P)}function A(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),j}function j(P){return P===null||fe(P)?L(P):(e.enter("htmlFlowData"),R(P))}function D(P){return P===45?(e.consume(P),_):R(P)}function z(P){return P===47?(e.consume(P),s="",V):R(P)}function V(P){if(P===62){const H=s.toLowerCase();return G1.includes(H)?(e.consume(P),G):R(P)}return gt(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),V):R(P)}function F(P){return P===93?(e.consume(P),_):R(P)}function _(P){return P===62?(e.consume(P),G):P===45&&o===2?(e.consume(P),_):R(P)}function G(P){return P===null||fe(P)?(e.exit("htmlFlowData"),$(P)):(e.consume(P),G)}function $(P){return e.exit("htmlFlow"),t(P)}}function AB(e,t,n){const r=this;return o;function o(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function TB(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(es,t,n)}}const NB={name:"htmlText",tokenize:PB};function PB(e,t,n){const r=this;let o,i,s;return a;function a(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),S):_===63?(e.consume(_),v):gt(_)?(e.consume(_),O):n(_)}function u(_){return _===45?(e.consume(_),c):_===91?(e.consume(_),i=0,g):gt(_)?(e.consume(_),x):n(_)}function c(_){return _===45?(e.consume(_),p):n(_)}function f(_){return _===null?n(_):_===45?(e.consume(_),d):fe(_)?(s=f,z(_)):(e.consume(_),f)}function d(_){return _===45?(e.consume(_),p):f(_)}function p(_){return _===62?D(_):_===45?d(_):f(_)}function g(_){const G="CDATA[";return _===G.charCodeAt(i++)?(e.consume(_),i===G.length?h:g):n(_)}function h(_){return _===null?n(_):_===93?(e.consume(_),y):fe(_)?(s=h,z(_)):(e.consume(_),h)}function y(_){return _===93?(e.consume(_),m):h(_)}function m(_){return _===62?D(_):_===93?(e.consume(_),m):h(_)}function x(_){return _===null||_===62?D(_):fe(_)?(s=x,z(_)):(e.consume(_),x)}function v(_){return _===null?n(_):_===63?(e.consume(_),C):fe(_)?(s=v,z(_)):(e.consume(_),v)}function C(_){return _===62?D(_):v(_)}function S(_){return gt(_)?(e.consume(_),E):n(_)}function E(_){return _===45||at(_)?(e.consume(_),E):I(_)}function I(_){return fe(_)?(s=I,z(_)):we(_)?(e.consume(_),I):D(_)}function O(_){return _===45||at(_)?(e.consume(_),O):_===47||_===62||Re(_)?M(_):n(_)}function M(_){return _===47?(e.consume(_),D):_===58||_===95||gt(_)?(e.consume(_),w):fe(_)?(s=M,z(_)):we(_)?(e.consume(_),M):D(_)}function w(_){return _===45||_===46||_===58||_===95||at(_)?(e.consume(_),w):N(_)}function N(_){return _===61?(e.consume(_),R):fe(_)?(s=N,z(_)):we(_)?(e.consume(_),N):M(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,L):fe(_)?(s=R,z(_)):we(_)?(e.consume(_),R):(e.consume(_),A)}function L(_){return _===o?(e.consume(_),o=void 0,j):_===null?n(_):fe(_)?(s=L,z(_)):(e.consume(_),L)}function A(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Re(_)?M(_):(e.consume(_),A)}function j(_){return _===47||_===62||Re(_)?M(_):n(_)}function D(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function z(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),V}function V(_){return we(_)?_e(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):F(_)}function F(_){return e.enter("htmlTextData"),s(_)}}const Fd={name:"labelEnd",resolveAll:DB,resolveTo:FB,tokenize:jB},OB={tokenize:LB},RB={tokenize:BB},MB={tokenize:zB};function DB(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Pt(e,0,e.length,n),e}function FB(e,t){let n=e.length,r=0,o,i,s,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=zt(a,e.slice(i+1,i+r+3)),a=zt(a,[["enter",c,t]]),a=zt(a,hl(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),a=zt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=zt(a,e.slice(s+1)),a=zt(a,[["exit",l,t]]),Pt(e,i,e.length,a),e}function jB(e,t,n){const r=this;let o=r.events.length,i,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(d){return i?i._inactive?f(d):(s=r.parser.defined.includes(en(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(OB,c,s?c:f)(d):d===91?e.attempt(RB,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(MB,c,f)(d)}function c(d){return t(d)}function f(d){return i._balanced=!0,n(d)}}function LB(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return Re(f)?ns(e,i)(f):i(f)}function i(f){return f===41?c(f):B1(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Re(f)?ns(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?V1(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Re(f)?ns(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function BB(e,t,n){const r=this;return o;function o(a){return z1.call(r,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(en(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function zB(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const VB={name:"labelStartImage",resolveAll:Fd.resolveAll,tokenize:GB};function GB(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const $B={name:"labelStartLink",resolveAll:Fd.resolveAll,tokenize:HB};function HB(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const jd={name:"lineEnding",tokenize:WB};function WB(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const gl={name:"thematicBreak",tokenize:XB};function XB(e,t,n){let r=0,o;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===o?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),we(u)?_e(e,a,"whitespace")(u):a(u))}}const wt={continuation:{tokenize:JB},exit:KB,name:"list",tokenize:ZB},YB={partial:!0,tokenize:QB},UB={partial:!0,tokenize:qB};function ZB(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Rd(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(gl,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Rd(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(es,r.interrupt?n:c,e.attempt(YB,d,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,d(p)}function f(p){return we(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function JB(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(es,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!we(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UB,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function qB(e,t,n){const r=this;return _e(e,o,"listItemIndent",r.containerState.size+1);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function KB(e){e.exit(this.containerState.type)}function QB(e,t,n){const r=this;return _e(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const s=r.events[r.events.length-1];return!we(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const $1={name:"setextUnderline",resolveTo:e9,tokenize:t9};function e9(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function t9(e,t,n){const r=this;let o;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),we(u)?_e(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const n9={tokenize:r9};function r9(e){const t=this,n=e.attempt(es,r,e.attempt(this.parser.constructs.flowInitial,o,_e(e,e.attempt(this.parser.constructs.flow,o,e.attempt(lB,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const o9={resolveAll:W1()},i9=H1("string"),s9=H1("text");function H1(e){return{resolveAll:W1(e==="text"?a9:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,s,a);return s;function s(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=o[c];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function W1(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function a9(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,s=-1,a=0,l;for(;i--;){const u=o[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const l9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:pB},disable:{null:[]},document:{42:wt,43:wt,45:wt,48:wt,49:wt,50:wt,51:wt,52:wt,53:wt,54:wt,55:wt,56:wt,57:wt,62:R1},flow:{35:vB,42:gl,45:[$1,gl],60:_B,61:$1,95:gl,96:j1,126:j1},flowInitial:{[-2]:Dd,[-1]:Dd,32:Dd},insideSpan:{null:[Md,o9]},string:{38:D1,92:M1},text:{[-5]:jd,[-4]:jd,[-3]:jd,33:VB,38:D1,42:Md,60:[$L,NB],91:$B,92:[yB,M1],93:Fd,95:Md,96:nB}},Symbol.toStringTag,{value:"Module"}));function u9(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:I(S),check:I(E),consume:x,enter:v,exit:C,interrupt:I(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function f(N){return s=zt(s,N),y(),s[s.length-1]!==null?[]:(O(t,0),u.events=hl(i,u.events,u),u.events)}function d(N,R){return f9(p(N),R)}function p(N){return c9(s,N)}function g(){const{_bufferIndex:N,_index:R,line:L,column:A,offset:j}=r;return{_bufferIndex:N,_index:R,line:L,column:A,offset:j}}function h(N){o[N.line]=N.column,w()}function y(){let N;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<R.length;)m(R.charCodeAt(r._bufferIndex));else m(R)}}function m(N){c=c(N)}function x(N){fe(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,w()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function v(N,R){const L=R||{};return L.type=N,L.start=g(),u.events.push(["enter",L,u]),a.push(L),L}function C(N){const R=a.pop();return R.end=g(),u.events.push(["exit",R,u]),R}function S(N,R){O(N,R.from)}function E(N,R){R.restore()}function I(N,R){return L;function L(A,j,D){let z,V,F,_;return Array.isArray(A)?$(A):"tokenize"in A?$([A]):G(A);function G(W){return X;function X(U){const Q=U!==null&&W[U],ne=U!==null&&W.null,oe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return $(oe)(U)}}function $(W){return z=W,V=0,W.length===0?D:P(W[V])}function P(W){return X;function X(U){return _=M(),F=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(R?Object.assign(Object.create(u),R):u,l,H,J)(U)}}function H(W){return N(F,_),j}function J(W){return _.restore(),++V<z.length?P(z[V]):D}}}function O(N,R){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&Pt(u.events,R,u.events.length-R,N.resolve(u.events.slice(R),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function M(){const N=g(),R=u.previous,L=u.currentConstruct,A=u.events.length,j=Array.from(a);return{from:A,restore:D};function D(){r=N,u.previous=R,u.currentConstruct=L,u.events.length=A,a=j,w()}}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function c9(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function f9(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
698
698
|
`;break}case-3:{s=`\r
|
|
699
699
|
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,r.push(s)}return r.join("")}function d9(e){const r={constructs:T1([l9,...(e||{}).extensions||[]]),content:o(FL),defined:[],document:o(LL),flow:o(n9),lazy:{},string:o(i9),text:o(s9)};return r;function o(i){return s;function s(a){return u9(r,i,a)}}}function p9(e){for(;!L1(e););return e}const X1=/[\0\t\n\r]/g;function h9(){let e=1,t="",n=!0,r;return o;function o(i,s,a){const l=[];let u,c,f,d,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(X1.lastIndex=f,u=X1.exec(i),d=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(d),!u){t=i.slice(f);break}if(p===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(i.slice(f,d)),e+=d-f),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const g9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m9(e){return e.replace(g9,y9)}function y9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return N1(n.slice(i?2:1),i?16:10)}return Od(n)||e}const Y1={}.hasOwnProperty;function b9(e,t,n){return typeof t!="string"&&(n=t,t=void 0),v9(n)(p9(d9(n).document().write(h9()(e,t,!0))))}function v9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ft),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(Ie),blockQuote:i(ne),characterEscape:M,characterReference:M,codeFenced:i(oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(oe,s),codeText:i(Z,s),codeTextData:M,data:M,codeFlowValue:M,definition:i(ce),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(pe),hardBreakEscape:i(Ze),hardBreakTrailing:i(Ze),htmlFlow:i(ft,s),htmlFlowData:M,htmlText:i(ft,s),htmlTextData:M,image:i(Dt),label:s,link:i(Ft),listItem:i(Jr),listItemValue:d,listOrdered:i(on,f),listUnordered:i(on),paragraph:i(ge),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ie),strong:i(qr),thematicBreak:i(Kr)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Q,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:X,codeFenced:l(y),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:l(m),codeText:l(j),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(L),htmlFlowData:w,htmlText:l(A),htmlTextData:w,image:l(z),label:F,labelText:V,lineEnding:N,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:_,resourceTitleString:G,resource:$,setextHeading:l(O),setextHeadingLineSequence:I,setextHeadingText:E,strong:l(),thematicBreak:l()}};U1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let re={type:"root",children:[]};const me={stack:[re],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},ve=[];let Ne=-1;for(;++Ne<K.length;)if(K[Ne][1].type==="listOrdered"||K[Ne][1].type==="listUnordered")if(K[Ne][0]==="enter")ve.push(Ne);else{const jt=ve.pop();Ne=o(K,jt,Ne)}for(Ne=-1;++Ne<K.length;){const jt=t[K[Ne][0]];Y1.call(jt,K[Ne][1].type)&&jt[K[Ne][1].type].call(Object.assign({sliceSerialize:K[Ne][2].sliceSerialize},me),K[Ne][1])}if(me.tokenStack.length>0){const jt=me.tokenStack[me.tokenStack.length-1];(jt[1]||Z1).call(me,void 0,jt[0])}for(re.position={start:mr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:mr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<t.transforms.length;)re=t.transforms[Ne](re)||re;return re}function o(K,re,me){let ve=re-1,Ne=-1,jt=!1,qn,sn,Qr,eo;for(;++ve<=me;){const mt=K[ve];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?Ne++:Ne--,eo=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(qn&&!eo&&!Ne&&!Qr&&(Qr=ve),eo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:eo=void 0}if(!Ne&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Ne===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(qn){let _r=ve;for(sn=void 0;_r--;){const an=K[_r];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;sn&&(K[sn][1].type="lineEndingBlank",jt=!0),an[1].type="lineEnding",sn=_r}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}Qr&&(!sn||Qr<sn)&&(qn._spread=!0),qn.end=Object.assign({},sn?K[sn][1].start:mt[1].end),K.splice(sn||ve,0,["exit",qn,mt[2]]),ve++,me++}if(mt[1].type==="listItemPrefix"){const _r={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};qn=_r,K.splice(ve,0,["enter",_r,mt[2]]),ve++,me++,Qr=void 0,eo=!0}}}return K[re][1]._spread=jt,me}function i(K,re){return me;function me(ve){a.call(this,K(ve),ve),re&&re.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(K,re,me){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,me||void 0]),K.position={start:mr(re.start),end:void 0}}function l(K){return re;function re(me){K&&K.call(this,me),u.call(this,me)}}function u(K,re){const me=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==K.type&&(re?re.call(this,K,ve[0]):(ve[1]||Z1).call(this,K,ve[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ki({start:K.start,end:K.end})+"): it’s not open");me.position.end=mr(K.end)}function c(){return Pd(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(K){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function p(){const K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function g(){const K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function x(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=en(this.sliceSerialize(K)).toLowerCase()}function v(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function C(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function S(K){const re=this.stack[this.stack.length-1];if(!re.depth){const me=this.sliceSerialize(K).length;re.depth=me}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function I(K){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const me=this.stack[this.stack.length-1].children;let ve=me[me.length-1];(!ve||ve.type!=="text")&&(ve=Es(),ve.position={start:mr(K.start),end:void 0},me.push(ve)),this.stack.push(ve)}function w(K){const re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=mr(K.end)}function N(K){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=re.children[re.children.length-1];me.position.end=mr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(M.call(this,K),w.call(this,K))}function R(){this.data.atHardBreak=!0}function L(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function A(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function j(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function D(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function V(K){const re=this.sliceSerialize(K),me=this.stack[this.stack.length-2];me.label=m9(re),me.identifier=en(re).toLowerCase()}function F(){const K=this.stack[this.stack.length-1],re=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ve=K.children;me.children=ve}else me.alt=re}function _(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function G(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function $(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function H(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=en(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function J(K){this.data.characterReferenceType=K.type}function W(K){const re=this.sliceSerialize(K),me=this.data.characterReferenceType;let ve;me?(ve=N1(re,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Od(re);const Ne=this.stack[this.stack.length-1];Ne.value+=ve}function X(K){const re=this.stack.pop();re.position.end=mr(K.end)}function U(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function Q(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function ne(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pe(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ze(){return{type:"break"}}function ft(){return{type:"html",value:""}}function Dt(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function on(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Jr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function qr(){return{type:"strong",children:[]}}function Es(){return{type:"text",value:""}}function Kr(){return{type:"thematicBreak"}}}function mr(e){return{line:e.line,column:e.column,offset:e.offset}}function U1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?U1(e,r):x9(e,r)}}function x9(e,t){let n;for(n in t)if(Y1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Z1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ki({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ki({start:t.start,end:t.end})+") is still open")}function w9(e){const t=this;t.parser=n;function n(r){return b9(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function C9(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _9(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -723,7 +723,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
723
723
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(p,g,h,y){return u(c(p,h,y),p.align)}function a(p,g,h,y){const m=f(p,h,y),x=u([m]);return x.slice(0,x.indexOf(`
|
|
724
724
|
`))}function l(p,g,h,y){const m=h.enter("tableCell"),x=h.enter("phrasing"),v=h.containerPhrasing(p,{...y,before:i,after:i});return x(),m(),v}function u(p,g){return kV(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function c(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("table");for(;++m<y.length;)x[m]=f(y[m],g,h);return v(),x}function f(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("tableRow");for(;++m<y.length;)x[m]=l(y[m],p,g,h);return v(),x}function d(p,g,h){let y=jw.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function hG(){return{exit:{taskListCheckValueChecked:Bw,taskListCheckValueUnchecked:Bw,paragraph:mG}}}function gG(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yG}}}function Bw(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function mG(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,s;for(;++i<o.length;){const a=o[i];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function yG(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(s);let l=jw.listItem(e,t,n,{...r,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function bG(){return[Jz(),yV(),wV(),aG(),hG()]}function vG(e){return{extensions:[qz(),bV(e),CV(),pG(e),gG()]}}const xG={tokenize:IG,partial:!0},zw={tokenize:kG,partial:!0},Vw={tokenize:AG,partial:!0},Gw={tokenize:TG,partial:!0},wG={tokenize:NG,partial:!0},$w={name:"wwwAutolink",tokenize:SG,previous:Ww},Hw={name:"protocolAutolink",tokenize:EG,previous:Xw},Gn={name:"emailAutolink",tokenize:_G,previous:Yw},xn={};function CG(){return{text:xn}}let Hr=48;for(;Hr<123;)xn[Hr]=Gn,Hr++,Hr===58?Hr=65:Hr===91&&(Hr=97);xn[43]=Gn,xn[45]=Gn,xn[46]=Gn,xn[95]=Gn,xn[72]=[Gn,Hw],xn[104]=[Gn,Hw],xn[87]=[Gn,$w],xn[119]=[Gn,$w];function _G(e,t,n){const r=this;let o,i;return s;function s(f){return!lp(f)||!Yw.call(r,r.previous)||up(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return lp(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(wG,c,u)(f):f===45||f===95||at(f)?(i=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),o=!0,l}function c(f){return i&&o&>(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function SG(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!Ww.call(r,r.previous)||up(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(xG,e.attempt(zw,e.attempt(Vw,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function EG(e,t,n){const r=this;let o="",i=!1;return s;function s(f){return(f===72||f===104)&&Xw.call(r,r.previous)&&!up(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(gt(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),i?u:(i=!0,l)):n(f)}function u(f){return f===null||dl(f)||Re(f)||$r(f)||pl(f)?n(f):e.attempt(zw,e.attempt(Vw,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function IG(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function kG(e,t,n){let r,o,i;return s;function s(u){return u===46||u===95?e.check(Gw,l,a)(u):u===null||Re(u)||$r(u)||u!==45&&pl(u)?l(u):(i=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(o=r,r=void 0),e.consume(u),s}function l(u){return o||r||!i?n(u):t(u)}}function AG(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Gw,t,i)(s):s===null||Re(s)||$r(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&r++,e.consume(s),o}}function TG(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||Re(a)||$r(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||Re(a)||$r(a)?t(a):r(a)}function i(a){return gt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):gt(a)?(e.consume(a),s):n(a)}}function NG(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return at(i)?n(i):t(i)}}function Ww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Re(e)}function Xw(e){return!gt(e)}function Yw(e){return!(e===47||lp(e))}function lp(e){return e===43||e===45||e===46||e===95||at(e)}function up(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PG={tokenize:BG,partial:!0};function OG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FG,continuation:{tokenize:jG},exit:LG}},text:{91:{name:"gfmFootnoteCall",tokenize:DG},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RG,resolveTo:MG}}}}function RG(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=en(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function MG(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function DG(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!s||f===null||f===91||Re(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(en(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Re(f)||(s=!0),i++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function FG(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!a||g===null||g===91||Re(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return i=en(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Re(g)||(a=!0),s++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(i)||o.push(i),_e(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function jG(e,t,n){return e.check(es,t,e.attempt(PG,t,n))}function LG(e){e.exit("gfmFootnoteDefinition")}function BG(e,t,n){const r=this;return _e(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function zG(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&Pt(d,d.length,0,hl(p,s.slice(u+1,l),a)),Pt(d,d.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Pt(s,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){const u=this.previous,c=this.events;let f=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Lo(u);if(g===126)return f>1?l(g):(s.consume(g),f++,p);if(f<2&&!n)return l(g);const y=s.exit("strikethroughSequenceTemporary"),m=Lo(g);return y._open=!m||m===2&&!!h,y._close=!h||h===2&&!!m,a(g)}}}class VG{constructor(){this.map=[]}add(t,n,r){GG(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const i of o)t.push(i);o=r.pop()}this.map.length=0}}function GG(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function $G(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function HG(){return{flow:{null:{name:"table",tokenize:WG,resolveAll:XG}}}}function WG(e,t,n){const r=this;let o=0,i=0,s;return a;function a(w){let N=r.events.length-1;for(;N>-1;){const A=r.events[N][1].type;if(A==="lineEnding"||A==="linePrefix")N--;else break}const R=N>-1?r.events[N][1].type:null,L=R==="tableHead"||R==="tableRow"?E:l;return L===E&&r.parser.lazy[r.now().line]?n(w):L(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),u(w)}function u(w){return w===124||(s=!0,i+=1),c(w)}function c(w){return w===null?n(w):fe(w)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):we(w)?_e(e,c,"whitespace")(w):(i+=1,s&&(s=!1,o+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||Re(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?d:f)}function d(w){return w===92||w===124?(e.consume(w),f):f(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,we(w)?_e(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):g(w))}function g(w){return w===45||w===58?y(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),h):S(w)}function h(w){return we(w)?_e(e,y,"whitespace")(w):y(w)}function y(w){return w===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),m):w===45?(i+=1,m(w)):w===null||fe(w)?C(w):S(w)}function m(w){return w===45?(e.enter("tableDelimiterFiller"),x(w)):S(w)}function x(w){return w===45?(e.consume(w),x):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(w))}function v(w){return we(w)?_e(e,C,"whitespace")(w):C(w)}function C(w){return w===124?g(w):w===null||fe(w)?!s||o!==i?S(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):S(w)}function S(w){return n(w)}function E(w){return e.enter("tableRow"),I(w)}function I(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),I):w===null||fe(w)?(e.exit("tableRow"),t(w)):we(w)?_e(e,I,"whitespace")(w):(e.enter("data"),O(w))}function O(w){return w===null||w===124||Re(w)?(e.exit("data"),I(w)):(e.consume(w),w===92?M:O)}function M(w){return w===92||w===124?(e.consume(w),O):O(w)}}function XG(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f;const d=new VG;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(Uw(d,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])),o=g.type==="tableDelimiterRow"?2:c?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=El(d,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],f=El(d,t,i,o,void 0,f)),i=s,s=[i[1],n,0,0])):g.type==="tableHead"?(a=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],f=El(d,t,i,o,n,f)):s[1]!==0&&(f=El(d,t,s,o,n,f)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Uw(d,t,l,u,c),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=$G(t.events,n))}return e}function El(e,t,n,r,o,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},zo(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=zo(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=zo(t.events,n[2]),c=zo(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},zo(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Uw(e,t,n,r,o){const i=[],s=zo(t.events,n);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function zo(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const YG={name:"tasklistCheck",tokenize:ZG};function UG(){return{text:{91:YG}}}function ZG(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Re(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return fe(l)?t(l):we(l)?e.check({tokenize:JG},t,n)(l):n(l)}}function JG(e,t,n){return _e(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function qG(e){return T1([CG(),OG(),zG(e),HG(),UG()])}const KG={};function QG(e){const t=this,n=e||KG,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(qG(n)),i.push(bG()),s.push(vG(n))}const Zw=({item:e})=>{const t=T.useContext(xe),n=()=>{var o;(o=t.worker)==null||o.add_node(e.node_id)},r=o=>{o.detail===2&&n()};return b.jsx("div",{className:"libnodeentry",onClick:r,title:e.description,children:e.node_name||e.node_id})},Jw=(e,t)=>{var o,i;const n=((o=e.nodes)==null?void 0:o.some(s=>s.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=((i=e.subshelves)==null?void 0:i.some(s=>Jw(s,t)))??!1;return n||r},cp=({item:e,filter:t,parentkey:n})=>{var l;const[r,o]=T.useState(!1),i=()=>o(!r),s=(l=e.nodes)==null?void 0:l.filter(u=>u.node_id.toLowerCase().includes(t.toLowerCase())),a=r||t.length>0;return Jw(e,t)?b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:i,style:{cursor:"pointer"},title:e.description,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(a?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(a?"open":"close"),children:b.jsxs("div",{className:"libnodecontainer_inner",children:[s&&b.jsx(b.Fragment,{children:s.map(u=>b.jsx(Zw,{item:u},u.node_id))}),e.subshelves&&b.jsx(b.Fragment,{children:e.subshelves.map(u=>b.jsx(cp,{item:u,filter:t,parentkey:n+u.name},n+u.name))})]})}),b.jsx("hr",{})]}):b.jsx(b.Fragment,{})},e6=({filter:e,setFilter:t})=>b.jsxs("div",{className:"libfilter",children:[b.jsx(QD,{fontSize:"inherit"}),b.jsx("input",{type:"text",placeholder:"Filter",value:e,onChange:n=>{t(n.target.value)}}),e&&b.jsx(kv,{fontSize:"inherit",onClick:()=>{t("")}})]}),qw=[">=","==","<=","<",">"],Il=">=",fp=({availableModule:e})=>b.jsxs("div",{className:"module-links",children:[e.homepage&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:"Homepage"})}),e.source&&e.homepage&&" | ",e.source&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.source,target:"_blank",rel:"noopener noreferrer",children:"Source"})})]}),dp=({availableModule:e})=>{const[t,n]=T.useState(!1),r=()=>n(!t),o=150,i=e.description.length>o?e.description.substring(0,o)+"...":e.description;return b.jsxs("div",{className:"module-description",children:[b.jsx(zz,{remarkPlugins:[QG],children:t?e.description.replace(/\\n/g,`
|
|
725
725
|
`):i.replace(/\\n/g,`
|
|
726
|
-
`)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},pp=({availableModule:e,on_change:t})=>{const[n,r]=T.useState(e.version||"latest"),[o,i]=T.useState(Il),s=l=>{const u=l.target.value;r(u),t(u!=="latest"?o+u:u)},a=l=>{l.target.value!==o&&qw.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:qw.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},t6=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},n6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},r6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},o6=({children:e})=>{const[t,n]=T.useState(""),r=T.useContext(xe),[o,i]=T.useState(!0),[s,a]=T.useState(!0),[l,u]=T.useState(!0),[c,f]=T.useState({installed:[],available:[],active:[]}),[d,p]=T.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(O=>{f(O)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},y=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},v=I=>I.filter(O=>O.name.toLowerCase().includes(t.toLowerCase())||O.description.toLowerCase().includes(t.toLowerCase())),C=v(c.available),S=v(c.installed),E=v(c.active);return b.jsxs(Ao,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{u(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(n6,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(r6,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(t6,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},i6=({ins:e})=>{const[t,n]=T.useState(e.name),r=T.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Ao,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},s6=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=T.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(u=>u.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(i6,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(u=>b.jsx(Zw,{item:u},r+u.node_id))}),t.subshelves.map(u=>b.jsx(cp,{item:u,filter:n,parentkey:r+u.name},r+u.name))]})]})})})]})},a6=({item:e,mod:t,lib:n})=>{const r=T.useContext(xe),[o,i]=T.useState(!1),s=()=>i(!o),a=()=>{var c;(c=r.worker)==null||c.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=c=>{c.detail===2&&a()},u=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:u,children:[b.jsx("div",{className:"shelftitle_text",children:u}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(c=>b.jsx(s6,{ins:c,lib:n==null?void 0:n.subshelves.find(f=>f.name===c.uuid),parentkey:c.uuid},c.uuid))]})})})]})},l6=({externalworkermod:e,lib:t})=>{const[n,r]=T.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(a6,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},u6=()=>{var c,f;const e=T.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=Oj("m"),[a,l]=T.useState(""),u=((c=e.worker)==null?void 0:c.state(d=>d.is_open))??!1;return b.jsx(e1,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(e6,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(cp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(l6,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),u&&b.jsx("div",{className:"addlib",children:b.jsx(o6,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function c6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:f6}=T;function d6(e){const t=f6();return n=>{const r=e(n);return c6(t.current,r)?t.current:t.current=r}}var hp="Popover",[Kw,nq]=ir(hp,[al]),as=al(),[p6,yr]=Kw(hp),Qw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=as(t),l=k.useRef(null),[u,c]=k.useState(!1),[f=!1,d]=yo({prop:r,defaultProp:o,onChange:i});return b.jsx(id,{...a,children:b.jsx(p6,{scope:t,contentId:Dn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:k.useCallback(()=>c(!0),[]),onCustomAnchorRemove:k.useCallback(()=>c(!1),[]),modal:s,children:n})})};Qw.displayName=hp;var eC="PopoverAnchor",h6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(eC,n),i=as(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(sd,{...i,...r,ref:t})});h6.displayName=eC;var tC="PopoverTrigger",nC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(tC,n),i=as(n),s=Ge(t,o.triggerRef),a=b.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lC(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(sd,{asChild:!0,...i,children:a})});nC.displayName=tC;var gp="PopoverPortal",[g6,m6]=Kw(gp,{forceMount:void 0}),rC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=yr(gp,t);return b.jsx(g6,{scope:t,forceMount:n,children:b.jsx(Fn,{present:n||i.open,children:b.jsx(Fc,{asChild:!0,container:o,children:r})})})};rC.displayName=gp;var Vo="PopoverContent",oC=k.forwardRef((e,t)=>{const n=m6(Vo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=yr(Vo,e.__scopePopover);return b.jsx(Fn,{present:r||i.open,children:i.modal?b.jsx(b6,{...o,ref:t}):b.jsx(v6,{...o,ref:t})})});oC.displayName=Vo;var y6=bo("PopoverContent.RemoveScroll"),b6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(null),o=Ge(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Hc(s)},[]),b.jsx(Ma,{as:y6,allowPinchZoom:!0,children:b.jsx(iC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),v6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(iC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),iC=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,d=yr(Vo,n),p=as(n);return Lc(),b.jsx(Ia,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(ox,{"data-state":lC(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sC="PopoverClose",x6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(sC,n);return b.jsx(Fe.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});x6.displayName=sC;var w6="PopoverArrow",aC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=as(n);return b.jsx(ix,{...o,...r,ref:t})});aC.displayName=w6;function lC(e){return e?"open":"closed"}var uC=Qw,cC=nC,fC=rC,dC=oC,C6=aC;const _6={bytes:({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`}},S6=e=>typeof e=="boolean"||e instanceof Boolean,E6=e=>typeof e=="number"||e instanceof Number,I6=e=>typeof e=="bigint"||e instanceof BigInt,pC=e=>!!e&&e instanceof Date,k6=e=>typeof e=="string"||e instanceof String,A6=e=>Array.isArray(e),T6=e=>typeof e=="object"&&e!==null,hC=e=>!!e&&e instanceof Object&&typeof e=="function";function kl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function N6(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function gC(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:u,clickToExpandNode:c,outerRef:f,beforeExpandChange:d}=e;const p=T.useRef(!1),[g,h]=T.useState(()=>u(a,n,t)),y=T.useRef(null);T.useEffect(()=>{p.current?h(u(a,n,t)):p.current=!0},[u]);const m=T.useId();if(r.length===0)return P6({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const N=f.current.querySelectorAll("[role=button]");let R=-1;for(let A=0;A<N.length;A++)if(N[A].tabIndex===0){R=A;break}if(R<0)return;const L=(R+w+N.length)%N.length;N[R].tabIndex=-1,N[L].tabIndex=0,N[L].focus()}},O=()=>{var M;E(!g);const w=y.current;if(!w)return;const N=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');N&&(N.tabIndex=-1),w.tabIndex=0,w.focus()};return T.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},T.createElement("span",{className:x,onClick:O,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(c?T.createElement("span",{className:l.clickableLabel,onClick:O,onKeyDown:I},kl(t,l.quotesForFieldNames),":"):T.createElement("span",{className:l.label},kl(t,l.quotesForFieldNames),":")),T.createElement("span",{className:l.punctuation},i),g?T.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>T.createElement(mC,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:u,clickToExpandNode:c,outerRef:f}))):T.createElement("span",{className:l.collapsedContent,onClick:O,onKeyDown:I}),T.createElement("span",{className:l.punctuation},s),!o&&T.createElement("span",{className:l.punctuation},","))}function P6(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return T.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:i.label},kl(t,i.quotesForFieldNames),":"),T.createElement("span",{className:i.punctuation},n),T.createElement("span",{className:i.punctuation},r),!o&&T.createElement("span",{className:i.punctuation},","))}function O6(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(c=>[c,n[c]]),outerRef:l,beforeExpandChange:u})}function R6(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(c=>[void 0,c]),outerRef:l,beforeExpandChange:u})}function M6(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):k6(n)?(i=N6(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):S6(n)?(i=n?"true":"false",s=r.booleanValue):E6(n)?(i=n.toString(),s=r.numberValue):I6(n)?(i=`${n.toString()}n`,s=r.numberValue):pC(n)?i=n.toISOString():hC(n)?i="function() { }":i=n.toString(),T.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:r.label},kl(t,r.quotesForFieldNames),":"),T.createElement("span",{className:s},i),!o&&T.createElement("span",{className:r.punctuation},","))}function mC(e){const t=e.value;return A6(t)?T.createElement(R6,Object.assign({},e)):T6(t)&&!pC(t)&&!hC(t)?T.createElement(O6,Object.assign({},e)):T.createElement(M6,Object.assign({},e))}var Te={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const yC={collapseJson:"collapse JSON",expandJson:"expand JSON"},bC={container:Te["container-light"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-light"],clickableLabel:Te["clickable-label-light"],nullValue:Te["value-null-light"],undefinedValue:Te["value-undefined-light"],stringValue:Te["value-string-light"],booleanValue:Te["value-boolean-light"],numberValue:Te["value-number-light"],otherValue:Te["value-other-light"],punctuation:Te["punctuation-light"],collapseIcon:Te["collapse-icon-light"],expandIcon:Te["expand-icon-light"],collapsedContent:Te["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},D6={container:Te["container-dark"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-dark"],clickableLabel:Te["clickable-label-dark"],nullValue:Te["value-null-dark"],undefinedValue:Te["value-undefined-dark"],stringValue:Te["value-string-dark"],booleanValue:Te["value-boolean-dark"],numberValue:Te["value-number-dark"],otherValue:Te["value-other-dark"],punctuation:Te["punctuation-dark"],collapseIcon:Te["collapse-icon-dark"],expandIcon:Te["expand-icon-dark"],collapsedContent:Te["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},F6=()=>!0,j6=e=>e<1,L6=e=>{let{data:t,style:n=bC,shouldExpandNode:r=F6,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=T.useRef(null);return T.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),T.createElement(mC,{value:t,style:{...bC,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function B6(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function z6(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:B6(e)}const V6=({data:e})=>b.jsx(L6,{data:z6(e)?"":e,style:D6,shouldExpandNode:j6});function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function $n(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(s+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(s+=" "+n[u]))}r[o]=s}return r}const mp=k.createContext();process.env.NODE_ENV!=="production"&&(mp.displayName="TableContext");function br(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":br(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Al={exports:{}},Pe={};/**
|
|
726
|
+
`)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},pp=({availableModule:e,on_change:t})=>{const[n,r]=T.useState(e.version||"latest"),[o,i]=T.useState(Il),s=l=>{const u=l.target.value;r(u),t(u!=="latest"?o+u:u)},a=l=>{l.target.value!==o&&qw.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:qw.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},t6=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},n6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},r6=({availableModule:e,on_add:t})=>{const[n,r]=T.useState(Il+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx(fp,{availableModule:e}),b.jsx(dp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(pp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},o6=({children:e})=>{const[t,n]=T.useState(""),r=T.useContext(xe),[o,i]=T.useState(!0),[s,a]=T.useState(!0),[l,u]=T.useState(!0),[c,f]=T.useState({installed:[],available:[],active:[]}),[d,p]=T.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(O=>{f(O)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},y=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,O)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,O)},v=I=>I.filter(O=>O.name.toLowerCase().includes(t.toLowerCase())||O.description.toLowerCase().includes(t.toLowerCase())),C=v(c.available),S=v(c.installed),E=v(c.active);return b.jsxs(Ao,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{u(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(n6,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(r6,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(t6,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},i6=({ins:e})=>{const[t,n]=T.useState(e.name),r=T.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Ao,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},s6=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=T.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(u=>u.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(i6,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(u=>b.jsx(Zw,{item:u},r+u.node_id))}),t.subshelves.map(u=>b.jsx(cp,{item:u,filter:n,parentkey:r+u.name},r+u.name))]})]})})})]})},a6=({item:e,mod:t,lib:n})=>{const r=T.useContext(xe),[o,i]=T.useState(!1),s=()=>i(!o),a=()=>{var c;(c=r.worker)==null||c.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=c=>{c.detail===2&&a()},u=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:u,children:[b.jsx("div",{className:"shelftitle_text",children:u}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(c=>b.jsx(s6,{ins:c,lib:n==null?void 0:n.subshelves.find(f=>f.name===c.uuid),parentkey:c.uuid},c.uuid))]})})})]})},l6=({externalworkermod:e,lib:t})=>{const[n,r]=T.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(Bi,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(a6,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},u6=()=>{var c,f;const e=T.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=Oj("m"),[a,l]=T.useState(""),u=((c=e.worker)==null?void 0:c.state(d=>d.is_open))??!1;return b.jsx(e1,{maxSize:s?"100%":"18.75rem",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(e6,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(cp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(l6,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),u&&b.jsx("div",{className:"addlib",children:b.jsx(o6,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function c6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:f6}=T;function d6(e){const t=f6();return n=>{const r=e(n);return c6(t.current,r)?t.current:t.current=r}}var hp="Popover",[Kw,nq]=ir(hp,[al]),as=al(),[p6,yr]=Kw(hp),Qw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=as(t),l=k.useRef(null),[u,c]=k.useState(!1),[f=!1,d]=yo({prop:r,defaultProp:o,onChange:i});return b.jsx(id,{...a,children:b.jsx(p6,{scope:t,contentId:Dn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:k.useCallback(()=>c(!0),[]),onCustomAnchorRemove:k.useCallback(()=>c(!1),[]),modal:s,children:n})})};Qw.displayName=hp;var eC="PopoverAnchor",h6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(eC,n),i=as(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(sd,{...i,...r,ref:t})});h6.displayName=eC;var tC="PopoverTrigger",nC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(tC,n),i=as(n),s=Ge(t,o.triggerRef),a=b.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lC(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(sd,{asChild:!0,...i,children:a})});nC.displayName=tC;var gp="PopoverPortal",[g6,m6]=Kw(gp,{forceMount:void 0}),rC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=yr(gp,t);return b.jsx(g6,{scope:t,forceMount:n,children:b.jsx(Fn,{present:n||i.open,children:b.jsx(Fc,{asChild:!0,container:o,children:r})})})};rC.displayName=gp;var Vo="PopoverContent",oC=k.forwardRef((e,t)=>{const n=m6(Vo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=yr(Vo,e.__scopePopover);return b.jsx(Fn,{present:r||i.open,children:i.modal?b.jsx(b6,{...o,ref:t}):b.jsx(v6,{...o,ref:t})})});oC.displayName=Vo;var y6=bo("PopoverContent.RemoveScroll"),b6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(null),o=Ge(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Hc(s)},[]),b.jsx(Ma,{as:y6,allowPinchZoom:!0,children:b.jsx(iC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),v6=k.forwardRef((e,t)=>{const n=yr(Vo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(iC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),iC=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,d=yr(Vo,n),p=as(n);return Lc(),b.jsx(Ia,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(ox,{"data-state":lC(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sC="PopoverClose",x6=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yr(sC,n);return b.jsx(Fe.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});x6.displayName=sC;var w6="PopoverArrow",aC=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=as(n);return b.jsx(ix,{...o,...r,ref:t})});aC.displayName=w6;function lC(e){return e?"open":"closed"}var uC=Qw,cC=nC,fC=rC,dC=oC,C6=aC;const _6={bytes:({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`}},S6=e=>typeof e=="boolean"||e instanceof Boolean,E6=e=>typeof e=="number"||e instanceof Number,I6=e=>typeof e=="bigint"||e instanceof BigInt,pC=e=>!!e&&e instanceof Date,k6=e=>typeof e=="string"||e instanceof String,A6=e=>Array.isArray(e),T6=e=>typeof e=="object"&&e!==null,hC=e=>!!e&&e instanceof Object&&typeof e=="function";function kl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function N6(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function gC(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:u,clickToExpandNode:c,outerRef:f,beforeExpandChange:d}=e;const p=T.useRef(!1),[g,h]=T.useState(()=>u(a,n,t)),y=T.useRef(null);T.useEffect(()=>{p.current?h(u(a,n,t)):p.current=!0},[u]);const m=T.useId();if(r.length===0)return P6({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const N=f.current.querySelectorAll("[role=button]");let R=-1;for(let A=0;A<N.length;A++)if(N[A].tabIndex===0){R=A;break}if(R<0)return;const L=(R+w+N.length)%N.length;N[R].tabIndex=-1,N[L].tabIndex=0,N[L].focus()}},O=()=>{var M;E(!g);const w=y.current;if(!w)return;const N=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');N&&(N.tabIndex=-1),w.tabIndex=0,w.focus()};return T.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},T.createElement("span",{className:x,onClick:O,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(c?T.createElement("span",{className:l.clickableLabel,onClick:O,onKeyDown:I},kl(t,l.quotesForFieldNames),":"):T.createElement("span",{className:l.label},kl(t,l.quotesForFieldNames),":")),T.createElement("span",{className:l.punctuation},i),g?T.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>T.createElement(mC,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:u,clickToExpandNode:c,outerRef:f}))):T.createElement("span",{className:l.collapsedContent,onClick:O,onKeyDown:I}),T.createElement("span",{className:l.punctuation},s),!o&&T.createElement("span",{className:l.punctuation},","))}function P6(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return T.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:i.label},kl(t,i.quotesForFieldNames),":"),T.createElement("span",{className:i.punctuation},n),T.createElement("span",{className:i.punctuation},r),!o&&T.createElement("span",{className:i.punctuation},","))}function O6(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(c=>[c,n[c]]),outerRef:l,beforeExpandChange:u})}function R6(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:u}=e;return gC({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(c=>[void 0,c]),outerRef:l,beforeExpandChange:u})}function M6(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):k6(n)?(i=N6(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):S6(n)?(i=n?"true":"false",s=r.booleanValue):E6(n)?(i=n.toString(),s=r.numberValue):I6(n)?(i=`${n.toString()}n`,s=r.numberValue):pC(n)?i=n.toISOString():hC(n)?i="function() { }":i=n.toString(),T.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&T.createElement("span",{className:r.label},kl(t,r.quotesForFieldNames),":"),T.createElement("span",{className:s},i),!o&&T.createElement("span",{className:r.punctuation},","))}function mC(e){const t=e.value;return A6(t)?T.createElement(R6,Object.assign({},e)):T6(t)&&!pC(t)&&!hC(t)?T.createElement(O6,Object.assign({},e)):T.createElement(M6,Object.assign({},e))}var Te={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const yC={collapseJson:"collapse JSON",expandJson:"expand JSON"},bC={container:Te["container-light"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-light"],clickableLabel:Te["clickable-label-light"],nullValue:Te["value-null-light"],undefinedValue:Te["value-undefined-light"],stringValue:Te["value-string-light"],booleanValue:Te["value-boolean-light"],numberValue:Te["value-number-light"],otherValue:Te["value-other-light"],punctuation:Te["punctuation-light"],collapseIcon:Te["collapse-icon-light"],expandIcon:Te["expand-icon-light"],collapsedContent:Te["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},D6={container:Te["container-dark"],basicChildStyle:Te["basic-element-style"],childFieldsContainer:Te["child-fields-container"],label:Te["label-dark"],clickableLabel:Te["clickable-label-dark"],nullValue:Te["value-null-dark"],undefinedValue:Te["value-undefined-dark"],stringValue:Te["value-string-dark"],booleanValue:Te["value-boolean-dark"],numberValue:Te["value-number-dark"],otherValue:Te["value-other-dark"],punctuation:Te["punctuation-dark"],collapseIcon:Te["collapse-icon-dark"],expandIcon:Te["expand-icon-dark"],collapsedContent:Te["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:yC,stringifyStringValues:!1},F6=()=>!0,j6=e=>e<1,L6=e=>{let{data:t,style:n=bC,shouldExpandNode:r=F6,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=T.useRef(null);return T.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),T.createElement(mC,{value:t,style:{...bC,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function B6(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function z6(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:B6(e)}const V6=({data:e})=>b.jsx(L6,{data:z6(e)?"":e,style:D6,shouldExpandNode:j6});function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function $n(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(s+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(s+=" "+n[u]))}r[o]=s}return r}const mp=k.createContext();process.env.NODE_ENV!=="production"&&(mp.displayName="TableContext");function br(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":br(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Al={exports:{}},Pe={};/**
|
|
727
727
|
* @license React
|
|
728
728
|
* react-is.production.js
|
|
729
729
|
*
|
|
@@ -861,5 +861,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
861
861
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nh(e){return r7(e)||o7(e)||bS(e)||i7()}function s7(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rh=T.useLayoutEffect,a7=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pu=function(){};function l7(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function u7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(l7(e,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var wS=function(t){return b7(t)?t.filter(Boolean):Yr(t)==="object"&&t!==null?[t]:[]},CS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jn(t,a7);return de({},n)},Xe=function(t,n,r){var o=t.cx,i=t.getStyles,s=t.getClassNames,a=t.className;return{css:i(n,t),className:o(r??{},s(n,t),a)}};function hu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function c7(e){return hu(e)?window.innerHeight:e.clientHeight}function _S(e){return hu(e)?window.pageYOffset:e.scrollTop}function gu(e,t){if(hu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function f7(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function d7(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function mu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pu,o=_S(e),i=t-o,s=10,a=0;function l(){a+=s;var u=d7(a,o,i,n);gu(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function SS(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?gu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&gu(e,Math.max(t.offsetTop-o,0))}function p7(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ES(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function h7(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var IS=!1,g7={get passive(){return IS=!0}},yu=typeof window<"u"?window:{};yu.addEventListener&&yu.removeEventListener&&(yu.addEventListener("p",pu,g7),yu.removeEventListener("p",pu,!1));var m7=IS;function y7(e){return e!=null}function b7(e){return Array.isArray(e)}function bu(e,t,n){return e?t:n}function aq(e){return e}function lq(e){return e}var v7=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(s){var a=Zn(s,1),l=a[0];return!r.includes(l)});return i.reduce(function(s,a){var l=Zn(a,2),u=l[0],c=l[1];return s[u]=c,s},{})},x7=["children","innerProps"],w7=["children","innerProps"];function C7(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=f7(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),f=c.height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,h=d.top,y=n.offsetParent.getBoundingClientRect(),m=y.top,x=s?window.innerHeight:c7(l),v=_S(l),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),E=m-S,I=x-h,O=E+v,M=f-v-h,w=p-x+v+C,N=v+h-S,R=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return i&&mu(l,w,R),{placement:"bottom",maxHeight:t};if(!s&&M>=r||s&&I>=r){i&&mu(l,w,R);var L=s?I-C:M-C;return{placement:"bottom",maxHeight:L}}if(o==="auto"||s){var A=t,j=s?E:O;return j>=r&&(A=Math.min(j-C-a,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&gu(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(O>=g&&!s)return i&&mu(l,N,R),{placement:"top",maxHeight:t};if(!s&&O>=r||s&&E>=r){var D=t;return(!s&&O>=r||s&&E>=r)&&(D=s?E-S:O-S),i&&mu(l,N,R),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function _7(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var kS=function(t){return t==="auto"?"bottom":t},S7=function(t,n){var r,o=t.placement,i=t.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return de((r={label:"menu"},_s(r,_7(o),"100%"),_s(r,"position","absolute"),_s(r,"width","100%"),_s(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},AS=T.createContext(null),E7=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=T.useContext(AS)||{},c=u.setPortalPlacement,f=T.useRef(null),d=T.useState(o),p=Zn(d,2),g=p[0],h=p[1],y=T.useState(null),m=Zn(y,2),x=m[0],v=m[1],C=l.spacing.controlHeight;return rh(function(){var S=f.current;if(S){var E=s==="fixed",I=a&&!E,O=C7({maxHeight:o,menuEl:S,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:E,controlHeight:C});h(O.maxHeight),v(O.placement),c==null||c(O.placement)}},[o,i,s,a,r,c,C]),n({ref:f,placerProps:de(de({},t),{},{placement:x||kS(i),maxHeight:g})})},I7=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return le("div",ue({},Xe(t,"menu",{menu:!0}),{ref:r},o),n)},k7=I7,A7=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return de({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},T7=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return le("div",ue({},Xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},TS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return de({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},N7=TS,P7=TS,O7=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Jn(t,x7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},R7=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Jn(t,w7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},M7=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},D7=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=T.useRef(null),u=T.useRef(null),c=T.useState(kS(s)),f=Zn(c,2),d=f[0],p=f[1],g=T.useMemo(function(){return{setPortalPlacement:p}},[]),h=T.useState(null),y=Zn(h,2),m=y[0],x=y[1],v=T.useCallback(function(){if(o){var I=p7(o),O=a==="fixed"?0:window.pageYOffset,M=I[d]+O;(M!==(m==null?void 0:m.offset)||I.left!==(m==null?void 0:m.rect.left)||I.width!==(m==null?void 0:m.rect.width))&&x({offset:M,rect:I})}},[o,a,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);rh(function(){v()},[v]);var C=T.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=$v(o,l.current,v,{elementResize:"ResizeObserver"in window}))},[o,v]);rh(function(){C()},[C]);var S=T.useCallback(function(I){l.current=I,C()},[C]);if(!n&&a!=="fixed"||!m)return null;var E=le("div",ue({ref:S},Xe(de(de({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return le(AS.Provider,{value:g},n?Kn.createPortal(E,n):E)},F7=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},j7=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return le("div",ue({},Xe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},L7=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,s=t.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},B7=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return le("div",ue({},Xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},z7=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},V7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"indicatorsContainer",{indicators:!0}),r),n)},NS,G7=["size"],$7=["innerProps","isRtl","size"];function H7(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var W7=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZX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HNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:H7},PS=function(t){var n=t.size,r=Jn(t,G7);return le("svg",ue({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:W7},r))},oh=function(t){return le(PS,ue({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},OS=function(t){return le(PS,ue({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},RS=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:i*2,":hover":{color:r?s.neutral80:s.neutral40}})},X7=RS,Y7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(OS,null))},U7=RS,Z7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(oh,null))},J7=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},q7=function(t){var n=t.innerProps;return le("span",ue({},n,Xe(t,"indicatorSeparator",{"indicator-separator":!0})))},K7=Jl(NS||(NS=s7([`
|
|
862
862
|
0%, 80%, 100% { opacity: 0; }
|
|
863
863
|
40% { opacity: 1; }
|
|
864
|
-
`]))),Q7=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},ih=function(t){var n=t.delay,r=t.offset;return le("span",{css:Tp({animation:"".concat(K7," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxu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0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},eY=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,$7);return le("div",ue({},Xe(de(de({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(ih,{delay:0,offset:r}),le(ih,{delay:160,offset:!0}),le(ih,{delay:320,offset:!r}))},tY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},nY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ue({ref:i},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},rY=nY,oY=["data"],iY=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},sY=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return le("div",ue({},Xe(t,"group",{group:!0}),l),le(s,ue({},a,{selectProps:f,theme:c,getStyles:o,getClassNames:i,cx:r}),u),le("div",null,n))},aY=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return de({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},lY=function(t){var n=CS(t);n.data;var r=Jn(n,oY);return le("div",ue({},Xe(t,"groupHeading",{"group-heading":!0}),r))},uY=sY,cY=["innerRef","isDisabled","isHidden","inputClassName"],fY=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return de(de({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},dY),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},MS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},dY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":de({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},MS)},pY=function(t){return de({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},MS)},hY=function(t){var n=t.cx,r=t.value,o=CS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,u=Jn(o,cY);return le("div",ue({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ue({className:n({input:!0},l),ref:i,style:pY(a),disabled:s},u)))},gY=hY,mY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return de({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},yY=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return de({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},bY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return de({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},DS=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},vY=DS,xY=DS;function wY(e){var t=e.children,n=e.innerProps;return le("div",ue({role:"button"},n),t||le(oh,{size:14}))}var CY=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return le(u,{data:o,innerProps:de(de({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(c,{data:o,innerProps:de({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:de(de({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},_Y=CY,SY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},EY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ue({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},IY=EY,kY=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},AY=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"placeholder",{placeholder:!0}),r),n)},TY=AY,NY=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},PY=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ue({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},OY=PY,RY={ClearIndicator:Z7,Control:rY,DropdownIndicator:Y7,DownChevron:OS,CrossIcon:oh,Group:uY,GroupHeading:lY,IndicatorsContainer:V7,IndicatorSeparator:q7,Input:gY,LoadingIndicator:eY,Menu:k7,MenuList:T7,MenuPortal:D7,LoadingMessage:R7,NoOptionsMessage:O7,MultiValue:_Y,MultiValueContainer:vY,MultiValueLabel:xY,MultiValueRemove:wY,Option:IY,Placeholder:TY,SelectContainer:j7,SingleValue:OY,ValueContainer:B7},MY=function(t){return de(de({},RY),t.components)},FS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DY(e,t){return!!(e===t||FS(e)&&FS(t))}function FY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!DY(e[n],t[n]))return!1;return!0}function jY(e,t){t===void 0&&(t=FY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function LY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var BY=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:LY},zY=function(t){return le("span",ue({css:BY},t))},jS=zY,VY={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&c){var d=l?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},GY=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],O=T.useMemo(function(){return de(de({},VY),f||{})},[f]),M=T.useMemo(function(){var j="";if(n&&O.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),P=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=de({isDisabled:$&&h($,a),label:P,labels:J},n);j=O.onChange(W)}return j},[n,O,h,a,d]),w=T.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&O.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:c};j=O.onFocus(V)}return j},[r,o,d,h,O,i,a,c]),N=T.useMemo(function(){var j="";if(m&&x.length&&!S&&O.onFilter){var D=v({count:i.length});j=O.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,O,x,v,S]),R=(n==null?void 0:n.action)==="initial-input-focus",L=T.useMemo(function(){var j="";if(O.guidance){var D=o?"value":m?"menu":"input";j=O.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:R})}return j},[E,r,o,g,h,y,m,O,a,C,R]),A=le(T.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},N),le("span",{id:"aria-guidance"},L));return le(T.Fragment,null,le(jS,{id:u},R&&A),le(jS,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&A))},$Y=GY,sh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],HY=new RegExp("["+sh.map(function(e){return e.letters}).join("")+"]","g"),LS={},ah=0;ah<sh.length;ah++)for(var lh=sh[ah],uh=0;uh<lh.letters.length;uh++)LS[lh.letters[uh]]=lh.base;var BS=function(t){return t.replace(HY,function(n){return LS[n]})},WY=jY(BS),zS=function(t){return t.replace(/^\s+|\s+$/g,"")},XY=function(t){return"".concat(t.label," ").concat(t.value)},YY=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=de({ignoreCase:!0,ignoreAccents:!0,stringify:XY,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,u=o.matchFrom,c=l?zS(r):r,f=l?zS(a(n)):a(n);return i&&(c=c.toLowerCase(),f=f.toLowerCase()),s&&(c=WY(c),f=BS(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},UY=["innerRef"];function ZY(e){var t=e.innerRef,n=Jn(e,UY),r=v7(n,"onExited","in","enter","exit","appear");return le("input",ue({ref:t},r,{css:Tp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJB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XplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var JY=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function qY(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=T.useRef(!1),a=T.useRef(!1),l=T.useRef(0),u=T.useRef(null),c=T.useCallback(function(y,m){if(u.current!==null){var x=u.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=u.current,I=m>0,O=C-S-v,M=!1;O>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>O?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&JY(y)}},[n,r,o,i]),f=T.useCallback(function(y){c(y,y.deltaY)},[c]),d=T.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=T.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;c(y,m)},[c]),g=T.useCallback(function(y){if(y){var m=m7?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=T.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return T.useEffect(function(){if(t){var y=u.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){u.current=y}}var VS=["boxSizing","height","overflow","paddingRight","position"],GS={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $S(e){e.cancelable&&e.preventDefault()}function HS(e){e.stopPropagation()}function WS(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function XS(){return"ontouchstart"in window||navigator.maxTouchPoints}var YS=!!(typeof window<"u"&&window.document&&window.document.createElement),Ss=0,ti={capture:!1,passive:!1};function KY(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=T.useRef({}),i=T.useRef(null),s=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;if(r&&VS.forEach(function(g){var h=c&&c[g];o.current[g]=h}),r&&Ss<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(GS).forEach(function(g){var h=GS[g];c&&(c[g]=h)}),c&&(c.paddingRight="".concat(p,"px"))}u&&XS()&&(u.addEventListener("touchmove",$S,ti),l&&(l.addEventListener("touchstart",WS,ti),l.addEventListener("touchmove",HS,ti))),Ss+=1}},[r]),a=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;Ss=Math.max(Ss-1,0),r&&Ss<1&&VS.forEach(function(f){var d=o.current[f];c&&(c[f]=d)}),u&&XS()&&(u.removeEventListener("touchmove",$S,ti),l&&(l.removeEventListener("touchstart",WS,ti),l.removeEventListener("touchmove",HS,ti)))}},[r]);return T.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function QY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var eU=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},tU=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6I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Qm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:QY};function nU(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=qY({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=KY({isEnabled:n}),f=function(p){u(p),c(p)};return le(T.Fragment,null,n&&le("div",{onClick:eU,css:tU}),t(f))}function rU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oU=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:rU},iU=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:oU,value:"",onChange:function(){}})},sU=iU;function ch(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function aU(){return ch(/^iPhone/i)}function US(){return ch(/^Mac/i)}function lU(){return ch(/^iPad/i)||US()&&navigator.maxTouchPoints>1}function uU(){return aU()||lU()}function cU(){return US()||uU()}var fU=function(t){return t.label},dU=function(t){return t.label},pU=function(t){return t.value},hU=function(t){return!!t.isDisabled},gU={clearIndicator:U7,container:F7,control:tY,dropdownIndicator:X7,group:iY,groupHeading:aY,indicatorsContainer:z7,indicatorSeparator:J7,input:fY,loadingIndicator:Q7,loadingMessage:P7,menu:S7,menuList:A7,menuPortal:M7,multiValue:mY,multiValueLabel:yY,multiValueRemove:bY,noOptionsMessage:N7,option:SY,placeholder:kY,singleValue:NY,valueContainer:L7},mU={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},yU=4,ZS=4,bU=38,vU=ZS*2,xU={baseUnit:ZS,controlHeight:bU,menuGutter:vU},fh={borderRadius:yU,colors:mU,spacing:xU},wU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ES(),captureMenuScroll:!ES(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:YY(),formatGroupLabel:fU,getOptionLabel:dU,getOptionValue:pU,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:hU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!h7(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function JS(e,t,n,r){var o=tE(e,t,n),i=nE(e,t,n),s=eE(e,t),a=xu(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function vu(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return JS(e,s,t,a)}).filter(function(s){return QS(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=JS(e,n,t,r);return QS(e,i)?i:void 0}).filter(y7)}function qS(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,nh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function KS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,nh(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function CU(e,t){return qS(vu(e,t))}function QS(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!oE(e)||!i)&&rE(e,{label:s,value:a,data:o},r)}function _U(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function SU(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var dh=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},eE=function(t,n){return t.getOptionLabel(n)},xu=function(t,n){return t.getOptionValue(n)};function tE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=xu(e,t);return n.some(function(o){return xu(e,o)===r})}function rE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var oE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},EU=1,iE=function(e){e7(n,e);var t=n7(n);function n(r){var o;if(K8(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=cU(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var c=o.props,f=c.onChange,d=c.name;u.name=d,o.ariaOnChange(l,u),f(l,u)},o.setValue=function(l,u,c){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:c})},o.selectOption=function(l){var u=o.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(nh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,c=o.state.selectValue,f=o.getOptionValue(l),d=c.filter(function(g){return o.getOptionValue(g)!==f}),p=bu(u,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(bu(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=bu(l,f,f[0]||null);c&&o.onChange(d,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(l){return dh(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return KS(vu(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return u7.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return eE(o.props,l)},o.getOptionValue=function(l){return xu(o.props,l)},o.getStyles=function(l,u){var c=o.props.unstyled,f=gU[l](u,c);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,u):f},o.getClassNames=function(l,u){var c,f;return(c=(f=o.props.classNames)[l])===null||c===void 0?void 0:c.call(f,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return MY(o.props)},o.buildCategorizedOptions=function(){return vu(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return qS(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:de({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,f=u.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&hu(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var f=Math.abs(c.clientX-o.initialTouchX),d=Math.abs(c.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,c=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),c=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:c>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return oE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,p=u.inputValue,g=u.isClearable,h=u.isDisabled,y=u.menuIsOpen,m=u.onKeyDown,x=u.tabSelectsValue,v=u.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||p)return;o.focusValue("previous");break;case"ArrowRight":if(!c||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;c?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++EU),o.state.selectValue=wS(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=dh(i,s[a])}return o}return Q8(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&SS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(SS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(s.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),o==="up"?l=u>0?u-1:a.length-1:o==="down"?l=(u+1)%a.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(fh):de(de({},fh),this.props.theme):fh}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return tE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return nE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return rE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=de(de(de({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ue({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},C)):k.createElement(ZY,ue({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ue({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(O,M){var w=O===S,N="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return k.createElement(s,ue({},d,{components:{Container:a,Label:l,Remove:u},isFocused:w,isDisabled:h,key:N,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(L){L.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(m)return null;var I=C[0];return k.createElement(c,ue({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return k.createElement(s,ue({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,u=i.MenuList,c=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,O=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,N=y.menuShouldBlockScroll,R=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(P,H){var J=P.type,W=P.data,X=P.isDisabled,U=P.isSelected,Q=P.label,ne=P.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ce=X?void 0:function(){return o.selectOption(W)},pe="".concat(o.getElementId("option"),"-").concat(H),Ie={id:pe,onClick:ce,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ue({},g,{innerProps:Ie,data:W,isDisabled:X,isSelected:U,key:pe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(P.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var P=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ue({},g,{key:W,data:P,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:R},G=k.createElement(E7,ue({},g,_),function($){var P=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ue({},g,_,{innerRef:P,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(nU,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:N},function(X){return k.createElement(u,ue({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(c,ue({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,u=i.name,c=i.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return k.createElement(sU,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:u,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:u,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,u=i.isFocused,c=i.selectValue,f=this.getFocusableOptions();return k.createElement($Y,ue({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,p=u.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ue({},h,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ue({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ue({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ue({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=wS(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?CU(o,x):[],S=h?KS(vu(o,x),"".concat(d,"-option")):[],E=a?_U(i,x):null,I=SU(i,C),O=dh(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:O,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=u,N=c&&f;return c&&!N&&(w={value:bu(m,x,x[0]||null),options:x,action:"initial-input-focus"},N=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(w=null),de(de(de({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:N})}}]),n}(T.Component);iE.defaultProps=wU;var IU=T.forwardRef(function(e,t){var n=q8(e);return k.createElement(iE,ue({ref:t},n))}),kU=IU;const AU=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=T.useState(""),[a,l]=T.useState(0),u=p=>{s(p.toLowerCase()),l(0)},c=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=c.slice(a*t,(a+1)*t):f=c;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(kU,{options:f,onInputChange:u,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function TU(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const sE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,O,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=N=>{var R,L,A;N=n(parseFloat(N.toString()).toString()),isNaN(N)?(N="<NoValue>",a("")):(((R=i.value_options)==null?void 0:R.min)!==void 0&&N<i.value_options.min&&(N=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&N>i.value_options.max&&(N=i.value_options.max),N=TU(N),a(N.toString()));try{N=t[0](N)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:N,set_default:i.render_options.set_default})},u=N=>{l(N.target.value)};let c=i.connected?t[1](o==null?void 0:o.value):s;c===void 0&&(c=(p=i.value_options)==null?void 0:p.min),c===void 0&&(c=(g=i.value_options)==null?void 0:g.max),c===void 0&&(c=""),c===null&&(c="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"100px"},className:"SliderContainer",children:b.jsxs(N8,{className:"SliderRoot",value:[c===void 0?(E=i.value_options)==null?void 0:E.min:c],min:(I=i.value_options)==null?void 0:I.min,max:(O=i.value_options)==null?void 0:O.max,step:d,disabled:i.connected,onValueCommit:N=>{isNaN(N[0])||l(N[0])},onValueChange:N=>{isNaN(N[0])||a(N[0].toString())},onKeyDown:N=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N.key)&&N.stopPropagation()},children:[b.jsx(P8,{className:"SliderTrack",children:b.jsx(O8,{className:"SliderRange"})}),b.jsx(R8,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:N=>a(N.target.value),onBlur:u,step:d,onKeyDown:N=>{if(!(N.ctrlKey||N.metaKey)){if(N.key==="ArrowUp"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)+d;l(R);return}if(N.key==="ArrowDown"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)-d;l(R);return}!/^[0-9.eE+-]$/.test(N.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(N.key)&&N.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},NU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseFloat}),PU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseInt}),OU=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var c;let u=l.target.checked;try{u=t[0](l.target.checked)}catch{}(c=n.worker)==null||c.set_io_value({nid:o.node,ioid:o.id,value:u,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},aE=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const u=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let c=i.connected?t[1](s):a;return c==null&&(c=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:c,onChange:f=>l(f.target.value),onBlur:u,disabled:i.connected})},RU=({iostore:e})=>{var u;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((u=n.value_options)==null?void 0:u.colorspace)||"hex",a=c=>{var d;let f="<NoValue>";c&&(c[s]?f=c[s]():f=c.hex()),c===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(c=>c==="None")),b.jsx(W8,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},MU=e=>e,DU=e=>parseFloat(e),FU=e=>!!e,jU=e=>e==="null"?null:e,LU=e=>e==="nuinputconvertermber"?DU:e==="boolean"?FU:e==="undefined"?jU:MU,wu=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const u=k.useContext(xe),c=({value:y,datatype:m})=>{var C;let v=(n||LU(m))(y);try{v=t[0](y)}catch{}(C=u.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx(AU,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){c({value:"<NoValue>",datatype:"string"});return}c(y)}})},BU={float:NU,int:PU,bool:OU,string:aE,str:aE,color:RU,select:wu,enum:wu,bytes:((e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})})(Jp,"")},zU=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(An),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
|
|
865
|
-
`);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},VU={},nn=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},GU={string:nn(Q_),table:nn(eS),image:nn(q_),svg:nn(K_,""),dict:nn(uu,"{}"),bytes:nn(Jp,"")},$U={},lE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),uE=lE(uu),rn={Inputrenderer:BU,Outputrenderer:VU,HandlePreviewRenderer:$U,DataOverlayRenderer:{},DataPreviewViewRenderer:GU,DataViewRenderer:p8,InLineRenderer:_6,NodeContextExtenders:{},NodeRenderer:{},NodeHooks:{}},HU=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const u in a)if(!l[u]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const u in a)(r||!l[u])&&(l[u]=a[u]);return{...e};default:return e}},cE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=T.useReducer(HU,rn),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return T.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:hh}))}},[t]),b.jsx(An.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:u,extendDataViewRenderMapping:c,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},An=T.createContext({Inputrenderer:rn.Inputrenderer,Outputrenderer:rn.Outputrenderer,HandlePreviewRenderer:rn.HandlePreviewRenderer,DataOverlayRenderer:rn.DataOverlayRenderer,DataPreviewViewRenderer:rn.DataPreviewViewRenderer,DataViewRenderer:rn.DataViewRenderer,InLineRenderer:rn.InLineRenderer,NodeContextExtenders:rn.NodeContextExtenders,NodeRenderer:rn.NodeRenderer,NodeHooks:rn.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),fE=e=>{const t=T.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=T.useContext(An);if(e===void 0)return;const o=t.render_options(),[i]=Ur(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?lE(r[i]):uE:uE},WU=e=>{const n=T.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=T.useContext(An),i=fE(e);let s;if(e){const[a]=Ur(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=nn(cu):s=nn(cu)}return[s,i]},dE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},pE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Ur=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Ur(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},ph=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=T.useState(!1),[s,a]=T.useState(!1),l=k.useContext(xe),u=e.use(),[c,f]=WU(u),d=l.local_state(()=>l.reactflowRef);return b.jsxs(uC,{open:o||s,onOpenChange:a,children:[b.jsx(cC,{asChild:!0,children:b.jsx(Ii,{id:u.id,"data-type":t,...r})}),b.jsx(fC,{container:d,children:b.jsxs(dC,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(JD,{onClick:()=>i(!1)}):b.jsx(ZD,{onClick:()=>i(!0)}),f&&b.jsx(Ao,{title:u.full_id,trigger:b.jsx(Ev,{}),onOpenChange:p=>{p&&u.try_get_full_value&&u.try_get_full_value(),i(p)},children:b.jsx(dE,{Component:f,iostore:e})})]}),c?b.jsx(pE,{Component:c,iostore:e}):`no preview available for "${t}"`]}),b.jsx(C6,{className:"iotooltipcontentarrow"})]})})]})},Cu={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},XU=({iostore:e})=>{var u,c;const n=T.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=T.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},YU=({iostore:e})=>{const n=T.useContext(xe).render_options(),r=e.use(),[o]=Ur(r.type,n.typemap||{}),{Outputrenderer:i}=T.useContext(An),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(zU,{iostore:e,typestring:o})})]})},UU=e=>{const t=T.useContext(xe),n=fE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=T.useContext(An),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Ur(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[nn(o[s]),n]:[nn(cu),n]:[nn(cu),n]};function ZU(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let u=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=u+"px";let c=t.getBoundingClientRect();for(;(c.width>a||c.height>l)&&u>o;)u*=i,t.style.fontSize=u+"px",c=t.getBoundingClientRect()}function JU(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:u=null,initial:c=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=hE(o);p===void 0&&o>0&&(p=(f-c)/o);const h=p?1/p:void 0,[y,m]=p?_u(p,s):[void 0,""],[x,v]=h?_u(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?_u(f,s).join(""):f.toString(),O=r&&d!==null?_u(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?hE(M):"?",N=a?`${a}: `:"";if(t!==null){const R=f/t*100,L=` ${I}/${O} [${g} < ${w}, ${E}${u??""}]`;return`${N}${R.toFixed(0)}%${L}`}return`${N}${I}${i} [${g}, ${E}${u??""}]`}function hE(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function _u(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const qU=({state:e,className:t="reacttqdm",...n})=>{const r=T.useRef(null),o=T.useRef(null);T.useEffect(()=>{const s=()=>{!r.current||!o.current||ZU(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:JU(e)})]})})},KU=k.memo(({node_data:e})=>{const t=T.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(KD,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(qD,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(Bi,{fontSize:"inherit"})})]})}),QU=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=UU(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Ao,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(pE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(dE,{Component:o,iostore:e})})})},eZ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(YU,{iostore:e.io[s]},s)),t&&b.jsx(QU,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(XU,{iostore:e.io[s]},s))]})}),gE=k.memo(({node_data:e})=>{const[t,n]=T.useState(e.name);T.useEffect(()=>{n(e.name)},[e]);const r=T.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),tZ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(qU,{state:t,className:"nodeprogress"})},nZ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(tZ,{node_data:e})]})),rZ=e=>{const t=T.useContext(xe),[n,r]=T.useState(!1),o=e.in_trigger(),i=T.useContext(An),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),u=i.NodeHooks[e.node_id];for(const c of u||[])c({nodecontext:l});return T.useEffect(()=>{var c;(c=t.worker)==null||c.call_hooks("node_mounted",e.id)},[t.worker,e.id]),T.useEffect(()=>{let c;return o&&!n?r(!0):n&&(c=setTimeout(()=>r(!1),200)),()=>clearTimeout(c)},[o,n]),{visualTrigger:n,nodecontext:l}},hh=k.createContext(null),oZ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=rZ(t);return b.jsx(hh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(KU,{node_data:t}),b.jsx(gE,{node_data:t}),n?null:b.jsx(eZ,{node_data:t}),b.jsx(nZ,{node_data:t})]})})},iZ=({iostore:e})=>{var u,c;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},sZ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},aZ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(gE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(iZ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(sZ,{iostore:t.io[n]},n))]})]})},lZ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(aZ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},uZ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(e1,{maxSize:"300px",direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(lZ,{})})},cZ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[u]=tc({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(ki,{id:e,path:u,...l})})},fZ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),dZ={default:oZ},pZ={default:cZ},hZ=()=>{const e=Ei(),t=T.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},gZ=()=>{const e=T.useContext(xe),t=fo("Delete"),n=bP(),r=mP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},mZ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:u}=Ei(),c=T.useContext(xe),f=T.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=T.useCallback(()=>{c.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,u]),p=c.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},mE=e=>{const t=T.useContext(xe),n=T.useRef(null);T.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=T.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=T.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f}=t.useReactFlowStore(d6(fZ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(hP,{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f,nodeTypes:dZ,edgeTypes:pZ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(hZ,{}),b.jsx(gZ,{}),b.jsx(_P,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(GP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(mZ,{onClick:s,...r})]})})},Su=T.createContext(void 0),Zr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=T.useState(!1),u=T.useRef(null),[c,f]=T.useState(null),[d,p]=T.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;T.useImperativeHandle(t,()=>u.current,[]);const x=async()=>{if(!u.current)return;u.current.style.transition="none",u.current.style.position="",u.current.style.top="",u.current.style.left="",u.current.style.width="",u.current.style.height="";const I=u.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),u.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(R=>({...R,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const O=new Promise(R=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),R()},y)}),M=new Promise(R=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),R()},m)}),w=Math.max(g+y,h+m),N=new Promise(R=>{setTimeout(()=>{R()},w)});await Promise.all([O,M,N])},v=async()=>{if(!u.current||!c)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[O,M,w,N]=c,R=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${O}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${N}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([R,L,j]),u.current.style.transition="",p({}),l(!1)},C=async()=>{u.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,O=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:u,className:O,style:M,...s})}else S=b.jsx("div",{ref:u,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(Su.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?ku.createPortal(E,document.body):E});Zr.Trigger=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})},Zr.Expanded=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null},Zr.Collapsed=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Eu=k.createContext(void 0),Cr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=T.useRef(null);T.useImperativeHandle(t,()=>a.current,[]);const[l,u]=T.useState(!1),c=T.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),u(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),u(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);T.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;u(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Eu.Provider,{value:{isFullScreen:l,toggleFullscreen:c},children:f})});Cr.Trigger=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})},Cr.InFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null},Cr.OutFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const yZ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=T.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(cE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Zr,{asChild:!0,children:b.jsx(Cr,{asChild:!0,children:b.jsx(Tj,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(Lj,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(mE,{...n}),o&&r.show&&b.jsx(u6,{}),o&&n.showNodeSettings&&b.jsx(uZ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(Cr.OutFullScreen,{children:n.allowExpand&&b.jsxs(Zr.Trigger,{children:[b.jsx(Zr.Expanded,{children:b.jsx(YD,{size:"xl",style:{padding:"4px"}})}),b.jsx(Zr.Collapsed,{children:b.jsx(UD,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(Cr.Trigger,{children:[b.jsx(Cr.OutFullScreen,{children:b.jsx(Ev,{size:"xl",style:{padding:"4px"}})}),b.jsx(Cr.InFullScreen,{children:b.jsx(XD,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},gh={};window.fnrf_zst===void 0&&(window.fnrf_zst=gh);const yE={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},xe=T.createContext(bc(yE)),bE=e=>{let t=oi(e,{...yE,id:cy()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=gh[t.id];n===void 0&&(n=bc(t),gh[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Oc({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DR(r.fnw_url),a=r.worker.on_sync_complete,l=async u=>{const c=await s;u.on_sync_complete=a,await u.update_from_export(c)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kR(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(yZ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},bZ={set_io_value:({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=T.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})}},vZ=e=>(new I0("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(bE,{...e})}));Le.FuncNodes=vZ,Le.FuncNodesContext=xe,Le.FuncNodesReactFlowZustand=bc,Le.FuncNodesWorker=fy,Le.FuncnodesReactFlow=bE,Le.NodeContext=hh,Le.ReactFlowLayer=mE,Le.RenderMappingContext=An,Le.RenderMappingProvider=cE,Le.WebSocketWorker=Oc,Le.deep_update=oi,Le.helperfunctions=bZ,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})});
|
|
864
|
+
`]))),Q7=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},ih=function(t){var n=t.delay,r=t.offset;return le("span",{css:Tp({animation:"".concat(K7," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGh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Y=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,$7);return le("div",ue({},Xe(de(de({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(ih,{delay:0,offset:r}),le(ih,{delay:160,offset:!0}),le(ih,{delay:320,offset:!r}))},tY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},nY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ue({ref:i},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},rY=nY,oY=["data"],iY=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},sY=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return le("div",ue({},Xe(t,"group",{group:!0}),l),le(s,ue({},a,{selectProps:f,theme:c,getStyles:o,getClassNames:i,cx:r}),u),le("div",null,n))},aY=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return de({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},lY=function(t){var n=CS(t);n.data;var r=Jn(n,oY);return le("div",ue({},Xe(t,"groupHeading",{"group-heading":!0}),r))},uY=sY,cY=["innerRef","isDisabled","isHidden","inputClassName"],fY=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return de(de({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},dY),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},MS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},dY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":de({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},MS)},pY=function(t){return de({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},MS)},hY=function(t){var n=t.cx,r=t.value,o=CS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,u=Jn(o,cY);return le("div",ue({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ue({className:n({input:!0},l),ref:i,style:pY(a),disabled:s},u)))},gY=hY,mY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return de({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},yY=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return de({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},bY=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return de({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},DS=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},vY=DS,xY=DS;function wY(e){var t=e.children,n=e.innerProps;return le("div",ue({role:"button"},n),t||le(oh,{size:14}))}var CY=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return le(u,{data:o,innerProps:de(de({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(c,{data:o,innerProps:de({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:de(de({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},_Y=CY,SY=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},EY=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ue({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},IY=EY,kY=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},AY=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"placeholder",{placeholder:!0}),r),n)},TY=AY,NY=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},PY=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ue({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},OY=PY,RY={ClearIndicator:Z7,Control:rY,DropdownIndicator:Y7,DownChevron:OS,CrossIcon:oh,Group:uY,GroupHeading:lY,IndicatorsContainer:V7,IndicatorSeparator:q7,Input:gY,LoadingIndicator:eY,Menu:k7,MenuList:T7,MenuPortal:D7,LoadingMessage:R7,NoOptionsMessage:O7,MultiValue:_Y,MultiValueContainer:vY,MultiValueLabel:xY,MultiValueRemove:wY,Option:IY,Placeholder:TY,SelectContainer:j7,SingleValue:OY,ValueContainer:B7},MY=function(t){return de(de({},RY),t.components)},FS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DY(e,t){return!!(e===t||FS(e)&&FS(t))}function FY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!DY(e[n],t[n]))return!1;return!0}function jY(e,t){t===void 0&&(t=FY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function LY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var BY=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:LY},zY=function(t){return le("span",ue({css:BY},t))},jS=zY,VY={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&c){var d=l?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},GY=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],O=T.useMemo(function(){return de(de({},VY),f||{})},[f]),M=T.useMemo(function(){var j="";if(n&&O.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),P=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=de({isDisabled:$&&h($,a),label:P,labels:J},n);j=O.onChange(W)}return j},[n,O,h,a,d]),w=T.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&O.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:c};j=O.onFocus(V)}return j},[r,o,d,h,O,i,a,c]),N=T.useMemo(function(){var j="";if(m&&x.length&&!S&&O.onFilter){var D=v({count:i.length});j=O.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,O,x,v,S]),R=(n==null?void 0:n.action)==="initial-input-focus",L=T.useMemo(function(){var j="";if(O.guidance){var D=o?"value":m?"menu":"input";j=O.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:R})}return j},[E,r,o,g,h,y,m,O,a,C,R]),A=le(T.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},N),le("span",{id:"aria-guidance"},L));return le(T.Fragment,null,le(jS,{id:u},R&&A),le(jS,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!R&&A))},$Y=GY,sh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],HY=new RegExp("["+sh.map(function(e){return e.letters}).join("")+"]","g"),LS={},ah=0;ah<sh.length;ah++)for(var lh=sh[ah],uh=0;uh<lh.letters.length;uh++)LS[lh.letters[uh]]=lh.base;var BS=function(t){return t.replace(HY,function(n){return LS[n]})},WY=jY(BS),zS=function(t){return t.replace(/^\s+|\s+$/g,"")},XY=function(t){return"".concat(t.label," ").concat(t.value)},YY=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=de({ignoreCase:!0,ignoreAccents:!0,stringify:XY,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,u=o.matchFrom,c=l?zS(r):r,f=l?zS(a(n)):a(n);return i&&(c=c.toLowerCase(),f=f.toLowerCase()),s&&(c=WY(c),f=BS(f)),u==="start"?f.substr(0,c.length)===c:f.indexOf(c)>-1}},UY=["innerRef"];function ZY(e){var t=e.innerRef,n=Jn(e,UY),r=v7(n,"onExited","in","enter","exit","appear");return le("input",ue({ref:t},r,{css:Tp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var JY=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function qY(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=T.useRef(!1),a=T.useRef(!1),l=T.useRef(0),u=T.useRef(null),c=T.useCallback(function(y,m){if(u.current!==null){var x=u.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=u.current,I=m>0,O=C-S-v,M=!1;O>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>O?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&JY(y)}},[n,r,o,i]),f=T.useCallback(function(y){c(y,y.deltaY)},[c]),d=T.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=T.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;c(y,m)},[c]),g=T.useCallback(function(y){if(y){var m=m7?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=T.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return T.useEffect(function(){if(t){var y=u.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){u.current=y}}var VS=["boxSizing","height","overflow","paddingRight","position"],GS={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $S(e){e.cancelable&&e.preventDefault()}function HS(e){e.stopPropagation()}function WS(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function XS(){return"ontouchstart"in window||navigator.maxTouchPoints}var YS=!!(typeof window<"u"&&window.document&&window.document.createElement),Ss=0,ti={capture:!1,passive:!1};function KY(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=T.useRef({}),i=T.useRef(null),s=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;if(r&&VS.forEach(function(g){var h=c&&c[g];o.current[g]=h}),r&&Ss<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(GS).forEach(function(g){var h=GS[g];c&&(c[g]=h)}),c&&(c.paddingRight="".concat(p,"px"))}u&&XS()&&(u.addEventListener("touchmove",$S,ti),l&&(l.addEventListener("touchstart",WS,ti),l.addEventListener("touchmove",HS,ti))),Ss+=1}},[r]),a=T.useCallback(function(l){if(YS){var u=document.body,c=u&&u.style;Ss=Math.max(Ss-1,0),r&&Ss<1&&VS.forEach(function(f){var d=o.current[f];c&&(c[f]=d)}),u&&XS()&&(u.removeEventListener("touchmove",$S,ti),l&&(l.removeEventListener("touchstart",WS,ti),l.removeEventListener("touchmove",HS,ti)))}},[r]);return T.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function QY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var eU=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},tU=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJv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4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:QY};function nU(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,u=qY({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),c=KY({isEnabled:n}),f=function(p){u(p),c(p)};return le(T.Fragment,null,n&&le("div",{onClick:eU,css:tU}),t(f))}function rU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oU=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:rU},iU=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:oU,value:"",onChange:function(){}})},sU=iU;function ch(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function aU(){return ch(/^iPhone/i)}function US(){return ch(/^Mac/i)}function lU(){return ch(/^iPad/i)||US()&&navigator.maxTouchPoints>1}function uU(){return aU()||lU()}function cU(){return US()||uU()}var fU=function(t){return t.label},dU=function(t){return t.label},pU=function(t){return t.value},hU=function(t){return!!t.isDisabled},gU={clearIndicator:U7,container:F7,control:tY,dropdownIndicator:X7,group:iY,groupHeading:aY,indicatorsContainer:z7,indicatorSeparator:J7,input:fY,loadingIndicator:Q7,loadingMessage:P7,menu:S7,menuList:A7,menuPortal:M7,multiValue:mY,multiValueLabel:yY,multiValueRemove:bY,noOptionsMessage:N7,option:SY,placeholder:kY,singleValue:NY,valueContainer:L7},mU={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},yU=4,ZS=4,bU=38,vU=ZS*2,xU={baseUnit:ZS,controlHeight:bU,menuGutter:vU},fh={borderRadius:yU,colors:mU,spacing:xU},wU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ES(),captureMenuScroll:!ES(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:YY(),formatGroupLabel:fU,getOptionLabel:dU,getOptionValue:pU,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:hU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!h7(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function JS(e,t,n,r){var o=tE(e,t,n),i=nE(e,t,n),s=eE(e,t),a=xu(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function vu(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return JS(e,s,t,a)}).filter(function(s){return QS(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=JS(e,n,t,r);return QS(e,i)?i:void 0}).filter(y7)}function qS(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,nh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function KS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,nh(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function CU(e,t){return qS(vu(e,t))}function QS(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!oE(e)||!i)&&rE(e,{label:s,value:a,data:o},r)}function _U(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function SU(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var dh=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},eE=function(t,n){return t.getOptionLabel(n)},xu=function(t,n){return t.getOptionValue(n)};function tE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=xu(e,t);return n.some(function(o){return xu(e,o)===r})}function rE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var oE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},EU=1,iE=function(e){e7(n,e);var t=n7(n);function n(r){var o;if(K8(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=cU(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var c=o.props,f=c.onChange,d=c.name;u.name=d,o.ariaOnChange(l,u),f(l,u)},o.setValue=function(l,u,c){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:c})},o.selectOption=function(l){var u=o.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(nh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,c=o.state.selectValue,f=o.getOptionValue(l),d=c.filter(function(g){return o.getOptionValue(g)!==f}),p=bu(u,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(bu(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=bu(l,f,f[0]||null);c&&o.onChange(d,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(l){return dh(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return KS(vu(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return u7.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return eE(o.props,l)},o.getOptionValue=function(l){return xu(o.props,l)},o.getStyles=function(l,u){var c=o.props.unstyled,f=gU[l](u,c);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,u):f},o.getClassNames=function(l,u){var c,f;return(c=(f=o.props.classNames)[l])===null||c===void 0?void 0:c.call(f,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return MY(o.props)},o.buildCategorizedOptions=function(){return vu(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return qS(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:de({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,f=u.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&hu(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var f=Math.abs(c.clientX-o.initialTouchX),d=Math.abs(c.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,c=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),c=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:c>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return oE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,p=u.inputValue,g=u.isClearable,h=u.isDisabled,y=u.menuIsOpen,m=u.onKeyDown,x=u.tabSelectsValue,v=u.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||p)return;o.focusValue("previous");break;case"ArrowRight":if(!c||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;c?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++EU),o.state.selectValue=wS(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=dh(i,s[a])}return o}return Q8(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&SS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(SS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(a[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var u=s.length-1,c=-1;if(s.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l<u&&(c=l+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,u=a.indexOf(s);s||(u=-1),o==="up"?l=u>0?u-1:a.length-1:o==="down"?l=(u+1)%a.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(fh):de(de({},fh),this.props.theme):fh}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return tE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return nE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return rE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=de(de(de({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ue({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},C)):k.createElement(ZY,ue({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ue({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(O,M){var w=O===S,N="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return k.createElement(s,ue({},d,{components:{Container:a,Label:l,Remove:u},isFocused:w,isDisabled:h,key:N,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(L){L.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(m)return null;var I=C[0];return k.createElement(c,ue({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return k.createElement(s,ue({},a,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ue({},s,{innerProps:u,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,u=i.MenuList,c=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,O=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,N=y.menuShouldBlockScroll,R=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(P,H){var J=P.type,W=P.data,X=P.isDisabled,U=P.isSelected,Q=P.label,ne=P.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ce=X?void 0:function(){return o.selectOption(W)},pe="".concat(o.getElementId("option"),"-").concat(H),Ie={id:pe,onClick:ce,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ue({},g,{innerProps:Ie,data:W,isDisabled:X,isSelected:U,key:pe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(P.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var P=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ue({},g,{key:W,data:P,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:R},G=k.createElement(E7,ue({},g,_),function($){var P=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ue({},g,_,{innerRef:P,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(nU,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:N},function(X){return k.createElement(u,ue({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(c,ue({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,u=i.name,c=i.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!a)return k.createElement(sU,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:u,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:u,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,u=i.isFocused,c=i.selectValue,f=this.getFocusableOptions();return k.createElement($Y,ue({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,p=u.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ue({},h,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ue({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ue({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ue({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=wS(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?CU(o,x):[],S=h?KS(vu(o,x),"".concat(d,"-option")):[],E=a?_U(i,x):null,I=SU(i,C),O=dh(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:O,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=u,N=c&&f;return c&&!N&&(w={value:bu(m,x,x[0]||null),options:x,action:"initial-input-focus"},N=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(w=null),de(de(de({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:N})}}]),n}(T.Component);iE.defaultProps=wU;var IU=T.forwardRef(function(e,t){var n=q8(e);return k.createElement(iE,ue({ref:t},n))}),kU=IU;const AU=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=T.useState(""),[a,l]=T.useState(0),u=p=>{s(p.toLowerCase()),l(0)},c=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=c.slice(a*t,(a+1)*t):f=c;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(kU,{options:f,onInputChange:u,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function TU(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const sE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,O,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=N=>{var R,L,A;N=n(parseFloat(N.toString()).toString()),isNaN(N)?(N="<NoValue>",a("")):(((R=i.value_options)==null?void 0:R.min)!==void 0&&N<i.value_options.min&&(N=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&N>i.value_options.max&&(N=i.value_options.max),N=TU(N),a(N.toString()));try{N=t[0](N)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:N,set_default:i.render_options.set_default})},u=N=>{l(N.target.value)};let c=i.connected?t[1](o==null?void 0:o.value):s;c===void 0&&(c=(p=i.value_options)==null?void 0:p.min),c===void 0&&(c=(g=i.value_options)==null?void 0:g.max),c===void 0&&(c=""),c===null&&(c="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"6.25rem"},className:"SliderContainer",children:b.jsxs(N8,{className:"SliderRoot",value:[c===void 0?(E=i.value_options)==null?void 0:E.min:c],min:(I=i.value_options)==null?void 0:I.min,max:(O=i.value_options)==null?void 0:O.max,step:d,disabled:i.connected,onValueCommit:N=>{isNaN(N[0])||l(N[0])},onValueChange:N=>{isNaN(N[0])||a(N[0].toString())},onKeyDown:N=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(N.key)&&N.stopPropagation()},children:[b.jsx(P8,{className:"SliderTrack",children:b.jsx(O8,{className:"SliderRange"})}),b.jsx(R8,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:N=>a(N.target.value),onBlur:u,step:d,onKeyDown:N=>{if(!(N.ctrlKey||N.metaKey)){if(N.key==="ArrowUp"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)+d;l(R);return}if(N.key==="ArrowDown"){N.shiftKey&&(d*=10);let R=(parseFloat(c)||0)-d;l(R);return}!/^[0-9.eE+-]$/.test(N.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(N.key)&&N.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},NU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseFloat}),PU=({iostore:e,inputconverter:t})=>sE({iostore:e,inputconverter:t,parser:parseInt}),OU=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var c;let u=l.target.checked;try{u=t[0](l.target.checked)}catch{}(c=n.worker)==null||c.set_io_value({nid:o.node,ioid:o.id,value:u,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},aE=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const u=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let c=i.connected?t[1](s):a;return c==null&&(c=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:c,onChange:f=>l(f.target.value),onBlur:u,disabled:i.connected})},RU=({iostore:e})=>{var u;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((u=n.value_options)==null?void 0:u.colorspace)||"hex",a=c=>{var d;let f="<NoValue>";c&&(c[s]?f=c[s]():f=c.hex()),c===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(c=>c==="None")),b.jsx(W8,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},MU=e=>e,DU=e=>parseFloat(e),FU=e=>!!e,jU=e=>e==="null"?null:e,LU=e=>e==="nuinputconvertermber"?DU:e==="boolean"?FU:e==="undefined"?jU:MU,wu=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const u=k.useContext(xe),c=({value:y,datatype:m})=>{var C;let v=(n||LU(m))(y);try{v=t[0](y)}catch{}(C=u.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx(AU,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){c({value:"<NoValue>",datatype:"string"});return}c(y)}})},BU={float:NU,int:PU,bool:OU,string:aE,str:aE,color:RU,select:wu,enum:wu,bytes:((e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})})(Jp,"")},zU=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(An),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
|
|
865
|
+
`);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},VU={},nn=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},GU={string:nn(Q_),table:nn(eS),image:nn(q_),svg:nn(K_,""),dict:nn(uu,"{}"),bytes:nn(Jp,"")},$U={},lE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),uE=lE(uu),rn={Inputrenderer:BU,Outputrenderer:VU,HandlePreviewRenderer:$U,DataOverlayRenderer:{},DataPreviewViewRenderer:GU,DataViewRenderer:p8,InLineRenderer:_6,NodeContextExtenders:{},NodeRenderer:{},NodeHooks:{}},HU=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const u in a)if(!l[u]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const u in a)(r||!l[u])&&(l[u]=a[u]);return{...e};default:return e}},cE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=T.useReducer(HU,rn),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return T.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:hh}))}},[t]),b.jsx(An.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:u,extendDataViewRenderMapping:c,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},An=T.createContext({Inputrenderer:rn.Inputrenderer,Outputrenderer:rn.Outputrenderer,HandlePreviewRenderer:rn.HandlePreviewRenderer,DataOverlayRenderer:rn.DataOverlayRenderer,DataPreviewViewRenderer:rn.DataPreviewViewRenderer,DataViewRenderer:rn.DataViewRenderer,InLineRenderer:rn.InLineRenderer,NodeContextExtenders:rn.NodeContextExtenders,NodeRenderer:rn.NodeRenderer,NodeHooks:rn.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),fE=e=>{const t=T.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=T.useContext(An);if(e===void 0)return;const o=t.render_options(),[i]=Ur(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?lE(r[i]):uE:uE},WU=e=>{const n=T.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=T.useContext(An),i=fE(e);let s;if(e){const[a]=Ur(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=nn(cu):s=nn(cu)}return[s,i]},dE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},pE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Ur=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Ur(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},ph=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=T.useState(!1),[s,a]=T.useState(!1),l=k.useContext(xe),u=e.use(),[c,f]=WU(u),d=l.local_state(()=>l.reactflowRef);return b.jsxs(uC,{open:o||s,onOpenChange:a,children:[b.jsx(cC,{asChild:!0,children:b.jsx(Ii,{id:u.id,"data-type":t,...r})}),b.jsx(fC,{container:d,children:b.jsxs(dC,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(JD,{onClick:()=>i(!1)}):b.jsx(ZD,{onClick:()=>i(!0)}),f&&b.jsx(Ao,{title:u.full_id,trigger:b.jsx(Ev,{}),onOpenChange:p=>{p&&u.try_get_full_value&&u.try_get_full_value(),i(p)},children:b.jsx(dE,{Component:f,iostore:e})})]}),c?b.jsx(pE,{Component:c,iostore:e}):`no preview available for "${t}"`]}),b.jsx(C6,{className:"iotooltipcontentarrow"})]})})]})},Cu={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},XU=({iostore:e})=>{var u,c;const n=T.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=T.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},YU=({iostore:e})=>{const n=T.useContext(xe).render_options(),r=e.use(),[o]=Ur(r.type,n.typemap||{}),{Outputrenderer:i}=T.useContext(An),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(ph,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(zU,{iostore:e,typestring:o})})]})},UU=e=>{const t=T.useContext(xe),n=fE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=T.useContext(An),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Ur(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[nn(o[s]),n]:[nn(cu),n]:[nn(cu),n]};function ZU(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let u=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=u+"px";let c=t.getBoundingClientRect();for(;(c.width>a||c.height>l)&&u>o;)u*=i,t.style.fontSize=u+"px",c=t.getBoundingClientRect()}function JU(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:u=null,initial:c=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=hE(o);p===void 0&&o>0&&(p=(f-c)/o);const h=p?1/p:void 0,[y,m]=p?_u(p,s):[void 0,""],[x,v]=h?_u(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?_u(f,s).join(""):f.toString(),O=r&&d!==null?_u(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?hE(M):"?",N=a?`${a}: `:"";if(t!==null){const R=f/t*100,L=` ${I}/${O} [${g} < ${w}, ${E}${u??""}]`;return`${N}${R.toFixed(0)}%${L}`}return`${N}${I}${i} [${g}, ${E}${u??""}]`}function hE(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function _u(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const qU=({state:e,className:t="reacttqdm",...n})=>{const r=T.useRef(null),o=T.useRef(null);T.useEffect(()=>{const s=()=>{!r.current||!o.current||ZU(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:JU(e)})]})})},KU=k.memo(({node_data:e})=>{const t=T.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(KD,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(qD,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(Bi,{fontSize:"inherit"})})]})}),QU=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=UU(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Ao,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(pE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(dE,{Component:o,iostore:e})})})},eZ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(YU,{iostore:e.io[s]},s)),t&&b.jsx(QU,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(XU,{iostore:e.io[s]},s))]})}),gE=k.memo(({node_data:e})=>{const[t,n]=T.useState(e.name);T.useEffect(()=>{n(e.name)},[e]);const r=T.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),tZ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(qU,{state:t,className:"nodeprogress"})},nZ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(tZ,{node_data:e})]})),rZ=e=>{const t=T.useContext(xe),[n,r]=T.useState(!1),o=e.in_trigger(),i=T.useContext(An),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),u=i.NodeHooks[e.node_id];for(const c of u||[])c({nodecontext:l});return T.useEffect(()=>{var c;(c=t.worker)==null||c.call_hooks("node_mounted",e.id)},[t.worker,e.id]),T.useEffect(()=>{let c;return o&&!n?r(!0):n&&(c=setTimeout(()=>r(!1),200)),()=>clearTimeout(c)},[o,n]),{visualTrigger:n,nodecontext:l}},hh=k.createContext(null),oZ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=rZ(t);return b.jsx(hh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(KU,{node_data:t}),b.jsx(gE,{node_data:t}),n?null:b.jsx(eZ,{node_data:t}),b.jsx(nZ,{node_data:t})]})})},iZ=({iostore:e})=>{var u,c;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Ur(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(An),a=o?(u=r.value_options)!=null&&u.options?wu:s[o]:void 0,l=Cu[(i&&((c=n.inputconverter)==null?void 0:c[i]))??""]||Cu[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},sZ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},aZ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(gE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(iZ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(sZ,{iostore:t.io[n]},n))]})]})},lZ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(aZ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},uZ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(e1,{direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(lZ,{})})},cZ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[u]=tc({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(ki,{id:e,path:u,...l})})},fZ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),dZ={default:oZ},pZ={default:cZ},hZ=()=>{const e=Ei(),t=T.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},gZ=()=>{const e=T.useContext(xe),t=fo("Delete"),n=bP(),r=mP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},mZ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:u}=Ei(),c=T.useContext(xe),f=T.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=T.useCallback(()=>{c.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,u]),p=c.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},mE=e=>{const t=T.useContext(xe),n=T.useRef(null);T.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=T.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=T.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f}=t.useReactFlowStore(d6(fZ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(hP,{nodes:a,edges:l,onNodesChange:u,onEdgesChange:c,onConnect:f,nodeTypes:dZ,edgeTypes:pZ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(hZ,{}),b.jsx(gZ,{}),b.jsx(_P,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(GP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(mZ,{onClick:s,...r})]})})},Su=T.createContext(void 0),Zr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=T.useState(!1),u=T.useRef(null),[c,f]=T.useState(null),[d,p]=T.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;T.useImperativeHandle(t,()=>u.current,[]);const x=async()=>{if(!u.current)return;u.current.style.transition="none",u.current.style.position="",u.current.style.top="",u.current.style.left="",u.current.style.width="",u.current.style.height="";const I=u.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),u.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(R=>({...R,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const O=new Promise(R=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),R()},y)}),M=new Promise(R=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),R()},m)}),w=Math.max(g+y,h+m),N=new Promise(R=>{setTimeout(()=>{R()},w)});await Promise.all([O,M,N])},v=async()=>{if(!u.current||!c)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[O,M,w,N]=c,R=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${O}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${N}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([R,L,j]),u.current.style.transition="",p({}),l(!1)},C=async()=>{u.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,O=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:u,className:O,style:M,...s})}else S=b.jsx("div",{ref:u,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(Su.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?ku.createPortal(E,document.body):E});Zr.Trigger=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})},Zr.Expanded=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null},Zr.Collapsed=function({children:e}){const t=T.useContext(Su);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Eu=k.createContext(void 0),Cr=T.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=T.useRef(null);T.useImperativeHandle(t,()=>a.current,[]);const[l,u]=T.useState(!1),c=T.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),u(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),u(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);T.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;u(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Eu.Provider,{value:{isFullScreen:l,toggleFullscreen:c},children:f})});Cr.Trigger=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})},Cr.InFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null},Cr.OutFullScreen=function({children:e}){const t=k.useContext(Eu);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const yZ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=T.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(cE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Zr,{asChild:!0,children:b.jsx(Cr,{asChild:!0,children:b.jsx(Tj,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(Lj,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(mE,{...n}),o&&r.show&&b.jsx(u6,{}),o&&n.showNodeSettings&&b.jsx(uZ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(Cr.OutFullScreen,{children:n.allowExpand&&b.jsxs(Zr.Trigger,{children:[b.jsx(Zr.Expanded,{children:b.jsx(YD,{size:"xl",style:{padding:"4px"}})}),b.jsx(Zr.Collapsed,{children:b.jsx(UD,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(Cr.Trigger,{children:[b.jsx(Cr.OutFullScreen,{children:b.jsx(Ev,{size:"xl",style:{padding:"4px"}})}),b.jsx(Cr.InFullScreen,{children:b.jsx(XD,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},gh={};window.fnrf_zst===void 0&&(window.fnrf_zst=gh);const yE={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},xe=T.createContext(bc(yE)),bE=e=>{let t=oi(e,{...yE,id:cy()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=gh[t.id];n===void 0&&(n=bc(t),gh[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Oc({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DR(r.fnw_url),a=r.worker.on_sync_complete,l=async u=>{const c=await s;u.on_sync_complete=a,await u.update_from_export(c)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kR(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(yZ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},bZ={set_io_value:({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=T.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})}},vZ=e=>(new I0("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(bE,{...e})}));Le.FuncNodes=vZ,Le.FuncNodesContext=xe,Le.FuncNodesReactFlowZustand=bc,Le.FuncNodesWorker=fy,Le.FuncnodesReactFlow=bE,Le.NodeContext=hh,Le.ReactFlowLayer=mE,Le.RenderMappingContext=An,Le.RenderMappingProvider=cE,Le.WebSocketWorker=Oc,Le.deep_update=oi,Le.helperfunctions=bZ,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})});
|