1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{9872:(e,t,a)=>{"use strict";a.d(t,{Rj:()=>l,dE:()=>n,fE:()=>i,vX:()=>s});var r=a(12644);function l(e,t,a){let l=String(e),s=[t,a].filter(Boolean).join("-"),n=s?(0,r.nc)(s):"";return n?"".concat(l,"-").concat(n):l}function s(e){if(!e)return null;let t=parseInt(e.split("-")[0],10);return Number.isFinite(t)?t:null}function n(e){let t="",a="";if("first_name"in e)t=e.first_name||"",a=e.last_name||"";else if("label"in e&&"string"==typeof e.label)return"/users/".concat(l(e.id,e.label));else if("full_name"in e&&"string"==typeof e.full_name)return"/users/".concat(l(e.id,e.full_name));return"/users/".concat(l(e.id,t,a))}function i(e){return"".concat(n(e),"/map")}},11524:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var r=a(95155),l=a(12115),s=a(83101),n=a(73952);let i=(0,s.F)("\n text-mtp-dark-900 bg-mtp-white placeholder-mtp-dark-600\n px-[14px] py-[10px]\n block w-full \n rounded-lg border border-mtp-dark-400\n focus:outline-none focus:ring-2 focus:ring-offset-2\n disabled:opacity-50 disabled:cursor-not-allowed",{variants:{state:{default:"\n border-gray-300 \n ",error:"\n border-error \n outline-red-200\n "}},defaultVariants:{state:"default"}});function o(e){let{id:t,label:a,helperText:s,error:o,className:c,containerClassName:d,labelClassName:u,state:m,required:h,showCount:g,...x}=e,{onChange:p,value:f,defaultValue:v,placeholder:b,name:y,maxLength:j,...w}=x,N=(0,l.useRef)(null),k=(0,l.useMemo)(()=>null!=t?t:y?String(y):void 0,[t,y]),_=!!o,C=_&&"string"==typeof o?o:s,A=C?"".concat(k||y,"-desc"):void 0,P=String(f||v||"").length;return(0,r.jsxs)("div",{className:(0,n.cn)("flex flex-col w-full m-0 gap-[6px]",d),children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[a&&(0,r.jsx)("label",{htmlFor:k,className:(0,n.cn)("body-sm block text-mtp-dark-800",u),children:a}),g&&j&&(0,r.jsxs)("span",{className:"body-sm text-gray-500",children:[P," / ",j]})]}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("textarea",{ref:N,id:k,"aria-invalid":_||void 0,"aria-describedby":A,className:(0,n.cn)(i({state:_?"error":m}),"min-h-[100px] resize-y",c),required:h,placeholder:b,onChange:e=>{p&&p(e)},name:y,defaultValue:v,value:f,maxLength:j,...w})}),(0,r.jsx)("p",{id:A,className:(0,n.cn)("body-sm leading-4",C&&_?"text-error":"text-gray-500"),"aria-live":_?"assertive":void 0,children:C||"\xa0"})]})}},14661:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var r=a(95155),l=a(69691),s=a(57418),n=a(15239),i=a(52619),o=a.n(i),c=a(12115);let d="photo-competition-banner-hidden";function u(e){let{isFloating:t=!1}=e,[a,i]=(0,c.useState)(!0),[u,m]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{if(localStorage.getItem(d)||i(!1),t){let e=()=>{window.scrollY>10?m(!0):m(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}},[t]),a)?null:(0,r.jsxs)(o(),{href:"/photo-competition",className:t?"fixed bottom-6 left-6 right-6 md:left-1/2 md:right-auto md:-translate-x-1/2 md:w-217 z-50 rounded-2xl p-4 flex flex-row items-center gap-6 bg-mtp-white no-underline overflow-hidden shadow-2xl transition-all duration-500 ".concat(u?"opacity-0 pointer-events-none translate-y-4":"opacity-100 translate-y-0"," animate-in fade-in slide-in-from-bottom-4"):"rounded-xl border-1 border-mtp-blue-200 p-4 pt-3 flex flex-col gap-2 bg-mtp-white-900 no-underline relative overflow-hidden",children:[(0,r.jsx)("div",{className:"position absolute body-xl top-2 right-2 flex font-semibold text-dark-900 justify-between items-start z-10",children:(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),localStorage.setItem(d,"true"),i(!0)},type:"button",className:"z-20 cursor-pointer text-mtp-dark-700 hover:text-mtp-dark-900 transition-colors",children:(0,r.jsx)(l.A,{width:24})})}),(0,r.jsx)("div",{className:"shrink-0 hidden md:block",children:(0,r.jsx)(n.default,{src:"/photo-competition/banner.png",alt:"Photo",className:"h-20 w-38",width:151,height:80})}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("div",{className:"uppercase body-lg font-bold tracking-wider",children:"MTP Photography Competition 2026"}),(0,r.jsx)("div",{className:"body-sm font-normal leading-tight",children:"Join our photography competition to be featured in the MTP Photo Book, and win some fantastic prizes along the way."})]}),(0,r.jsx)("div",{className:"shrink-0 z-10",children:(0,r.jsx)(s.A,{variant:"primary",className:"w-full bg-mtp-dark-900",size:"lg",children:(0,r.jsx)("span",{children:"Take part"})})})]})}},15738:(e,t,a)=>{"use strict";a.d(t,{Header:()=>z});var r=a(95155),l=a(12115),s=a(8258),n=a(57418),i=a(93531),o=a(52619),c=a.n(o),d=a(4850),u=a(56318);let m=()=>{let{data:e,isPending:t}=(0,d.wV)(),a="authenticated"!=(t?"loading":e.user?"authenticated":"unauthenticated");return(0,r.jsx)("ul",{className:"hidden lg:flex flex-row gap-2 justify-center",children:i.h.map(e=>{var t,l;return(0,r.jsx)("li",{className:"relative",children:e.children?(0,r.jsx)(s.A,{align:"left",anchor:(0,r.jsx)(n.A,{href:null!=(t=e.href)?t:"#",className:"text-mtp-dark font-normal",size:"md",variant:"tertiary",dropdown:!0,children:e.label}),dropdown:(0,r.jsx)("div",{className:"rounded-xl bg-white py-2 shadow ring-1 ring-black/5 ",children:e.children.map(e=>{var t;if(e.condition&&!e.condition({isGuest:a}))return null;let l=a&&(e.requiresAuth||!e.condition);return(0,r.jsxs)(c(),{href:null!=(t=e.href)?t:"#",className:"flex items-center justify-between px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-gray-900",children:[e.label,l&&(0,r.jsx)(u.A,{className:"ml-2 w-3 h-3 text-gray-400"})]},e.label)})})}):(0,r.jsxs)(n.A,{href:null!=(l=e.href)?l:"#",size:"md",variant:"tertiary",className:"flex items-center gap-2 text-mtp-dark font-normal",children:[e.label,a&&(e.requiresAuth||!e.condition)&&(0,r.jsx)(u.A,{className:"w-3 h-3 text-gray-400"})]})},e.label)})})};var h=a(78148),g=a(52719);let x=()=>{let[e,t]=(0,l.useState)(!1),{data:a,isPending:s}=(0,d.wV)(),i=s?"loading":a.user?"authenticated":"unauthenticated",o=(0,h.q)();return(0,r.jsxs)("nav",{className:"hidden lg:flex items-center justify-end space-x-2 transition-all duration-200 ease-out ".concat(o?"opacity-100 translate-y-0":"opacity-0 translate-y-[1px]"),children:["unauthenticated"===i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.A,{href:"/login",size:"lg",variant:"tertiary",children:"Login"}),(0,r.jsx)(n.A,{href:"/register",size:"lg",variant:"primary",children:"Register"})]}),(0,r.jsx)(n.A,{size:"lg",variant:"secondary",onClick:()=>t(!0),children:"Get App"}),(0,r.jsx)(g.P,{isOpen:e,onClose:()=>t(!1)})]})};var p=a(73952),f=a(15239);let v=e=>{let{isScrolled:t,className:a}=e;return(0,r.jsx)(c(),{href:"/",children:(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-1 items-center justify-between gap-3",a),children:[(0,r.jsx)(f.default,{src:"/mtp-full-logo-dark-foreground.png",alt:"Most Traveled People logo",width:t?40:44,height:t?40:44,className:"transition-all duration-300"}),(0,r.jsx)("div",{className:(0,p.cn)("font-bold text-base leading-6 tracking-[0.15px] transition-all duration-300","text-mtp-dark",t?"text-sm":"text-base"),children:"Most Traveled People"})]})})};var b=a(47650),y=a(5729),j=a(43605),w=a(69691),N=a(59302),k=a(81251),_=a(52225),C=a(9872);let A=()=>{let[e,t]=(0,l.useState)(!1),[a,s]=(0,l.useState)(!1),[o,m]=(0,l.useState)(!1),[h,x]=(0,l.useState)({}),{data:p,isPending:f}=(0,d.wV)(),v=f?"loading":p.user?"authenticated":"unauthenticated",{showVerificationPage:A,isCommittee:P,isPhotoJury:S,isAdmin:T,loading:q,user:M}=(0,k.u)();(0,l.useEffect)(()=>{m(!0);let e=e=>{"Escape"===e.key&&t(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);
1let L=M?[M.first_name,M.last_name].filter(Boolean).join(" ")||M.username||M.email:"",F="authenticated"!==v;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"lg:hidden inline-flex items-center justify-center p-2 rounded-md hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-300","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"mobile-menu",onClick:()=>t(e=>!e),children:e?(0,r.jsx)(w.A,{className:"h-6 w-6","aria-hidden":"true"}):(0,r.jsx)(N.A,{className:"h-6 w-6","aria-hidden":"true"})}),o&&(0,b.createPortal)((0,r.jsx)("div",{id:"mobile-menu",className:"px-12 lg:hidden fixed inset-0 z-[1100] transition-opacity ".concat(e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:()=>t(!1),children:(0,r.jsxs)("div",{className:"absolute top-22 left-0 right-0 bottom-0 bg-white shadow-lg overflow-y-auto transition-transform duration-200 ".concat(e?"translate-y-0":"translate-y-2"),onClick:e=>e.stopPropagation(),children:["loading"===v||"authenticated"===v&&q?(0,r.jsx)("div",{className:"p-4 flex flex-col gap-2","aria-busy":"true","aria-live":"polite","aria-label":"Loading user menu",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-xl bg-gray-50 animate-pulse",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-full bg-gray-200"}),(0,r.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,r.jsx)("div",{className:"h-4 w-24 bg-gray-200 rounded"}),(0,r.jsx)("div",{className:"h-3 w-16 bg-gray-200 rounded"})]})]})}):"authenticated"===v&&M?(0,r.jsxs)("div",{className:"p-4 flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-2 mb-2",children:[(0,r.jsx)(_.default,{name:L,imageUUID:null==M?void 0:M.picture,size:"thumb",dimensions:40,className:"bg-gray-100 border border-gray-200 text-[11px] text-gray-700"}),(0,r.jsxs)("div",{className:"flex flex-col leading-tight",children:[(0,r.jsx)("span",{className:"font-semibold text-gray-900",children:L}),M.country&&(0,r.jsx)("span",{className:"text-xs text-gray-500",children:M.country.country_name})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2",children:i.p.map(e=>{let{label:a,href:l,Icon:s,condition:n,onClick:i}=e;if(n&&!n({showVerificationPage:A,isCommittee:P,isPhotoJury:S,isAdmin:T}))return null;let o="Profile"===a&&M?(0,C.dE)(M):l,u=(0,r.jsxs)("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-gray-50 text-gray-700 hover:bg-gray-100 transition-colors text-sm font-medium",children:[s&&(0,r.jsx)(s,{className:"w-5 h-5 text-gray-500"}),(0,r.jsx)("span",{children:a})]});return i?(0,r.jsx)("button",{type:"button",onClick:()=>{i({signOut:d.CI}),t(!1)},className:"w-full text-left",children:u},a):(0,r.jsx)(c(),{href:o,onClick:()=>t(!1),children:u},a)})})]}):(0,r.jsxs)("div",{className:"p-4 flex flex-col gap-2",children:[(0,r.jsx)(c(),{href:"/register",onClick:()=>t(!1),children:(0,r.jsx)(n.A,{size:"md",variant:"primary",className:"w-full",children:"Register"})}),(0,r.jsx)(n.A,{size:"md",variant:"secondary",onClick:()=>{t(!1),s(!0)},children:"Get App"}),(0,r.jsxs)("div",{className:"p-2 text-center text-gray-600",children:["Already have an account? ",(0,r.jsx)(c(),{className:"underline text-gray-900 font-medium",href:"/login",onClick:()=>t(!1),children:"Login"})]})]}),(0,r.jsx)("nav",{children:i.h.map(e=>{var a;let l="section-".concat(e.label.replace(/\s+/g,"-").toLowerCase()),s=!!h[e.label];return(0,r.jsx)("div",{className:"border-b border-gray-100",children:e.children?(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between gap-2 p-4 text-base text-gray-900 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200","aria-expanded":s,"aria-controls":l,onClick:()=>(e=>{x(t=>t[e]?{}:{[e]:!0})})(e.label),children:[(0,r.jsx)("span",{children:e.label}),(0,r.jsx)("span",{className:"inline-flex items-center justify-center",children:s?(0,r.jsx)(j.A,{className:"h-5 w-5 text-gray-500","aria-hidden":"true"}):(0,r.jsx)(y.A,{className:"h-5 w-5 text-gray-500","aria-hidden":"true"})})]}),(0,r.jsx)("div",{id:l,"aria-hidden":!s,className:"".concat(s?"block":"hidden"),children:e.children.map(e=>{if(e.condition&&!e.condition({isGuest:F}))return null;let a=F&&(e.requiresAuth||!e.condition);return(0,r.jsxs)(c(),{href:e.href,className:"flex items-center justify-between p-4 font-semibold bg-gray-50 text-gray-700 hover:bg-gray-100",onClick:()=>t(!1),children:[e.label,a&&(0,r.jsx)(u.A,{className:"w-4 h-4 text-gray-400"})]},e.label)})})]}):(0,r.jsxs)(c(),{href:null!=(a=e.href)?a:"#",className:"flex items-center justify-between p-4 text-base text-gray-900 rounded-lg hover:bg-gray-50",onClick:()=>t(!1),children:[(0,r.jsx)("span",{children:e.label}),F&&(e.requiresAuth||!e.condition)&&(0,r.jsx)(u.A,{className:"w-4 h-4 text-gray-400"})]})},e.label)})})]})}),document.body),(0,r.jsx)(g.P,{isOpen:a,onClose:()=>s(!1)})]})};var P=a(63796),S=a(20063),T=a(32615),q=a(75940);function M(e){var t;let{isScrolled:a}=e,{data:n,isPending:o}=(0,d.wV)(),{user:u,showVerificationPage:m,isCommittee:g,isPhotoJury:x,isAdmin:f,loading:v}=(0,k.u)(),b=o?"loading":n.user?"authenticated":"unauthenticated",[y,j]=(0,l.useState)(!1),w=(0,h.q)(),{onResend:N,resendLoading:A,resendMsg:
1M,resendErr:L}=(0,P.M)(),F=(0,S.usePathname)();if((0,l.useMemo)(()=>null==F?void 0:F.startsWith("/register"),[F]))return null;if("loading"===b||"authenticated"===b&&v)return(0,r.jsx)("div",{className:"hidden lg:flex items-center justify-end ","aria-busy":"true","aria-live":"polite","aria-label":"Loading user menu",children:(0,r.jsxs)("div",{className:(0,p.cn)("flex items-center gap-3 pr-3 rounded-full border-1 border-gray-100 animate-pulse transition-all duration-300",a?"h-10":"h-12"),children:[(0,r.jsx)("span",{className:(0,p.cn)("inline-flex rounded-full bg-gray-200 border border-gray-200 transition-all duration-300",a?"w-10 h-10":"w-12 h-12")}),(0,r.jsxs)("span",{className:"flex flex-col gap-1 py-2",children:[(0,r.jsx)("span",{className:"block h-3 w-24 bg-gray-200 rounded"}),(0,r.jsx)("span",{className:"block h-2 w-16 bg-gray-200 rounded"})]}),(0,r.jsx)("svg",{className:"ml-1 h-4 w-4 text-gray-300",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z",clipRule:"evenodd"})})]})});if(!u)return null;let E=[u.first_name,u.last_name].filter(Boolean).join(" ")||u.username||u.email,z="W"===u.status,R=async()=>{var e;z&&!A&&(null==(e=n.user)?void 0:e.id)&&await N(n.user.id)};return(null==(t=n.user)?void 0:t.id)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,p.cn)("hidden lg:flex items-center justify-end transition-all duration-200 ease-out",w?"opacity-100 translate-y-0":"opacity-0 translate-y-[1px]"),children:(0,r.jsx)(s.A,{align:"right",anchor:(0,r.jsxs)("button",{type:"button",className:(0,p.cn)("group pr-3 flex items-center gap-3 rounded-full bg-gray-100 transition-all duration-300",a?"h-10":"h-12"),"aria-haspopup":"menu","aria-label":"User menu",children:[(0,r.jsx)(_.default,{name:E,imageUUID:null==u?void 0:u.picture,size:"thumb",dimensions:a?40:48,className:(0,p.cn)("shrink-0 bg-gray-100 border border-gray-200 text-[11px] text-gray-700 transition-all duration-300")}),(0,r.jsxs)("span",{className:"text-sm text-gray-900 flex flex-col items-start leading-tight",children:[(0,r.jsx)("span",{className:a?"text-xs":"text-sm line-clamp-1",children:E}),z?(0,r.jsxs)("span",{className:"mt-0.5 inline-flex items-center gap-0.5 text-[11px] text-amber-700",children:[(0,r.jsx)("span",{className:"shrink-0 inline-block w-1.5 h-1.5 rounded-full bg-amber-500","aria-hidden":"true"}),(0,r.jsx)("span",{className:"line-clamp-1",children:"Verify your email"})]}):u.country&&(0,r.jsx)("span",{className:(0,p.cn)("font-light",a?"text-[10px]":"text-xs"),children:u.country.country_name})]}),(0,r.jsx)("svg",{className:"shrink-0 ml-1 h-4 w-4 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z",clipRule:"evenodd"})})]}),dropdown:e=>(0,r.jsxs)("div",{className:"rounded-xl bg-white py-2 shadow-lg ring-1 ring-black/5 min-w-[200px]",children:[z&&(0,r.jsxs)("div",{className:"px-4 py-2 text-xs text-amber-800 bg-amber-50 border-b border-amber-100",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between gap-2",children:[(0,r.jsx)("span",{children:"Please verify your email to unlock all features."}),(0,r.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{e(),j(!0)},className:"text-amber-900 underline",children:"Enter code"}),(0,r.jsx)("button",{type:"button",onClick:R,className:"text-amber-900 underline disabled:no-underline disabled:text-amber-400",disabled:A,children:A?"Sendingâ¦":"Resend"})]})]}),M&&(0,r.jsx)("p",{className:"mt-1 text-[11px] text-green-700",children:M}),L&&(0,r.jsx)("p",{className:"mt-1 text-[11px] text-mtp-danger",children:L})]}),v?(0,r.jsx)("div",{className:"px-4 py-2 flex flex-col gap-4 animate-pulse",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-5 h-5 bg-gray-100 rounded"}),(0,r.jsx)("div",{className:"h-4 bg-gray-100 rounded w-24"})]},t))}):i.p.map(t=>{let{label:a,href:l,Icon:s,condition:n,onClick:i}=t;if(n&&!n({showVerificationPage:m,isCommittee:g,isPhotoJury:x,isAdmin:f}))return null;let o="Profile"===a&&u?(0,C.dE)(u):l,h=(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(s,{className:"w-5 h-5"}),a]});return i?(0,r.jsx)("button",{type:"button",onClick:()=>{e(),i({signOut:d.CI})},className:"flex gap-2 w-full text-left px-4 py-2 text-sm text-gray-700 hover:cursor-pointer hover:bg-gray-50 hover:text-gray-900",children:h},a):(0,r.jsx)(c(),{href:o,onClick:()=>e(),className:"flex gap-2 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-gray-900",children:h},a)})]})})}),(0,r.jsx)(q.A,{isOpen:y,onClose:()=>j(!1),title:"Enter verification code",children:(0,r.jsxs)("div",{className:"p-6 flex flex-col items-center",children:[(0,r.jsxs)("p",{className:"text-gray-700 mb-6 text-center",children:["An email was sent to"," ",(0,r.jsx)("span",{className:"font-semibold",children:u.email})," with a link to verify your account. Follow the link in the email or enter the code below."]}),(0,r.jsx)(T.default,{email:u.email||"",onSuccess:()=>{j(!1)}})]})})]}):null}var L=a(79751),F=a(63119),E=a(50909);let z=()=>{let{isHeaderHidden:e}=(0,E.U)(),[t,a]=(0,l.useState)(!1),[s,n]=(0,l.useState)(!0),[i,o]=(0,l.useState)(!1),[c,d]=(0,l.useState)(0),[u,h]=(0,l.useState)(!1),g=(0,S.usePathname)();return(0,l.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),h(!0))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,l.useEffect)(()=>{let e=()=>{let e=window.scrollY;a(e>0),e<=0||e<c?n(!0):e>c&&!i&&n(!1),d(e)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[c,i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("header",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:(0,p.cn)("z-[1001] fixed left-1/2 -translate-x-1/2 transition-[opacity,height,background-color,width,top,border-radius,box-shadow,transform] duration-300",t?"top-2 px-2 w-[calc(100%-1rem)] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px] bg-white rounded-full shadow-sm":"top-0 w-full bg-white rounded-none shadow-none",!s&&t||e?"max-md:hidden":"",!s&&t?"opacity-0 pointer-events-none":"opacity-100",t&&"/"===g?"bg-mtp-white":""),children:(0,r.jsxs)("div",{className:(0,p.cn)("justify-between lg:container mx-auto flex items-center gap-2 transition-all duration-300",t?"h-16 px-2":"h-20 px-4"),children:[(0,r.jsx)(v,{isScrolled:t}),(0,r.jsx)(m,{}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("button",{onClick:()=>h(!0),className:"p-2 hover:bg-gray-100 rounded-full transition-colors text-mtp-dark","aria-label":"Search",children:(0,r.jsx)(F.A,{className:"w-6 h-6"})}),(0,r.jsx)(x,{}),(0,r.jsx)(M,{isScrolled:t}),(0,r.jsx)(A,{})]})]})}),(0,r.jsx)(L.s,{isOpen:u,onClose:()=>h(!1)})]})}},16488:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var r=a(95155),l=a(20063),s=a(52619),n=a.n(s),i=a(15239),o=a(17116);let c=()=>(0,r.jsx)("footer",{className:"w-full bg-gray-100 pb-4 pt-14",children:(0,r.jsxs)("div",{className:"container px-4 md:px-0 mx-auto flex flex-col gap-8",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:[(0,r.jsxs)("div",{className:"flex gap-2 flex-col xl:max-w-1/4 md:max-w-1/3",children:[(0,r.jsx)(n(),{href:"/",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(i.default,{src:"/mtp.svg",alt:"Most Traveled People logo",width:32,height:32}),(0,r.jsx)("div",{className:"text-sm font-bold leading-6 tracking-[0.15px]",children:"Most Traveled People"})]})}),(0,r.jsx)("div",{className:"text-sm font-light",children:"From tourist to traveler. Join the biggest community of expert travelers."})]}),(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"font-bold",children:"Get the app"}),(0,r.jsxs)("div",{className:"flex items-center gap-6",children:[(0,r.jsx)(o.A,{size:100,fgColor:"black",bgColor:"transparent"}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(n(),{href:"https://apps.apple.com/us/app/mtp-the-extreme-travel-club/id1463245184",target:"_blank",className:"hover:opacity-80 transition-opacity",children:(0,r.jsx)(i.default,{src:"/app-store.svg",alt:"App Store",width:120,height:40})}),(0,r.jsx)(n(),{href:"https://play.google.com/store/apps/details?id=com.mosttraveledpeople.android.app&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1",target:"_blank",className:"hover:opacity-80 transition-opacity",children:(0,r.jsx)(i.default,{src:"/play-store.svg",alt:"Google Play",width:120,height:40})})]})]})]})})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-bold",children:"Connect with us"}),(0,r.jsxs)("div",{className:"flex gap-4 mt-2",children:[(0,r.jsx)(n(),{href:"https://www.instagram.com/mosttraveledpeople/",target:"_blank",children:(0,r.jsx)(i.default,{src:"/instagram.svg",alt:"Instagram logo",width:32,height:32})}),(0,r.jsx)(n(),{href:"https://www.facebook.com/MostTraveledPeople/",target:"_blank",children:(0,r.jsx)(i.default,{src:"/facebook.svg",alt:"Facebook logo",width:32,height:32})}),(0,r.jsx)(n(),{href:"https://www.tiktok.com/@mosttraveledpeople",target:"_blank",children:(0,r.jsx)(i.default,{src:"/tiktok.svg",alt:"Tiktok logo",width:32,height:32})}),(0,r.jsx)(n(),{href:"https://www.youtube.com/@mosttraveledpeople",target:"_blank",children:(0,r.jsx)(i.default,{src:"/youtube.svg",alt:"YouTube logo",width:32,height:32})}),(0,r.jsx)(n(),{href:"https://www.linkedin.com/company/mtp-most-traveled-people/",target:"_blank",children:(0,r.jsx)(i.default,{src:"/l
1inkedin.svg",alt:"LinkedIn logo",width:32,height:32})}),(0,r.jsx)(n(),{href:"https://open.spotify.com/show/1tkpVdx123a1i5JxXdr97j?si=sPFZgnJaQI2_j-H9AqgbHA",target:"_blank",children:(0,r.jsx)(i.default,{src:"/spotify.svg",alt:"Most Traveled People logo",width:32,height:32})})]})]}),(0,r.jsxs)("div",{className:"mt-6 mb-4 flex flex-col md:flex-row justify-between items-center gap-4 border-t border-gray-300 pt-6",children:[(0,r.jsxs)("p",{className:"text-sm",children:["\xa9 ",new Date().getFullYear()," Most Traveled People. All rights reserved"]}),(0,r.jsxs)("div",{className:"text-sm font-bold md:font-medium flex flex-row justify-between items-center gap-4 md:gap-12",children:[(0,r.jsx)("a",{href:"/cookie-settings",children:"Cookie Settings"}),(0,r.jsx)("a",{href:"/privacy-policy",children:"Privacy Policy"}),(0,r.jsx)("a",{href:"/terms-and-conditions",children:"Terms & Conditions"})]})]})]})});function d(){let e=(0,l.usePathname)();return"/profile/my-visits/map"===e||"/profile/my-visits/list"===e||"/demo"===e?null:(0,r.jsx)("div",{className:"flex flex-col items-center justify-items-center gap-16",children:(0,r.jsx)(c,{})})}},19883:(e,t,a)=>{Promise.resolve().then(a.bind(a,68332)),Promise.resolve().then(a.bind(a,98202)),Promise.resolve().then(a.bind(a,57445)),Promise.resolve().then(a.t.bind(a,41402,23)),Promise.resolve().then(a.t.bind(a,72251,23)),Promise.resolve().then(a.t.bind(a,48650,23)),Promise.resolve().then(a.t.bind(a,46015,23)),Promise.resolve().then(a.t.bind(a,41290,23)),Promise.resolve().then(a.t.bind(a,33383,23)),Promise.resolve().then(a.bind(a,33240)),Promise.resolve().then(a.bind(a,34726)),Promise.resolve().then(a.bind(a,16488)),Promise.resolve().then(a.bind(a,15738)),Promise.resolve().then(a.bind(a,57163)),Promise.resolve().then(a.bind(a,83300)),Promise.resolve().then(a.bind(a,89930)),Promise.resolve().then(a.bind(a,50909)),Promise.resolve().then(a.bind(a,73038)),Promise.resolve().then(a.bind(a,31617)),Promise.resolve().then(a.bind(a,36626)),Promise.resolve().then(a.bind(a,46297)),Promise.resolve().then(a.bind(a,19290)),Promise.resolve().then(a.bind(a,81251))},20495:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(95155);function l(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 -960 960 960",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a,children:(0,r.jsx)("path",{d:"M440-440ZM120-120q-33 0-56.5-23.5T40-200v-480q0-33 23.5-56.5T120-760h126l74-80h240v80H355l-73 80H120v480h640v-360h80v360q0 33-23.5 56.5T760-120H120Zm640-560v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM440-260q75 0 127.5-52.5T620-440q0-75-52.5-127.5T440-620q-75 0-127.5 52.5T260-440q0 75 52.5 127.5T440-260Zm0-80q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Z",fill:"currentColor"})})}a(12115)},21944:(e,t,a)=>{"use strict";a.d(t,{default:()=>w});var r=a(95155),l=a(46378),s=a(81251),n=a(12115),i=a(20063),o=a(84218),c=a(11524),d=a(82987),u=a(57418),m=a(46297),h=a(38723),g=a(10201),x=a(1141),p=a(5779),f=a(28108),v=a(78254),b=a(94246),y=a(84015);let j=[{id:"General question",label:"General question"},{id:"New Feature Suggestion",label:"New Feature Suggestion"},{id:"Report A Problem",label:"Report A Problem"},{id:"Report wrong marker position / information",label:"Report wrong marker position / information"},{id:"Message For Charles",label:"Message For Charles"},{id:"Tours",label:"Tours"},{id:"Photo Competition",label:"Photo Competition"},{id:"Account deletion",label:"Account deletion"}];function w(e){let{onSuccess:t,initialCategory:a,initialMessage:l}=e;return(0,r.jsx)(n.Suspense,{children:(0,r.jsx)(N,{onSuccess:t,initialCategory:a,initialMessage:l})})}function N(e){var t,a,w,N,k,_,C,A;let{onSuccess:P,initialCategory:S,initialMessage:T}=e,{user:q}=(0,s.u)(),{showToast:M}=(0,m.d)(),L=(0,i.useSearchParams)(),{executeRecaptcha:F}=(0,g._Y)(),[E,z]=(0,n.useState)(!1),[R,O]=(0,n.useState)(!1),Z=(0,n.useMemo)(()=>{let e=S||L.get("reason");return e&&j.find(t=>t.id===e)||j[0]},[S,L]),[I,V]=(0,n.useState)({category:Z,client_name:"",client_email:"",client_phone:"",message:T||L.get("message")||"",attachments:[],suggested_lat:"",suggested_lng:"",location:null}
1),[D,H]=(0,n.useState)(!1),[B,Q]=(0,n.useState)({}),[G,U]=(0,n.useState)(""),{results:W,loading:J}=(0,y.$)(G),Y=(0,n.useMemo)(()=>W.map(e=>({id:String(e.loc.id),label:e.loc.title||e.loc.location_name||"",lat:e.loc.lat,lng:e.loc.lng})),[W]),K=(0,n.useMemo)(()=>{let e=parseFloat(I.suggested_lat),t=parseFloat(I.suggested_lng);return isNaN(e)||isNaN(t)?[]:[{lat:e,lng:t,draggable:!0,onDragEnd:(e,t)=>{V(a=>({...a,suggested_lat:e.toFixed(6),suggested_lng:t.toFixed(6)}))}}]},[I.suggested_lat,I.suggested_lng]);(0,n.useEffect)(()=>{q&&V(e=>{var t;return{...e,client_name:null!=(t=null==q?void 0:q.full_name)?t:"",client_email:(null==q?void 0:q.email)||""}})},[q]);let X=(0,n.useCallback)(async(e,t)=>{var a,r,s,n,i;z(!0);let o={screen_resolution:"".concat(window.screen.width,"x").concat(window.screen.height),viewport_size:"".concat(window.innerWidth,"x").concat(window.innerHeight),language:"undefined"!=typeof navigator?navigator.language:"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,user_agent:"undefined"!=typeof navigator?navigator.userAgent:"unknown"},c={category:(null==(a=I.category)?void 0:a.id)||"",client_name:I.client_name,client_email:I.client_email,client_phone:I.client_phone,message:I.message,attachments:I.attachments,extra_data:{client_metadata:o,suggested_lat:(null==(r=I.category)?void 0:r.id)==="Report wrong marker position / information"?I.suggested_lat:void 0,suggested_lng:(null==(s=I.category)?void 0:s.id)==="Report wrong marker position / information"?I.suggested_lng:void 0},captcha:e?{token:e,version:t,action:2===t?void 0:"contact"}:void 0};try{let e=await fetch((0,l.i)("/send-message/contact-form"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}),t=await e.json();e.ok?(M("Message sent successfully!","success"),V({category:j[0],client_name:(null==q?void 0:q.full_name)||"",client_email:(null==q?void 0:q.email)||"",client_phone:"",message:"",attachments:[],suggested_lat:"",suggested_lng:"",location:null}),O(!1),null==P||P()):422===e.status?(Q(t.errors||{}),M("Please fix the errors in the form.","error")):((null==(n=t.message)?void 0:n.status)==="error"&&O(!0),M((null==(i=t.message)?void 0:i.message)||t.error||"Failed to send message.","error"))}catch(e){e instanceof Error?M(e.message||"An unexpected error occurred.","error"):M("An unexpected error occurred.","error")}finally{z(!1)}},[I,q,P,M]),$=async e=>{var t;e.preventDefault(),Q({});let a={};if(I.category||(a.category=["Please select a category."]),I.client_name.trim()||(a.client_name=["Please enter your name."]),I.client_email.trim()?(0,h.B)(I.client_email)||(a.client_email=["Please enter a valid email address."]):a.client_email=["Please enter your email address."],I.message.trim()||(a.message=["Please enter your message."]),(null==(t=I.category)?void 0:t.id)==="Report wrong marker position / information"&&(I.suggested_lat.trim()||(a.suggested_lat=["Please enter suggested latitude."]),I.suggested_lng.trim()||(a.suggested_lng=["Please enter suggested longitude."])),Object.keys(a).length>0){Q(a),M("Please fix the errors in the form.","error");return}if(q||R)!q&&R||await X();else{if(!F){if(window.grecaptcha&&window.grecaptcha.execute)try{z(!0);let e=await window.grecaptcha.execute("6LdrbNAsAAAAAOkrLOlrDnsdVydFCmesHxcv_LQR",{action:"contact"});if(e)return void await X(e,3)}catch(e){console.error("Manual reCAPTCHA execution failed:",e)}finally{z(!1)}M("ReCAPTCHA is still initializing. Please wait a moment and try again.","info"),O(!0);return}try{let e=await F("contact");if(!e){console.error("executeRecaptcha returned an empty token"),M("Failed to generate security token. Please try the checkbox below.","error"),O(!0);return}await X(e,3)}catch(e){console.error("executeRecaptcha error:",e),M("Security check failed. Please try the checkbox below.","error"),O(!0)}}},ee=async e=>{if(!e||0===e.length)return;H(!0);let t=new FormData;for(let a=0;a<e.length;a++)t.append("files[]",e[a]);try{let e=await fetch((0,l.i)("/files/upload"),{method:"POST",body:t});if(e.ok){let t=await e.json(),a=t.data||t;V(e=>({...e,attachments:[...e.attachments,...a]})),M("Files uploaded successfully","success")}else M("Failed to upload files","error")}catch(e){M("An error occurred during upload","error")}finally{H(!1)}};return(0,r.jsxs)("form",{onSubmit:$,className:"flex flex-col gap-1",children:[(0,r.jsx)("div",{className:"pb-8",children:"Tell us why youâre getting in touch and how we
1can help you."}),(0,r.jsx)("div",{className:"relative z-20",children:(0,r.jsx)(d.G,{label:"Reason for contact",placeholder:"Select a category",value:I.category,onChange:e=>V({...I,category:e}),options:j,minChars:0,showOnFocus:!0,error:null==(t=B.category)?void 0:t[0]})}),(0,r.jsx)("div",{className:"",children:(0,r.jsx)(c.A,{label:"Tell us more",placeholder:"Write your message here...",value:I.message,onChange:e=>V({...I,message:e.target.value}),error:null==(a=B.message)?void 0:a[0]})}),(0,r.jsx)("div",{className:"relative z-10",children:(0,r.jsx)(o.A,{label:"Your name",placeholder:"Your name",value:I.client_name,onChange:e=>V({...I,client_name:e.target.value}),error:null==(w=B.client_name)?void 0:w[0],containerClassName:"max-w-none"})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsx)("div",{className:"relative z-5",children:(0,r.jsx)(o.A,{label:"Email",type:"email",placeholder:"Your email address",value:I.client_email,onChange:e=>V({...I,client_email:e.target.value}),error:null==(N=B.client_email)?void 0:N[0],containerClassName:"max-w-none"})}),(0,r.jsx)("div",{className:"relative z-0",children:(0,r.jsx)(o.A,{label:"Phone number",type:"tel",placeholder:"Your phone number",value:I.client_phone,onChange:e=>V({...I,client_phone:e.target.value}),error:null==(k=B.client_phone)?void 0:k[0],containerClassName:"max-w-none"})})]}),(null==(_=I.category)?void 0:_.id)==="Report wrong marker position / information"&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"relative z-10",children:(0,r.jsx)(d.G,{label:"Search Location",placeholder:"Start typing location name...",value:I.location,onChange:e=>{V({...I,location:e,suggested_lat:(null==e?void 0:e.lat)?String(e.lat):"",suggested_lng:(null==e?void 0:e.lng)?String(e.lng):""})},options:Y,isLoading:J,minChars:2,onQueryChange:U})}),I.suggested_lat&&I.suggested_lng&&(0,r.jsxs)("div",{className:"w-full h-[300px] rounded-lg overflow-hidden border border-gray-200",children:[(0,r.jsx)(b.default,{lat:parseFloat(I.suggested_lat),lng:parseFloat(I.suggested_lng),zoom:10,className:"w-full h-full",customMarkers:K,visitedMarkers:null}),(0,r.jsx)("p",{className:"text-[10px] text-gray-500 mt-1 px-1",children:"Drag the marker to the correct position."})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsx)(o.A,{label:"Suggested Latitude",placeholder:"e.g. 52.2297",value:I.suggested_lat,onChange:e=>V({...I,suggested_lat:e.target.value}),error:null==(C=B.suggested_lat)?void 0:C[0],containerClassName:"max-w-none"}),(0,r.jsx)(o.A,{label:"Suggested Longitude",placeholder:"e.g. 21.0122",value:I.suggested_lng,onChange:e=>V({...I,suggested_lng:e.target.value}),error:null==(A=B.suggested_lng)?void 0:A[0],containerClassName:"max-w-none"})]})]}),(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("label",{className:"block body-sm block text-mtp-dark-800",children:"Attachments"}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 mb-2",children:[I.attachments.map((e,t)=>{var a;return(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)("div",{className:"w-32 h-32 bg-gray-100 rounded-lg flex items-center justify-center overflow-hidden border border-gray-200",children:(null==(a=e.mime)?void 0:a.startsWith("image/"))?(0,r.jsx)("img",{src:e.url,alt:"",className:"w-full h-full object-cover"}):(0,r.jsx)("span",{className:"text-[10px] text-center px-1 break-all",children:e.name})}),(0,r.jsx)("button",{type:"button",onClick:()=>{V(e=>({...e,attachments:e.attachments.filter((e,a)=>a!==t)}))},className:"absolute -top-1 -right-1 bg-red-500 text-white rounded-full p-1 shadow-sm hover:bg-red-600 transition-colors",children:(0,r.jsx)(v.A,{className:"w-6 h-6"})})]},t)}),(0,r.jsxs)("label",{className:"cursor-pointer",children:[(0,r.jsx)("input",{type:"file",className:"hidden",multiple:!0,onChange:e=>ee(e.target.files),disabled:D}),(0,r.jsx)("div",{className:"w-32 h-32 border-2 border-dashed border-mtp-blue-200 rounded-lg flex flex-col items-center justify-center hover:bg-mtp-blue-50 transition-colors",children:D?(0,r.jsx)(f.A,{className:"w-6 h-6 text-mtp-blue-400 animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{className:"w-6 h-6 text-mtp-blue-400"}),(0,r.jsx)("span",{className:"body-sm text-mtp-blue-400 mt-1",children:"Add File"})]})})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col items-end mt-2 gap-2",children:[R?(0,r.jsx)(x.A,{sitekey:"6LdrbNAsAAAAAOkrLOlrDnsdVydFCmesHxcv_LQR",onChange:e=>{e&&X(e,2)}}):(0,r.jsx)(u.A,{type:"submit",variant:"primary",size:"lg",disabled:E,children:E?"Sending...":"Send Message"}),!q&&(0,r.jsxs)("p",{className:"text-[10px] text-mtp-blue-400 text-right max-w-[300px]",children:["This site is protected by reCAPTCHA and the Google"," ",(0,r.jsx)("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noreferrer",className:"underline",children:"Privacy Policy"})," ","and"," ",(0,r.jsx)("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noreferrer",className:"underline",children:"Terms of Service"})," ","apply."]})]})]})}},31617:(e,t,a)=>{"use strict";a.d(t,{ReCaptchaProvider:()=>s});var r=a(95155),l=a(10201);function s(e){let{children:t}=e,a="6LdrbNAsAAAAAOkrLOlrDnsdVydFCmesHxcv_LQR";return a?(0,r.jsx)(l.G3,{reCaptchaKey:a,scriptProps:{async:!0,defer:!0,appendTo:"head"},children:t}):(0,r.jsx)(r.Fragment,{children:t})}a(12115)},32615:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155),l=a(12115),s=a(84218),n=a(57418),i=a(56327);function o(e){let{email:t,onSuccess:a}=e,[o,c]=(0,l.useState)(""),{verifying:d,error:u,verifyWithCode:m}=(0,i.V)(),h=async e=>{e.preventDefault();let r=(o||"").replace(/\D+/g,"");r&&4===r.length&&m(t,r,a)},g=void(o&&o.length);return(0,r.jsxs)("form",{onSubmit:h,className:"flex flex-col gap-4 justify-center",children:[(0,r.jsx)(s.A,{id:"pin",name:"pin",label:"Enter your 4 digit code",inputMode:"numeric",pattern:"\\d{4}",value:o,required:!0,onChange:e=>{c(e.target.value.replace(/\D+/g,"").slice(0,4))},error:u||g}),(0,r.jsx)(n.A,{size:"lg",variant:"primary",type:"submit",className:"w-full",disabled:d,children:d?"verifyingâ¦":"Continue"})]})}},33240:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var r=a(95155),l=a(12115);function s(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",width:"24",height:"24",...a,fill:"currentColor",children:(0,r.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"})})}var n=a(75940),i=a(21944),o=a(20063);function c(){let[e,t]=(0,l.useState)(!1),a=(0,o.usePathname)();return"/"===a||"/ranking/guest"===a||"/contact-us"===a||"/demo"===a?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:()=>t(!0),className:"fixed bottom-6 right-6 z-40 bg-mtp-blue-900 text-white p-4 rounded-full shadow-lg hover:bg-mtp-blue-800 transition-all transform hover:scale-105 hover:-translate-y-1 active:scale-95 flex items-center justify-center","aria-label":"Open contact form",children:(0,r.jsx)(s,{className:"w-6 h-6"})}),(0,r.jsx)(n.A,{isOpen:e,onClose:()=>t(!1),title:"Contact Us",size:"lg",className:"py-4",children:(0,r.jsx)("div",{className:"p-6",children:(0,r.jsx)(i.default,{onSuccess:()=>t(!1)})})})]})}},33383:()=>{},34726:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(95155),l=a(20063),s=a(14661);function n(){return"/"!==(0,l.usePathname)()?null:(0,r.jsx)(s.A,{isFloating:!0})}},36626:(e,t,a)=>{"use strict";a.d(t,{SessionContext:()=>l});var r=a(95155);function l(e){let{children:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},38723:(e,t,a)=>{"use strict";a.d(t,{B:()=>l,X:()=>r});let r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function l(e){let t=e.trim();return t.length>0&&r.test(t)}},41290:()=>{},46015:e=>{e.exports={style:{fontFamily:"'Anton', 'Anton Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_ec6dc7",variable:"__variable_ec6dc7"}},46297:(e,t,a)=>{"use strict";a.d(t,{ToastProvider:()=>m,d:()=>u});var r=a(95155),l=a(12115),s=a(73952),n=a(69691),i=a(88967),o=a(31359),c=a(6749);let d=(0,l.createContext)(void 0),u=()=>{let e=(0,l.useContext)(d);if(!e)throw Error("useToast must be used within a ToastProvider");return e},m=e=>{let{children:t}=e,[a,u]=(0,l.useState)([]),m=(0,l.useCallback)(e=>{u(t=>t.map(t=>
1t.id===e?{...t,isExiting:!0,isPaused:!0}:t)),setTimeout(()=>{u(t=>t.filter(t=>t.id!==e))},300)},[]),h=(0,l.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",a=arguments.length>2?arguments[2]:void 0,r=Math.random().toString(36).substring(2,9),l=Date.now(),s=a?8e3:"error"===t?4e3:2e3;u(n=>[...n,{id:r,message:e,type:t,duration:s,remaining:s,lastUpdate:l,isPaused:!1,actionLabel:null==a?void 0:a.label,onAction:null==a?void 0:a.onClick}])},[]),g=(0,l.useCallback)(e=>{u(t=>t.map(t=>t.id===e?{...t,isPaused:!0}:t))},[]),x=(0,l.useCallback)(e=>{u(t=>t.map(t=>t.id===e?{...t,isPaused:!1,lastUpdate:Date.now()}:t))},[]);(0,l.useEffect)(()=>{let e=setInterval(()=>{let e=Date.now(),t=[];u(a=>a.map(a=>{if(a.isPaused||a.isExiting)return a;let r=e-a.lastUpdate,l=Math.max(0,a.remaining-r),s={...a,remaining:l,lastUpdate:e};return 0!==l||a.isExiting||t.push(a.id),s})),t.forEach(e=>m(e))},16);return()=>clearInterval(e)},[m]);let p=(0,l.useMemo)(()=>({showToast:h}),[h]);return(0,r.jsxs)(d.Provider,{value:p,children:[t,(0,r.jsx)("div",{className:"fixed bottom-4 right-4 z-[9999] flex flex-col gap-2 pointer-events-none",children:a.map(e=>(0,r.jsxs)("div",{onMouseEnter:()=>g(e.id),onMouseLeave:()=>x(e.id),className:(0,s.cn)("pointer-events-auto min-w-[320px] max-w-md p-4 rounded-xl shadow-[0_8px_30px_rgb(0,0,0,0.12)] border border-mtp-dark-100 flex flex-col gap-3 transition-all duration-300 ease-in-out relative overflow-hidden",e.isExiting?"opacity-0 translate-x-12 scale-95":"animate-toast-in","bg-white text-mtp-dark-800"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:["success"===e.type&&(0,r.jsx)(i.A,{className:"w-5 h-5 shrink-0 text-success"}),"error"===e.type&&(0,r.jsx)(c.A,{className:"w-5 h-5 shrink-0 text-error"}),"info"===e.type&&(0,r.jsx)(o.A,{className:"w-5 h-5 shrink-0 text-mtp-blue"}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-sm font-medium",children:e.message}),e.actionLabel&&e.onAction&&(0,r.jsx)("button",{onClick:t=>{var a;t.stopPropagation(),null==(a=e.onAction)||a.call(e),m(e.id)},className:"text-xs font-bold text-mtp-blue hover:underline text-left",children:e.actionLabel})]})]}),(0,r.jsx)("button",{onClick:()=>m(e.id),className:"p-1 hover:bg-white/20 rounded transition-colors shrink-0",children:(0,r.jsx)(n.A,{className:"w-4 h-4"})})]}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-mtp-dark-50",children:(0,r.jsx)("div",{className:(0,s.cn)("h-full transition-all duration-16 linear opacity-80","success"===e.type&&"bg-success","error"===e.type&&"bg-error","info"===e.type&&"bg-mtp-blue"),style:{width:"".concat(e.remaining/e.duration*100,"%")}})})]},e.id))})]})}},48650:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_c29908",variable:"__variable_c29908"}},56318:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(95155);let l=e=>(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{d:"M7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,r.jsx)("rect",{x:"5",y:"10",width:"14",height:"12",rx:"2",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"12",cy:"16",r:"1.5",fill:"white"})]})},56327:(e,t,a)=>{"use strict";a.d(t,{V:()=>n});var r=a(46378),l=a(60080),s=a(12115);function n(){let[e,t]=(0,s.useState)(!1),[a,n]=(0,s.useState)(null),[i,o]=(0,s.useState)(null),[c,d]=(0,s.useState)(!1),u=(0,s.useCallback)(()=>{t(!1),n(null),o(null),d(!1)},[]),m=(0,s.useCallback)(async(e,a)=>{t(!0),n(null),o(null),d(!1);try{let t=await fetch((0,r.i)("/register/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),cache:"no-store"});if(!t.ok){let e=await t.json().catch(()=>({})),a=e&&(e.error||e.message)||"Verification failed (".concat(t.status,")");n(String("string"==typeof a?a:JSON.stringify(a)));return}let s=await t.json().catch(()=>({})),i=(null==s?void 0:s.message)&&("object"==typeof s.message?s.message.message:s.message)||void 0;i&&o(String(i)),d(!0),(0,l.sx)("account_verified"),(0,l.sx)("login",{method:"token"}),a&&a(s),window.location.replace("/profile/dashboard")}catch(t){let e=t instanceof Error?t.message:"Unexpected error";return n(String(e)),{ok:!1,error:String(e)}}finally{t(!1)}},[]),h=(0,s.useCallback)(async(e,t,a)=>m({email:e,code:"number"==typeof t?t:(t||"").replace(/\D+/g,"")},a),[m]),g=(0,s.useCallback)(async(e,t)=>m({token:e},t),[m]);return(0,s.useMemo)(()=>({verifying:e,error:a,message:i,success:c,verify:m,verifyWithCode:h,verifyWithToken:g,reset:u}),[e,a,i,c,m,h,g,u])}},57163:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(12115),l=a(20063);function s(){let e=(0,l.usePathname)();return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}},63796:(e,t,a)=>{"use strict";a.d(t,{M:()=>s});var r=a(46378),l=a(12115);function s(){let[e,t]=(0,l.useState)(!1),[a,s]=(0,l.useState)(null),[n,i]=(0,l.useState)(null);return{onResend:async e=>{t(!0),s(null),i(null);try{let t=await fetch((0,r.i)("/register/resend"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e}),cache:"no-store"});if(!t.ok){let e=await t.json().catch(()=>null),a="Failed (".concat(t.status,")");
1if(e&&"object"==typeof e&&"error"in e){let t=e.error;"string"==typeof t&&(a=t)}i(a);return}s("Verification email sent. Please check your inbox.")}catch(e){i(e instanceof Error?e.message:"Something went wrong. Please try again later.")}finally{t(!1)}},resendLoading:e,resendMsg:a,resendErr:n}}},72251:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},78148:(e,t,a)=>{"use strict";a.d(t,{q:()=>l});var r=a(12115);let l=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>t(!0),[]),e}},83300:(e,t,a)=>{"use strict";a.d(t,{TopLoadingBar:()=>n});var r=a(95155),l=a(20063),s=a(12115);let n=()=>{let e=(0,l.usePathname)(),t=(0,l.useSearchParams)(),[a,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(0),[c,d]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{d(!0),n(!0),o(30);let e=setTimeout(()=>{o(100);let e=setTimeout(()=>{d(!1);let e=setTimeout(()=>{n(!1),o(0)},500);return()=>clearTimeout(e)},200);return()=>clearTimeout(e)},400);return()=>clearTimeout(e)},[e,t]),a||0!==i)?(0,r.jsx)("div",{className:"fixed top-0 left-0 right-0 z-[9999] h-0.5 bg-mtp-blue-500 transition-opacity duration-500 ease-in-out ".concat(c?"opacity-100":"opacity-0"),children:(0,r.jsx)("div",{className:"rounded-full h-full bg-mtp-blue-900 transition-all duration-300 ease-out shadow-[0_0_10px_#00315a]",style:{width:"".concat(i,"%")}})}):null}},84218:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var r=a(95155),l=a(69691),s=a(38452),n=a(53213),i=a(12115),o=a(83101),c=a(73952);let d=(0,o.F)("\n text-mtp-dark-900 bg-mtp-white placeholder-mtp-dark-600\n px-[14px] py-[10px]\n block w-full \n rounded-lg border border-mtp-dark-400\n focus:outline-none focus:ring-2 focus:ring-offset-2\n disabled:opacity-50 disabled:cursor-not-allowed",{variants:{state:{default:"\n border-gray-300 \n ",error:"\n border-error \n outline-red-200\n "}},defaultVariants:{state:"default"}}),u=i.forwardRef((e,t)=>{let{id:a,label:o,description:u,helperText:m,error:h,className:g,containerClassName:x,state:p,required:f,leftIcon:v,rightIcon:b,clearable:y,onClear:j,hideValidation:w,showPasswordToggle:N,...k}=e,{onChange:_,value:C,defaultValue:A,placeholder:P,name:S,...T}=k,q=(0,i.useRef)(null),[M,L]=(0,i.useState)(!1);i.useImperativeHandle(t,()=>q.current);let F=(0,i.useMemo)(()=>null!=a?a:S?String(S):void 0,[a,S]),E=(0,i.useMemo)(()=>{let e=null!=C?C:A;return void 0!==e&&String(e).length>0},[C,A]),[z,R]=(0,i.useState)(E);(0,i.useEffect)(()=>{R(E)},[E]);let O=!!h,Z=O&&"string"==typeof h?h:m,I=Z?"".concat(F||S,"-desc"):void 0,V=O?"text-error":"text-gray-400",D=!!y&&z,H=!!b,B=!!N&&"password"===k.type;return(0,r.jsxs)("div",{className:(0,c.cn)("flex flex-col w-full m-0 gap-[6px]",!(null==x?void 0:x.includes("max-w-"))&&"max-w-80",x),children:[o&&(0,r.jsxs)("label",{htmlFor:F,className:(0,c.cn)("body-sm block text-mtp-dark-800"),children:[o,f?(0,r.jsx)("span",{className:"text-error ml-1",children:"*"}):null]}),u&&(0,r.jsx)("div",{className:(0,c.cn)("body-sm block text-mtp-dark-800"),children:u}),(0,r.jsxs)("div",{className:"relative group/input",children:[v?(0,r.jsx)("div",{className:(0,c.cn)("absolute inset-y-0 left-0 pl-3 flex items-center z-10",V),children:v}):null,(0,r.jsx)("input",{ref:q,id:F,"aria-invalid":O||void 0,"aria-describedby":I,className:(0,c.cn)(d({state:O?"error":p}),v?"pl-10":void 0,(H||B)&&D?"pr-16":H||B||D?"pr-10":void 0,g),required:f,placeholder:P,onChange:e=>{_&&_(e),void 0===C&&R(e.target.value.length>0)},name:S,defaultValue:A,value:C,...T,type:B&&M?"text":k.type}),H||B||D?(0,r.jsxs)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center gap-2",children:[H?(0,r.jsx)("div",{className:(0,c.cn)("pointer-events-none",V),children:b}):null,B?(0,r.jsx)("button",{type:"button",className:"flex items-center text-gray-400 hover:text-gray-600 focus:outline-none","aria-label":M?"Hide password":"Show password",onClick:()=>L(!M),children:M?(0,r.jsx)(n.A,{width:20}):(0,r.jsx)(s.A,{width:20})}):null,D?(0,r.jsx)("button",{type:"button",className:"flex items-center text-gray-400 hover:text-gray-600 focus:outline-none","aria-label":"Clear input",onClick:()=>
1{if(j)j();else{let e=q.current;e&&(e.focus(),void 0===C&&(e.value="",R(!1)),_&&_({target:e,currentTarget:e}))}},children:(0,r.jsx)(l.A,{width:20})}):null]}):null]}),(0,r.jsx)("p",{id:I,className:(0,c.cn)("body-xs leading-4",Z&&O?"text-error":"text-gray-500",w?"hidden":""),"aria-live":O?"assertive":void 0,children:Z||"\xa0"})]})});u.displayName="Input";let m=u},89930:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(12115),l=a(20063);function s(e){let{autoBlock:t,masterConsentsOrigin:a,websiteUUID:s}=e,n=(0,r.useMemo)(()=>{let e=new URL("https://app.termly.io");return e.pathname="/resource-blocker/".concat(s),t&&e.searchParams.set("autoBlock","on"),a&&e.searchParams.set("masterConsentsOrigin",a),e.toString()},[t,a,s]),i=(0,r.useRef)(!1),o=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(i.current)return;if(document.querySelector('script[src="'.concat(n,'"]'))){i.current=!0;return}let e=document.createElement("script");return e.src=n,e.async=!0,o.current=e,document.head.appendChild(e),i.current=!0,()=>{if(o.current&&o.current.parentNode)try{o.current.parentNode.removeChild(o.current)}catch(e){console.warn("Failed to remove Termly script:",e)}}},[n]);let c=(0,l.usePathname)(),d=(0,l.useSearchParams)();return(0,r.useEffect)(()=>{if(window.Termly)try{window.Termly.initialize()}catch(e){console.warn("Error initializing Termly:",e)}},[c,d]),null}},93531:(e,t,a)=>{"use strict";a.d(t,{h:()=>u,p:()=>m});var r=a(95155),l=a(92916);a(12115);var s=a(22953),n=a(63424),i=a(28543),o=a(20495),c=a(64719),d=a(60080);let u=[{label:"Travel & Events",href:"/tours",children:[{label:"Travel the world",href:"/tours",condition:()=>!0},{label:"Guides & Fixers",href:"/fixers",condition:()=>!0},{label:"World Record 193s",href:"/worldrecordungrandmasters193",condition:()=>!0},{label:"Map the planet Day",href:"/maptheplanet-2026",condition:()=>!0},{label:"Summit 2027",href:"/mtp-summit-2027",condition:()=>!0},{label:"Photography Competition 2026",href:"/photo-competition",condition:()=>!0}]},{label:"Rankings",href:"/ranking",children:[{label:"Find your ranking",href:"/ranking/guest",condition:e=>e.isGuest},{label:"Halls of Fame",href:"/ranking/halls-of-fame"},{label:"Scoreboard",href:"/ranking/scoreboard"}],condition:()=>!0},{label:"Lists",href:"/lists-explained/uncountries",children:[{label:"My map",href:"/profile/my-visits/map",condition:()=>!0,requiresAuth:!0},{label:"My visits list",href:"/profile/my-visits/list",condition:()=>!0,requiresAuth:!0},{label:"Hotel brands",href:"/hotel-brands",condition:()=>!0},{label:"Lists explained",href:"/lists-explained/uncountries",condition:()=>!0},{label:"Rules & verification",href:"/rules-for-visits",condition:()=>!0}]},{label:"About",href:"/about-mtp",children:[{label:"About MTP",href:"/about-mtp",condition:()=>!0},{label:"MTP News",href:"/blog",condition:()=>!0},{label:"Contact us",href:"/contact-us",condition:()=>!0}]}],m=[{label:"Profile",href:"/profile/dashboard",Icon:function(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 -960 960 960",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a,children:(0,r.jsx)("path",{d:"M200-246q54-53 125.5-83.5T480-360q83 0 154.5 30.5T760-246v-514H200v514Zm280-194q58 0 99-41t41-99q0-58-41-99t-99-41q-58 0-99 41t-41 99q0 58 41 99t99 41ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm69-80h422q-44-39-99.5-59.5T480-280q-56 0-112.5 20.5T269-200Zm211-320q-25 0-42.5-17.5T420-580q0-25 17.5-42.5T480-640q25 0 42.5 17.5T540-580q0 25-17.5 42.5T480-520Zm0 17Z",fill:"currentColor",strokeWidth:"0.5"})})},isAvatar:!0,condition:()=>!0},{label:"My map",href:"/profile/my-visits/map",Icon:function(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 -960 960 960",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",width:"24",height:"24",...a,fill:"currentColor",children:(0,r.jsx)("path",{d:"M640-560v-126 126ZM174-132q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v337q-15-23-35.5-42T760-528v-204l-120 46v126q-2
11 0-41 3.5T560-546v-140l-160-56v523l-226 87Zm26-96 120-46v-468l-120 40v474Zm496.5-32q22.5-20 23.5-60 1-34-22.5-57T640-400q-34 0-57 23t-23 57q0 34 23 57t57 23q34 0 56.5-20ZM640-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 43.5T778-238l102 102-56 56-102-102q-18 11-38.5 16.5T640-160ZM320-742v468-468Z"})})},condition:()=>!0},{label:"My visits list",href:"/profile/my-visits/list",Icon:()=>(0,r.jsx)(l.kp,{width:"18",height:"18"}),condition:()=>!0},{label:"Verification",href:"/profile/verification",Icon:i.A,condition:e=>e.showVerificationPage},{label:"Verification Review",href:"/profile/review",Icon:function(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 -960 960 960",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",height:"20px",width:"20px",...a,children:(0,r.jsx)("path",{d:"m438-338 226-226-57-57-169 169-84-84-57 57 141 141Zm42 258q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z",stroke:"currentColor",fill:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},condition:e=>e.isCommittee},{label:"Verify Fixers",href:"/profile/fixers/verify",Icon:function(e){let{className:t,...a}=e;return(0,r.jsx)("svg",{className:t,viewBox:"0 -960 960 960",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",height:"20px",width:"20px",...a,children:(0,r.jsx)("path",{d:"M412-168q45-91 120-121.5T660-320q23 0 45 4t43 10q24-38 38-82t14-92q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 45 11.5 86t34.5 76q41-20 85-31t89-11q32 0 61.5 5.5T500-340q-23 12-43.5 28T418-278q-12-2-20.5-2H380q-32 0-63.5 7T256-252q32 32 71.5 53.5T412-168Zm-88 56.5Q251-143 197-197t-85.5-127Q80-397 80-480t31.5-156Q143-709 197-763t127-85.5Q397-880 480-880t156 31.5Q709-817 763-763t85.5 127Q880-563 880-480t-31.5 156Q817-251 763-197t-127 85.5Q563-80 480-80t-156-31.5ZM281-461q-41-41-41-99t41-99q41-41 99-41t99 41q41 41 41 99t-41 99q-41 41-99 41t-99-41Zm141.5-56.5Q440-535 440-560t-17.5-42.5Q405-620 380-620t-42.5 17.5Q320-585 320-560t17.5 42.5Q355-500 380-500t42.5-17.5ZM589-409q-29-29-29-71t29-71q29-29 71-29t71 29q29 29 29 71t-29 71q-29 29-71 29t-71-29Zm-109-71Z",stroke:"currentColor",fill:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},condition:e=>e.isAdmin},{label:"Verify Events",href:"/profile/events/verify",Icon:s.A,condition:e=>e.isAdmin},{label:"Competition Submissions",href:"/profile/photo-competition-submissions",Icon:o.A,condition:e=>e.isPhotoJury},{label:"Settings",href:"/profile/settings",Icon:n.A,condition:()=>!0},{label:"Logout",href:"#",Icon:c.A,onClick:async e=>{(0,d.sx)("logout"),(0,d.JE)(),await e.signOut(),window.location.href="/login"}}]}},e=>{e.O(0,[5452,1741,4896,2545,240,2619,4909,5239,7507,6784,7235,4433,6195,3710,2508,453,4190,8626,7028,2916,8079,211,3961,829,7415,8441,1255,7358],()=>e(e.s=19883)),_N_E=e.O()}]);
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.