PageSourceSearch

https://bgcsd.org/dist/assets/staffMessageWidget-CbWF7cnU.js

js bgcsd.org collected 2026-09-29 14:27:01 UTC 97,884 bytes, 83 lines download raw bytes

1import{r as u,j as f,R as fe,c as Fn}from"./client-BM4SMm7c.js";import{Q as Mn,a as jn}from"./QueryClientProvider-DKdJarPO.js";import{r as Mt}from"./index-CvdBQeSo.js";import{R as Un,h as qn}from"./index-Dsgd8vKg.js";import{F as K}from"./index-Cvd99TXz.js";import{f as Me,a as Et,b as Bn}from"./index-DQ8APFtF.js";import{g as Vn}from"./_commonjsHelpers-CE1G-McA.js";import{u as Ce}from"./useMutation-DGF_4GXS.js";import{u as $n}from"./useThemeColors-DBnXCWOx.js";var Hn=Object.defineProperty,re=(e,t)=>Hn(e,"name",{value:t,configurable:!0}),jt=!!(typeof window<"u"&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:n=!0}={}){return re(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}re(G,"composeEventHandlers");function Gn(e){if(!jt)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}re(Gn,"getOwnerWindow");function je(e){if(!jt)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}re(je,"getOwnerDocument");function Ut(e,t=!1){const{activeElement:n}=je(e);if(!n?.nodeName)return null;if(qt(n)&&n.contentDocument)return Ut(n.contentDocument.body,t);if(t){const s=n.getAttribute("aria-activedescendant");if(s){const r=je(n).getElementById(s);if(r)return r}}return n}re(Ut,"getActiveElement");function qt(e){return e.tagName==="IFRAME"}re(qt,"isFrame");var Yn=Object.defineProperty,tt=(e,t)=>Yn(e,"name",{value:t,configurable:!0});function Ue(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}tt(Ue,"setRef");function Bt(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Ue(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():Ue(e[r],null)}}}}tt(Bt,"composeRefs");function se(...e){return u.useCallback(Bt(...e),e)}tt(se,"useComposedRefs");var Wn=Object.defineProperty,F=(e,t)=>Wn(e,"name",{value:t,configurable:!0});function zn(e,t){const n=u.createContext(t);n.displayName=e+"Context";const s=F(i=>{const{children:o,...a}=i,c=u.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:c,children:o})},"Provider");s.displayName=e+"Provider";function r(i,o={}){const{optional:a=!1}=o,c=u.useContext(n);if(c)return c;if(t!==void 0)return t;if(!a)throw new Error(`\`${i}\` must be used within \`${e}\``)}return F(r,"useContext"),[s,r]}F(zn,"createContext");function Vt(e,t=[]){let n=[];function s(i,o){const a=u.createContext(o);a.displayName=i+"Context";const c=n.length;n=[...n,o];const p=F(d=>{const{scope:m,children:N,...E}=d,x=m?.[e]?.[c]||a,T=u.useMemo(()=>E,Object.values(E));return f.jsx(x.Provider,{value:T,children:N})},"Provider");p.displayName=i+"Provider";function h(d,m,N={}){const{optional:E=!1}=N,x=m?.[e]?.[c]||a,T=u.useContext(x);if(T)return T;if(o!==void 0)return o;if(!E)throw new Error(`\`${d}\` must be used within \`${i}\``)}return F(h,"useContext"),[p,h]}F(s,"createContext");const r=F(()=>{const i=n.map(o=>u.createContext(o));return F(function(a){const c=a?.[e]||i;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])},"useScope")},"createScope");return r.scopeName=e,[s,$t(r,...t)]}F(Vt,"createContextScope");function $t(...e){const t=e[0];if(e.length===1)return t;const n=F(()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return F(function(i){const o=s.reduce((a,{useScope:c,scopeName:p})=>{const d=c(i)[`__scope${p}`];return{...a,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}F($t,"composeContextScopes");var z=globalThis?.document?u.useLayoutEffect:()=>{},Qn=Object.defineProperty,Xn=(e,t)=>Qn(e,"name",{value:t,configurable:!0}),Jn=fe[" useId ".trim().toString()]||(()=>{}),Zn=0;function ge(e){const[t,n]=u.useState(Jn());return z(()=>{e||n(s=>s??String(Zn++))},[e]),e||(t?`radix-${t}`:"")}Xn(ge,"useId");var Kn=Object.defineProperty,er=(e,t)=>Kn(e,"name",{value:t,configurable:!0}),gt=fe[" useEffectEvent ".trim().toString()],vt=fe[" useInsertionEffect ".trim().toString()];function Ht(e){if(typeof gt=="function")return gt(e);const t=u.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof vt=="function"?vt(()=>{t.current=e}):z(()=>{t.current=e}),u.useMemo(()=>((...n)=>t.current?.(...n)),[])}er(Ht,"useEffectEvent");var tr=Object.defineProperty,pe=(e,t)=>tr(e,"name",{value:t,configurable:!0}),nr=fe[" useInsertionEffect ".trim().toString()]||z;function Gt({prop:e,defaultProp:t,onChange:n=pe(()=>{},"onChange"),caller:s}){const[r,i,o]=Yt({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:r,p=u.useCallback(h=>{if(a){const d=Wt(h)?h(e):h;d!==e&&o.current?.(d)}else i(h)},[a,e,i,o]);return[c,p]}pe(Gt,"useControllableState");function Yt({defaultProp:e,onChange:t}){const[n,s]=u.useState(e),r=u.useRef(n),i=u.useRef(t);return nr(()=>{i.current=t},[t]),u.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,s,i]}pe(Yt,"useUncontrolledState");function Wt(e){return typeof e=="function"}pe(Wt,"isFunction");var yt=Symbol("RADIX:SYNC_STATE");function rr(e,t,n,s){const{prop:r,defaultProp:i,onChange:o,caller:a}=t,c=r!==void 0,p=Ht(o),h=[{...n,state:i}];s&&h.push(s);const[d,m]=u.useReducer((T,S)=>{if(S.type===yt)return{...T,state:S.state};const I=e(T,S);return c&&!Object.is(I.state,T.state)&&p(I.state),I},...h),N=d.state,E=u.useRef(N);u.useEffect(()=>{E.current!==N&&(E.current=N,c||p(N))},[N,E,c]);const x=u.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return u.useEffect(()=>{c&&!Object.is(r,d.state)&&m({type:yt,state:r})},[r,d.state,c]),[x,m]}pe(rr,"useControllableStateReducer");var sr=Object.defineProperty,j=(e,t)=>sr(e,"name",{value:t,configurable:!0});function nt(e){const t=u.forwardRef((n,s)=>{let{children:r,...i}=n,o=null,a=!1;const c=[];qe(r)&&typeof he=="function"&&(r=he(r._payload)),u.Children.forEac
1h(r,m=>{if(Jt(m)){a=!0;const N=m;let E="child"in N.props?N.props.child:N.props.children;qe(E)&&typeof he=="function"&&(E=he(E._payload)),o=or(N,E),c.push(o?.props?.children)}else c.push(m)}),o?o=u.cloneElement(o,void 0,c):!a&&u.Children.count(r)===1&&u.isValidElement(r)&&(o=r);const p=o?Xt(o):void 0,h=se(s,p);if(!o){if(r||r===0)throw new Error(a?lr(e):cr(e));return r}const d=Qt(i,o.props??{});return o.type!==u.Fragment&&(d.ref=s?h:p),u.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}j(nt,"createSlot");var zt=Symbol.for("radix.slottable");function ir(e){const t=j(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=zt,t}j(ir,"createSlottable");var or=j((e,t)=>{if("child"in e.props){const n=e.props.child;return u.isValidElement(n)?u.cloneElement(n,void 0,e.props.children(n.props.children)):null}return u.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Qt(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}j(Qt,"mergeProps");function Xt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}j(Xt,"getElementRef");function Jt(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zt}j(Jt,"isSlottable");var ar=Symbol.for("react.lazy");function qe(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ar&&"_payload"in e&&Zt(e._payload)}j(qe,"isLazyComponent");function Zt(e){return typeof e=="object"&&e!==null&&"then"in e}j(Zt,"isPromiseLike");var cr=j(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),lr=j(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),he=fe[" use ".trim().toString()],ur=Object.defineProperty,dr=(e,t)=>ur(e,"name",{value:t,configurable:!0}),fr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=fr.reduce((e,t)=>{const n=nt(`Primitive.${t}`),s=u.forwardRef((r,i)=>{const{asChild:o,...a}=r,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function Kt(e,t){e&&Mt.flushSync(()=>e.dispatchEvent(t))}dr(Kt,"dispatchDiscreteCustomEvent");var pr=Object.defineProperty,hr=(e,t)=>pr(e,"name",{value:t,configurable:!0});function ne(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>((...n)=>t.current?.(...n)),[])}hr(ne,"useCallbackRef");var mr=Object.defineProperty,P=(e,t)=>mr(e,"name",{value:t,configurable:!0}),Be="dismissableLayer.update",Er="dismissableLayer.pointerDownOutside",gr="dismissableLayer.focusOutside",Nt,en=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),vr=u.forwardRef(P(function(t,n){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:c,onDismiss:p,...h}=t,d=u.useContext(en),[m,N]=u.useState(null),E=m?.ownerDocument??globalThis?.document,[,x]=u.useState({}),T=se(n,N),S=Array.from(d.layers),[I]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=I?S.indexOf(I):-1,D=m?S.indexOf(m):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,b=D>=C,L=u.useRef(!1),q=nn(R=>{o?.(R),c?.(R),R.defaultPrevented||p?.()},{ownerDocument:E,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:L,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:u.useCallback(R=>{if(!(R instanceof Node))return!1;const be=[...d.branches].some(mt=>mt.contains(R));return b&&!be},[d.branches,b])}),Y=rn(R=>{if(r&&L.current)return;const be=R.target;[...d.branches].some(Ln=>Ln.contains(be))||(a?.(R),c?.(R),R.defaultPrevented||p?.())},E),ae=m?D===S.length-1:!1,xe=ne(R=>{R.key==="Escape"&&(i?.(R),!R.defaultPrevented&&p&&(R.preventDefault(),p()))});return u.useEffect(()=>{if(ae)return E.addEventListener("keydown",xe,{capture:!0}),()=>E.removeEventListener("keydown",xe,{capture:!0})},[E,ae,xe]),u.useEffect(()=>{if(m)return s&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Nt=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Ve(),()=>{s&&(d.layersWithOutsidePointerEventsDisabled.delete(m),d.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=Nt))}},[m,E,s,d]),u.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Ve())},[m,d]),u.useEffect(()=>{const R=P(()=>x({}),"handleUpdate");return document.addEventListener(Be,R),()=>document.removeEventListener(Be,R)},[]),f.jsx(ie.div,{...h,ref:T,style:{pointerEvents:O?b?"auto":"none":void 0,...t.style},onFocusCapture:G(t.onFocusCapture,Y.onFocusCapture),onBlurCapture:G(t.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:G(t.onPointerDownCapture,q.onPointerDownCapture)})},"DismissableLayer"));function tn(){const e=u.useContext(en),[t,n]=u.useState(null);return u.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}P(tn,"useDismissableLayerSurface");var yr=P(()=>!0,"IS_TRUE");function nn(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:i,shouldHandlePointerDownOutside:o=yr}=t,a=ne(e),c=u.useRef(!1),p=u.useRef(!1),h=u.useRef(new Map),d=u.useRef(()=>{});return u.useEffect(()=>{function m(){p.current=!1,r.current=!1,h.current.clear()}P(m,"resetOutsideInteraction");function N(){return Array.from(h.current.values()).some(Boolean)}P(N,"isOutsideInteractionIntercepted");function E(C){if(!p.current)return;const D=C.target;D instanceof Node&&[...i].some(b=>
1b.contains(D))||h.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{p.current&&d.current()},0)}P(E,"handleInteractionCapture");function x(C){p.current&&h.current.set(C.type,!1)}P(x,"handleInteractionBubble");const T=P(C=>{if(C.target&&!c.current){let D=function(){n.removeEventListener("click",d.current);const b=N();m(),b||rt(Er,a,O,{discrete:!0})};if(P(D,"handleAndDispatchPointerDownOutsideEvent"),!o(C.target)){n.removeEventListener("click",d.current),m(),c.current=!1;return}const O={originalEvent:C};p.current=!0,r.current=s&&C.button===0,h.current.clear(),!s||C.button!==0?D():(n.removeEventListener("click",d.current),d.current=D,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),m();c.current=!1},"handlePointerDown"),S=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of S)n.addEventListener(C,E,!0),n.addEventListener(C,x);const I=window.setTimeout(()=>{n.addEventListener("pointerdown",T)},0);return()=>{window.clearTimeout(I),n.removeEventListener("pointerdown",T),n.removeEventListener("click",d.current);for(const C of S)n.removeEventListener(C,E,!0),n.removeEventListener(C,x)}},[n,a,s,r,i,o]),{onPointerDownCapture:P(()=>c.current=!0,"onPointerDownCapture")}}P(nn,"usePointerDownOutside");function rn(e,t=globalThis?.document){const n=ne(e),s=u.useRef(!1);return u.useEffect(()=>{const r=P(i=>{i.target&&!s.current&&rt(gr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:P(()=>s.current=!0,"onFocusCapture"),onBlurCapture:P(()=>s.current=!1,"onBlurCapture")}}P(rn,"useFocusOutside");function Ve(){const e=new CustomEvent(Be);document.dispatchEvent(e)}P(Ve,"dispatchUpdate");function rt(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?Kt(r,i):r.dispatchEvent(i)}P(rt,"handleAndDispatchCustomEvent");var Nr=Object.defineProperty,k=(e,t)=>Nr(e,"name",{value:t,configurable:!0}),Se="focusScope.autoFocusOnMount",De="focusScope.autoFocusOnUnmount",_t={bubbles:!1,cancelable:!0},_r=u.forwardRef(k(function(t,n){const{loop:s=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=t,[c,p]=u.useState(null),h=ne(i),d=ne(o),m=u.useRef(null),N=se(n,p),E=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let T=function(D){if(E.paused||!c)return;const O=D.target;c.contains(O)?m.current=O:V(m.current,{select:!0})},S=function(D){if(E.paused||!c)return;const O=D.relatedTarget;O!==null&&(c.contains(O)||V(m.current,{select:!0}))},I=function(D){if(document.activeElement===document.body)for(const b of D)b.removedNodes.length>0&&V(c)};k(T,"handleFocusIn"),k(S,"handleFocusOut"),k(I,"handleMutations"),document.addEventListener("focusin",T),document.addEventListener("focusout",S);const C=new MutationObserver(I);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",S),C.disconnect()}}},[r,c,E.paused]),u.useEffect(()=>{if(c){Tt.add(E);const T=document.activeElement;if(!c.contains(T)){const I=new CustomEvent(Se,_t);c.addEventListener(Se,h),c.dispatchEvent(I),I.defaultPrevented||(sn(un(st(c)),{select:!0}),document.activeElement===T&&V(c))}return()=>{c.removeEventListener(Se,h),setTimeout(()=>{const I=new CustomEvent(De,_t);c.addEventListener(De,d),c.dispatchEvent(I),I.defaultPrevented||V(T??document.body,{select:!0}),c.removeEventListener(De,d),Tt.remove(E)},0)}}},[c,h,d,E]);const x=u.useCallback(T=>{if(!s&&!r||E.paused)return;
1const S=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,I=document.activeElement;if(S&&I){const C=T.currentTarget,[D,O]=on(C);D&&O?!T.shiftKey&&I===O?(T.preventDefault(),s&&V(D,{select:!0})):T.shiftKey&&I===D&&(T.preventDefault(),s&&V(O,{select:!0})):I===C&&T.preventDefault()}},[s,r,E.paused]);return f.jsx(ie.div,{tabIndex:-1,...a,ref:N,onKeyDown:x})},"FocusScope"));function sn(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(V(s,{select:t}),document.activeElement!==n)return}k(sn,"focusFirst");function on(e){const t=st(e),n=$e(t,e),s=$e(t.reverse(),e);return[n,s]}k(on,"getTabbableEdges");function st(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:k(s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}k(st,"getTabbableCandidates");function $e(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const s of e)if(!(n?!s.checkVisibility({checkVisibilityCSS:!0}):an(s,{upTo:t})))return s}k($e,"findVisible");function an(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}k(an,"isHidden");function cn(e){return e instanceof HTMLInputElement&&"select"in e}k(cn,"isSelectableInput");function V(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cn(e)&&t&&e.select()}}k(V,"focus");var Tt=ln();function ln(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=He(e,t),e.unshift(t)},remove(t){e=He(e,t),e[0]?.resume()}}}k(ln,"createFocusScopesStack");function He(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}k(He,"arrayRemove");function un(e){return e.filter(t=>t.tagName!=="A")}k(un,"removeLinks");var Tr=Object.defineProperty,xr=(e,t)=>Tr(e,"name",{value:t,configurable:!0}),br=u.forwardRef(xr(function(t,n){const{container:s,...r}=t,[i,o]=u.useState(!1);z(()=>o(!0),[]);const a=s||i&&globalThis?.document?.body;return a?Mt.createPortal(f.jsx(ie.div,{...r,ref:n}),a):null},"Portal")),Cr=Object.defineProperty,$=(e,t)=>Cr(e,"name",{value:t,configurable:!0});function dn(e,t){return u.useReducer((n,s)=>t[n][s]??n,e)}$(dn,"useStateMachine");var it=$(e=>{const{present:t,children:n}=e,s=fn(t),r=typeof n=="function"?n({present:s.isPresent}):u.Children.only(n),i=pn(s.ref,hn(r));return typeof n=="function"||s.isPresent?u.cloneElement(r,{ref:i}):null},"Presence");function fn(e){const[t,n]=u.useState(),s=u.useRef(null),r=u.useRef(e),i=u.useRef("none"),o=u.useRef(void 0),a=e?"mounted":"unmounted",[c,p]=dn(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{c==="mounted"?(i.current=o.current??ee(s.current),o.current=void 0):i.current="none"},[c]),z(()=>{const h=s.current,d=r.current;if(d!==e){const N=i.current,E=ee(h);e?(o.current=E,p("MOUNT")):E==="none"||h?.display==="none"?p("UNMOUNT"):p(d&&N!==E?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,p]),z(()=>{if(t){let h;const d=t.ownerDocument.defaultView??window,m=$(E=>{const T=ee(s.current).includes(CSS.escape(E.animationName));if(E.target===t&&T&&(p("ANIMATION_END"),!r.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},"handleAnimationEnd"),N=$(E=>{E.target===t&&(i.current=ee(s.current))},"handleAnimationStart");return t.addEventListener("animationstart",N),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(h),t.removeEventListener("animationstart",N),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:u.useCallback(h=>{if(h){const d=getComputedStyle(h);s.current=d,o.current=ee(d)}else s.current=null;n(h)},[])}}$(fn,"usePresence");function Ge(e,t){if(typeof e=="function")return e(t);
1e!=null&&(e.current=t)}$(Ge,"setRef");function pn(...e){const t=u.useRef(e);return t.current=e,u.useCallback(n=>{const s=t.current;let r=!1;const i=s.map(o=>{const a=Ge(o,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<i.length;o++){const a=i[o];typeof a=="function"?a():Ge(s[o],null)}}},[])}$(pn,"useStableComposedRefs");function ee(e){return e?.animationName||"none"}$(ee,"getAnimationName");function hn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}$(hn,"getElementRef");var Sr=Object.defineProperty,ot=(e,t)=>Sr(e,"name",{value:t,configurable:!0}),me=0,X=null;function Dr(e){return at(),e.children}ot(Dr,"FocusGuards");function at(){u.useEffect(()=>{X||(X={start:Ye(),end:Ye()});const{start:e,end:t}=X;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),me++,()=>{me===1&&(X?.start.remove(),X?.end.remove(),X=null),me=Math.max(0,me-1)}},[])}ot(at,"useFocusGuards");function Ye(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ot(Ye,"createFocusGuard");var Ir=Object.defineProperty,U=(e,t)=>Ir(e,"name",{value:t,configurable:!0}),ct="Dialog",[mn,ro]=Vt(ct),[Or,H]=mn(ct),Ar=U(e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=u.useRef(null),c=u.useRef(null),[p,h]=Gt({prop:s,defaultProp:r??!1,onChange:i,caller:ct}),[d,m]=u.useState(0),[N,E]=u.useState(0);return f.jsx(Or,{scope:t,triggerRef:a,contentRef:c,contentId:ge(),titleId:ge(),descriptionId:ge(),titlePresent:d>0,descriptionPresent:N>0,setTitleCount:m,setDescriptionCount:E,open:p,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(x=>!x),[h]),modal:o,children:n})},"Dialog"),En="DialogPortal",[Rr,gn]=mn(En,{forceMount:void 0}),wr=U(e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=H(En,t);return f.jsx(Rr,{scope:t,forceMount:n,children:u.Children.map(s,o=>f.jsx(it,{present:n||i.open,children:f.jsx(br,{asChild:!0,container:r,children:o})}))})},"DialogPortal"),We="DialogOverlay",Pr=u.forwardRef(U(function(t,n){const s=gn(We,t.__scopeDialog),{forceMount:r=s.forceMount,...i}=t,o=H(We,t.__scopeDialog);return o.modal?f.jsx(it,{present:r||o.open,children:f.jsx(Lr,{...i,ref:n})}):null},"DialogOverlay")),kr=nt("DialogOverlay.RemoveScroll"),Lr=u.forwardRef(U(function(t,n){const{__scopeDialog:s,...r}=t,i=H(We,s),o=tn(),a=se(n,o);return f.jsx(Un,{as:kr,allowPinchZoom:!0,shards:[i.contentRef],children:f.jsx(ie.div,{"data-state":lt(i.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),le="DialogContent",Fr=u.forwardRef(U(function(t,n){const s=gn(le,t.__scopeDialog),{forceMount:r=s.forceMount,...i}=t,o=H(le,t.__scopeDialog);return f.jsx(it,{present:r||o.open,children:o.modal?f.jsx(Mr,{...i,ref:n}):f.jsx(jr,{...i,ref:n})})},"DialogContent")),Mr=u.forwardRef(U(function(t,n){const s=H(le,t.__scopeDialog),r=u.useRef(null),i=se(n,s.contentRef,r);return u.useEffect(()=>{const o=r.current;if(o)return qn(o)},[]),f.jsx(vn,{...t,ref:i,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:G(t.onCloseAutoFocus,o=>{o.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:G(t.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&o.preventDefault()}),onFocusOutside:G(t.onFocusOutside,o=>o.preventDefault())})},"DialogContentModal")),jr=u.forwardRef(U(function(t,n){const s=H(le,t.__scopeDialog),r=u.useRef(!1),i=u.useRef(!1);return f.jsx(vn,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{t.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||s.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{t.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;s.triggerRef.current?.contains(a)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})},"DialogContentNonModal")),vn=u.forwardRef(U(function(t,n){const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=t,c=H(le,s);return at(),f.jsx(f.Fragment,{children:f.jsx(_r,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:f.jsx(vr,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":lt(c.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},"DialogContentImpl")),Ur="DialogTitle",qr=u.forwardRef(U(function(t,n){const{__scopeDialog:s,...r}=t,i=H(Ur,s),{setTitleCount:o}=i;return z(()=>(o(a=>a+1),()=>o(a=>a-1)),[o]),f.jsx(ie.h2,{id:i.titleId,...r,ref:n})},"DialogTitle")),Br="DialogClose",Vr=u.forwardRef(U(function(t,n){const{__scopeDialog:s,...r}=t,i=H(Br,s);return f.jsx(ie.button,{type:"button",...r,ref:n,onClick:G(t.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function lt(e){return e?"open":"closed"}U(lt,"getState");const $r="_overlay_1fm8w_7",Hr="_content_1fm8w_15",Gr="_header_1fm8w_35",Yr="_title_1fm8w_44",Wr="_closeButton_1fm8w_52",ue={overlay:$r,content:Hr,header:Gr,title:Yr,closeButton:Wr},zr=Ar,yn=u.forwardRef(({children:e,...t},n)=>f.jsxs(wr,{children:[f.jsx(Pr,{className:ue.overlay}),f.jsx(Fr,{ref:n,className:ue.content,...t,children:e})]}));yn.displayName="DialogContent";const Qr=({children:e,onClose:t,...n})=>f.jsxs("div",{className:ue.header,...n,children:[e,t&&f.jsx(Vr,{asChild:!0,children:f.jsx("button",{className:ue.closeButton,onClick:t,"aria-label":"Close",children:f.jsx(K,{icon:Me,"aria-hidden":"true"})})})]}),Xr=({children:e,...t})=>f.jsx(qr,{className:ue.title,...t,children:e});var Ie={exports:{}};var xt;function Jr(){return xt||(xt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(i=r(i,s(a)))}return i}function s(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var a in i)t.call(i,a)&&i[a]&&(o=r(o,a));return o}function r(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n}
1)()})(Ie)),Ie.exports}var Zr=Jr();const B=Vn(Zr);class W extends Error{response;request;constructor(t,n){const s=`${W.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(s),Object.setPrototypeOf(this,W.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,W)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const bt=e=>e.toUpperCase(),Oe=e=>typeof e=="function"?e():e,Nn=(e,t)=>e.map((n,s)=>[n,t[s]]),J=e=>{let t={};return e instanceof Headers?t=Kr(e):Array.isArray(e)?e.forEach(([n,s])=>{n&&s!==void 0&&(t[n]=s)}):e&&(t=e),t},Kr=e=>{const t={};return e.forEach((n,s)=>{t[s]=n}),t},es=e=>{try{const t=e();return ts(t)?t.catch(n=>Ct(n)):t}catch(t){return Ct(t)}},Ct=e=>e instanceof Error?e:new Error(String(e)),ts=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",ut=e=>{throw new Error(`Unhandled case: ${String(e)}`)},ve=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ns=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},rs=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};function ye(e,t){if(!!!e)throw new Error(t)}function ss(e){return typeof e=="object"&&e!==null}function is(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const os=/\r\n|[\n\r]/g;function ze(e,t){let n=0,s=1;for(const r of e.body.matchAll(os)){if(typeof r.index=="number"||is(!1),r.index>=t)break;n=r.index+r[0].length,s+=1}return{line:s,column:t+1-n}}function as(e){return _n(e.source,ze(e.source,e.start))}function _n(e,t){const n=e.locationOffset.column-1,s="".padStart(n)+e.body,r=t.line-1,i=e.locationOffset.line-1,o=t.line+i,a=t.line===1?n:0,c=t.column+a,p=`${e.name}:${o}:${c}
2`,h=s.split(/\r\n|[\n\r]/g),d=h[r];if(d.length>120){const m=Math.floor(c/80),N=c%80,E=[];for(let x=0;x<d.length;x+=80)E.push(d.slice(x,x+80));return p+St([[`${o} |`,E[0]],...E.slice(1,m+1).map(x=>["|",x]),["|","^".padStart(N)],["|",E[m+1]]])}return p+St([[`${o-1} |`,h[r-1]],[`${o} |`,d],["|","^".padStart(c)],[`${o+1} |`,h[r+1]]])}function St(e){const t=e.filter(([s,r])=>r!==void 0),n=Math.max(...t.map(([s])=>s.length));return t.map(([s,r])=>s.padStart(n)+(r?" "+r:"")).join(`
3`)}function cs(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class dt extends Error{constructor(t,...n){var s,r,i;const{nodes:o,source:a,positions:c,path:p,originalError:h,extensions:d}=cs(n);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=h??void 0,this.nodes=Dt(Array.isArray(o)?o:o?[o]:void 0);const m=Dt((s=this.nodes)===null||s===void 0?void 0:s.map(E=>E.loc).filter(E=>E!=null));this.source=a??(m==null||(r=m[0])===null||r===void 0?void 0:r.source),this.positions=c??m?.map(E=>E.start),this.locations=c&&a?c.map(E=>ze(a,E)):m?.map(E=>ze(E.source,E.start));const N=ss(h?.extensions)?h?.extensions:void 0;this.extensions=(i=d??N)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,dt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
4
5`+as(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
6
7`+_n(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Dt(e){return e===void 0||e.length===0?void 0:e}function w(e,t,n){return new dt(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ls{constructor(t,n,s){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=s}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Tn{constructor(t,n,s,r,i,o){this.kind=t,this.start=n,this.end=s,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const xn={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
vendor: 5,118 bytes, line 7
7Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},us=new Set(Object.keys(xn));function It(e){const t=e?.kind;return typeof t=="string"&&us.has(t)}var te;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(te||(te={}));var Qe;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(Qe||(Qe={}));var y;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(y||(y={}));function Xe(e){return e===9||e===32}function de(e){return e>=48&&e<=57}function bn(e){return e>=97&&e<=122||e>=65&&e<=90}function Cn(e){return bn(e)||e===95}function ds(e){return bn(e)||de(e)||e===95}function fs(e){var t;let n=Number.MAX_SAFE_INTEGER,s=null,r=-1;for(let o=0;o<e.length;++o){var i;const a=e[o],c=ps(a);c!==a.length&&(s=(i=s)!==null&&i!==void 0?i:o,r=o,o!==0&&c<n&&(n=c))}return e.map((o,a)=>a===0?o:o.slice(n)).slice((t=s)!==null&&t!==void 0?t:0,r+1)}function ps(e){let t=0;for(;t<e.length&&Xe(e.charCodeAt(t));)++t;return t}function hs(e,t){const n=e.replace(/"""/g,'\\"""'),s=n.split(/\r\n|[\n\r]/g),r=s.length===1,i=s.length>1&&s.slice(1).every(N=>N.length===0||Xe(N.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,c=e.endsWith("\\"),p=a||c,h=!r||e.length>70||p||i||o;let d="";const m=r&&Xe(e.charCodeAt(0));
vendor: 10,287 bytes, lines 7-22
7return(h&&!m||i)&&(d+=`
8`),d+=n,(h||p)&&(d+=`
9`),'"""'+d+'"""'}var l;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(l||(l={}));class ms{constructor(t){const n=new Tn(l.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==l.EOF)do if(t.next)t=t.next;else{const n=gs(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===l.COMMENT);return t}}function Es(e){return e===l.BANG||e===l.DOLLAR||e===l.AMP||e===l.PAREN_L||e===l.PAREN_R||e===l.DOT||e===l.SPREAD||e===l.COLON||e===l.EQUALS||e===l.AT||e===l.BRACKET_L||e===l.BRACKET_R||e===l.BRACE_L||e===l.PIPE||e===l.BRACE_R}function oe(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _e(e,t){return Sn(e.charCodeAt(t))&&Dn(e.charCodeAt(t+1))}function Sn(e){return e>=55296&&e<=56319}function Dn(e){return e>=56320&&e<=57343}function Q(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return l.EOF;if(n>=32&&n<=126){const s=String.fromCodePoint(n);return s==='"'?`'"'`:`"${s}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function A(e,t,n,s,r){const i=e.line,o=1+n-e.lineStart;return new Tn(t,n,s,i,o,r)}function gs(e,t){const n=e.source.body,s=n.length;let r=t;for(;r<s;){const i=n.charCodeAt(r);switch(i){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return vs(e,r);case 33:return A(e,l.BANG,r,r+1);case 36:return A(e,l.DOLLAR,r,r+1);case 38:return A(e,l.AMP,r,r+1);case 40:return A(e,l.PAREN_L,r,r+1);case 41:return A(e,l.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return A(e,l.SPREAD,r,r+3);break;case 58:return A(e,l.COLON,r,r+1);case 61:return A(e,l.EQUALS,r,r+1);case 64:return A(e,l.AT,r,r+1);case 91:return A(e,l.BRACKET_L,r,r+1);case 93:return A(e,l.BRACKET_R,r,r+1);case 123:return A(e,l.BRACE_L,r,r+1);case 124:return A(e,l.PIPE,r,r+1);case 125:return A(e,l.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?bs(e,r):Ns(e,r)}if(de(i)||i===45)return ys(e,r,i);if(Cn(i))return Cs(e,r);throw w(e.source,r,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:oe(i)||_e(n,r)?`Unexpected character: ${Q(e,r)}.`:`Invalid character: ${Q(e,r)}.`)}return A(e,l.EOF,s,s)}function vs(e,t){const n=e.source.body,s=n.length;let r=t+1;for(;r<s;){const i=n.charCodeAt(r);if(i===10||i===13)break;if(oe(i))++r;else if(_e(n,r))r+=2;else break}return A(e,l.COMMENT,t,r,n.slice(t+1,r))}function ys(e,t,n){const s=e.source.body;let r=t,i=n,o=!1;if(i===45&&(i=s.charCodeAt(++r)),i===48){if(i=s.charCodeAt(++r),de(i))throw w(e.source,r,`Invalid number, unexpected digit after 0: ${Q(e,r)}.`)}else r=Ae(e,r,i),i=s.charCodeAt(r);if(i===46&&(o=!0,i=s.charCodeAt(++r),r=Ae(e,r,i),i=s.charCodeAt(r)),(i===69||i===101)&&(o=!0,i=s.charCodeAt(++r),(i===43||i===45)&&(i=s.charCodeAt(++r)),r=Ae(e,r,i),i=s.charCodeAt(r)),i===46||Cn(i))throw w(e.source,r,`Invalid number, expected digit but got: ${Q(e,r)}.`);return A(e,o?l.FLOAT:l.INT,t,r,s.slice(t,r))}function Ae(e,t,n){if(!de(n))throw w(e.source,t,`Invalid number, expected digit but got: ${Q(e,t)}.`);const s=e.source.body;let r=t+1;for(;de(s.charCodeAt(r));)++r;return r}function Ns(e,t){const n=e.source.body,s=n.length;let r=t+1,i=r,o="";for(;r<s;){const a=n.charCodeAt(r);if(a===34)return o+=n.slice(i,r),A(e,l.STRING,t,r+1,o);if(a===92){o+=n.slice(i,r);const c=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?_s(e,r):Ts(e,r):xs(e,r);o+=c.value,r+=c.size,i=r;continue}if(a===10||a===13)break;if(oe(a))++r;else if(_e(n,r))r+=2;else throw w(e.source,r,`Invalid character within String: ${Q(e,r)}.`)}throw w(e.source,r,"Unterminated string.")}function _s(e,t){const n=e.source.body;let s=0,r=3;for(;r<12;){const i=n.charCodeAt(t+r++);if(i===125){if(r<5||!oe(s))break;return{value:String.fromCodePoint(s),size:r}}if(s=s<<4|ce(i),s<0)break}throw w(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function Ts(e,t){const n=e.source.body,s=Ot(n,t+2);if(oe(s))return{value:String.fromCodePoint(s),size:6};if(Sn(s)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const r=Ot(n,t+8);if(Dn(r))return{value:String.fromCodePoint(s,r),size:12}}throw w(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Ot(e,t){return ce(e.charCodeAt(t))<<12|ce(e.charCodeAt(t+1))<<8|ce(e.charCodeAt(t+2))<<4|ce(e.charCodeAt(t+3))}function ce(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function xs(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
10`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw w(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function bs(e,t){const n=e.source.body,s=n.length;let r=e.lineStart,i=t+3,o=i,a="";const c=[];for(;i<s;){const p=n.charCodeAt(i);if(p===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){a+=n.slice(o,i),c.push(a);const h=A(e,l.BLOCK_STRING,t,i+3,fs(c).join(`
11`));return e.line+=c.length-1,e.lineStart=r,h}if(p===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){a+=n.slice(o,i),o=i+1,i+=4;continue}if(p===10||p===13){a+=n.slice(o,i),c.push(a),p===13&&n.charCodeAt(i+1)===10?i+=2:++i,a="",o=i,r=i;continue}if(oe(p))++i;else if(_e(n,i))i+=2;else throw w(e.source,i,`Invalid character within String: ${Q(e,i)}.`)}throw w(e.source,i,"Unterminated string.")}function Cs(e,t){const n=e.source.body,s=n.length;let r=t+1;for(;r<s;){const i=n.charCodeAt(r);if(ds(i))++r;else break}return A(e,l.NAME,t,r,n.slice(t,r))}const Ss=10,In=2;function ft(e){return Te(e,[])}function Te(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ds(e,t);default:return String(e)}}function Ds(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(Is(e)){const s=e.toJSON();if(s!==e)return typeof s=="string"?s:Te(s,n)}else if(Array.isArray(e))return As(e,n);return Os(e,n)}function Is(e){return typeof e.toJSON=="function"}function Os(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>In?"["+Rs(e)+"]":"{ "+n.map(([r,i])=>r+": "+Te(i,t)).join(", ")+" }"}function As(e,t){if(e.length===0)return"[]";if(t.length>In)return"[Array]";const n=Math.min(Ss,e.length),s=e.length-n,r=[];for(let i=0;i<n;++i)r.push(Te(e[i],t));return s===1?r.push("... 1 more item"):s>1&&r.push(`... ${s} more items`),"["+r.join(", ")+"]"}function Rs(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const ws=globalThis.process&&!0,Ps=ws?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var s;const r=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(s=t.constructor)===null||s===void 0?void 0:s.name;if(r===i){const o=ft(t);throw new Error(`Cannot use ${r} "${o}" from another module or realm.
12
13Ensure that there is only one instance of "graphql" in the node_modules
14directory. If different versions of "graphql" are the dependencies of other
15relied on modules, use "resolutions" to ensure only one version is installed.
16
17https://yarnpkg.com/en/docs/selective-version-resolutions
18
19Duplicate "graphql" modules cannot be used at the same time since different
20versions may have different capabilities and behavior. The data from one
21version used in the function from another could produce confusing and
22spurious results.`)}}return!1};class On{constructor(t,n="GraphQL request",s={line:1,column:1}){typeof t=="string"||ye(!1,`Body must be a string. Received: ${ft(t)}.`),this.body=t,this.name=n,this.locationOffset=s,this.locationOffset.line>0||ye(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ye(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ks(e){return Ps(e,On)}function Ls(e,t){const n=new Fs(e,t),s=n.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:n.tokenCount}),s}class Fs{constructor(t,n={}){const{lexer:s,...r}=n;if(s)this._lexer=s;else{const i=ks(t)?t:new On(t);this._lexer=new ms(i)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(l.NAME);return this.node(t,{kind:y.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.DOCUMENT,definitions:this.many(l.SOF,this.parseDefinition,l.EOF)})}parseDefinition(){if(this.peek(l.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===l.BRACE_L)throw w(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===l.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw w(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
22ort descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(l.BRACE_L))return this.node(t,{kind:y.OPERATION_DEFINITION,operation:te.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseDescription(),s=this.parseOperationType();let r;return this.peek(l.NAME)&&(r=this.parseName()),this.node(t,{kind:y.OPERATION_DEFINITION,operation:s,description:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(l.NAME);switch(t.value){case"query":return te.QUERY;case"mutation":return te.MUTATION;case"subscription":return te.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(l.PAREN_L,this.parseVariableDefinition,l.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(l.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(l.DOLLAR),this.node(t,{kind:y.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.SELECTION_SET,selections:this.many(l.BRACE_L,this.parseSelection,l.BRACE_R)})}parseSelection(){return this.peek(l.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let s,r;return this.expectOptionalToken(l.COLON)?(s=n,r=this.parseName()):r=n,this.node(t,{kind:y.FIELD,alias:s,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.PAREN_L,n,l.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,s=this.parseName();return this.expectToken(l.COLON),this.node(n,{kind:y.ARGUMENT,name:s,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(l.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(l.NAME)?this.node(t,{kind:y.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:y.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:y.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:y.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case l.BRACKET_L:return this.parseList(t);case l.BRACE_L:return this.parseObject(t);case l.INT:return this.advanceLexer(),this.node(n,{kind:y.INT,value:n.value});case l.FLOAT:return this.advanceLexer(),this.node(n,{kind:y.FLOAT,value:n.value});case l.STRING:case l.BLOCK_STRING:return this.parseStringLiteral();case l.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:y.BOOLEAN,value:!0});case"false":return this.node(n,{kind:y.BOOLEAN,value:!1});case"null":return this.node(n,{kind:y.NULL});default:return this.node(n,{kind:y.ENUM,value:n.value})}case l.DOLLAR:if(t)if(this.expectToken(l.DOLLAR),this._lexer.token.kind===l.NAME){const s=this._lexer.token.value;throw w(this._lexer.source,n.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:y.STRING,value:t.value,block:t.kind===l.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:y.LIST,values:this.any(l.BRACKET_L,n,l.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:y.OBJECT,fields:this.any(l.BRACE_L,n,l.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,s=this.parseName();return this.expectToken(l.COLON),this.node(n,{kind:y.OBJECT_FIELD,name:s,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(l.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(l.AT),this.node(n,{kind:y.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(l.BRACKET_L)){const s=this.parseTypeReference();this.expectToken(l.BRACKET_R),n=this.node(t,{kind:y.LIST_TYPE,type:s})}else n=this.parseNamedType();return this.expectOptionalToken(l.BANG)?this.node(t,{kind:y.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:y.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.STRING)||this.peek(l.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const s=this.parseConstDirectives(),r=this.many(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);return this.node(t,{kind:y.SCHEMA_DEFINITION,description:n,directives:s,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(l.COLON);const s=this.parseNamedType();
vendor: 12,230 bytes, line 22
22return this.node(t,{kind:y.OPERATION_TYPE_DEFINITION,operation:n,type:s})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const s=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:y.SCALAR_TYPE_DEFINITION,description:n,name:s,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const s=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:y.OBJECT_TYPE_DEFINITION,description:n,name:s,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.BRACE_L,this.parseFieldDefinition,l.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseName(),r=this.parseArgumentDefs();this.expectToken(l.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:y.FIELD_DEFINITION,description:n,name:s,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(l.PAREN_L,this.parseInputValueDef,l.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseName();this.expectToken(l.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(l.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(t,{kind:y.INPUT_VALUE_DEFINITION,description:n,name:s,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const s=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:y.INTERFACE_TYPE_DEFINITION,description:n,name:s,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const s=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:y.UNION_TYPE_DEFINITION,description:n,name:s,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(l.EQUALS)?this.delimitedMany(l.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const s=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:y.ENUM_TYPE_DEFINITION,description:n,name:s,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(l.BRACE_L,this.parseEnumValueDefinition,l.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:y.ENUM_VALUE_DEFINITION,description:n,name:s,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw w(this._lexer.source,this._lexer.token.start,`${Ee(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const s=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:y.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:s,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(l.BRACE_L,this.parseInputValueDef,l.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===l.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),s=this.optionalMany(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);if(n.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:y.SCHEMA_EXTENSION,directives:n,operationTypes:s})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:y.SCALAR_TYPE_EXTENSION,name:n,directives:s})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(s.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:y.OBJECT_TYPE_EXTENSION,name:n,interfaces:s,directives:r,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(s.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:y.INTERFACE_TYPE_EXTENSION,name:n,interfaces:s,directives:r,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),s=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(s.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:y.UNION_TYPE_EXTENSION,name:n,directives:s,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),s=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(s.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:y.ENUM_TYPE_EXTENSION,name:n,directives:s,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),s=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(s.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:y.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:s,fields:r})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(l.AT);const n=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:y.DIRECTIVE_EXTENSION,name:n,directives:s})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.AT);const s=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:y.DIRECTIVE_DEFINITION,description:n,name:s,arguments:r,directives:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(l.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Qe,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,n=this.expectOptionalToken(l.AT),s=this.parseName();let r;!n&&this.expectOptionalToken(l.DOT)&&(r=this.parseName());let i;return(n||r)&&this.expectOptionalToken(l.PAREN_L)&&(i=this.parseName(),this.expectToken(l.COLON),this.expectToken(l.PAREN_R)),n?i?this.node(t,{kind:y.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:i}):this.node(t,{kind:y.DIRECTIVE_COORDINATE,name:s}):r?i?this.node(t,{kind:y.ARGUMENT_COORDINATE,name:s,fieldName:r,argumentName:i}):this.node(t,{kind:y.MEMBER_COORDINATE,name:s,memberName:r}):this.node(t,{kind:y.TYPE_COORDINATE,name:s})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new ls(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw w(this._lexer.source,n.start,`Expected ${An(t)}, found ${Ee(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===l.NAME&&n.value===t)this.advanceLexer();else throw w(this._lexer.source,n.start,`Expected "${t}", found ${Ee(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===l.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return w(this._lexer.source,n.start,`Unexpected ${Ee(n)}.`)}any(t,n,s){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(s);)r.push(n.call(this));return r}optionalMany(t,n,s){if(this.expectOptionalToken(t)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(s));return r}return[]}many(t,n,s){this.expectToken(t);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(s));return r}delimitedMany(t,n){this.expectOptionalToken(t);const s=[];do s.push(n.call(this));while(this.expectOptionalToken(t));return s}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==l.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw w(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Ee(e){const t=e.value;return An(e.kind)+(t!=null?` "${t}"`:"")}function An(e){return Es(e)?`"${e}"`:e}function Ms(e){return`"${e.replace(js,Us)}"`}const js=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Us(e){return qs[e.charCodeAt(0)]}const qs=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Bs=Object.freeze({});function Vs(e,t,n=xn){const s=new Map;for(const S of Object.values(y))s.set(S,$s(t,S));let r,i=Array.isArray(e),o=[e],a=-1,c=[],p=e,h,d;const m=[],N=[];do{a++;const S=a===o.length,I=S&&c.length!==0;if(S){if(h=N.length===0?void 0:m[m.length-1],p=d,d=N.pop(),I)if(i){p=p.slice();let D=0;for(const[O,b]of c){const L=O-D;b===null?(p.splice(L,1),D++):p[L]=b}}else{p={...p};for(const[D,O]of c)p[D]=O}a=r.index,o=r.keys,c=r.edits,i=r.inArray,r=r.prev}else if(d){if(h=i?a:o[a],p=d[h],p==null)continue;m.push(h)}let C;if(!Array.isArray(p)){var E,x;It(p)||ye(!1,`Invalid AST Node: ${ft(p)}.`);const D=S?(E=s.get(p.kind))===null||E===void 0?void 0:E.leave:(x=s.get(p.kind))===null||x===void 0?void 0:x.enter;if(C=D?.call(t,p,h,d,m,N),C===Bs)break;if(C===!1){if(!S){m.pop();continue}}else if(C!==void 0&&(c.push([h,C]),!S))if(It(C))p=C;else{m.pop();continue}}if(C===void 0&&I&&c.push([h,p]),S)m.pop();else{var T;r={inArray:i,index:a,keys:o,edits:c,prev:r},i=Array.isArray(p),o=i?p:(T=n[p.kind])!==null&&T!==void 0?T:[],a=-1,c=[],d&&N.push(d),d=p}}while(r!==void 0);return c.length!==0?c[c.length-1][1]:e}function $s(e,t){const n=e[t];
22return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Hs(e){return Vs(e,Ys)}const Gs=80,Ys={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>g(e.definitions,`
23
24`)},OperationDefinition:{leave(e){const t=Re(e.variableDefinitions)?_(`(
25`,g(e.variableDefinitions,`
26`),`
27)`):_("(",g(e.variableDefinitions,", "),")"),n=_("",e.description,`
28`)+g([e.operation,g([e.name,t]),g(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:s,description:r})=>_("",r,`
29`)+e+": "+t+_(" = ",n)+_(" ",g(s," "))},SelectionSet:{leave:({selections:e})=>M(e)},Field:{leave({alias:e,name:t,arguments:n,directives:s,selectionSet:r}){const i=_("",e,": ")+t;let o=i+_("(",g(n,", "),")");return o.length>Gs&&(o=i+_(`(
30`,Ne(g(n,`
31`)),`
32)`)),g([o,g(s," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+_(" ",g(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>g(["...",_("on ",e),g(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:s,selectionSet:r,description:i})=>_("",i,`
33`)+`fragment ${e}${_("(",g(n,", "),")")} on ${t} ${_("",g(s," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?hs(e):Ms(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+g(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+g(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+_("(",g(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>_("",e,`
34`)+g(["schema",g(t," "),M(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>_("",e,`
35`)+g(["scalar",t,g(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:s,fields:r})=>_("",e,`
36`)+g(["type",t,_("implements ",g(n," & ")),g(s," "),M(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:s,directives:r})=>_("",e,`
37`)+t+(Re(n)?_(`(
38`,Ne(g(n,`
39`)),`
40)`):_("(",g(n,", "),")"))+": "+s+_(" ",g(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:s,directives:r})=>_("",e,`
41`)+g([t+": "+n,_("= ",s),g(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:s,fields:r})=>_("",e,`
42`)+g(["interface",t,_("implements ",g(n," & ")),g(s," "),M(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:s})=>_("",e,`
43`)+g(["union",t,g(n," "),_("= ",g(s," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:s})=>_("",e,`
44`)+g(["enum",t,g(n," "),M(s)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>_("",e,`
45`)+g([t,g(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:s})=>_("",e,`
46`)+g(["input",t,g(n," "),M(s)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:s,repeatable:r,locations:i})=>_("",e,`
47`)+"directive @"+t+(Re(n)?_(`(
48`,Ne(g(n,`
49`)),`
50)`):_("(",g(n,", "),")"))+_(" ",g(s," "))+(r?" repeatable":"")+" on "+g(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>g(["extend schema",g(e," "),M(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>g(["extend scalar",e,g(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:s})=>g(["extend type",e,_("implements ",g(t," & ")),g(n," "),M(s)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:s})=>g(["extend interface",e,_("implements ",g(t," & ")),g(n," "),M(s)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>g(["extend union",e,g(t," "),_("= ",g(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>g(["extend enum",e,g(t," "),M(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>g(["extend input",e,g(t," "),M(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>g(["extend directive @"+e,g(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>g([e,_(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>g([e,_(".",t),_("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>g(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>g(["@",e,_("(",t,":)")])}};function g(e,t=""){var n;return(n=e?.filter(s=>s).join(t))!==null&&n!==void 0?n:""}function M(e){return _(`{
51`,Ne(g(e,`
52`)),`
53}`)}function _(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Ne(e){return _("  ",e.replace(/\n/g,`
54  `))}function Re(e){var t;return(t=e?.some(n=>n.includes(`
55`)))!==null&&t!==void 0?t:!1}const At="Accept",Je="Content-Type",Ze="application/json",Rn="application/graphql-response+json",Rt=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Ws=e=>{const t=e.toLowerCase();return t.includes(Rn)||t.includes(Ze)},wt=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Pt)};if(ve(e))return{_tag:"Single",executionResult:Pt(e)};throw new Error(`Invalid execution result: result is not object or array. 
56Got:
57${String(e)}`)}catch(t){return t}},Pt=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,s;if("errors"in e){if(!ve(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!ve(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!ve(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");s=e.extensions}return{data:n,errors:t,extensions:s}},zs=e=>e._tag==="Batch"?e.executionResults.some(kt):kt(e.executionResult),kt=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,wn=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===y.OPERATION_DEFINITION,Qs=e=>{let t;const n=e.definitions.filter(wn);return n.length===1&&(t=n[0].name?.value),t},Xs=e=>{let t=!1;const n=e.definitions.filter(wn);return n.length===1&&(t=n[0].operation==="mutation"),t},we=(e,t)=>{const n=typeof e=="string"||"kind"in e?e:String(e),s=typeof n=="string"?n:Hs(n);let r=!1,i;if(t)return{expression:s,isMutation:r,operationName:i};const o=es(()=>typeof n=="string"?Ls(n):n);return o instanceof Error?{expression:s,isMutation:r,operationName:i}
57:(i=Qs(o),r=Xs(o),{expression:s,operationName:i,isMutation:r})},pt=JSON,Pe=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":bt(e.method??"post"):e.request.hasMutations?"POST":bt(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},s=await Zs(t.method)(t),r=await s.text();let i;try{i=Js(r,s.headers.get(Je),e.fetchOptions.jsonSerializer??pt)}catch(a){i=a}const o={status:s.status,headers:s.headers,body:r};if(!s.ok){if(i instanceof Error)return new W({...o},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const a=i._tag==="Batch"?{...i.executionResults,...o}:{...i.executionResult,...o};return new W(a,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}if(i instanceof Error)throw i;if(zs(i)&&t.fetchOptions.errorPolicy==="none"){const a=i._tag==="Batch"?{...i.executionResults,...o}:{...i.executionResult,...o};return new W(a,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(i._tag){case"Single":return{...o,...Lt(t)(i.executionResult)};case"Batch":return{...o,data:i.executionResults.map(Lt(t))};default:ut(i)}},Lt=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),Js=(e,t,n)=>t&&Ws(t)?wt(n.parse(e)):wt(e),Zs=e=>async t=>{const n=new Headers(t.headers);let s=null,r;n.has(At)||n.set(At,[Rn,Ze].join(", ")),e==="POST"?(r=(t.fetchOptions.jsonSerializer??pt).stringify(Ks(t)),typeof r=="string"&&!n.has(Je)&&n.set(Je,Ze)):s=ei(t);const i={method:e,headers:n,body:r,...t.fetchOptions};let o=new URL(t.url),a=i;if(t.middleware){const p=await Promise.resolve(t.middleware({...i,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:h,...d}=p;o=new URL(h),a=d}return s&&s.forEach((p,h)=>{o.searchParams.append(h,p)}),await(t.fetch??fetch)(o,a)},Ks=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return Nn(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw ut(e.request)}},ei=e=>{const t=e.fetchOptions.jsonSerializer??pt,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Rt(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const s=e.request.variables?.map(o=>t.stringify(o))??[],r=e.request.query.map(Rt),i=Nn(r,s).map(([o,a])=>({query:o,variables:a}));return n.append("query",t.stringify(i)),n}default:throw ut(e.request)}};class ti{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,s,r]=t,i=rs(n,s,r),{headers:o,fetch:a=globalThis.fetch,method:c="POST",requestMiddleware:p,responseMiddleware:h,excludeOperationName:d,...m}=this.requestConfig,{url:N}=this;i.signal!==void 0&&(m.signal=i.signal);const E=we(i.query,d),x=await Pe({url:N,request:{_tag:"Single",document:E,variables:i.variables},headers:{...J(Oe(o)),...J(i.requestHeaders)},fetch:a,method:c,fetchOptions:m,middleware:p});if(h&&await h(x,{operationName:E.operationName,variables:s,url:this.url}),x instanceof Error)throw x;return x};async request(t,...n){const[s,r]=n,i=ni(t,s,r),{headers:o,fetch:a=globalThis.fetch,method:c="POST",requestMiddleware:p,responseMiddleware:h,excludeOperationName:d,...m}=this.requestConfig,{url:N}=this;i.signal!==void 0&&(m.signal=i.signal);const E=we(i.document,d),x=await Pe({url:N,request:{_tag:"Single",document:E,variables:i.variables},headers:{...J(Oe(o)),...J(i.requestHeaders)},fetch:a,method:c,fetchOptions:m,middleware:p});if(h&&await h(x,{operationName:E.operationName,variables:i.variables,url:this.url}),x instanceof Error)throw x;return x.data}async batchRequests(t,n){const s=ns(t,n),{headers:r,excludeOperationName:i,...o}=this.requestConfig;s.signal!==void 0&&(o.signal=s.signal);const a=s.documents.map(({document:m})=>we(m,i)),c=a.map(({expression:m})=>m),p=a.some(({isMutation:m})=>m),h=s.documents.map(({variables:m})=>m),d=await Pe({url:this.url,request:{_tag:"Batch",operationName:void 0,query:c,hasMutations:p,variables:h},headers:{...J(Oe(r)),...J(s.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:h,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:s}=this.requestConfig;return s?s[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const ni=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},ht=(e,...t)=>e.reduce((n,s,r)=>
57`${n}${s}${r in t?String(t[r]):""}`,""),ke=new ti(new URL("/api/public/graphql",window.location.origin).toString(),{credentials:"same-origin"}),ri=ht`
58    mutation ValidateSender($input: createSenderStaffMessagingInput!) {
59        createSenderStaffMessaging(input: $input) {
60            senderStaffMessaging {
61                id
62                requiresVerification
63            }
64        }
65    }
66`,si=ht`
67    mutation RequestOtp($input: requestOtpStaffMessagingAckInput!) {
68        requestOtpStaffMessagingAck(input: $input) {
69            staffMessagingAck {
70                success
71            }
72        }
73    }
74`,ii=ht`
75    mutation SendMessage($input: sendMessageStaffMessagingAckInput!) {
76        sendMessageStaffMessagingAck(input: $input) {
77            staffMessagingAck {
78                success
79            }
80        }
81    }
82`;function oi(e){return e?.response?.errors?.[0]?.extensions?.code??""}function ai(e){return e==="RATE_LIMITED"||/rate.?limit/i.test(e)?"rate-limited":e==="CAPTCHA_FAILED"?"captcha-failed":e==="OTP_EXPIRED"?"otp-expired":e==="OTP_ERROR"?"otp-mismatch":e==="SENDER_MISMATCH"?"sender-mismatch":null}function ci(e){const t=e instanceof Error?e.message:String(e);return/rate.?limit/i.test(t)||t.includes("RATE_LIMITED")?"rate-limited":t.includes("OTP_EXPIRED")?"otp-expired":/otp.?mismatch/i.test(t)||t.includes("OTP_MISMATCH")?"otp-mismatch":t.includes("SENDER_MISMATCH")?"sender-mismatch":"error"}function Le(e){return ai(oi(e))??ci(e)}function li(){const e=Ce({mutationFn:async({email:s,recaptchaToken:r,bypassRecaptcha:i})=>{try{const o=await ke.request(ri,{input:{email:s,recaptchaToken:r,bypassRecaptcha:i}}),{id:a,requiresVerification:c}=o.createSenderStaffMessaging.senderStaffMessaging;return{senderIdHash:a,requiresOtp:c}}catch(o){return{error:Le(o)}}}}),t=Ce({mutationFn:async({email:s,recaptchaToken:r,bypassRecaptcha:i})=>{try{return await ke.request(si,{input:{email:s,recaptchaToken:r,bypassRecaptcha:i}}),{success:!0}}catch(o){return{error:Le(o)}}}}),n=Ce({mutationFn:async({senderData:s,messageData:r,recipientId:i,recipientAddress:o,recaptchaToken:a,bypassRecaptcha:c,otpCode:p})=>{try{return await ke.request(ii,{input:{name:s.name,email:s.email,phone:s.phone||null,subject:r.subject,message:r.body,...i?{recipientId:i}:{},...o?{recipientAddress:o}:{},recaptchaToken:a,bypassRecaptcha:c,...p!==void 0?{otpCode:p}:{}}}),{success:!0}}catch(h){return{error:Le(h)}}}});return{validateSender:e,requestOtp:t,sendMessage:n}}let Z=null;function Pn(e){return!e||window.grecaptcha?Promise.resolve():Z||(Z=new Promise((t,n)=>{const s="googleRecaptcha";if(!document.getElementById(s)){const o=document.createElement("script");o.id=s,o.src=`https://www.google.com/recaptcha/api.js?render=${encodeURIComponent(e)}`,o.async=!0,o.defer=!0,o.onerror=()=>{Z=null,n(new Error("reCAPTCHA script failed to load"))},document.head.appendChild(o)}const r=Date.now(),i=()=>{if(window.grecaptcha){t();return}if(Date.now()-r>1e4){Z=null,n(new Error("reCAPTCHA load timeout"));return}window.setTimeout(i,100)};i()}),Z)}const ui="_form_7t9dn_5",di="_formBody_7t9dn_6",fi="_button_7t9dn_32",pi="_fieldGroup_7t9dn_39",hi="_label_7t9dn_45",mi="_requiredAsterisk_7t9dn_52",Ei="_optional_7t9dn_57",gi="_field_7t9dn_39",vi="_resendLink_7t9dn_95",yi="_alertClose_7t9dn_96",Ni="_recaptchaLink_7t9dn_97",_i="_fieldHint_7t9dn_125",Ti="_fieldError_7t9dn_131",xi="_otpSection_7t9dn_139",bi="_otpHeading_7t9dn_145",Ci="_otpSubtext_7t9dn_152",Si="_actions_7t9dn_160",Di="_resendCountdown_7t9dn_208",Ii="_recaptchaNotice_7t9dn_215",Oi="_recaptchaLogo_7t9dn_222",Ai="_recaptchaText_7t9dn_228",Ri="_alert_7t9dn_96",wi="_alertIcon_7t9dn_276",Pi="_alertMessage_7t9dn_286",ki="_alertTitle_7t9dn_291",Li="_alertSubtext_7t9dn_298",v={form:ui,formBody:di,"formBody--success":"_formBody--success_7t9dn_32",button:fi,fieldGroup:pi,label:hi,requiredAsterisk:mi,optional:Ei,field:gi,resendLink:vi,alertClose:yi,recaptchaLink:Ni,"field--textarea":"_field--textarea_7t9dn_104","field--otp":"_field--otp_7t9dn_110","field--error":"_field--error_7t9dn_116",fieldHint:_i,fieldError:Ti,otpSection:xi,otpHeading:bi,otpSubtext:Ci,actions:Si,resendCountdown:Di,recaptchaNotice:Ii,recaptchaLogo:Oi,recaptchaText:Ai,alert:Ri,"alert--success":"_alert--success_7t9dn_259","alert--error":"_alert--error_7t9dn_265","alert--lg":"_alert--lg_7t9dn_272",alertIcon:wi,alertMessage:Pi,alertTitle:ki,alertSubtext:Li},Fi={name:null,email:null,subject:null,message:null},Ke={phase:"idle",senderIdHash:null,hadOtp:!1,bannerError:null,resendNotice:null,resendNoticeNonce:0,otpError:null,resendHidden:!1,resendCooldownUntil:null,fieldErrors:Fi,name:"",email:"",ph
82one:"",subject:"",message:"",otpCode:""};function Mi(e,t){switch(t.type){case"SET_FIELD":{const n={...e,[t.field]:t.value};return t.field in e.fieldErrors&&(n.fieldErrors={...e.fieldErrors,[t.field]:null}),t.field==="email"&&e.phase==="success"?{...n,phase:"idle",senderIdHash:null}:n}case"VALIDATE_START":return{...e,phase:"validating",senderIdHash:null,hadOtp:!1,bannerError:null,resendNotice:null,otpError:null,resendHidden:!1,resendCooldownUntil:null,otpCode:""};case"VALIDATE_SUCCESS":return{...e,phase:t.requiresOtp?"otp":"ready",senderIdHash:t.senderIdHash,hadOtp:t.requiresOtp,bannerError:null,resendNotice:t.requiresOtp?"A new verification code has been sent to the email address provided.":null,resendNoticeNonce:t.requiresOtp?e.resendNoticeNonce+1:e.resendNoticeNonce,resendCooldownUntil:t.requiresOtp?t.cooldownUntil:null};case"VALIDATE_ERROR":return{...e,phase:"idle",bannerError:t.bannerMessage};case"RESEND_START":return{...e,phase:"otp-resending",otpCode:"",otpError:null,bannerError:null,resendNotice:null};case"RESEND_SUCCESS":return{...e,phase:"otp",otpError:null,resendNotice:"A new verification code has been sent to the email address provided.",resendNoticeNonce:e.resendNoticeNonce+1,resendCooldownUntil:t.cooldownUntil};case"RESEND_RATE_LIMITED":return{...e,phase:"otp",resendHidden:!0,resendNotice:null,bannerError:"You have requested too many verification codes. Please try again later."};case"SEND_START":return{...e,phase:"sending",bannerError:null,resendNotice:null,otpError:null};case"SEND_SUCCESS":return{...e,phase:"success",bannerError:null};case"SEND_RATE_LIMITED":return{...e,phase:e.hadOtp?"otp":"ready",bannerError:"This message can't be sent right now. Please try again later."};case"SEND_OTP_MISMATCH":return{...e,phase:"otp",otpError:"That code doesn't match. Please check the code in your email and try again, or request a new one."};case"SEND_OTP_EXPIRED":return{...e,phase:"otp",otpError:"That code has expired. Please request a new one."};case"SEND_SENDER_MISMATCH":return{...Ke,name:e.name,phone:e.phone,subject:e.subject,message:e.message,bannerError:"There was a problem verifying your email address. Please re-enter it and try again."};case"CAPTCHA_FAILED":return{...e,phase:e.phase==="sending"?e.hadOtp?"otp":"ready":e.phase==="otp-resending"?"otp":"idle",resendNotice:null,bannerError:"Security verification failed. Please refresh the page and try again."};case"DISMISS_BANNER":return{...e,bannerError:null,resendNotice:null};case"FIELD_ERRORS":return{...e,fieldErrors:t.errors};case"HIDE_RESEND_NOTICE":return{...e,resendNotice:null};case"SEND_ANOTHER":return Ke}}const Ft=6e4;function ji(e){const t=()=>e?Math.max(0,Math.ceil((e-Date.now())/1e3)):0,[n,s]=u.useState(t);return u.useEffect(()=>{if(!e){s(0);return}s(t());const r=window.setInterval(()=>{const i=t();s(i),i<=0&&window.clearInterval(r)},1e3);return()=>window.clearInterval(r)},[e]),n}const Ui=e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`;async function Fe(e,t){if(!e)return"";try{await Pn(e)}catch{return null}const n=window.grecaptcha;return n?new Promise(s=>{const r=window.setTimeout(()=>s(null),1e4);n.ready(()=>{n.execute(e,{action:t}).then(i=>{window.clearTimeout(r),s(i)},()=>{window.clearTimeout(r),s(null)})})}):null}function qi(e){let t=null,n=null,s=null,r=null;e.name.trim()||(t="Enter your name.");const i=e.email.trim();return i?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)||(n="Enter an email address in the format [email protected]"):n="Enter your email address.",e.subject.trim()||(s="Enter a subject."),e.message.trim()||(r="Enter your message."),t===null&&n===null&&s===null&&r===null?null:{name:t,email:n,subject:s,message:r}}function Bi({staffName:e,recipientId:t,recipientAddress:n,recaptchaSiteKey:s,emailVerificationRequired:r}){const[i,o]=u.useReducer(Mi,Ke),a=u.useRef(""),c=u.useRef(null),p=u.useRef(null),h=li(),d=i.phase==="otp"||i.phase==="otp-resending"||i.phase==="sending"&&i.hadOtp,N=i.name.trim()!==""&&i.email.trim()!==""&&i.subject.trim()!==""&&i.message.trim()!==""&&(!d||i.otpCode.length>=6)&&(i.phase==="ready"||i.phase==="otp"||i.phase==="success"),E=i.phase==="validating"||i.phase==="sending"||i.phase==="otp-resending",x=ji(i.resendCooldownUntil),T=x>0;u.useEffect(()=>{d&&c.current&&c.current.focus()},[d]),u.useEffect(()=>{i.bannerError&&p.current&&p.current.focus()},[i.bannerError]),u.useEffect(()=>{if(!i.resendNotice)return;const b=window.setTimeout(()=>
82o({type:"HIDE_RESEND_NOTICE"}),1e4);return()=>window.clearTimeout(b)},[i.resendNotice,i.resendNoticeNonce]);const S=async()=>{const b=i.email.trim();if(!b||b===a.current)return;o({type:"VALIDATE_START"});const L=await Fe(s,"lookup_sender");if(L===null){o({type:"CAPTCHA_FAILED"});return}const q=await h.validateSender.mutateAsync({email:b,recaptchaToken:L,bypassRecaptcha:!s});if("error"in q)if(q.error==="captcha-failed")o({type:"CAPTCHA_FAILED"});else{const Y=q.error==="rate-limited"?"This message can't be sent right now. Please try again later.":"There was a problem verifying your email address. Please try again.";o({type:"VALIDATE_ERROR",bannerMessage:Y})}else a.current=b,o({type:"VALIDATE_SUCCESS",senderIdHash:q.senderIdHash,requiresOtp:r&&q.requiresOtp,cooldownUntil:Date.now()+Ft})},I=async()=>{if(T||!i.senderIdHash)return;o({type:"RESEND_START"});const b=await Fe(s,"request_verification");if(b===null){o({type:"CAPTCHA_FAILED"});return}const L=await h.requestOtp.mutateAsync({email:i.email,recaptchaToken:b,bypassRecaptcha:!s});"error"in L?L.error==="captcha-failed"?o({type:"CAPTCHA_FAILED"}):o({type:"RESEND_RATE_LIMITED"}):o({type:"RESEND_SUCCESS",cooldownUntil:Date.now()+Ft})},C=async b=>{b.preventDefault();const L=qi(i);if(L){o({type:"FIELD_ERRORS",errors:L});return}if(!i.senderIdHash)return;o({type:"SEND_START"});const q=i.email.trim(),Y=await Fe(s,"send_message");if(Y===null){o({type:"CAPTCHA_FAILED"});return}const ae=await h.sendMessage.mutateAsync({senderData:{name:i.name,email:q,phone:i.phone},messageData:{subject:i.subject,body:i.message},...t?{recipientId:t}:{},...n?{recipientAddress:n}:{},recaptchaToken:Y,bypassRecaptcha:!s,otpCode:i.hadOtp?i.otpCode:void 0});if("error"in ae)switch(ae.error){case"rate-limited":o({type:"SEND_RATE_LIMITED"});break;case"otp-mismatch":o({type:"SEND_OTP_MISMATCH"});break;case"otp-expired":o({type:"SEND_OTP_EXPIRED"});break;case"sender-mismatch":a.current="",o({type:"SEND_SENDER_MISMATCH"});break;case"captcha-failed":o({type:"CAPTCHA_FAILED"});break;default:o({type:"VALIDATE_ERROR",bannerMessage:"Something went wrong. Please try again."})}else o({type:"SEND_SUCCESS"})},D=()=>{a.current="",o({type:"SEND_ANOTHER"})},O=Object.values(i.fieldErrors).some(b=>b!==null);return i.phase==="success"?f.jsxs("div",{className:B(v.formBody,v["formBody--success"]),children:[f.jsxs("div",{className:B(v.alert,v["alert--success"],v["alert--lg"]),role:"status",children:[f.jsx(K,{icon:Et,className:v.alertIcon,"aria-hidden":"true"}),f.jsxs("div",{children:[f.jsx("p",{className:v.alertTitle,children:i.hadOtp?"Your email has been verified and your message has been sent.":"Your message has been submitted."}),i.hadOtp&&f.jsx("p",{className:v.alertSubtext,children:"You won't need to verify again next time you write from this address."})]})]}),f.jsx("button",{type:"button",className:v.button,onClick:D,children:"Send another message"})]}):f.jsxs("form",{className:v.form,"aria-label":`Send a message to ${e}`,onSubmit:C,"aria-busy":E,noValidate:!0,children:[(i.bannerError||O)&&f.jsxs("div",{className:B(v.alert,v["alert--error"]),role:"alert","aria-live":"assertive",tabIndex:-1,ref:p,children:[f.jsx(K,{icon:Bn,className:v.alertIcon,"aria-hidden":"true"}),f.jsx("span",{className:v.alertMessage,children:i.bannerError??"Check the highlighted fields below and try again."}),i.bannerError&&f.jsx("button",{type:"button",className:v.alertClose,onClick:()=>o({type:"DISMISS_BANNER"}),"aria-label":"Dismiss",children:f.jsx(K,{icon:Me,"aria-hidden":"true"})})]}),i.resendNotice&&f.jsxs("div",{className:B(v.alert,v["alert--success"]),role:"status","aria-live":"polite",children:[f.jsx(K,{icon:Et,className:v.alertIcon,"aria-hidden":"true"}),f.jsx("span",{className:v.alertMessage,children:i.resendNotice}),f.jsx("button",{type:"button",className:v.alertClose,onClick:()=>o({type:"DISMISS_BANNER"}),"aria-label":"Dismiss",children:f.jsx(K,{icon:Me,"aria-hidden":"true"})})]}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsxs("label",{htmlFor:"senderName",className:v.label,children:["Your Name ",f.jsx("span",{className:v.requiredAsterisk,"aria-hidden":"true",children:"*"})]}),f.jsx("input",{id:"senderName",name:"senderName",type:"text",className:B(v.field,{[v["field--error"]]:i.fieldErrors.name}),placeholder:"First and last name",value:i.name,onChange:b=>o({type:"SET_FIELD",field:"name",value:b.target.value}),required:!0,"aria-invalid":i.fieldErrors.name!==null,"aria-describedby":i.fieldErrors.name?"error-name":void 0}),i.fieldErrors.name&&f.jsx("p",{id:"error-name",className:v.fieldError,role:"alert",children:i.fieldErrors.name})]}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsxs("label",{htmlFor:"senderEmail",className:v.label,children:["Your Email Address ",f.jsx("span",{className:v.requiredAsterisk,"aria-hidden":"true",children:"*"})]}
82),f.jsx("input",{id:"senderEmail",name:"senderEmail",type:"email",className:B(v.field,{[v["field--error"]]:i.fieldErrors.email}),placeholder:"[email protected]",value:i.email,onChange:b=>o({type:"SET_FIELD",field:"email",value:b.target.value}),onBlur:S,required:!0,"aria-invalid":i.fieldErrors.email!==null,"aria-describedby":i.fieldErrors.email?"error-email":"email-hint"}),i.fieldErrors.email?f.jsx("p",{id:"error-email",className:v.fieldError,role:"alert",children:i.fieldErrors.email}):f.jsx("p",{id:"email-hint",className:v.fieldHint,children:"We'll only use this to reply to you."})]}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsxs("label",{htmlFor:"senderPhone",className:v.label,children:["Your Phone Number ",f.jsx("span",{className:v.optional,children:"(Optional)"})]}),f.jsx("input",{id:"senderPhone",name:"senderPhone",type:"tel",className:v.field,placeholder:"(555) 555-5555",value:i.phone,onChange:b=>o({type:"SET_FIELD",field:"phone",value:b.target.value})})]}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsxs("label",{htmlFor:"subject",className:v.label,children:["Subject ",f.jsx("span",{className:v.requiredAsterisk,"aria-hidden":"true",children:"*"})]}),f.jsx("input",{id:"subject",name:"subject",type:"text",className:B(v.field,{[v["field--error"]]:i.fieldErrors.subject}),value:i.subject,onChange:b=>o({type:"SET_FIELD",field:"subject",value:b.target.value}),required:!0,"aria-invalid":i.fieldErrors.subject!==null,"aria-describedby":i.fieldErrors.subject?"error-subject":void 0}),i.fieldErrors.subject&&f.jsx("p",{id:"error-subject",className:v.fieldError,role:"alert",children:i.fieldErrors.subject})]}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsxs("label",{htmlFor:"message",className:v.label,children:["Message ",f.jsx("span",{className:v.requiredAsterisk,"aria-hidden":"true",children:"*"})]}),f.jsx("textarea",{id:"message",name:"message",className:B(v.field,v["field--textarea"],{[v["field--error"]]:i.fieldErrors.message}),placeholder:"How can we help?",value:i.message,onChange:b=>o({type:"SET_FIELD",field:"message",value:b.target.value}),required:!0,"aria-invalid":i.fieldErrors.message!==null,"aria-describedby":i.fieldErrors.message?"error-message":void 0}),i.fieldErrors.message&&f.jsx("p",{id:"error-message",className:v.fieldError,role:"alert",children:i.fieldErrors.message})]}),d&&f.jsxs("div",{className:v.otpSection,children:[f.jsx("h3",{className:v.otpHeading,children:"Please verify your email to send this message."}),!!i.resendNotice&&f.jsx("p",{className:v.otpSubtext,children:"We sent a verification code to your email."}),f.jsxs("div",{className:v.fieldGroup,children:[f.jsx("label",{htmlFor:"otpCode",className:v.label,children:"Verification code"}),f.jsx("input",{id:"otpCode",name:"otpCode",type:"text",inputMode:"numeric",autoComplete:"one-time-code",className:B(v.field,v["field--otp"]),value:i.otpCode,onChange:b=>o({type:"SET_FIELD",field:"otpCode",value:b.target.value.replace(/\D/g,"").slice(0,6)}),placeholder:"------",maxLength:6,required:!0,ref:c,"aria-describedby":i.otpError?"error-otp":void 0}),i.otpError!==null&&f.jsx("p",{id:"error-otp",className:v.fieldError,role:"alert",children:i.otpError})]})]}),f.jsxs("div",{className:v.actions,children:[f.jsx("button",{type:"submit",className:v.button,disabled:!N,"aria-busy":i.phase==="sending",children:d?"Verify and send":"Send message"}),d&&!i.resendHidden&&f.jsx("button",{type:"button",className:v.resendLink,onClick:I,disabled:i.phase==="otp-resending"||T,children:"Resend code"}),d&&!i.resendHidden&&T&&f.jsxs("span",{className:v.resendCountdown,children:["Resend available in ",Ui(x)]})]}),f.jsxs("div",{className:v.recaptchaNotice,children:[f.jsx("img",{src:"https://www.gstatic.com/recaptcha/api2/logo_48.png",alt:"","aria-hidden":"true",className:v.recaptchaLogo,width:"24",height:"24"}),f.jsxs("p",{className:v.recaptchaText,children:["This site is protected by reCAPTCHA and the Google"," ",f.jsx("a",{className:v.recaptchaLink,href:"https://policies.google.com/privacy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","and"," ",f.jsx("a",{className:v.recaptchaLink,href:"https://policies.google.com/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})," ","apply."]})]})]})}const Vi="body > *:not(script):not(style)",$i=(e,t)=>{u.useLayoutEffect(()=>{if(!e||!t)return;const n=[];
82return document.querySelectorAll(Vi).forEach(s=>{s.contains(t)||s.hasAttribute("data-state")||s.hasAttribute("inert")||(s.setAttribute("inert",""),n.push(s))}),()=>{n.forEach(s=>s.removeAttribute("inert"))}},[e,t])},Hi=new Mn;let et=null;const Gi="#111827",Yi="#ffffff";function Wi(){const[e,t]=u.useState(!1),[n,s]=u.useState({staffName:"",recaptchaSiteKey:"",primaryColor:"",textColor:"",linkColor:""}),[r,i]=u.useState(0),[o,a]=u.useState(null),c=u.useRef(null);$n({primaryColor:n.primaryColor||Gi,textColor:n.textColor||Yi,element:o}),$i(e,o),u.useEffect(()=>{n.linkColor&&(o?.style?.setProperty("--color-intent-link-primary",n.linkColor),o?.style?.setProperty("--color-intent-link-primary-hover",`color-mix(in srgb, ${n.linkColor} 85%, black)`))},[n.linkColor,o]),u.useEffect(()=>(et=h=>{c.current=document.activeElement,Pn(h.recaptchaSiteKey).catch(()=>{}),s(h),i(d=>d+1),t(!0)},()=>{et=null}),[]);const p=h=>{const d=c.current;d&&typeof d.focus=="function"&&d.isConnected&&(h.preventDefault(),requestAnimationFrame(()=>{d.isConnected&&d.focus()}))};return f.jsx(zr,{open:e,onOpenChange:t,children:f.jsxs(yn,{ref:a,"aria-describedby":void 0,onCloseAutoFocus:p,children:[f.jsx(Qr,{onClose:()=>t(!1),children:f.jsx(Xr,{children:"Send A Message"})}),f.jsx(Bi,{staffName:n.staffName,recipientId:n.recipientId,recipientAddress:n.recipientAddress,recaptchaSiteKey:n.recaptchaSiteKey,emailVerificationRequired:n.emailVerificationRequired!==!1},r)]})})}const kn=document.createElement("div");document.body.appendChild(kn);Fn.createRoot(kn).render(f.jsx(u.StrictMode,{children:f.jsx(jn,{client:Hi,children:f.jsx(Wi,{})})}));
82window.openStaffMessageWidget=e=>{et?.(e)};
83//# sourceMappingURL=staffMessageWidget-CbWF7cnU.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.