vendor: 4,174 bytes, line 1
1import{r as a,j as P,e as Ae,k as pe,l as De,m as T,n as ye,o as xe}from"./index-BDDeZ-RJ.js";import{c as Le,u as te}from"./index-BSLZLMyw.js";function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function en(e,t){const n=a.createContext(t),r=c=>{const{children:s,...o}=c,v=a.useMemo(()=>o,Object.values(o));return P.jsx(n.Provider,{value:v,children:s})};r.displayName=e+"Provider";function i(c){const s=a.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[r,i]}function tn(e,t=[]){let n=[];function r(c,s){const o=a.createContext(s),v=n.length;n=[...n,s];const l=f=>{const{scope:h,children:y,...w}=f,u=h?.[e]?.[v]||o,m=a.useMemo(()=>w,Object.values(w));return P.jsx(u.Provider,{value:m,children:y})};l.displayName=c+"Provider";function d(f,h){const y=h?.[e]?.[v]||o,w=a.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${c}\``)}return[l,d]}const i=()=>{const c=n.map(s=>a.createContext(s));return function(o){const v=o?.[e]||c;return a.useMemo(()=>({[`__scope${e}`]:{...o,[e]:v}}),[o,v])}};return i.scopeName=e,[r,Fe(i,...t)]}function Fe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(c){const s=r.reduce((o,{useScope:v,scopeName:l})=>{const f=v(c)[`__scope${l}`];return{...o,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ne(e){const t=Ie(e),n=a.forwardRef((r,i)=>{const{children:c,...s}=r,o=a.Children.toArray(c),v=o.find(Be);if(v){const l=v.props.children,d=o.map(f=>f===v?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:f);return P.jsx(t,{...s,ref:i,children:a.isValidElement(l)?a.cloneElement(l,void 0,d):null})}return P.jsx(t,{...s,ref:i,children:c})});return n.displayName=`${e}.Slot`,n}function Ie(e){const t=a.forwardRef((n,r)=>{const{children:i,...c}=n;if(a.isValidElement(i)){const s=_e(i),o=We(c,i.props);return i.type!==a.Fragment&&(o.ref=r?Le(r,s):s),a.cloneElement(i,o)}return a.Children.count(i)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Me=Symbol("radix.slottable");function Be(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Me}function We(e,t){const n={...t};for(const r in t){const i=e[r],c=t[r];/^on[A-Z]/.test(r)?i&&c?n[r]=(...o)=>{const v=c(...o);return i(...o),v}:i&&(n[r]=i):r==="style"?n[r]={...i,...c}:r==="className"&&(n[r]=[i,c].filter(Boolean).join(" "))}return{...e,...n}}function _e(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 Ue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Ue.reduce((e,t)=>{const n=Ne(`Primitive.${t}`),r=a.forwardRef((i,c)=>{const{asChild:s,...o}=i,v=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(v,{...o,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function je(e,t){e&&Ae.flushSync(()=>e.dispatchEvent(t))}function I(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function He(e,t=globalThis?.document){const n=I(e);a.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ve="DismissableLayer",J="dismissableLayer.update",$e="dismissableLayer.pointerDownOutside",Ke="dismissableLayer.focusOutside",oe,Ee=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ye=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:s,onDismiss:o,...v}=e,l=a.useContext(Ee),[d,f]=a.useState(null),h=d?.ownerDocument??globalThis?.document,[,y]=a.useState({}),w=te(t,E=>
vendor: 9,954 bytes, line 1
1f(E)),u=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),p=u.indexOf(m),g=d?u.indexOf(d):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,S=g>=p,C=ze(E=>{const O=E.target,A=[...l.branches].some(N=>N.contains(O));!S||A||(i?.(E),s?.(E),E.defaultPrevented||o?.())},h),R=Ze(E=>{const O=E.target;[...l.branches].some(N=>N.contains(O))||(c?.(E),s?.(E),E.defaultPrevented||o?.())},h);return He(E=>{g===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&o&&(E.preventDefault(),o()))},h),a.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(oe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=oe)}},[d,h,n,l]),a.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ae())},[d,l]),a.useEffect(()=>{const E=()=>y({});return document.addEventListener(J,E),()=>document.removeEventListener(J,E)},[]),P.jsx(V.div,{...v,ref:w,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,R.onFocusCapture),onBlurCapture:K(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,C.onPointerDownCapture)})});Ye.displayName=Ve;var Xe="DismissableLayerBranch",Ge=a.forwardRef((e,t)=>{const n=a.useContext(Ee),r=a.useRef(null),i=te(t,r);return a.useEffect(()=>{const c=r.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),P.jsx(V.div,{...e,ref:i})});Ge.displayName=Xe;function ze(e,t=globalThis?.document){const n=I(e),r=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{const c=o=>{if(o.target&&!r.current){let v=function(){ge($e,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=v,t.addEventListener("click",i.current,{once:!0})):v()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",c),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ze(e,t=globalThis?.document){const n=I(e),r=a.useRef(!1);return a.useEffect(()=>{const i=c=>{c.target&&!r.current&&ge(Ke,n,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){const e=new CustomEvent(J);document.dispatchEvent(e)}function ge(e,t,n,{discrete:r}){const i=n.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?je(i,c):i.dispatchEvent(c)}var Y=0;function nn(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ie()),document.body.insertAdjacentElement("beforeend",e[1]??ie()),Y++,()=>{Y===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Y--}},[])}function ie(){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 X="focusScope.autoFocusOnMount",G="focusScope.autoFocusOnUnmount",ce={bubbles:!1,cancelable:!0},qe="FocusScope",Qe=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:c,...s}=e,[o,v]=a.useState(null),l=I(i),d=I(c),f=a.useRef(null),h=te(t,u=>v(u)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let u=function(b){if(y.paused||!o)return;const S=b.target;o.contains(S)?f.current=S:k(f.current,{select:!0})},m=function(b){if(y.paused||!o)return;const S=b.relatedTarget;S!==null&&(o.contains(S)||k(f.current,{select:!0}))},p=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&k(o)};document.addEventListener("focusin",u),document.addEventListener("focusout",m);const g=new MutationObserver(p);return o&&g.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",m),g.disconnect()}}},[r,o,y.paused]),a.useEffect(()=>{if(o){ue.add(y);const u=document.activeElement;if(!o.contains(u)){const p=new CustomEvent(X,ce);o.addEventListener(X,l),o.dispatchEvent(p),p.defaultPrevented||(Je(ot(be(o)),{select:!0}),document.activeElement===u&&k(o))}return()=>{o.removeEventListener(X,l),setTimeout(()=>{const p=new CustomEvent(G,ce);o.addEventListener(G,d),o.dispatchEvent(p),p.defaultPrevented||k(u??document.body,{select:!0}),o.removeEventListener(G,d),ue.remove(y)},0)}}},[o,l,d,y]);const w=a.useCallback(u=>{if(!n&&!r||y.paused)return;const m=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=document.activeElement;if(m&&p){const g=u.currentTarget,[b,S]=et(g);b&&S?!u.shiftKey&&p===S?(u.preventDefault(),n&&k(b,{select:!0})):u.shiftKey&&p===b&&(u.preventDefault(),n&&k(S,{select:!0})):p===g&&u.preventDefault()}},[n,r,y.paused]);return P.jsx(V.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Qe.displayName=qe;function Je(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function et(e){const t=be(e),n=se(t,e),r=se(t.reverse(),e);return[n,r]}function be(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function se(e,t){for(const n of e)if(!tt(n,{upTo:t}))return n}function tt(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 nt(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nt(e)&&t&&e.select()}}var ue=rt();function rt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=le(e,t),e.unshift(t)},remove(t){e=le(e,t),e[0]?.resume()}}}function le(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ot(e){return e.filter(t=>t.tagName!=="A")}var ne=globalThis?.document?a.useLayoutEffect:()=>{},at=pe[" useId ".trim().toString()]||(()=>{}),it=0;function rn(e){const[t,n]=a.useState(at());return ne(()=>{n(r=>r??String(it++))},[e]),e||(t?`radix-${t}`:"")}var ct="Portal",st=a.forwardRef((e,t)=>{const{container:n,...r}=e,[i,c]=a.useState(!1);ne(()=>c(!0),[]);const s=n||i&&globalThis?.document?.body;return s?De.createPortal(P.jsx(V.div,{...r,ref:t}),s):null});st.displayName=ct;var ut=pe[" useInsertionEffect ".trim().toString()]||ne;function on({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,c,s]=lt({defaultProp:t,onChange:n}),o=e!==void 0,v=o?e:i;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const f=d.current;f!==o&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,r])}const l=a.useCallback(d=>{if(o){const f=ft(d)?d(e):d;f!==e&&s.current?.(f)}else c(d)},[o,e,c,s]);return[v,l]}function lt({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),i=a.useRef(n),c=a.useRef(t);return ut(()=>{c.current=t},[t]),a.useEffect(()=>{i.current!==n&&(c.current?.(n),i.current=n)},[n,i]),[n,r,c]}function ft(e){return typeof e=="function"}var dt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},D=new WeakMap,B=new WeakMap,W={},z=0,Se=function(e){return e&&(e.host||Se(e.parentNode))},vt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Se(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ht=function(e,t,n,r){var i=vt(t,Array.isArray(e)?e:[e]);W[n]||(W[n]=new WeakMap);var c=W[n],s=[],o=new Set,v=new Set(i),l=function(f){!f||o.has(f)||(o.add(f),l(f.parentNode))};i.forEach(l);var d=function(f){!f||v.has(f)||Array.prototype.forEach.call(f.children,function(h){if(o.has(h))d(h);else try{var y=h.getAttribute(r),w=y!==null&&y!=="false",u=(D.get(h)||0)+1,m=(c.get(h)||0)+1;D.set(h,u),c.set(h,m),s.push(h),u===1&&w&&B.set(h,!0),m===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",h,p)}})};return d(t),o.clear(),z++,function(){s.forEach(function(f){var h=D.get(f)-1,y=c.get(f)-1;D.set(f,h),c.set(f,y),h||(B.has(f)||f.removeAttribute(r),B.delete(f)),y||f.removeAttribute(n)}),z--,z||(D=new WeakMap,D=new WeakMap,B=new WeakMap,W={})}},an=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=dt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),ht(r,i,n,"aria-hidden")):function(){return null}},j="right-scroll-bar-position",H="width-before-scroll-bar",mt="with-scroll-bars-hidden",pt="--removed-body-scroll-bar-size";function Z(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 i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Et=typeof window<"u"?a.useLayoutEffect:a.useEffect,fe=new WeakMap;function gt(e,t){var n=yt(null,function(r){return e.forEach(function(i){return Z(i,r)})});return Et(function(){var r=fe.get(n);if(r){var i=new Set(r),c=new Set(e),s=n.current;
vendor: 4,172 bytes, lines 1-16
1i.forEach(function(o){c.has(o)||Z(o,null)}),c.forEach(function(o){i.has(o)||Z(o,s)})}fe.set(n,e)},[e]),n}function bt(e){return e}function St(e,t){t===void 0&&(t=bt);var n=[],r=!1,i={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(c){var s=t(c,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(c){for(r=!0;n.length;){var s=n;n=[],s.forEach(c)}n={push:function(o){return c(o)},filter:function(){return n}}},assignMedium:function(c){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(c),s=n}var v=function(){var d=s;s=[],d.forEach(c)},l=function(){return Promise.resolve().then(v)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return i}function wt(e){e===void 0&&(e={});var t=St(null);return t.options=T({async:!0,ssr:!1},e),t}var we=function(e){var t=e.sideCar,n=ye(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,T({},n))};we.isSideCarExport=!0;function Ct(e,t){return e.useMedium(t),we}var Ce=wt(),q=function(){},$=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),i=r[0],c=r[1],s=e.forwardProps,o=e.children,v=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,y=e.noRelative,w=e.noIsolation,u=e.inert,m=e.allowPinchZoom,p=e.as,g=p===void 0?"div":p,b=e.gapMode,S=ye(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,R=gt([n,t]),E=T(T({},S),i);return a.createElement(a.Fragment,null,d&&a.createElement(C,{sideCar:Ce,removeScrollBar:l,shards:f,noRelative:y,noIsolation:w,inert:u,setCallbacks:c,allowPinchZoom:!!m,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(o),T(T({},E),{ref:R})):a.createElement(g,T({},E,{className:v,ref:R}),o))});$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$.classNames={fullWidth:H,zeroRight:j};var Rt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rt();return t&&e.setAttribute("nonce",t),e}function kt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ot=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pt())&&(kt(t,n),Tt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},At=function(){var e=Ot();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Re=function(){var e=At(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Dt={left:0,top:0,right:0,gap:0},Q=function(e){return parseInt(e||"",10)||0},xt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Q(n),Q(r),Q(i)]},Lt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dt;var t=xt(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])}},Ft=Re(),F="data-scroll-locked",Nt=function(e,t,n,r){var i=e.left,c=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(mt,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(o,"px ").concat(r,`; 5 } 6 body[`).concat(F,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(i,`px; 11 padding-top: `).concat(c,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(o,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(j,` { 20 right: `).concat(o,"px ").concat(r,`; 21 } 22 23 .`).concat(H,` { 24 margin-right: `).concat(o,"px ").concat(r,`; 25 } 26 27 .`).concat(j," .").concat(j,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(H," .").concat(H,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(F,`] { 36 `).concat(pt,": ").concat(o,`px; 37 } 38`)},de=function(){var e=parseInt(document.body.getAttribute(F)||"0",10);return isFinite(e)?e:0},It=function(){a.useEffect(function(){return document.body.setAttribute(F,(de()+1).toString()),function(){var e=de()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},Mt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;It();var c=a.useMemo(function(){return Lt(i)},[i]);return a.createElement(Ft,{styles:Nt(c,!t,i,n?"":"!important")})},ee=!1;if(typeof window<"u")try{var _=Object.defineProperty({},"passive",{get:function(){return ee=!0,!0}});window.addEventListener("test",_,_),window.removeEventListener("test",_,_)}catch{ee=!1}var x=ee?{passive:!1}:!1,Bt=function(e){return e.tagName==="TEXTAREA"},Pe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Bt(e)&&n[t]==="visible")},Wt=function(e){return Pe(e,"overflowY")},_t=function(e){return Pe(e,"overflowX")},ve=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=ke(e,r);if(i){var c=Te(e,r),s=c[1],o=c[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ut=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ke=function(e,t){return e==="v"?Wt(t):_t(t)},Te=function(e,t){return e==="v"?Ut(t):jt(t)},Ht=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vt=function(e,t,n,r,i){var c=Ht(e,window.getComputedStyle(t).direction),s=c*r,o=n.target,v=t.contains(o),l=!1,d=s>0,f=0,h=0;do{if(!o)break;var y=Te(e,o),w=y[0],u=y[1],m=y[2],p=u-m-c*w;(w||p)&&ke(e,o)&&(f+=p,h+=w);var g=o.parentNode;o=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!v&&o!==document.body||v&&(t.contains(o)||t===o));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(l=!0),l},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},he=function(e){return[e.deltaX,e.deltaY]},me=function(e){return e&&"current"in e?e.current:e},$t=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kt=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Yt=0,L=[];function Xt(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(Yt++)[0],c=a.useState(Re)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var u=xe([e.lockRef.current],(e.shards||[]).map(me),!0).filter(Boolean);return u.forEach(function(m){return m.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),u.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=a.useCallback(function(u,m){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!s.current.allowPinchZoom;var p=U(u),g=n.current,b="deltaX"in u?u.deltaX:g[0]-p[0],S="deltaY"in u?u.deltaY:g[1]-p[1],C,R=u.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in u&&E==="h"&&R.type==="range")return!1;var O=window.getSelection(),A=O&&O.anchorNode,N=A?A===R||A.contains(R):!1;if(N)return!1;var M=ve(E,R);if(!M)return!0;if(M?C=E:(C=E==="v"?"h":"v",M=ve(E,R)),!M)return!1;if(!r.current&&"changedTouches"in u&&(b||S)&&(r.current=C),!C)return!0;var re=r.current||C;return Vt(re,m,u,re==="h"?b:S)},[]),v=a.useCallback(function(u){var m=u;if(!(!L.length||L[L.length-1]!==c)){var p="deltaY"in m?he(m):U(m),g=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&$t(C.delta,p)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}
41if(!g){var b=(s.current.shards||[]).map(me).filter(Boolean).filter(function(C){return C.contains(m.target)}),S=b.length>0?o(m,b[0]):!s.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),l=a.useCallback(function(u,m,p,g){var b={name:u,delta:m,target:p,should:g,shadowParent:Gt(p)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),d=a.useCallback(function(u){n.current=U(u),r.current=void 0},[]),f=a.useCallback(function(u){l(u.type,he(u),u.target,o(u,e.lockRef.current))},[]),h=a.useCallback(function(u){l(u.type,U(u),u.target,o(u,e.lockRef.current))},[]);a.useEffect(function(){return L.push(c),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",v,x),document.addEventListener("touchmove",v,x),document.addEventListener("touchstart",d,x),function(){L=L.filter(function(u){return u!==c}),document.removeEventListener("wheel",v,x),document.removeEventListener("touchmove",v,x),document.removeEventListener("touchstart",d,x)}},[]);var y=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(c,{styles:Kt(i)}):null,y?a.createElement(Mt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Gt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zt=Ct(Ce,Xt);var Zt=a.forwardRef(function(e,t){return a.createElement($,T({},e,{ref:t,sideCar:zt}))});Zt.classNames=$.classNames;const Oe=[{key:"pothole",label:"Pothole",color:"#E24B4A",match:/pothole/i},{key:"graffiti",label:"Graffiti",color:"#EF9F27",match:/graffiti/i},{key:"street_light",label:"Street light",color:"#FAC775",match:/street\s*light|light\s*out/i},{key:"rodent",label:"Rodent",color:"#7F77DD",match:/rodent|rat/i},{key:"tree",label:"Tree",color:"#3FA34D",match:/tree/i},{key:"sidewalk",label:"Sidewalk",color:"#B08968",match:/sidewalk/i},{key:"sign",label:"Sign",color:"#0EA5E9",match:/sign/i},{key:"vehicle",label:"Vehicle",color:"#9333EA",match:/abandoned\s*vehicle|vehicle/i},{key:"traffic_signal",label:"Traffic signal",color:"#F472B6",match:/traffic\s*signal/i},{key:"water",label:"Water",color:"#06B6D4",match:/water/i},{key:"sewer",label:"Sewer",color:"#475569",match:/sewer/i},{key:"garbage",label:"Garbage / Recycling",color:"#16A34A",match:/garbage|recycling|cart/i},{key:"building",label:"Building / Permit",color:"#A16207",match:/building|construction|permit/i},{key:"dumping",label:"Dumping / Debris",color:"#78350F",match:/fly\s*dumping|dumping|debris/i},{key:"bicycle",label:"Bicycle",color:"#22D3EE",match:/bicycle|bike/i},{key:"alley",label:"Alley",color:"#C026D3",match:/alley/i},{key:"other",label:"Other",color:"#888780"}],qt="#888780";function cn(e){for(const t of Oe)if(t.match&&t.match.test(e))return t.key;return"other"}function sn(e){for(const t of Oe)if(t.match&&t.match.test(e))return t.color;return qt}export{Ye as D,Qe as F,Oe as I,V as P,Zt as R,rn as a,st as b,K as c,tn as d,nn as e,sn as f,cn as g,an as h,ne as i,I as j,en as k,on 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.