PageSourceSearch

https://ustechautomations.com/assets/overlayFocus-Cg6WOZVn.js

js ustechautomations.com collected 2026-09-26 00:51:23 UTC 33,152 bytes, 45 lines download raw bytes

vendor: 4,093 bytes, line 1
1import{a,p as g,D as Oe}from"./chunk-6CSD65Y2-DAs4fuyP.js";import{j as De,k as M}from"./WebsiteStyleProvider-DwAyWgHp.js";import{a as at,R as it}from"./index-CJaXewYu.js";function st(e,t){const n=a.createContext(t),r=i=>{const{children:c,...s}=i,f=a.useMemo(()=>s,Object.values(s));return g.jsx(n.Provider,{value:f,children:c})};r.displayName=e+"Provider";function o(i){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ct(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),f=n.length;n=[...n,c];const u=v=>{const{scope:p,children:h,...w}=v,l=p?.[e]?.[f]||s,m=a.useMemo(()=>w,Object.values(w));return g.jsx(l.Provider,{value:m,children:h})};u.displayName=i+"Provider";function d(v,p){const h=p?.[e]?.[f]||s,w=a.useContext(h);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const f=s?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:f}}),[s,f])}};return o.scopeName=e,[r,ut(o,...t)]}function ut(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((s,{useScope:f,scopeName:u})=>{const v=f(i)[`__scope${u}`];return{...s,...v}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var B=globalThis?.document?a.useLayoutEffect:()=>{},lt=Oe[" useInsertionEffect ".trim().toString()]||B;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=dt({defaultProp:t,onChange:n}),s=e!==void 0,f=s?e:o;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const v=d.current;if(v!==s){const p=v?"controlled":"uncontrolled",h=s?"controlled":"uncontrolled"}d.current=s},[s,r])}const u=a.useCallback(d=>{if(s){const v=vt(d)?d(e):d;v!==e&&c.current?.(v)}else i(d)},[s,e,i,c]);return[f,u]}function dt({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return lt(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function vt(e){return typeof e=="function"}function pt(e){const t=mt(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),f=s.find(gt);if(f){const u=f.props.children,d=s.map(v=>v===f?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:v);return g.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return g.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function mt(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Et(o),s=yt(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ht=Symbol("radix.slottable");function gt(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ht}function yt(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const f=i(...s);return o(...s),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Et(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)}var bt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=bt.reduce((e,t)=>{const n=pt(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ct(e,t){e&&at.flushSync(()=>
vendor: 4,375 bytes, line 1
1e.dispatchEvent(t))}function St(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var q=e=>{const{present:t,children:n}=e,r=wt(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=M(r.ref,Rt(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};q.displayName="Presence";function wt(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[s,f]=St(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=V(r.current);i.current=s==="mounted"?u:"none"},[s]),B(()=>{const u=r.current,d=o.current;if(d!==e){const p=i.current,h=V(u);e?f("MOUNT"):h==="none"||u?.display==="none"?f("UNMOUNT"):f(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),B(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,v=h=>{const l=V(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&l&&(f("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},p=h=>{h.target===t&&(i.current=V(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function V(e){return e?.animationName||"none"}function Rt(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)}var Pt=Oe[" useId ".trim().toString()]||(()=>{}),Ot=0;function ee(e){const[t,n]=a.useState(Pt());return B(()=>{n(r=>r??String(Ot++))},[e]),t?`radix-${t}`:""}function U(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Dt(e,t=globalThis?.document){const n=U(e);a.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nt="DismissableLayer",ce="dismissableLayer.update",xt="dismissableLayer.pointerDownOutside",At="dismissableLayer.focusOutside",pe,Ne=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xe=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...f}=e,u=a.useContext(Ne),[d,v]=a.useState(null),p=d?.ownerDocument??globalThis?.document,[,h]=a.useState({}),w=M(t,E=>v(E)),l=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(m),b=d?l.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,R=Mt(E=>{const T=E.target,L=[...u.branches].some(j=>j.contains(T));!S||L||(o?.(E),c?.(E),E.defaultPrevented||s?.())},p),P=Lt(E=>{const T=E.target;[...u.branches].some(j=>j.contains(T))||(i?.(E),c?.(E),E.defaultPrevented||s?.())},p);return Dt(E=>{b===u.layers.size-1&&(r?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},p),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(pe=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),me(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=pe)}},[d,p,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),me())},[d,u]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(ce,E),()=>document.removeEventListener(ce,E)},[]),g.jsx(N.div,{...f,ref:w,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,P.onFocusCapture),onBlurCapture:A(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,R.onPointerDownCapture)})});xe.displayName=Nt;var Tt="DismissableLayerBranch",It=a.forwardRef((e,t)=>
vendor: 4,607 bytes, line 1
1{const n=a.useContext(Ne),r=a.useRef(null),o=M(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(N.div,{...e,ref:o})});It.displayName=Tt;function Mt(e,t=globalThis?.document){const n=U(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let f=function(){Ae(xt,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Lt(e,t=globalThis?.document){const n=U(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ae(At,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function me(){const e=new CustomEvent(ce);document.dispatchEvent(e)}function Ae(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ct(o,i):o.dispatchEvent(i)}var te="focusScope.autoFocusOnMount",ne="focusScope.autoFocusOnUnmount",he={bubbles:!1,cancelable:!0},_t="FocusScope",Te=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,f]=a.useState(null),u=U(o),d=U(i),v=a.useRef(null),p=M(t,l=>f(l)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let l=function(C){if(h.paused||!s)return;const S=C.target;s.contains(S)?v.current=S:x(v.current,{select:!0})},m=function(C){if(h.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||x(v.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&x(s)};document.addEventListener("focusin",l),document.addEventListener("focusout",m);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",m),b.disconnect()}}},[r,s,h.paused]),a.useEffect(()=>{if(s){ye.add(h);const l=document.activeElement;if(!s.contains(l)){const y=new CustomEvent(te,he);s.addEventListener(te,u),s.dispatchEvent(y),y.defaultPrevented||(Ft(Ut(Ie(s)),{select:!0}),document.activeElement===l&&x(s))}return()=>{s.removeEventListener(te,u),setTimeout(()=>{const y=new CustomEvent(ne,he);s.addEventListener(ne,d),s.dispatchEvent(y),y.defaultPrevented||x(l??document.body,{select:!0}),s.removeEventListener(ne,d),ye.remove(h)},0)}}},[s,u,d,h]);const w=a.useCallback(l=>{if(!n&&!r||h.paused)return;const m=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(m&&y){const b=l.currentTarget,[C,S]=kt(b);C&&S?!l.shiftKey&&y===S?(l.preventDefault(),n&&x(C,{select:!0})):l.shiftKey&&y===C&&(l.preventDefault(),n&&x(S,{select:!0})):y===b&&l.preventDefault()}},[n,r,h.paused]);return g.jsx(N.div,{tabIndex:-1,...c,ref:p,onKeyDown:w})});Te.displayName=_t;function Ft(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(x(r,{select:t}),document.activeElement!==n)return}function kt(e){const t=Ie(e),n=ge(t,e),r=ge(t.reverse(),e);return[n,r]}function Ie(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ge(e,t){for(const n of e)if(!Wt(n,{upTo:t}))return n}function Wt(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}function jt(e){return e instanceof HTMLInputElement&&"select"in e}function x(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jt(e)&&t&&e.select()}}var ye=Bt();function Bt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ee(e,t),e.unshift(t)},remove(t){e=Ee(e,t),e[0]?.resume()}}}function Ee(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ut(e){return e.filter(t=>t.tagName!=="A")}var $t="Portal",Me=a.forwardRef((e,t)=>
vendor: 6,314 bytes, lines 1-16
1{const{container:n,...r}=e,[o,i]=a.useState(!1);B(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?it.createPortal(g.jsx(N.div,{...r,ref:t}),c):null});Me.displayName=$t;var re=0;function Vt(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??be()),document.body.insertAdjacentElement("beforeend",e[1]??be()),re++,()=>{re===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),re--}},[])}function be(){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}var D=function(){return D=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D.apply(this,arguments)};function Le(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ht(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var X="right-scroll-bar-position",z="width-before-scroll-bar",Kt="with-scroll-bars-hidden",Gt="--removed-body-scroll-bar-size";function oe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yt(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Xt=typeof window<"u"?a.useLayoutEffect:a.useEffect,Ce=new WeakMap;function zt(e,t){var n=Yt(null,function(r){return e.forEach(function(o){return oe(o,r)})});return Xt(function(){var r=Ce.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||oe(s,null)}),i.forEach(function(s){o.has(s)||oe(s,c)})}Ce.set(n,e)},[e]),n}function Zt(e){return e}function qt(e,t){t===void 0&&(t=Zt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var f=function(){var d=c;c=[],d.forEach(i)},u=function(){return Promise.resolve().then(f)};u(),n={push:function(d){c.push(d),u()},filter:function(d){return c=c.filter(d),n}}}};return o}function Qt(e){e===void 0&&(e={});var t=qt(null);return t.options=D({async:!0,ssr:!1},e),t}var _e=function(e){var t=e.sideCar,n=Le(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,D({},n))};_e.isSideCarExport=!0;function Jt(e,t){return e.useMedium(t),_e}var Fe=Qt(),ae=function(){},Q=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,f=e.className,u=e.removeScrollBar,d=e.enabled,v=e.shards,p=e.sideCar,h=e.noRelative,w=e.noIsolation,l=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,C=e.gapMode,S=Le(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,P=zt([n,t]),E=D(D({},S),o);return a.createElement(a.Fragment,null,d&&a.createElement(R,{sideCar:Fe,removeScrollBar:u,shards:v,noRelative:h,noIsolation:w,inert:l,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:C}),c?a.cloneElement(a.Children.only(s),D(D({},E),{ref:P})):a.createElement(b,D({},E,{className:f,ref:P}),s))});Q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Q.classNames={fullWidth:z,zeroRight:X};var en=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=en();return t&&e.setAttribute("nonce",t),e}function nn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var on=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tn())&&(nn(t,n),rn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},an=function(){var e=on();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ke=function(){var e=an(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sn={left:0,top:0,right:0,gap:0},ie=function(e){return parseInt(e||"",10)||0},cn=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ie(n),ie(r),ie(o)]},un=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sn;var t=cn(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ln=ke(),W="data-scroll-locked",fn=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Kt,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(s,"px ").concat(r,`;
5  }
6  body[`).concat(W,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(i,`px;
12    padding-right: `).concat(c,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(s,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(X,` {
20    right: `).concat(s,"px ").concat(r,`;
21  }
22  
23  .`).concat(z,` {
24    margin-right: `).concat(s,"px ").concat(r,`;
25  }
26  
27  .`).concat(X," .").concat(X,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(z," .").concat(z,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(W,`] {
36    `).concat(Gt,": ").concat(s,`px;
37  }
38`)},Se=function(){var e=parseInt(document.body.getAttribute(W)||"0",10);return isFinite(e)?e:0},dn=function(){a.useEffect(function(){return document.body.setAttribute(W,(Se()+1).toString()),function(){var e=Se()-1;e<=0?document.body.removeAttribute(W):document.body.setAttribute(W,e.toString())}},[])},vn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;dn();var i=a.useMemo(function(){return un(o)},[o]);return a.createElement(ln,{styles:fn(i,!t,o,n?"":"!important")})},ue=!1;if(typeof window<"u")try{var H=Object.defineProperty({},"passive",{get:function(){return ue=!0,!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch{ue=!1}var _=ue?{passive:!1}:!1,pn=function(e){return e.tagName==="TEXTAREA"},We=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pn(e)&&n[t]==="visible")},mn=function(e){return We(e,"overflowY")},hn=function(e){return We(e,"overflowX")},we=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=je(e,r);if(o){var i=Be(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gn=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},yn=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},je=function(e,t){return e==="v"?mn(t):hn(t)},Be=function(e,t){return e==="v"?gn(t):yn(t)},En=function(e,t){return e==="h"&&t==="rtl"?-1:1},bn=function(e,t,n,r,o){var i=En(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,f=t.contains(s),u=!1,d=c>0,v=0,p=0;do{if(!s)break;var h=Be(e,s),w=h[0],l=h[1],m=h[2],y=l-m-i*w;(w||y)&&je(e,s)&&(v+=y,p+=w);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!f&&s!==document.body||f&&(t.contains(s)||t===s));return(d&&Math.abs(v)<1||!d&&Math.abs(p)<1)&&(u=!0),u},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Re=function(e){return[e.deltaX,e.deltaY]},Pe=function(e){return e&&"current"in e?e.current:e},Cn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sn=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},wn=0,F=[];function Rn(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(wn++)[0],i=a.useState(ke)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var l=Ht([e.lockRef.current],(e.shards||[]).map(Pe),!0).filter(Boolean);return l.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),l.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(l,m){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!c.current.allowPinchZoom;var y=K(l),b=n.current,C="deltaX"in l?l.deltaX:b[0]-y[0],S="deltaY"in l?l.deltaY:b[1]-y[1],R,P=l.target,E=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in l&&E==="h"&&P.type==="range")return!1;var T=window.getSelection(),L=T&&T.anchorNode,j=L?L===P||L.contains(P):!1;if(j)return!1;var $=we(E,P);if(!$)return!0;if($?R=E:(R=E==="v"?"h":"v",$=we(E,P)),!$)return!1;if(!r.current&&"changedTouches"in l&&(C||S)&&(r.current=R),!R)return!0;var ve=r.current||R;return bn(ve,m,l,ve==="h"?C:S)},[]),f=a.useCallback(function(l){var m=l;if(!(!F.length||F[F.length-1]!==i)){var y="deltaY"in m?Re(m):K(m),b=t.current.filter(function(R){return R.name===m.type&&(R.target===m.target||m.target===R.shadowParent)&&Cn(R.delta,y)})[0];if(b&&b.should){m.cancelable&&m.preventDefault();return}
vendor: 4,657 bytes, line 41
41if(!b){var C=(c.current.shards||[]).map(Pe).filter(Boolean).filter(function(R){return R.contains(m.target)}),S=C.length>0?s(m,C[0]):!c.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),u=a.useCallback(function(l,m,y,b){var C={name:l,delta:m,target:y,should:b,shadowParent:Pn(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),d=a.useCallback(function(l){n.current=K(l),r.current=void 0},[]),v=a.useCallback(function(l){u(l.type,Re(l),l.target,s(l,e.lockRef.current))},[]),p=a.useCallback(function(l){u(l.type,K(l),l.target,s(l,e.lockRef.current))},[]);a.useEffect(function(){return F.push(i),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:p}),document.addEventListener("wheel",f,_),document.addEventListener("touchmove",f,_),document.addEventListener("touchstart",d,_),function(){F=F.filter(function(l){return l!==i}),document.removeEventListener("wheel",f,_),document.removeEventListener("touchmove",f,_),document.removeEventListener("touchstart",d,_)}},[]);var h=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(i,{styles:Sn(o)}):null,h?a.createElement(vn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const On=Jt(Fe,Rn);var Ue=a.forwardRef(function(e,t){return a.createElement(Q,D({},e,{ref:t,sideCar:On}))});Ue.classNames=Q.classNames;var Dn=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},k=new WeakMap,G=new WeakMap,Y={},se=0,$e=function(e){return e&&(e.host||$e(e.parentNode))},Nn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$e(n);return r&&e.contains(r)?r:null}).filter(function(n){return!!n})},xn=function(e,t,n,r){var o=Nn(t,Array.isArray(e)?e:[e]);Y[n]||(Y[n]=new WeakMap);var i=Y[n],c=[],s=new Set,f=new Set(o),u=function(v){!v||s.has(v)||(s.add(v),u(v.parentNode))};o.forEach(u);var d=function(v){!v||f.has(v)||Array.prototype.forEach.call(v.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),w=h!==null&&h!=="false",l=(k.get(p)||0)+1,m=(i.get(p)||0)+1;k.set(p,l),i.set(p,m),c.push(p),l===1&&w&&G.set(p,!0),m===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch{}})};return d(t),s.clear(),se++,function(){c.forEach(function(v){var p=k.get(v)-1,h=i.get(v)-1;k.set(v,p),i.set(v,h),p||(G.has(v)||v.removeAttribute(r),G.delete(v)),h||v.removeAttribute(n)}),se--,se||(k=new WeakMap,k=new WeakMap,G=new WeakMap,Y={})}},An=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Dn(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),xn(r,o,n,"aria-hidden")):function(){return null}};function Tn(e){const t=In(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),f=s.find(Ln);if(f){const u=f.props.children,d=s.map(v=>v===f?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:v);return g.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return g.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function In(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Fn(o),s=_n(i,o.props);return o.type!==a.Fragment&&(s.ref=r?De(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mn=Symbol("radix.slottable");function Ln(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mn}function _n(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const f=i(...s);return o(...s),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Fn(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)}var J="Dialog",[Ve]=ct(J),[kn,O]=Ve(J),He=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=a.useRef(null),f=a.useRef(null),[u,d]=ft({prop:r,defaultProp:o??!1,onChange:i,caller:J});return g.jsx(kn,{scope:t,triggerRef:s,contentRef:f,contentId:ee(),titleId:ee(),descriptionId:ee(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(v=>!v),[d]),modal:c,children:n})};He.displayName=J;var Ke="DialogTrigger",Ge=a.forwardRef((e,t)=>
vendor: 4,853 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=O(Ke,n),i=M(t,o.triggerRef);return g.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":de(o.open),...r,ref:i,onClick:A(e.onClick,o.onOpenToggle)})});Ge.displayName=Ke;var le="DialogPortal",[Wn,Ye]=Ve(le,{forceMount:void 0}),Xe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=O(le,t);return g.jsx(Wn,{scope:t,forceMount:n,children:a.Children.map(r,c=>g.jsx(q,{present:n||i.open,children:g.jsx(Me,{asChild:!0,container:o,children:c})}))})};Xe.displayName=le;var Z="DialogOverlay",ze=a.forwardRef((e,t)=>{const n=Ye(Z,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=O(Z,e.__scopeDialog);return i.modal?g.jsx(q,{present:r||i.open,children:g.jsx(Bn,{...o,ref:t})}):null});ze.displayName=Z;var jn=Tn("DialogOverlay.RemoveScroll"),Bn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=O(Z,n);return g.jsx(Ue,{as:jn,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(N.div,{"data-state":de(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",Ze=a.forwardRef((e,t)=>{const n=Ye(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=O(I,e.__scopeDialog);return g.jsx(q,{present:r||i.open,children:i.modal?g.jsx(Un,{...o,ref:t}):g.jsx($n,{...o,ref:t})})});Ze.displayName=I;var Un=a.forwardRef((e,t)=>{const n=O(I,e.__scopeDialog),r=a.useRef(null),o=M(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return An(i)},[]),g.jsx(qe,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&i.preventDefault()}),onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault())})}),$n=a.forwardRef((e,t)=>{const n=O(I,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return g.jsx(qe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),qe=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=O(I,n),f=a.useRef(null),u=M(t,f);return Vt(),g.jsxs(g.Fragment,{children:[g.jsx(Te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(xe,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":de(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(Vn,{titleId:s.titleId}),g.jsx(Kn,{contentRef:f,descriptionId:s.descriptionId})]})]})}),fe="DialogTitle",Qe=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=O(fe,n);return g.jsx(N.h2,{id:o.titleId,...r,ref:t})});Qe.displayName=fe;var Je="DialogDescription",et=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=O(Je,n);return g.jsx(N.p,{id:o.descriptionId,...r,ref:t})});et.displayName=Je;var tt="DialogClose",nt=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=O(tt,n);return g.jsx(N.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});nt.displayName=tt;function de(e){return e?"open":"closed"}var rt="DialogTitleWarning",[Zn,ot]=st(rt,{contentName:I,titleName:fe,docsSlug:"dialog"}),Vn=({titleId:e})=>{const t=ot(rt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{if(e){const r=document.getElementById(e)}},[n,e]),null},Hn="DialogDescriptionWarning",Kn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ot(Hn).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");if(t&&o){const i=document.getElementById(t)}},[r,e,t]),null},qn=He,Qn=Ge,Jn=Xe,er=ze,tr=Ze,nr=Qe,rr=et,or=nt;function Gn(){return document.documentElement.dataset.inputModality==="pointer"}function ar(e){if(e.defaultPrevented||!Gn())return;const t=e.target;t instanceof HTMLElement&&(e.preventDefault(),t.focus({preventScroll:!0}))}export{tr as C,rr as D,Te as F,er as O,N as P,qn as R,nr as T,Jn as a,or as b,A as c,q as d,Me as e,ct as f,Vt as g,ar as h,Ue as i,xe as j,An as k,Ct as l,U as m,ft as n,B as o,Qn as p,ee as u};

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.