1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,122952,e=>{"use strict";let t;var r=e.i(843476),n=e.i(271645),i=e.i(657688),a=e.i(522016),s=e.i(129768),o=e.i(420865),l=e.i(566595),u=e.i(263676),d=e.i(778933),c=e.i(765031),h=e.i(399847),m=e.i(96315),p=e.i(860203);function f({href:e,label:t,icon:n,group:s}){let o=p.GROUP_PALETTES[s]||p.GROUP_PALETTES.community;return(0,r.jsxs)(a.default,{href:e,className:`${p.ACTION_ITEM} ${o.focus}`,children:[(0,r.jsx)("span",{className:`${p.ACTION_CIRCLE} ${o.idle}`,children:n?(0,r.jsx)(n,{className:"size-7",strokeWidth:1.6,"aria-hidden":"true"}):(0,r.jsx)(i.default,{src:"/img/hand.svg",alt:"",width:50,height:64,className:"h-9 w-auto","aria-hidden":"true"})}),(0,r.jsx)("span",{className:`${p.ACTION_LABEL} text-ink-meta `,children:t})]})}function g({person:e=null}){let t=String(e?.id||"").trim();return(0,r.jsxs)("section",{children:[t?(0,r.jsx)("div",{className:"mb-5 flex justify-center",children:(0,r.jsx)(f,{href:`/user/submissions/mmip-update?case=${encodeURIComponent(t)}`,label:`Send a tip about ${e.name}`,icon:h.AlertCircle,group:"mmip"})}):null,(0,r.jsx)("h2",{className:"text-sm font-medium text-ink-heading",children:"Do you have an update or information to share?"}),(0,r.jsx)("p",{className:"mt-2 text-sm/6 text-ink-secondary",children:"Help us keep this record accurate. Submit a tip, upload a digital flyer, or contact our newsroom."}),(0,r.jsxs)("div",{className:"mt-5 grid grid-cols-3 gap-x-2",children:[(0,r.jsx)(f,{href:"/user/submissions/mmip-tip",label:"MMIP Tip",group:"mmip"}),(0,r.jsx)(f,{href:"/user/submissions/mmip-flyer",label:"MMIP Flyer",group:"mmip"}),(0,r.jsx)(f,{href:"/user/submissions/contact",label:"Contact Newsroom",icon:m.Mail,group:"newsroom"})]})]})}let x="/mmip";function b(e){if(null==e||"boolean"==typeof e||"string"==typeof e&&!e.trim())return null;let t=Number(e);return Number.isFinite(t)?t:null}function y(e){if(!Array.isArray(e)||!e.length)return[];let t=[],r=!1;for(let n of e){if(!n||"object"!=typeof n){r=!0;continue}let e=n.id??n.documentId,i=function(e){if(!Array.isArray(e)||2!==e.length)return null;let t=b(e[0]),r=b(e[1]);return null===t||null===r||t<-180||t>180||r<-90||r>90?null:[t,r]}(n.coordinates);if(null==e||!i){r=!0;continue}let a=String(e);if(a===n.id&&i[0]===n.coordinates[0]&&i[1]===n.coordinates[1]){t.push(n);continue}r=!0,t.push({...n,id:a,coordinates:i})}return r?t:e}function k(e){return String(e||"").normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g," ").trim().toLocaleLowerCase()}function w(e){return[e?.name,...Array.isArray(e?.aliases)?e.aliases:[]]}function N(e){return[e?.locationLabel,e?.locationLongLabel,e?.locationCity,e?.locationState,e?.region?.name,e?.region?.code,e?.regionName,e?.regionCode]}function M(e,t){return e.some(e=>(function(e,t){let r=k(e);if(r.includes(t))return!0;let n=r.split(" ").filter(Boolean);return t.split(" ").every(e=>n.includes(e))})(e,t))}let v={key:"new",color:"#DE5443",label:"Missing less than 30 days"},j={key:"missing",color:"#A31621",label:"Missing (actively listed)"},A={key:"unverified",color:"#46698C",label:"No longer on official lists"},S={key:"deceased",color:"#2B2B2B",label:"Found deceased (tracked cases)"},_={key:"safe",color:"#3A735C",label:"Found safe (tracked cases)"},T=new Set(["murdered","suspicious_death","death_in_custody"]),P=new Set(["found_deceased","remains_recovered"]),C=new Set(["returned_safe","found_safe"]);function I(e={},{now:t=Date.now()}={}){let r=String(e.outcome||"").toLowerCase(),n=String(e.caseType||"").toLowerCase();if(P.has(r)||T.has(n))return S;if(C.has(r))return _;let i=e.lastSeenRaw?new Date(e.lastSeenRaw).getTime():NaN,a=t-i;return Number.isFinite(i)&&a>=0&&a<=2592e6?v:"delisted_unconfirmed"===String(e.listingStatus||"").toLowerCase()?A:j}let E=new Set(["missing","missing_endangered"]);function $(e={},{now:t=Date.now()}={}){let r=String(e.outcome||"").toLowerCase(),n=String(e.caseType||"").toLowerCase();if(P.has(r)||T.has(n))return"Found deceased";if(C.has(r))return"Found safe";if(n&&!E.has(n))return e.caseTypeLabel||"MMIP case";let i=e.lastSeenRaw?new Date(e.lastSeenRaw).getTime():NaN,a=t-i;if(Number.isFinite(i)&&a>=0){if(a<=6048e5)return"Missing this week";if(a<=2592e6)return"Missing less than 30 days"}return"Missing"}let L=Math.PI*(3-Math.sqrt(5));function F({peopleCount:e,dataMeta:t}){let n=Number(t?.total||0);if(e>0&&!t?.error)return null;let i=t?.error?"The MMIP map is temporarily unavailable. Please try again later.":n>0?`${n} public MMIP records loaded;
1 none have map coordinates yet.`:"No mapped MMIP records yet.";return(0,r.jsxs)("div",{role:"status",className:"absolute bottom-4 left-4 z-10 max-w-xs rounded-md bg-white/90 px-3 py-2 text-xs text-ink-secondary shadow ring-1 ring-black/10 backdrop-blur dark:bg-shark-950/85 dark:ring-shark-800",children:[(0,r.jsx)("div",{className:"font-semibold text-ink-heading",children:"MMIP map"}),(0,r.jsx)("div",{className:"mt-0.5 text-ink-meta",children:i})]})}let z=(0,e.i(456420).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);var D=e.i(882505);e.i(486886);var R=e.i(86086);let Z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],O=new Uint32Array(96);class U{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[t,r]=new Uint8Array(e,0,2);if(219!==t)throw Error("Data does not appear to be in a KDBush format.");let n=r>>4;if(1!==n)throw Error(`Got v${n} data when expected v1.`);let i=Z[15&r];if(!i)throw Error("Unrecognized array type.");let[a]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new U(s,a,i,void 0,e)}constructor(e,t=64,r=Float64Array,n=ArrayBuffer,i){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const a=Z.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,o=e*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-o%8)%8;if(a<0)throw Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,e),this.coords=new r(i,8+o+l,2*e),this._pos=2*e,this._finished=!0;else{const i=this.data=new n(8+s+o+l);this.ids=new this.IndexArrayType(i,8,e),this.coords=new r(i,8+o+l,2*e),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,16+a]),new Uint16Array(i,2,1)[0]=t,new Uint32Array(i,4,1)[0]=e}}add(e,t){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return function e(t,r,n,i,a,s){if(a-i<=n)return;let o=i+a>>1;(function e(t,r,n,i,a,s){for(;a>i;){if(a-i>600){let o=a-i+1,l=n-i+1,u=Math.log(o),d=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*d*(o-d)/o)*(l-o/2<0?-1:1),h=Math.max(i,Math.floor(n-l*d/o+c)),m=Math.min(a,Math.floor(n+(o-l)*d/o+c));e(t,r,n,h,m,s)}let o=r[2*n+s],l=i,u=a;for(B(t,r,i,n),r[2*a+s]>o&&B(t,r,i,a);l<u;){for(B(t,r,l,u),l++,u--;r[2*l+s]<o;)l++;for(;r[2*u+s]>o;)u--}r[2*i+s]===o?B(t,r,i,u):B(t,r,++u,a),u<=n&&(i=u+1),n<=u&&(a=u-1)}})(t,r,o,i,a,s),e(t,r,n,i,o-1,1-s),e(t,r,n,o+1,a,1-s)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:a,nodeSize:s}=this;O[0]=0,O[1]=i.length-1,O[2]=0;let o=3,l=[];for(;o>0;){let u=O[--o],d=O[--o],c=O[--o];if(d-c<=s){for(let s=c;s<=d;s++){let o=a[2*s],u=a[2*s+1];o>=e&&o<=r&&u>=t&&u<=n&&l.push(i[s])}continue}let h=c+d>>1,m=a[2*h],p=a[2*h+1];m>=e&&m<=r&&p>=t&&p<=n&&l.push(i[h]),(0===u?e<=m:t<=p)&&(O[o++]=c,O[o++]=h-1,O[o++]=1-u),(0===u?r>=m:n>=p)&&(O[o++]=h+1,O[o++]=d,O[o++]=1-u)}return l}within(e,t,r){let n=[];return this.withinInto(e,t,r,n),n}withinInto(e,t,r,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:a,nodeSize:s}=this;O[0]=0,O[1]=i.length-1,O[2]=0;let o=3,l=0,u=r*r;for(;o>0;){let d=O[--o],c=O[--o],h=O[--o];if(c-h<=s){for(let r=h;r<=c;r++)q(a[2*r],a[2*r+1],e,t)<=u&&(n[l++]=i[r]);continue}let m=h+c>>1,p=a[2*m],f=a[2*m+1];q(p,f,e,t)<=u&&(n[l++]=i[m]),(0===d?e-r<=p:t-r<=f)&&(O[o++]=h,O[o++]=m-1,O[o++]=1-d),(0===d?e+r>=p:t+r>=f)&&(O[o++]=m+1,O[o++]=c,O[o++]=1-d)}return l}}function B(e,t,r,n){W(e,r,n),W(t,2*r,2*n),W(t,2*r+1,2*n+1)}function W(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function q(e,t,r,n){let i=e-r,a=t-n;return i*i+a*a}let V={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Y=Math.fround||(t=new Float32Array(1),e=>(t[0]=+e,t[0]));class K{constructor(e){this.options=Object.assign(Object.create(V),e),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:r,maxZoom:n}=this.options;t&&console.time("total time");let i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;let a=[];for(let t=0;t<e.length;t++){let r=e[t];if(!r.geometry)continue;let[n,i]=r.geometry.coordinates,s=Y(X(n)),o=Y(J(i));a.push(s,o,1/0,t,-1,1),this.options.reduce&&a.push(0)}let s=this.trees[n+1]=this._createTree(a);t&&console.timeEnd(i);for(let e=n;e>=r;e--){let r=+Date.now();s=this.trees[e]=this._createTree(this._cluster(s,e)),t&&console.log("z%d: %d clusters in %dms",e,s.numItems,Date.now()-r)}
1return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,e[1])),i=180===e[2]?180:((e[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){let e=this.getClusters([r,n,180,a],t),s=this.getClusters([-180,n,i,a],t);return e.concat(s)}let s=this.trees[this._limitZoom(t)],o=s.range(X(r),J(a),X(i),J(n)),l=s.data,u=[];for(let e of o){let t=this.stride*e;u.push(l[t+5]>1?G(l,t,this.clusterProps):this.points[l[t+3]])}return u}getChildren(e){let t=this._getOriginId(e),r=this._getOriginZoom(e),n="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(n);let a=i.data;if(t*this.stride>=a.length)throw Error(n);let s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),o=a[t*this.stride],l=a[t*this.stride+1],u=i.within(o,l,s),d=[];for(let t of u){let r=t*this.stride;a[r+4]===e&&d.push(a[r+5]>1?G(a,r,this.clusterProps):this.points[a[r+3]])}if(0===d.length)throw Error(n);return d}getLeaves(e,t,r){t=t||10,r=r||0;let n=[];return this._appendLeaves(n,e,t,r,0),n}getTile(e,t,r){let n=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/i,u=(r+1+o)/i,d={features:[]};return this._addTileFeatures(n.range((t-o)/i,l,(t+1+o)/i,u),n.data,t,r,i,d),0===t&&this._addTileFeatures(n.range(1-o/i,l,1,u),n.data,i,r,i,d),t===i-1&&this._addTileFeatures(n.range(0,l,o/i,u),n.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,n,i){for(let a of this.getChildren(t)){let t=a.properties;if(t&&t.cluster?i+t.point_count<=n?i+=t.point_count:i=this._appendLeaves(e,t.cluster_id,r,n,i):i<n?i++:e.push(a),e.length===r)break}return i}_createTree(e){let t=new U(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)t.add(e[r],e[r+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,r,n,i,a){for(let s of e){let e,o,l,u,d=s*this.stride,c=t[d+5]>1;if(c)e=Q(t,d,this.clusterProps),o=t[d],l=t[d+1];else{let r=this.points[t[d+3]];e=r.properties;let[n,i]=r.geometry.coordinates;o=X(n),l=J(i)}let h={type:1,geometry:[[Math.round(this.options.extent*(o*i-r)),Math.round(this.options.extent*(l*i-n))]],tags:e};void 0!==(u=c||this.options.generateId?t[d+3]:this.points[t[d+3]].id)&&(h.id=u),a.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){let{radius:r,extent:n,reduce:i,minPoints:a}=this.options,s=r/(n*Math.pow(2,t)),o=e.data,l=[],u=this.stride;for(let r=0;r<o.length;r+=u){if(o[r+2]<=t)continue;o[r+2]=t;let n=o[r],d=o[r+1],c=e.within(o[r],o[r+1],s),h=o[r+5],m=h;for(let e of c){let r=e*u;o[r+2]>t&&(m+=o[r+5])}if(m>h&&m>=a){let e,a=n*h,s=d*h,p=-1,f=(r/u<<5)+(t+1)+this.points.length;for(let n of c){let l=n*u;if(o[l+2]<=t)continue;o[l+2]=t;let d=o[l+5];a+=o[l]*d,s+=o[l+1]*d,o[l+4]=f,i&&(e||(e=this._map(o,r,!0),p=this.clusterProps.length,this.clusterProps.push(e)),i(e,this._map(o,l)))}o[r+4]=f,l.push(a/m,s/m,1/0,f,-1,m),i&&l.push(p)}else{for(let e=0;e<u;e++)l.push(o[r+e]);if(m>1)for(let e of c){let r=e*u;if(!(o[r+2]<=t)){o[r+2]=t;for(let e=0;e<u;e++)l.push(o[r+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+5]>1){let n=this.clusterProps[e[t+6]];return r?Object.assign({},n):n}let n=this.points[e[t+3]].properties,i=this.options.map(n);return r&&i===n?Object.assign({},i):i}}function G(e,t,r){return{type:"Feature",id:e[t+3],properties:Q(e,t,r),geometry:{type:"Point",coordinates:[(e[t]-.5)*360,360*Math.atan(Math.exp((180-360*e[t+1])*Math.PI/180))/Math.PI-90]}}}function Q(e,t,r){let n=e[t+5],i=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?`${Math.round(n/100)/10}k`:n,a=e[t+6];return Object.assign(-1===a?{}:Object.assign({},r[a]),{cluster:!0,cluster_id:e[t+3],point_count:n,point_count_abbreviated:i})}function X(e){return e/360+.5}function J(e){let t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}var H=e.i(515075),ee=e.i(665463);function et(e){if(!Array.isArray(e)||2!==e.length)return"";let[t,r]=e;return`${Number(t).toFixed(6)},${Number(r).toFixed(6)}`}function er(e){let t=Number(e);return Number.isFinite(t)?Math.max(t,9):9}let en="var(--color-missing-800)",ei={basemap:{lightPreset:"day",theme:"monochrome",show3dObjects:!1,showPointOfInterestLabels:!1,showTransitLabels:!1}},ea={longitude:-96,latitude:39,zoom:4.15},es={id:"mmip-native-land-territories-fill",type:"fill","source-layer":ee.NATIVE_LAND_TILESET_LAYER,paint:{"fill-color":["coalesce",["get","color"],"#d93b0b"],"fill-opacity":.16}},eo={id:"mmip-native-land-territories-outline",type:"line","source-layer":ee.NATIVE_LAND_TILESET_LAYER,paint:{"line-color":["coalesce",["get","color"],"#9a2a0b"],"line-opacity":.65,"line-width":1}},el={id:"mmip-native-land-territories-label",type:"symbol","source-layer":ee.NATIVE_LAND_TILESET_LAYER,minzoom:3,layout:{"text-field":["get","Name"],"text-font":["Open Sans Semibold","Arial Unicode MS Bold"],"text-size":["interpolate",["linear"],["zoom"],3,10,7,13,10,15],"text-max-width":9,"text-allow-overlap":!1,"text-ignore-placement":!1},paint:{"text-color":"#5b2415","text-halo-color":"rgba(255,255,255,0.9)","text-halo-width":1.4,"text-opacity":["interpolate",["linear"],["zoom"],3,.45,6,.85]}};function eu({count:e,onClick:t,sizePx:n}){return(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),t?.(e)},onPointerDown:e=>{e.stopPropagation()},className:"grid place-items-center rounded-full text-xs font-semibold text-white shadow-md",style:{width:n,height:n,backgroundColor:en},"aria-label":`Zoom into cluster with ${e} points`,children:e})}function ed({code:e,count:t,name:n,onClick:i}){return(0,r.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),i?.(e)},onPointerDown:e=>e.stopPropagation(),className:"grid min-h-12 min-w-12 place-items-center rounded-full px-2 text-white shadow-md transition-opacity hover:opacity-90",style:{backgroundColor:en},"aria-label":`Open ${n||e} with ${t} ${1===t?"person":"people"}`,children:[(0,r.jsx)("span",{className:"text-[10px] leading-none font-semibold tracking-wide uppercase",children:e}),(0,r.jsx)("span",{className:"text-sm leading-none font-bold",children:t})]})}function ec({onClick:e,active:t,label:n,compact:i=!1,color:a}){return(0,r.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),e?.(t)},onPointerDown:e=>{e.stopPropagation()},className:"grid h-12 w-12 place-items-center transition",style:{color:t?"#1A73E8":a||j.color},"aria-label":n||"Open MMIP case",children:(0,r.jsx)("span",{"aria-hidden":"true",className:`${i?"h-7 w-7":"h-8 w-8"} block bg-current`,style:{WebkitMask:"url('/img/hand.svg') center / contain no-repeat",mask:"url('/img/hand.svg') center / contain no-repeat"}})})}function eh({activeTone:e,onSelectTone:t}){return(0,r.jsxs)("details",{className:"absolute bottom-7 left-3 z-10 overflow-hidden rounded-[18px] bg-white/80 font-sans text-ink-secondary shadow-sm ring-1 ring-black/10 backdrop-blur transition open:rounded-xl dark:bg-shark-950/75 dark:ring-shark-800",onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[(0,r.jsxs)("summary",{className:"flex h-9 cursor-pointer list-none items-center gap-1.5 px-3 text-[11px] font-medium transition hover:bg-white hover:text-ink-heading dark:hover:bg-shark-950 [&::-webkit-details-marker]:hidden",children:[(0,r.jsx)(D.List,{className:"h-3.5 w-3.5","aria-hidden":"true",strokeWidth:1.8}),(0,r.jsx)("span",{children:"Map Key"})]}),(0,r.jsx)("div",{className:"grid gap-2 border-t border-black/10 px-3 py-2 text-[11px] dark:border-shark-800",children:[v,j,A,S,_].map(n=>(0,r.jsxs)("button",{type:"button","aria-pressed":e===n.key,"aria-label":e===n.key?`Clear ${n.label} filter`:`Show only ${n.label}`,onClick:()=>t?.(e===n.key?null:n.key),className:`flex w-full items-center gap-1.5 rounded px-1.5 py-1 text-left transition ${e===n.key?"bg-shark-100 text-ink-heading dark:bg-shark-800":"hover:bg-shark-100/80 hover:text-ink-heading dark:hover:bg-shark-800"}`,children:[(0,r.jsx)("span",{className:"grid h-3.5 w-3.5 place-items-center",children:(0,r.jsx)("span",{className:"h-2 w-2 rounded-full",style:{backgroundColor:n.color},"aria-hidden":"true"})}),(0,r.jsx)("span",{className:e===n.key?"font-semibold":"",children:n.label}),e===n.key?(0,r.jsx)(u.X,{className:"ml-auto h-3.5 w-3.5 text-shark-500","aria-hidden":"true",strokeWidth:2}):null]},n.key))})]})}function em(e){return e.map(e=>{let[t,r]=e.geometry?.coordinates||[],n=e.properties||{};return[n.region_cluster?"region":n.cluster?"cluster":"person",n.region_key??n.cluster_id??n.id??"",n.point_count??"",t??"",r??""].join(":")}).join("|")}function ep({people:e,searchPeople:t,selectedId:i,focusId:a,onSelectPerson:s,onClearSelection:o,searchQuery:l,searchRevision:u,searchType:d,searchControl:c,activeTone:h,onSelectTone:m}){let p="pk.eyJ1IjoiaW1mYSIsImEiOiJjbWZjdDUxczEwMDgzMmlvZ3k0ZWU0bjVuIn0.AT-z
1cLL1k7ApIV9b6cVsfw",f=(0,n.useRef)(null),g=(0,n.useRef)(null),x=(0,n.useRef)(null),b=(0,n.useRef)(null),k=(0,n.useRef)(""),[w,N]=(0,n.useState)(!1),[M,v]=(0,n.useState)(!1),j=(0,n.useRef)(null),[A,S]=(0,n.useState)(null),[_,T]=(0,n.useState)([]),[P,C]=(0,n.useState)(null),[E,$]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>N(!0)),t=setTimeout(()=>N(!0),300);return()=>{cancelAnimationFrame(e),clearTimeout(t)}},[]);let F=(0,n.useMemo)(()=>y(e),[e]),D=(0,n.useMemo)(()=>y(t),[t]),Z=(0,n.useMemo)(()=>new Map(F.map(e=>[String(e.id),e])),[F]),O=(0,n.useMemo)(()=>new Set((P?.peopleIds||[]).map(String)),[P]),U=(0,n.useMemo)(()=>({type:"FeatureCollection",features:F.filter(e=>!O.has(String(e.id))).map(e=>({type:"Feature",properties:{cluster:!1,id:e.id},geometry:{type:"Point",coordinates:[e.coordinates[0],e.coordinates[1]]}}))}),[F,O]),B=(0,n.useMemo)(()=>(function(e=[]){let t=new Map,r=[];for(let n of e){let e=n?.coordinates;if(!Array.isArray(e)||2!==e.length)continue;let i=Number(e[0]),a=Number(e[1]);if(!Number.isFinite(i)||!Number.isFinite(a))continue;let s=n?.region;if(!s?.key){r.push(String(n?.id||""));continue}let o=t.get(s.key)||{region:s,ids:[],coordinates:[]};o.ids.push(String(n?.id||"")),o.coordinates.push([i,a]),t.set(s.key,o)}return{features:[...t.values()].map(({region:e,ids:t,coordinates:r})=>{let n=r.map(([e])=>e),i=r.map(([,e])=>e),a=Array.isArray(e.center)?e.center.map(Number):[],s=2===a.length&&a.every(Number.isFinite)?a:[n.reduce((e,t)=>e+t,0)/n.length,i.reduce((e,t)=>e+t,0)/i.length];return{type:"Feature",properties:{region_cluster:!0,region_key:e.key,region_code:e.code,region_name:e.name,point_count:t.length,people_ids:t,west:Math.min(...n),south:Math.min(...i),east:Math.max(...n),north:Math.max(...i)},geometry:{type:"Point",coordinates:s}}}),unknownIds:r}})(F),[F]),W=(0,n.useMemo)(()=>{let e=new Set(B.unknownIds);return{type:"FeatureCollection",features:U.features.filter(t=>e.has(String(t.properties?.id||"")))}},[U,B]),q=(0,n.useCallback)(()=>{let e=g.current?.getMap?.();if(!e)return;let t=e.getBounds?.();if(!t)return;let r=[t.getWest(),t.getSouth(),t.getEast(),t.getNorth()],n=e.getZoom?.()??0,i=Math.floor(n),a=n<=4.5,s=a?b.current:x.current;if(!s)return;let o=[...a?B.features.filter(e=>{let t=e.properties||{};return Number(t.east)>=r[0]&&Number(t.west)<=r[2]&&Number(t.north)>=r[1]&&Number(t.south)<=r[3]}):[],...s.getClusters(r,i)],l=em(o);T(e=>em(e)===l?e:o)},[B]);(0,n.useEffect)(()=>{let e=new K({radius:85,maxZoom:20});e.load(U.features),x.current=e;let t=new K({radius:85,maxZoom:20});t.load(W.features),b.current=t,q()},[U,W,q]),(0,n.useEffect)(()=>{if(!M||!u||!String(l||"").trim()||!D.length)return;let e=setTimeout(()=>{let e=g.current?.getMap?.();if(!e)return;let t=D.map(e=>e.coordinates[0]),r=D.map(e=>e.coordinates[1]),n=Math.min(...t),i=Math.min(...r),a=Math.max(...t),s=Math.max(...r);(e.stop?.(),n===a&&i===s)?e.easeTo?.({center:[n,i],zoom:"location"===d?10:1===D.length?12:10,duration:700}):e.fitBounds?.([[n,i],[a,s]],{padding:70,maxZoom:D.length<=5?10:7,duration:700})},150);return()=>clearTimeout(e)},[M,D,l,u,d]),(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>C(null));return()=>cancelAnimationFrame(e)},[F]),(0,n.useEffect)(()=>{let e=f.current;if(!e||"u"<typeof ResizeObserver)return;let t=0,r=new ResizeObserver(([e])=>{let r=Math.round(e?.contentRect?.width||0),n=Math.round(e?.contentRect?.height||0),i=`${r}x${n}`;r&&n&&k.current!==i&&(k.current=i,cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let e=g.current?.getMap?.();try{e?.resize?.()}catch{}q()}))});return r.observe(e),()=>{cancelAnimationFrame(t),r.disconnect()}},[q]);let V=(0,n.useCallback)(()=>{S(null),v(!0),requestAnimationFrame(()=>{try{g.current?.getMap?.()?.resize?.()}catch{}q()})},[q]);(0,n.useEffect)(()=>{if(!a||!M||j.current===String(a))return;let e=Z.get(String(a)),t=g.current?.getMap?.();e&&t&&Array.isArray(e.coordinates)&&(j.current=String(a),t.stop?.(),t.flyTo?.({center:e.coordinates,zoom:er(t.getZoom?.()??0),duration:1200}))},[a,M,Z]);let Y=(0,n.useCallback)(()=>{let e=g.current?.getMap?.()?.getZoom?.()??0;C(t=>!function(e,t){if(!e)return!1;let r=Number(t);return Number.isFinite(r)&&r<e.expandedAtZoom-.01}(t,e)?t:null),q()},[q]);return(i&&Z.get(String(i)),w)?(0,r.jsx)("div",{ref:f,className:"absolute inset-0 bg-shark-100 dark:bg-shark-950",children:(0,r.jsxs)(R.default,{ref:g,mapLib:H.default,workerClass:null,workerUrl:H.mapboxWorkerUrl,mapStyle:"mapbox://styles/mapbox/standard",config:ei,projection:"mercator",initialViewState:ea,width:"100%",height:"100%",mapboxAccessToken:p,mapboxApiAccessToken:p,onLoad:V,onMoveEnd:q,onZoomEnd:Y,onError:e=>{S(!0),console.error("Mapbox error:",e)},onClick:()=>{C(null),o?.()},onDragStart:()=>C(null),children:[E?(0,r.jsxs)(R.Source,{id:"mmip-native-land-territories",type:"vector",url:`mapbox://${ee.NATIVE_LAND_TILESET_ID}`,children:[(0,r.jsx)(R.Layer,{...es}),(0,r.jsx)(R.Layer,{...eo}),(0,r.jsx)(R.Layer,{...el})]}):null,c?(0,r.jsx)("div",{className:"absolute top-3 left-3 z-10",children:c}):null,(0,r.jsx)("div",{className:"absolute top-3 right-3 z-10 flex max-w-[calc(100%-1.5rem)] flex-col items-end gap-1.5",children:(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[E?(0,r.jsx)("a",{href:ee.NATIVE_LAND_MAP_URL,target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),className:"rounded-full bg-white/70 px-2 py-0.5 text-[10px] font-medium text-ink-meta shadow-sm backdrop-blur hover:bg-white hover:text-ink-body dark:bg-shark-950/60 dark:hover:bg-shark-950",children:"Native Land Digital"}):null,(0,r.jsx)("button",{type:"button","aria-pressed":E,"aria-label":"Toggle Native lands layer",title:"Native lands",onClick:e=>{e.stopPropagation(),$(e=>!e)},onPointerDown:e=>e.stopPropagation(),className:`grid h-9 w-9 place-items-center rounded-full shadow-sm ring-1 backdrop-blur transition ${E?"bg-buffalo-700/90 text-white ring-buffalo-800":"bg-white/80 text-ink-secondary ring-black/10 hover:bg-white hover:text-ink-heading dark:bg-shark-950/75 dark:ring-shark-800 dark:hover:bg-shark-950"}`,children:(0,r.jsx)(z,{className:"h-4 w-4","aria-hidden":"true",strokeWidth:1.8})})]})}),(0,r.jsx)(eh,{activeTone:h,onSelectTone:m}),_.map(e=>{let[t,n]=e.geometry.coordinates,a=e.properties||{};if(a.region_cluster){let e=Number(a.point_count)||0;return(0,r.jsx)(R.Marker,{longitude:t,latitude:n,anchor:"center",children:(0,r.jsx)(ed,{code:a.region_code,count:e,name:a.region_name,onClick:()=>{let e=g.current?.getMap?.();if(!e)return;let r=[[Number(a.west),Number(a.south)],[Number(a.east),Number(a.north)]],i=Number(a.west)!==Number(a.east)||Number(a.south)!==Number(a.north)?e.cameraForBounds?.(r,{padding:70,maxZoom:7}):null;e.stop?.(),e.easeTo?.({center:i?.center||[t,n],zoom:Math.max(Number(i?.zoom)||6,4.75),duration:700})}})},`region-${a.region_key}`)}if(a.cluster){let i=a.cluster_id,s=Number(a.point_count)||0;if(P?.key===et(e.geometry.coordinates))return null;let o=s<=2?34:s<=3?40:s<=4?46:s<=5?52:52+Math.min(48,1.6*s);return(0,r.jsx)(R.Marker,{longitude:t,latitude:n,anchor:"center",children:(0,r.jsx)(eu,{count:s,sizePx:o,onClick:()=>{let e=g.current?.getMap?.();if(!e)return;let r=(e.getZoom?.()??0)<=4.5?b.current:x.current;if(!r||null==i)return;let a=function(e,{longitude:t,latitude:r,currentZoom:n}){let i=new Set(e.map(e=>et(e?.geometry?.coordinates)));if(1!==i.size)return null;let a=[...i][0];return a?{key:a,longitude:t,latitude:r,expandedAtZoom:Math.max(14,Number(n)||0),peopleIds:e.map(e=>
1e?.properties?.id).filter(Boolean)}:null}(r.getLeaves(i,s),{longitude:t,latitude:n,currentZoom:e.getZoom?.()??0});if(a){C(a),e.stop?.(),e.easeTo?.({center:[t,n],zoom:a.expandedAtZoom,duration:500});return}let o=Math.min(r.getClusterExpansionZoom(i),20);C(null),e.stop?.(),e.easeTo?.({center:[t,n],zoom:o,duration:500})}})},`cluster-${i}-${t}-${n}`)}let o=a.id,l=String(o)===String(i),u=Z.get(String(o));return(0,r.jsx)(R.Marker,{longitude:t,latitude:n,anchor:"bottom",children:(0,r.jsx)(ec,{label:u?.name?`Open ${u.name}`:"Open MMIP case",onClick:()=>{s?.(o),C(null);let e=g.current?.getMap?.();if(!e)return;let r=e.getZoom?.()??0;e.stop?.(),e.flyTo?.({center:[t,n],zoom:er(r),duration:900})},active:l,color:I(u,void 0).color})},`person-${o}-${t}-${n}`)}),P?.peopleIds?.map((e,t)=>{let n=Z.get(String(e));if(!n)return null;let a=String(e)===String(i);return(0,r.jsx)(R.Marker,{longitude:P.longitude,latitude:P.latitude,anchor:"center",offset:function(e,t,{spacing:r=20,ringRadius:n=38}={}){if(!Number.isFinite(e)||!Number.isFinite(t)||t<=1)return[0,0];if(t<=6){let r=e/t*Math.PI*2-Math.PI/2;return[Math.round(Math.cos(r)*n),Math.round(Math.sin(r)*n)]}let i=r*Math.sqrt(e+.5),a=e*L;return[Math.round(Math.cos(a)*i),Math.round(Math.sin(a)*i)]}(t,P.peopleIds.length),children:(0,r.jsx)(ec,{compact:!0,label:n?.name?`Open ${n.name}`:"Open MMIP case",onClick:()=>{s?.(e)},active:a,color:I(n,void 0).color})},`stack-${P.key}-${e}`)}),null,A?(0,r.jsx)("div",{className:"pointer-events-none absolute right-3 bottom-3 left-3 z-20 flex justify-start",children:(0,r.jsxs)("div",{className:"pointer-events-auto max-w-sm rounded-md bg-white/90 px-3 py-2 text-xs text-ink-secondary shadow ring-1 ring-black/10 backdrop-blur dark:bg-shark-900/90 dark:ring-shark-800",children:[(0,r.jsx)("div",{className:"font-semibold text-ink-heading",children:"Map temporarily unavailable"}),(0,r.jsx)("div",{className:"mt-0.5",children:"Some parts of the map could not load. Please try again later."})]})}):null]})}):(0,r.jsx)("div",{className:"absolute inset-0 bg-shark-100 dark:bg-shark-950"})}function ef({activeQuery:e,onClear:t,onSearch:i,query:a,setQuery:s,shown:o,total:d,type:c}){let h=(0,n.useRef)(null),[m,p]=(0,n.useState)(!1),f=!!a.trim();return(0,r.jsxs)("form",{className:"flex flex-col items-start gap-1.5",onSubmit:e=>{e.preventDefault(),i(),p(!1)},onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[(0,r.jsx)("button",{type:"button",onClick:()=>{p(!0),requestAnimationFrame(()=>h.current?.focus())},"aria-label":"Open map search","aria-expanded":m,className:`${m?"hidden":"grid"} h-9 w-9 place-items-center rounded-full bg-white/80 shadow-sm ring-1 ring-black/10 backdrop-blur transition hover:bg-white hover:text-ink-heading xl:hidden dark:bg-shark-950/75 dark:ring-shark-800 dark:hover:bg-shark-950 ${f?"text-ink-secondary":"text-ink-meta"}`,children:(0,r.jsx)(l.Search,{className:"h-4 w-4","aria-hidden":"true",strokeWidth:1.8})}),(0,r.jsxs)("div",{className:`${m?"flex":"hidden"} h-9 w-[min(18rem,calc(100vw-1.5rem))] items-center gap-2 rounded-full bg-white/80 px-3 font-sans text-ink-meta shadow-sm ring-1 ring-black/10 backdrop-blur transition focus-within:bg-white focus-within:text-ink-heading xl:flex dark:bg-shark-950/75 dark:ring-shark-800 dark:focus-within:bg-shark-950 `,children:[(0,r.jsx)("input",{ref:h,type:"search",value:a,onChange:e=>s(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(e.currentTarget.blur(),p(!1))},placeholder:"Search name or location","aria-label":"Search by name or location",className:"min-w-0 flex-1 appearance-none bg-transparent font-sans text-[11px] font-normal text-ink-body outline-none placeholder:font-medium placeholder:text-ink-meta [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"}),f?(0,r.jsx)("button",{type:"button",onClick:()=>{t(),p(!1)},"aria-label":"Clear search",className:"grid h-5 w-5 shrink-0 place-items-center text-ink-meta hover:text-ink-body",children:(0,r.jsx)(u.X,{className:"h-3 w-3","aria-hidden":"true"})}):null,(0,r.jsx)("button",{type:"submit",disabled:!f,"aria-label":"Search",className:`grid h-6 w-6 shrink-0 place-items-center transition ${f?"text-ink-secondary hover:text-ink-heading":"text-ink-meta"}`,children:(0,r.jsx)(l.Search,{className:"h-3.5 w-3.5","aria-hidden":"true",strokeWidth:1.7})})]}),e?(0,r.jsx)("span",{className:`${m?"block":"hidden"} px-1 font-sans text-[10px] text-ink-meta drop-shadow-sm xl:block `,children:0===o?`No results found for â${e}â`:"location"===c?`${o} ${1===o?"case":"cases"} near ${e}`:`${o} of ${d}`}):null]})}function eg({icon:e,label:t,value:n,children:i}){let a=i??n;return a?(0,r.jsxs)("div",{className:"mt-4 w-full flex-none first:mt-0",children:[(0,r.jsxs)("dt",{className:"flex items-center gap-x-2 text-[11px] font-semibold tracking-wider text-ink-meta uppercase",children:[(0,r.jsx)(e,{"aria-hidden":"true",className:"h-4 w-4 flex-none text-shark-400 dark:text-shark-500"}),t]}),(0,r.jsx)("dd",{className:"mt-0.5 pl-6 text-sm/6 text-ink-heading",children:a})]}):null}function ex({onClose:e}){return(0,r.jsx)("button",{type:"button",onClick:e,className:"grid h-9 w-9 place-items-center rounded-full bg-white/80 text-ink-secondary shadow-sm ring-1 ring-black/10 backdrop-blur transition hover:bg-white hover:text-ink-heading dark:bg-shark-950/75 dark:ring-shark-800 dark:hover:bg-shark-950","aria-label":"Close panel",children:(0,r.jsx)(u.X,{className:"h-4 w-4","aria-hidden":"true",strokeWidth:1.8})})}function eb({open:e,onClose:t,person:n,className:i=""}){if(!e)return null;let l=function(e){let t=e?.ageAtLastSeen,r=e?.ageNow,n=[],i="Found safe"===$(e);if(null!=t&&n.push(0===t?"Reported missing before age 1":`Reported missing at age ${t}`),i){let t=new Date(e?.outcomeDate||"").getUTCFullYear();
1return Number.isFinite(t)&&n.push(`Case resolved in ${t}`),n.join(" · ")}return null!=r&&e?.caseType==="missing"&&(null==t||r>t)&&n.push(`would be ${r} today`),n.join(" · ")}(n),u=$(n),d="Found safe"===u;return(0,r.jsxs)("aside",{className:`relative h-full w-[420px] max-w-[85vw] overflow-y-auto border-r border-black/10 ${d?"bg-safe-50 dark:border-safe-950 dark:bg-safe-950/35":"bg-white dark:border-shark-800 dark:bg-shark-950"} ${i}`,children:[(0,r.jsxs)("div",{className:`relative border-b px-6 py-6 pr-16 ${d?"border-safe-100 dark:border-safe-900":"border-shark-100 dark:border-shark-800"}`,children:[(0,r.jsx)("div",{className:`text-[11px] font-semibold tracking-widest uppercase ${d?"text-safe-600 dark:text-safe-500":"text-missing-700 dark:text-missing-400"}`,children:u}),(0,r.jsx)("h2",{className:"mt-1 text-2xl font-semibold text-balance text-ink-heading",children:n?.name??"â"}),l?(0,r.jsx)("p",{className:"mt-1 text-sm text-ink-panel-meta",children:l}):null,(0,r.jsx)("div",{className:"absolute top-4 right-4",children:(0,r.jsx)(ex,{onClose:t})})]}),(0,r.jsxs)("div",{className:"px-6 pt-4 pb-6",children:[(0,r.jsxs)("dl",{className:"flex flex-wrap",children:[(0,r.jsx)(eg,{icon:s.CalendarDays,label:"Reported missing",value:n?.lastSeen?(0,r.jsx)("time",{dateTime:n?.lastSeenRaw||void 0,children:n.lastSeen}):null}),(0,r.jsx)(eg,{icon:o.MapPin,label:"Reported missing from",value:n?.locationLabel})]}),n?.slug?(0,r.jsx)(a.default,{href:`/mmip/${n.slug}`,className:"mt-6 inline-flex items-center space-x-1.5 rounded-sm bg-white px-2 py-1 text-sm font-normal text-ink-heading shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 dark:bg-white/10 dark:shadow-none dark:inset-ring-white/5 dark:hover:bg-white/20",children:(0,r.jsxs)("span",{children:["View ",n?.name,"'s profile"]})}):null,(0,r.jsx)("div",{className:"mt-8 border-t border-shark-100 pt-6 dark:border-shark-800",children:(0,r.jsx)(g,{person:n})})]})]})}e.s(["default",0,function({navigation:e,people:t=[],dataMeta:i}){let a=(0,n.useMemo)(()=>y(t),[t]),[s,o]=(0,n.useState)(!1),[l,u]=(0,n.useState)(null),[h,m]=(0,n.use
1State)(null),[p,f]=(0,n.useState)(""),[g,b]=(0,n.useState)(""),[v,j]=(0,n.useState)(null),[A,S]=(0,n.useState)(0),_=(0,n.useMemo)(()=>{if("safe"===v)return a.filter(e=>"safe"===I(e).key);let e=a.filter(e=>"safe"!==I(e).key);return v?e.filter(e=>I(e).key===v):e},[v,a]),T=(0,n.useMemo)(()=>(function(e,t){let r=Array.isArray(e)?e:[],n=k(t);if(!n)return{type:"all",matches:r};let i=r.filter(e=>w(e).some(e=>k(e)===n));if(i.length)return{type:"person",matches:i};let a=r.filter(e=>N(e).some(e=>{let t=k(e);return t===n||t.startsWith(`${n} `)}));if(a.length)return{type:"location",matches:a};let s=r.filter(e=>M(w(e),n));if(s.length)return{type:"person",matches:s};let o=r.filter(e=>M(N(e),n));return o.length?{type:"location",matches:o}:{type:"none",matches:[]}})(_,g),[g,_]),P="person"===T.type?T.matches:_;(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("case");if(!e)return;let t=a.find(t=>t.id===e);t&&($(t,{replace:!0}),u(e),o(!0),m(e))},[a]);let C=l?a.find(e=>e.id===l)??null:null,E=!!l,$=(e,{replace:t=!1}={})=>{!function({person:e,replace:t=!1,history:r,location:n,dataLayer:i,title:a}){let s;if(!r||!n)return;let o=e?(s="string"==typeof e?.slug?e.slug.trim():"")?`${x}/${s}`:null:x;if(!o||n.pathname===o)return;let l=`${o}${n.search||""}`,u={...r.state||{},mmipCase:e?.id??null};t?r.replaceState(u,"",l):r.pushState(u,"",l),Array.isArray(i)&&i.push({event:"pageview",page:o,page_path:o,page_title:e?.name?`${e.name} \xb7 MMIP Map`:a||"MMIP Map",page_location:`${n.origin}${l}`})}({person:e,replace:t,history:window.history,location:window.location,dataLayer:window.dataLayer=window.dataLayer||[],title:document.title})};return(0,n.useEffect)(()=>{let e=e=>{let t=e.state?.mmipCase??null;if(t&&a.some(e=>e.id===t)){u(t),o(!0),m(t);return}u(null),o(!1)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[a]),(0,r.jsx)(c.default,{children:(0,r.jsxs)("div",{className:"flex h-screen flex-col",children:[(0,r.jsx)(d.default,{navigation:e}),(0,r.jsxs)("main",{className:"relative min-h-0 flex-1",children:[(0,r.jsx)("h1",{className:"sr-only",children:"MMIP Map"}),(0,r.jsxs)("div",{className:"relative h-full w-full",children:[(0,r.jsx)(ep,{people:P,searchPeople:T.matches,searchQuery:g,searchRevision:A,searchType:T.type,activeTone:v,onSelectTone:j,selectedId:l,focusId:h,onSelectPerson:e=>{e&&($(a.find(t=>t.id===e)??null,{replace:E}),u(e),o(!0))},onClearSelection:()=>{$(null),u(null),o(!1)},searchControl:a.length?(0,r.jsx)(ef,{activeQuery:g,onClear:()=>{f(""),b("")},onSearch:()=>{let e=p.trim();b(e),e&&S(e=>e+1)},query:p,setQuery:f,shown:T.matches.length,total:_.length,type:T.type}):null}),(0,r.jsx)(F,{peopleCount:a.length,dataMeta:i}),(0,r.jsx)(eb,{open:s&&E,onClose:()=>{$(null),o(!1),u(null)},person:C,className:"absolute inset-y-0 left-0 z-20"})]})]})]})})}],122952)}]);
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.