PageSourceSearch

https://pixelbypixel.studio/_next/static/chunks/15l0_scycjx15.js

js pixelbypixel.studio collected 2026-09-25 03:32:33 UTC 231,335 bytes, 479 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,217558,e=>{"use strict";var t=e.i(332080),n=e.i(869277),r=e.i(264458),o=e.i(322484),a=e.i(290978);let s=({text:e})=>(0,t.jsx)("span",{className:"w-full flex flex-row py-2 px-2 justify-center items-center text-center z-10 dark:text-primary-foreground",children:(0,t.jsx)("span",{children:e})});e.s(["AnnouncementBanner",0,function(){let e,l=(0,r.default)("z-10 flex w-full bg-yellow-300"),{route:i,text:c}=(e=(0,o.useSession)(),(0,n.hasMinimumRole)(e?.data?.user?.playFabId,n.ROLES.TESTER),{text:"✨ A whole new shine — fresh look, foil reveals, the NFT Leaderboard, and more",route:"/updates/a-whole-new-shine"});return i?(0,t.jsx)(a.default,{prefetch:!1,href:i,className:l,children:(0,t.jsx)(s,{text:c})}):(0,t.jsx)("div",{className:l,children:(0,t.jsx)(s,{text:c})})}])},506073,e=>{"use strict";var t=e.i(332080),n=e.i(857592),r=e.i(167881),o=e.i(6799),a=e.i(174117),s=e.i(171747),l=e.i(108181),i=e.i(322484),c=e.i(953924),d=e.i(607564);async function u(){let e=await fetch("/api/user/achievements/notifications");if(!e.ok)throw Error(`Achievement notification request failed with status ${e.status}`);return e.json()}function _({achievementId:e,achievementName:n,onOpen:r}){let a=(0,d.useCallback)(()=>{r(e)},[e,r]);return(0,t.jsx)(o.ToastAction,{altText:`See ${n}`,onClick:a,children:"See Achievements"})}e.s(["default",0,function(){let e=(0,c.useRouter)(),{toast:o}=(0,a.useToast)(),m=(0,i.useSession)(),h="authenticated"===m.status,p=h?m.data.user.playFabId:void 0,g=(0,d.useRef)(new Set),f=(0,d.useRef)(new Set),[y,b]=(0,d.useState)(null),w=p?`pbp-achievements-launch-v1:${p}`:null,x=(0,d.useCallback)(async()=>{if(!w)return!1;try{return!window.localStorage.getItem(w)}catch{return!0}},[w]),{data:v}=(0,s.useQuery)({queryKey:["achievement-launch-announcement",w],queryFn:x,enabled:!!w,staleTime:1/0}),k=(0,d.useCallback)(()=>{if(w)try{window.localStorage.setItem(w,new Date().toISOString())}catch{}b(w)},[w]),{data:C}=(0,s.useQuery)({queryKey:["achievement-notifications",p],queryFn:u,enabled:h&&!!p,staleTime:3e5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:!1}),E=(0,d.useCallback)(()=>{k(),e.push("/achievements")},[k,e]),S=(0,d.useCallback)(()=>{k()},[k]),I=(0,d.useCallback)(t=>{e.push(`/achievements?achievement=${encodeURIComponent(t)}#achievements`)},[e]);return(0,d.useEffect)(()=>{for(let e of C?.achievements??[])g.current.has(e.id)||(g.current.add(e.id),o({title:"Achievement Unlocked!",description:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-semibold",children:e.name}),(0,t.jsx)("span",{className:"text-xs",children:new Date(e.earnedAt).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}),(0,t.jsx)("span",{children:e.description})]}),duration:1/0,action:(0,t.jsx)(_,{achievementId:e.id,achievementName:e.name,onOpen:I})}));for(let e of C?.eligibilityLost??[])f.current.has(e.id)||(f.current.add(e.id),o({title:"Cosmetic Removed",description:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("span",{children:["You no longer meet the criteria for ",e.name,", so its cosmetic has been removed."]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"The achievement remains in your collection as previously earned."})]}),duration:1/0,action:(0,t.jsx)(_,{achievementId:e.id,achievementName:e.name,onOpen:I})}))},[C?.achievements,C?.eligibilityLost,I,o]),v&&y!==w?(0,t.jsx)(n.default,{withX:!0,closeFunction:S,title:"Achievement Unlocked!",size:"medium",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-5 py-3 text-center",children:[(0,t.jsx)("span",{className:"rounded-full bg-pbp-refactor-cyan/15 p-4 text-pbp-refactor-cyan",children:(0,t.jsx)(l.Award,{className:"size-12"})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold",children:"We now have achievements!"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Explore your collection, inspect unlocked and unlockable milestones, and choose how you appear across the website."})]}),(0,t.jsx)(r.Button,{onClick:E,className:"w-full sm:w-auto",children:"See Achievements"})]})}):null}])},208740,e=>{"use strict";
1var t=e.i(332080),n=e.i(274135),r=e.i(674033),o=e.i(857592),a=e.i(709299),s=e.i(777813),l=e.i(50983),i=e.i(179861),c=e.i(759731),d=e.i(905552),u=e.i(231978),_=e.i(953924),m=e.i(607564);let h=i.FLIGHT_LIFTOFF_MS,p=m.useLayoutEffect;function g(e,t){return{x:t.left+t.width/2-(e.left+e.width/2),y:t.top+t.height/2-(e.top+e.height/2),scale:t.width/e.width}}e.s(["NFTCardFlyer",0,function(){let[e,f]=(0,u.useAtom)(i.nftFlightAtom),y=(0,_.usePathname)(),b=(0,m.useRef)(y);(0,m.useEffect)(()=>{if(!e){b.current=y;return}y!==b.current&&f(null)},[y,e,f]);let[w,x]=(0,m.useState)(null),v=(0,m.useCallback)(e=>x(e),[]),[k,C]=(0,m.useState)(null),[E,S]=(0,m.useState)(null),I=(0,m.useRef)(null),N=(0,m.useRef)(!1),j=(0,m.useRef)(0),L=(0,m.useRef)(e);(0,m.useEffect)(()=>{L.current=e});let T=e?.id,A=e?.launchId,M=e?.to??null,P=e?.phase;p(()=>{if(T&&"presenting"!==P)return document.body.classList.add("nft-flight-active"),()=>document.body.classList.remove("nft-flight-active")},[T,P]),(0,m.useEffect)(()=>{let e,t,n,r,o;if(!A||L.current?.phase!=="flying")return;N.current=!1,j.current+=1;let a=I.current,s=L.current?.from;if(!w||!a||!s)return;let l=g(s,(e=window.innerWidth,t=window.innerHeight,o=(r=Math.min(.8*e,.62*t/(n=s.height/s.width||1),560))*n,{top:(t-o)/2,left:(e-r)/2,width:r,height:o}));(0,d.animate)(w,{translateX:l.x,translateY:l.y,scale:l.scale,duration:h,ease:"inOutCubic",onComplete:()=>C(A)}),(0,d.animate)(a,{rotateY:360,duration:h,ease:"inOutCubic"});let i=setTimeout(()=>{N.current||(0,d.animate)(w,{opacity:0,duration:220,ease:"outQuad",onComplete:()=>{S(A),f(e=>e?{...e,phase:"presenting"}:null)}})},6e3);return()=>clearTimeout(i)},[A,w,f]),(0,m.useEffect)(()=>{if(!A||L.current?.phase!=="flying"||!M||k!==A)return;let e=L.current?.from;if(!w||!e)return;N.current=!0,j.current+=1;let t=j.current,n=g(e,M);(0,d.animate)(w,{translateX:n.x,translateY:n.y,scale:n.scale,duration:300,ease:"outCubic",onComplete:()=>{t===j.current&&(S(A),f(e=>e?{...e,phase:"presenting"}:null))}})},[A,M,k,w,f]),(0,m.useEffect)(()=>{if(!A||L.current?.phase!=="returning")return;let e=I.current,t=L.current?.from,n=L.current?.to;if(!w||!e||!t||!n)return void f(null);let r=g(t,n);(0,d.animate)(w,{translateX:[r.x,0],translateY:[r.y,0],scale:[r.scale,1],duration:i.FLIGHT_RETURN_MS,ease:"inOutCubic",onComplete:()=>f(null)}),(0,d.animate)(e,{rotateY:[0,360],duration:i.FLIGHT_RETURN_MS,ease:"inOutCubic"})},[A,w,f]),(0,m.useEffect)(()=>{if(null===E)return;let e=()=>S(e=>e===E?null:e),t=document.querySelector(".modal-overlay-in"),n=t=>{"opacity"===t.propertyName&&e()};t?.addEventListener("transitionend",n);let r=setTimeout(e,i.FLIGHT_PRESENT_HOLD_MS);return()=>{t?.removeEventListener("transitionend",n),clearTimeout(r)}},[E]);let z=(0,m.useCallback)(()=>{f(e=>e&&"presenting"===e.phase&&e.to?{...e,phase:"returning"}:null)},[f]);if(!e)return null;let R="returning"===e.phase&&e.to?g(e.from,e.to):null,O="flying"===e.phase||"returning"===e.phase||"presenting"===e.phase&&E===e.launchId;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{withX:!0,closeFunction:z,children:(0,t.jsx)(l.default,{children:(0,t.jsx)(s.default,{id:e.id,modal:!0})})}),O&&(0,t.jsx)(c.Root,{children:(0,t.jsx)("div",{className:"pointer-events-none fixed inset-0 z-[70]",children:(0,t.jsx)("div",{ref:v,style:{position:"fixed",top:e.from.top,left:e.from.left,width:e.from.width,height:e.from.height,perspective:"1100px",willChange:"transform",transform:R?`translate(${R.x}px, ${R.y}px) scale(${R.scale})`:void 0},children:(0,t.jsx)("div",{ref:I,style:{width:"100%",height:"100%",transformStyle:"preserve-3d",willChange:"transform"},children:(0,t.jsx)(n.HoloCard,{className:"h-full w-full rounded-xl",foilCategory:e.foilCategory,foilFloat:e.foilFloat,interactive:!1,front:(0,t.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-xl bg-pbp-refactor-black",children:(0,t.jsx)(a.default,{src:e.imageUrl,fallbackSrc:"/placeholder.svg",alt:"",fill:!0,className:"object-cover"})}),back:(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center overflow-hidden rounded-xl bg-pbp-refactor-black",children:(0,t.jsx)(r.default,{src:"/pixel-by-pixel.svg",alt:"",width:140,height:32,className:"w-1/2 opacity-50"})})})})},e.launchId)})})]})}])},185342,e=>{"use strict";var t=e.i(174117),n=e.i(201460),r=e.i(143680),o=e.i(171747),a=e.i(231978),s=e.i(607564);let l="foil_broadcast_seen_at";async function i(){try{let e=await fetch("/api/foil-reveals/recent");if(!e.ok)return[];return(await e.json()).reveals??[]}catch{return[]}}e.s(["FoilBroadcastToast",0,function(){let{toast:e}=(0,t.useToast)(),c=(0,a.useAtomValue)(r.REDUCED_FX_ATOM),d=(0,s.useRef)(null),{data:u}=(0,o.useQuery)({queryKey:["foil-broadcast"],queryFn:i,refetchInterval:9e4,refetchOnWindowFocus:!1,staleTime:9e4});return(0,s.useEffect)(()=>{let t,r;if(!u||0===u.length)return;null===d.current&&(d.current=Number.isNaN(r=(t=window.localStorage.getItem(l))?Date.parse(t):NaN)?Date.now():r);
1let o=d.current,a=u.filter(e=>Date.parse(e.revealedAt)>o);if(0===a.length)return;let s=a[0];d.current=Date.parse(s.revealedAt),window.localStorage.setItem(l,s.revealedAt);let i=(0,n.getFoilCategoryName)(s.tier);e({globalNotification:!0,variant:"broadcast",title:`Someone just revealed a ${i} Foil!`,description:a.length>1?`…and ${a.length-1} more high-tier ${a.length-1==1?"pull":"pulls"} while you were away.`:"Level up your collectibles for a shot at your own.",duration:c?5e3:8e3})},[u,e,c]),null}])},325915,e=>{"use strict";var t=e.i(332080),n=e.i(167881),r=e.i(174117),o=e.i(775354),a=e.i(171747),s=e.i(231978),l=e.i(839609),i=e.i(290978),c=e.i(607564);async function d(){let e=await fetch("/api/user/pending-rewards");if(!e.ok)throw Error("Failed to load pending rewards");return e.json()}e.s(["PendingRewardsToast",0,function(){let e=(0,s.useAtomValue)(o.userAtom),{toast:u}=(0,r.useToast)(),_=(0,c.useRef)(!1),m=e.session?.user?.walletId,h=!!(e.primaryWalletKey&&m&&e.primaryWalletKey===m),{data:p}=(0,a.useQuery)({queryKey:["pending-rewards",e.primaryWalletKey],queryFn:d,enabled:h,staleTime:3e5});return(0,c.useEffect)(()=>{var e;let r;if(!p?.hasPendingRewards||_.current)return;_.current=!0;let o=isNaN(r="string"==typeof(e=p.totalPbpBaseUnits)?parseInt(e,10):e)?"0":r.toLocaleString();u({title:`${o} PBP Unclaimed`,description:p.requiresTokenAccountSetup?"Set up your PBP reward account in Account Settings to unlock payout.":"You have pending PBP rewards ready to be paid out.",duration:1/0,action:(0,t.jsx)(n.Button,{variant:"outline",size:"sm",asChild:!0,children:(0,t.jsxs)(i.default,{prefetch:!1,href:"/account/pending-rewards",children:[(0,t.jsx)(l.Coins,{className:"mr-1.5 h-3.5 w-3.5"}),"View"]}
1)})})},[p,u]),null}])},255578,e=>{"use strict";var t=e.i(332080),n=e.i(167881),r=e.i(174117),o=e.i(103719),a=e.i(775354),s=e.i(231978),l=e.i(474211),i=e.i(290978),c=e.i(953924),d=e.i(607564);let u="/missions/play",_=`${u}?reveal=1`;e.s(["UnrevealedFoilsToast",0,function(){let e=(0,s.useAtomValue)(a.userAtom),{toast:m}=(0,r.useToast)(),h=(0,d.useRef)(!1),p=e.session?.user?.walletId,g=!!(e.primaryWalletKey&&p&&e.primaryWalletKey===p),f=(0,o.usePendingRevealCount)(g),y=(0,c.usePathname)(),b=(0,o.useApplyRevealFilters)();return(0,d.useEffect)(()=>{if(f<=0||h.current)return;h.current=!0;let e=y===u;m({title:1===f?"You have an unrevealed foil":`You have ${f} unrevealed foils`,description:e?1===f?"One of your cards rolled a new foil. Show it, then tap its sealed pack to open it.":"Some of your cards rolled new foils. Show them, then tap a sealed pack to open them.":1===f?"One of your collectibles rolled a new foil. Head to Play and tap its sealed pack to open it.":"Some of your collectibles rolled new foils. Head to Play and tap a sealed pack to open them.",duration:12e3,action:e?(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",className:"whitespace-nowrap",onClick:b,children:[(0,t.jsx)(l.Sparkles,{className:"mr-1.5 h-3.5 w-3.5 shrink-0"}),1===f?"Show it":"Show them"]}):(0,t.jsx)(n.Button,{variant:"outline",size:"sm",className:"whitespace-nowrap",asChild:!0,children:(0,t.jsxs)(i.default,{prefetch:!1,href:_,children:[(0,t.jsx)(l.Sparkles,{className:"mr-1.5 h-3.5 w-3.5 shrink-0"}),"Reveal"]})})})},[f,m,y,b]),null}])},629935,e=>{"use strict";e.i(969621);var t,n=e.i(332080),r=e.i(425762);e.i(563265);var o=e.i(97839),a=e.i(119452),s=e.i(347102);e.i(869277).ROLES.PLAYER;let l=[{name:"Play",items:[{name:"Missions",link:"/missions/play",description:"Assign collectibles and earn rewards by playing"},{name:"Mission Competitions",link:"/missions/competitions",description:"Climb the mission leaderboards for prizes"},{name:"2026 World Cup",link:"/missions/world-cup",description:"Represent your country in the global event"},{name:"Competitive Raids",link:"/competitions",description:"Opt in and race for prize pools"},{name:"Mobile App",link:"/app",description:"The Marbles on Stream companion app for iOS and Android"}]},{name:"Community",items:[{name:"Explore",link:"/explore",description:"Browse every PbP collectible"},{name:"NFT Leaderboard",link:"/nft-leaderboard",description:"Top 100 collectibles by EXP"},{name:"HUB",link:"/hub",description:"Leaderboards and standings"},{name:"Live Matches",link:"/live-matches",description:"Races happening on Twitch right now"},{name:"Weekly",link:"/weekly",description:"This week’s featured events"},{name:"Emotes",link:"/emotes",description:"Equip emotes for the stream"},{name:"Twitch Drops",link:"/twitch-drops",description:"Watch streams, earn drops"},{name:"Stake",link:"https://www.gotmlabz.io/nftstake/morbies",external:!0,description:"Stake your Morbies"}]},{name:"Shop",items:[{name:"Web3 Shop",link:"/shop",description:"Spend PbP on collectibles and boosts"},{name:"Creator Shop",link:"https://shop.pixelbypixel.studio",external:!0,description:"Support your favorite streamer"},{name:"Merch",link:"https://pixelbypixelstudios-shop.fourthwall.com/",external:!0,description:"Real-world PbP gear"},{name:"Exchange",link:"/exchange",description:"Swap and manage PbP tokens"}]},{name:"Studio",items:[{name:"About the Studio",link:"/about",description:"Who we are and the games we build"},{name:"Marbles Wiki",link:"https://wiki.pixelbypixel.studio",external:!0,description:"Learn how to play Marbles and Missions"}]}],i=[{name:"Updates",link:"/updates",description:"News and patch notes"}],c=[{name:"Branding",link:"/branding"},{name:"Privacy Policy",link:"/privacy"},{name:"Terms of Service",link:"/tos"}],d=[{name:"Twitter",link:"https://twitter.com/pixelbypixelstu",icon:(0,n.jsx)(s.Twitter,{})},{name:"Discord",link:"https://discord.gg/pixelbypixelstudios",icon:(0,n.jsx)(s.Discord,{})},{name:"Facebook",link:"https://facebook.com/pixelbypixelstudios",icon:(0,n.jsx)(s.Facebook,{})},{name:"YouTube",link:"https://www.youtube.com/channel/UCx-BAZv3vlsDGnOk_RVElmQ",icon:(0,n.jsx)(s.YouTube,{})},{name:"Steam",link:"https://store.steampowered.com/search/?developer=Pixel%20by%20Pixel%20Studios%20Inc.",icon:(0,n.jsx)(s.Steam,{})},{name:"Twitch",link:"https://www.twitch.tv/pixelbypixelstudios",icon:(0,n.jsx)(s.Twitch,{})}];var u=e.i(143680),_=e.i(231978),m=e.i(607564),h=((t=h||{}).light="light",t.dark="dark",t),p=e.i(562159),g=e.i(535700),f=e.i(775354),y=e.i(463415),b=e.i(264458),w=e.i(78460),x=e.i(133535),v=e.i(439397);let k=(0,e.i(546039).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);var C=e.i(685417),E=e.i(999807),S=e.i(319909),I=e.i(456300),N=e.i(904183),j=e.i(294394),L=e.i(155890),T=e.i(674033),A=e.i(290978),M=e.i(953924),P=e.i(195157),z=e.i(171747),R=e.i(722489);
1function O(e){return(e??0).toLocaleString(void 0,{maximumFractionDigits:2})}let W="min-w-0 truncate font-bold tabular-nums text-pbp-refactor-cyan";function B(){let e=(0,_.useAtomValue)(f.userAtom);return(0,n.jsxs)("div",{className:"flex min-w-0 flex-row items-center gap-2",children:[(0,n.jsx)(T.default,{alt:"PbP Token",src:"/pbptoken.png",width:24,height:24,className:"shrink-0 rounded-md"}),(0,n.jsx)("span",{className:W,title:String(e.balance??0),children:O(e.balance)})]})}function D(){let e=(0,_.useAtomValue)(f.userAtom),{data:t,isLoading:r,error:o,isError:a}=(0,z.useQuery)({queryKey:["vaultBalance"],queryFn:P.getVaultBalance,refetchInterval:18e5,refetchOnWindowFocus:!0,refetchIntervalInBackground:!1,staleTime:18e5,retry:3,enabled:!!e.session?.user?.walletId});return r?(0,n.jsx)(R.default,{}):a||o?(0,n.jsx)("span",{className:"text-red-500",children:String(o)||"Error fetching balance"}):(0,n.jsxs)("div",{className:"flex min-w-0 flex-row items-center gap-2",children:[(0,n.jsx)(T.default,{alt:"PbP Token",src:"/pbptoken.png",width:24,height:24,className:"shrink-0 rounded-md"}),(0,n.jsx)("span",{className:W,title:String(t?.balance??0),children:O(t?.balance)})]})}function Y(e,t){return!(!e||t.startsWith("http"))&&(e===t||e.startsWith(`${t}/`))}function U({onNavigate:e,compact:t}){let r=(0,_.useAtomValue)(g.shopCartCountAtom);return(0,n.jsxs)(A.default,{prefetch:!1,href:"/shop/cart","aria-label":"Shopping cart",onClick:e,className:(0,b.default)("relative flex items-center gap-2 rounded-lg transition-colors",{"p-2 text-primary-foreground dark:text-secondary-foreground hover:bg-pbp-light-purple/20":t,"px-3 py-2.5 justify-between w-full rounded-xl border border-pbp-refactor-cyan/50 text-pbp-refactor-cyan hover:bg-pbp-refactor-cyan/10 font-bold":!t}),children:[(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)(N.ShoppingCart,{className:"h-5 w-5","aria-hidden":"true"}),!t&&"Cart"]}),r>0&&(0,n.jsx)("span",{className:(0,b.default)("min-w-[18px] h-[18px] rounded-full bg-pbp-peach text-black text-xs font-bold flex items-center justify-center px-1",{"absolute -top-1 -right-1":t}),children:r})]})}function F({className:e,onNavigate:t}){return(0,n.jsx)("div",{className:(0,b.default)("flex items-center gap-3",e),children:d.map(e=>(0,n.jsx)(A.default,{prefetch:!1,href:e.link,target:"_blank",rel:"noopener noreferrer","aria-label":e.name,onClick:t,className:"text-primary-foreground dark:text-secondary-foreground hover:text-pbp-refactor-cyan transition-colors",children:e.icon},e.name))})}
1function H({name:e,items:t,pathname:r,footer:a}){let s=t.some(e=>Y(r,e.link));return(0,n.jsxs)(y.DropdownMenu,{modal:!1,children:[(0,n.jsxs)(y.DropdownMenuTrigger,{className:(0,b.default)(o.dmSans.className,"group flex items-center gap-1 rounded-lg px-3 py-2 text-sm font-bold uppercase tracking-wide outline-none transition-colors","data-[state=open]:bg-pbp-light-purple/25 data-[state=open]:text-pbp-pale-purple",{"text-pbp-pale-purple bg-pbp-light-purple/15":s,"text-primary-foreground dark:text-secondary-foreground hover:text-pbp-pale-purple hover:bg-pbp-light-purple/10":!s}),children:[e,(0,n.jsx)(w.ChevronDown,{className:"h-3.5 w-3.5 transition-transform group-data-[state=open]:rotate-180","aria-hidden":"true"})]}),(0,n.jsxs)(y.DropdownMenuContent,{align:"start",sideOffset:10,className:"w-72 border-pbp-light-purple/30 bg-pbp-refactor-black/95 backdrop-blur-md p-2 rounded-xl",children:[t.map(e=>{let t=Y(r,e.link);return(0,n.jsx)(y.DropdownMenuItem,{asChild:!0,className:"rounded-lg p-0 focus:bg-pbp-light-purple/20",children:(0,n.jsx)(A.default,{prefetch:!1,href:e.link,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:"w-full cursor-pointer px-3 py-2.5",children:(0,n.jsxs)("div",{className:"flex w-full flex-col items-start gap-0.5 text-left",children:[(0,n.jsxs)("span",{className:(0,b.default)(`${o.dmSans.className} flex items-center gap-1.5 text-sm font-bold`,{"text-pbp-refactor-cyan":t,"text-primary-foreground dark:text-secondary-foreground":!t}),children:[e.name,e.external&&(0,n.jsx)(v.ExternalLink,{className:"h-3 w-3 opacity-60","aria-hidden":"true"})]}),e.description&&(0,n.jsx)("span",{className:"text-xs text-pbp-gray",children:e.description})]})})},e.link)}),a]})]})}function Q({open:e,onClose:t,pathname:s}){let d=(0,_.useAtomValue)(f.isWalletLinkedAtom);return(0,m.useEffect)(()=>{if(e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,b.default)("fixed inset-0 z-40 bg-black/60 backdrop-blur-sm transition-opacity duration-300 md:hidden",{"opacity-100":e,"pointer-events-none opacity-0":!e}),onClick:t,"aria-hidden":"true"}),(0,n.jsxs)("div",{className:(0,b.default)("fixed inset-x-0 bottom-0 z-50 max-h-[82dvh] overflow-y-auto rounded-t-3xl border-t border-pbp-light-purple/30","bg-pbp-refactor-black/95 backdrop-blur-md p-5 pb-24 transition-transform duration-300 ease-in-out md:hidden",{"translate-y-0":e,"pointer-events-none translate-y-full":!e}),inert:!e,role:"dialog","aria-modal":"true","aria-label":"Menu",children:[(0,n.jsx)("div",{className:"mx-auto mb-4 h-1 w-10 rounded-full bg-pbp-gray/40"}
1),(0,n.jsx)("button",{className:"absolute right-4 top-4 rounded-full p-2 text-pbp-gray hover:bg-pbp-light-purple/20",onClick:t,"aria-label":"Close menu",children:(0,n.jsx)(L.X,{className:"h-5 w-5","aria-hidden":"true"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6",children:[l.map(e=>(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("span",{className:`${o.dmSans.className} text-xs font-bold uppercase tracking-widest text-pbp-refactor-cyan`,children:e.name}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2",children:e.items.map(e=>{let r=Y(s,e.link);return(0,n.jsxs)(A.default,{prefetch:!1,href:e.link,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:t,className:(0,b.default)(`${o.dmSans.className} flex items-center gap-1.5 rounded-xl border px-3 py-3 text-sm font-bold transition-colors`,{"border-pbp-refactor-cyan/60 bg-pbp-light-purple/20 text-pbp-refactor-cyan":r,"border-pbp-light-purple/20 bg-white/5 text-primary-foreground dark:text-secondary-foreground":!r}),children:[e.name,e.external&&(0,n.jsx)(v.ExternalLink,{className:"h-3 w-3 opacity-60","aria-hidden":"true"})]},e.link)})})]},e.name)),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("span",{className:`${o.dmSans.className} text-xs font-bold uppercase tracking-widest text-pbp-refactor-cyan`,children:"More"}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2",children:i.map(e=>{let r=Y(s,e.link);return(0,n.jsx)(A.default,{prefetch:!1,href:e.link,onClick:t,className:(0,b.default)(`${o.dmSans.className} flex items-center gap-1.5 rounded-xl border px-3 py-3 text-sm font-bold transition-colors`,{"border-pbp-refactor-cyan/60 bg-pbp-light-purple/20 text-pbp-refactor-cyan":r,"border-pbp-light-purple/20 bg-white/5 text-primary-foreground dark:text-secondary-foreground":!r}),children:e.name},e.link)})})]}),d&&(0,n.jsxs)("div",{className:"flex flex-col gap-3 rounded-2xl border border-pbp-light-purple/20 bg-white/5 p-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:`${o.dmSans.className} font-bold`,children:"PbP Balance"}),(0,n.jsx)(B,{})]}),s?.startsWith("/missions")&&(0,n.jsxs)("div",{className:"flex items-center justify-between text-sm text-pbp-gray",children:[(0,n.jsx)("span",{children:"Mission Vault"}),(0,n.jsx)(D,{})]}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsxs)(A.default,{prefetch:!1,className:`${o.dmSans.className} inline-flex items-center justify-center gap-1 rounded-xl border border-pbp-refactor-cyan/50 px-3 py-2.5 text-sm font-bold text-pbp-refactor-cyan transition-colors hover:bg-pbp-refactor-cyan/10`,target:"_blank",rel:"noopener noreferrer",href:`https://jup.ag/swap?sell=${X}&buy=${Z}`,children:["Swap SOL to PbP ",(0,n.jsx)(v.ExternalLink,{className:"h-3.5 w-3.5 opacity-60","aria-hidden":"true"})]}),(0,n.jsxs)(A.default,{prefetch:!1,className:`${o.dmSans.className} inline-flex items-center justify-center gap-1 rounded-xl border border-pbp-pale-purple/50 px-3 py-2.5 text-sm font-bold text-pbp-pale-purple transition-colors hover:bg-pbp-pale-purple/10`,target:"_blank",rel:"noopener noreferrer",href:`https://jup.ag/swap?sell=${Z}&buy=${X}`,children:["Swap PbP to SOL ",(0,n.jsx)(v.ExternalLink,{className:"h-3.5 w-3.5 opacity-60","aria-hidden":"true"})]})]}),(0,n.jsx)(U,{onNavigate:t})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(r.default,{whenLoggedIn:"account"}),(0,n.jsxs)(A.default,{prefetch:!1,href:"/account?tab=settings",onClick:t,className:`${o.dmSans.className} inline-flex items-center justify-center gap-2 rounded-xl border border-white/15 px-3 py-2.5 text-sm font-bold text-white/80 transition-colors hover:border-pbp-refactor-cyan/40 hover:text-white`,children:[(0,n.jsx)(S.Settings,{className:"h-4 w-4","aria-hidden":"true"})," Settings"]})]}),(0,n.jsxs)("div",{className:`${a.openSans.className} flex flex-col items-center gap-3 pb-2`,children:[(0,n.jsx)(F,{onNavigate:t}),(0,n.jsx)("div",{className:"flex gap-4 text-xs text-pbp-gray",children:c.map(e=>(0,n.jsx)(A.default,{prefetch:!1,href:e.link,onClick:t,className:"hover:text-pbp-pale-purple transition-colors",children:e.name},e.link))})]})]})]})]})}let K=[{name:"Home",link:"/",icon:k},{name:"Play",link:"/missions/play",icon:E.Rocket},{name:"Explore",link:"/explore",icon:x.Compass},{name:"Shop",link:"/shop",icon:I.ShoppingBag}];function V({pathname:e,onMore:t,moreOpen:r}){return(0,n.jsx)("nav",{className:"fixed inset-x-0 bottom-0 z-40 border-t border-pbp-light-purple/30 bg-pbp-refactor-black/90 backdrop-blur-md pb-[min(env(safe-area-inset-bottom),0.75rem)] md:hidden","aria-label":"Primary",children:(0,n.jsxs)("div",{className:"grid grid-cols-5",children:[K.map(t=>{let a="/"===t.link?"/"===e:Y(e,t.link),s=t.icon;return(0,n.jsxs)(A.default,{prefetch:!1,href:t.link,className:"relative flex flex-col items-center gap-1 py-2.5","aria-current":a?"page":void 0,children:[a&&(0,n.jsx)("span",{className:"absolute inset-x-3 top-0 h-0.5 rounded-full bg-pbp-refactor-cyan shadow-[0_0_8px_1px_#00F0FF]"}),(0,n.jsx)(s,{className:(0,b.default)("h-5 w-5",{"text-pbp-refactor-cyan":a&&!r,"text-pbp-gray":!a||r}),"aria-hidden":"true"}),(0,n.jsx)("span",{className:(0,b.default)(`${o.dmSans.className} text-xxs font-bold uppercase tracking-wide`,{"text-pbp-refactor-cyan":a&&!r,"text-pbp-gray":!a||r}),children:t.name})]},t.link)}),(0,n.jsxs)("button",{className:"relative flex flex-col items-center gap-1 py-2.5",onClick:t,"aria-expanded":r,"aria-label":"More menu",children:[(0,n.jsx)(C.LayoutGrid,{className:(0,b.default)("h-5 w-5",{"text-pbp-refactor-cyan":r,"text-pbp-gray":!r}),"aria-hidden":"true"}),(0,n.jsx)("span",{className:(0,b.default)(`${o.dmSans.className} text-xxs font-bold uppercase tracking-wide`,{"text-pbp-refactor-cyan":r,"text-pbp-gray":!r}),children:"More"})]})]})})}let X="So11111111111111111111111111111111111111112",Z="3f7wfg9yHLtGKvy75MmqsVT1ueTFoqyySQbusrX1YAQ4",J=[{name:"Buy PbP",description:"Swap SOL for PbP on Jupiter",link:`https://jup.ag/swap?sell=${X}&buy=${Z}`,external:!0},{name:"Sell PbP",description:"Swap PbP for SOL on Jupiter",link:`https://jup.ag/swap?sell=${Z}&buy=${X}`,external:!0},{name:"Exchange",description:"Manage PbP tokens on-site",link:"/exchange"}];function q(){let e,t=(0,M.usePathname)(),a=(0,_.useAtomValue)(f.isWalletLinkedAtom),[s,d]=(0,m.useState)(!1),h=(0,m.useCallback)(()=>d(!1),[]),g=(0,m.useCallback)(()=>d(e=>!e),[]),[x,k]=(0,m.useState)(t);return t!==x&&(k(t),d(!1)),(0,p.useWalletPresence)(),function(){let[e,t]=(0,m.useReducer)(e=>{localStorage.getItem("theme");let t="light"===e?"dark":"light";return document.documentElement.classList.remove("light"),document.documentElement.classList.add("dark"),localStorage.setItem("theme",t),t},"dark",function(){return localStorage.getItem("theme")||"dark"});(0,m.useEffect)(()=>document.documentElement.classList.add("dark"),[e])}(),e=(0,_.useAtomValue)(u.REDUCED_FX_ATOM),(0,m.useEffect)(()=>{document.documentElement.classList.toggle("pbp-reduce-fx",e)},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("header",{className:"sticky top-0 z-40 w-full border-b border-pbp-light-purple/30 bg-pbp-refactor-black/80 backdrop-blur-md",children:(0,n.jsxs)("div",{className:"mx-auto flex h-14 max-w-screen-2xl items-center justify-between gap-3 px-4",children:[(0,n.jsx)(A.default,{prefetch:!1,href:"/",className:"flex shrink-0 items-center","aria-label":"Pixel by Pixel Studios home",children:(0,n.jsx)(T.default,{src:"/pixel-by-pixel.svg",alt:"Pixel By Pixel Studios Logo",width:150,height:38,priority:!0})}),(0,n.jsxs)("nav",{className:"hidden items-center gap-1 md:flex","aria-label":"Primary",children:[l.map(e=>
1(0,n.jsx)(H,{name:e.name,items:e.items,pathname:t,footer:"Studio"===e.name?(0,n.jsxs)("div",{className:"mt-1 flex flex-col gap-2 border-t border-pbp-light-purple/20 px-3 pt-3",children:[(0,n.jsx)(F,{}),(0,n.jsx)("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:c.map(e=>(0,n.jsx)(A.default,{prefetch:!1,href:e.link,className:"text-xs text-pbp-gray hover:text-pbp-pale-purple transition-colors",children:e.name},e.link))})]}):void 0},e.name)),i.map(e=>{let r=Y(t,e.link);return(0,n.jsxs)(A.default,{prefetch:!1,href:e.link,className:(0,b.default)(`${o.dmSans.className} flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-bold uppercase tracking-wide transition-colors`,{"text-pbp-pale-purple bg-pbp-light-purple/25":r,"text-primary-foreground dark:text-secondary-foreground hover:text-pbp-pale-purple hover:bg-pbp-light-purple/10":!r}),children:["HUB"===e.name&&(0,n.jsx)(j.Trophy,{className:"h-4 w-4","aria-hidden":"true"}),e.name]},e.link)})]}),(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[a&&(0,n.jsxs)(n.Fragment,{children:[t?.startsWith("/missions")&&(0,n.jsxs)("span",{className:"hidden min-w-0 max-w-[13rem] items-center gap-1.5 rounded-lg border border-pbp-light-purple/30 bg-white/5 px-2.5 py-1.5 lg:flex",children:[(0,n.jsx)("span",{className:"shrink-0 text-xs uppercase tracking-wide text-pbp-gray",children:"Vault"}),(0,n.jsx)(D,{})]}),(0,n.jsxs)(y.DropdownMenu,{modal:!1,children:[(0,n.jsxs)(y.DropdownMenuTrigger,{className:(0,b.default)("group hidden min-w-0 max-w-[13rem] items-center gap-1.5 rounded-lg border border-pbp-light-purple/30 bg-white/5 px-2.5 py-1.5 outline-none transition-colors sm:flex","hover:border-pbp-refactor-cyan/60 data-[state=open]:border-pbp-refactor-cyan/60"),"aria-label":"Your PbP balance and token swaps",children:[(0,n.jsx)(B,{}),(0,n.jsx)(w.ChevronDown,{className:"h-3.5 w-3.5 shrink-0 text-pbp-gray transition-transform group-data-[state=open]:rotate-180","aria-hidden":"true"})]}),(0,n.jsx)(y.DropdownMenuContent,{align:"end",sideOffset:10,className:"w-64 border-pbp-light-purple/30 bg-pbp-refactor-black/95 backdrop-blur-md p-2 rounded-xl",children:J.map(e=>(0,n.jsx)(y.DropdownMenuItem,{asChild:!0,className:"rounded-lg p-0 focus:bg-pbp-light-purple/20",children:(0,n.jsx)(A.default,{prefetch:!1,href:e.link,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:"w-full cursor-pointer px-3 py-2.5",children:(0,n.jsxs)("div",{className:"flex w-full flex-col items-start gap-0.5 text-left",children:[(0,n.jsxs)("span",{className:`${o.dmSans.className} flex items-center gap-1.5 text-sm font-bold text-primary-foreground dark:text-secondary-foreground`,children:[e.name,e.external&&(0,n.jsx)(v.ExternalLink,{className:"h-3 w-3 opacity-60","aria-hidden":"true"})]}),(0,n.jsx)("span",{className:"text-xs text-pbp-gray",children:e.description})]})})},e.link))})]}),(0,n.jsx)(U,{compact:!0})]}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(r.default,{whenLoggedIn:"account"})})]})]})}),(0,n.jsx)(V,{pathname:t,onMore:g,moreOpen:s}),(0,n.jsx)(Q,{open:s,onClose:h,pathname:t})]})}var G=e.i(50983);if(e.i(961542),"u">typeof document){let e=document.getElementById("feedback-tool-styles-annotation-popup-css-styles");e||((e=document.createElement("style")).id="feedback-tool-styles-annotation-popup-css-styles",e.textContent='svg[fill=none] {\n  fill: none !important;\n}\n\n@keyframes styles-module__popupEnter___AuQDN {\n  from {\n    opacity: 0;\n    transform: translateX(-50%) scale(0.95) translateY(4px);\n  }\n  to {\n    opacity: 1;\n    transform: translateX(-50%) scale(1) translateY(0);\n  }\n}\n@keyframes styles-module__popupExit___JJKQX {\n  from {\n    opacity: 1;\n    transform: translateX(-50%) scale(1) translateY(0);\n  }\n  to {\n    opacity: 0;\n    transform: translateX(-50%) scale(0.95) translateY(4px);\n  }\n}\n@keyframes styles-module__shake___jdbWe {\n  0%, 100% {\n    transform: translateX(-50%) scale(1) translateY(0) translateX(0);\n  }\n  20% {\n    transform: translateX(-50%) scale(1) translateY(0) translateX(-3px);\n  }\n  40% {\n    transform: translateX(-50%) scale(1) translateY(0) translateX(3px);\n  }\n  60% {\n    transform: translateX(-50%) scale(1) translateY(0) translateX(-2px);\n  }\n  80% {\n    transform: translateX(-50%) scale(1) translateY(0) translateX(2px);\n  }\n}\n.styles-module__popup___IhzrD {\n  position: fixed;\n  transform: translateX(-50%);\n  width: 280px;\n  padding: 0.75rem 1rem 14px;\n  background: #1a1a1a;\n  border-radius: 16px;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n  cursor: default;\n  z-index: 100001;\n  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n  will-change: transform, opacity;\n  opacity: 0;\n}\n.styles-module__popup___IhzrD.styles-module__enter___L7U7N {\n  animation: styles-module__popupEnter___AuQDN 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n}\n.styles-module__popup___IhzrD.styles-module__entered___COX-w {\n  opacity: 1;\n  transform: translateX(-50%) scale(1) translateY(0);\n}\n.styles-module__popup___IhzrD.styles-module__exit___5eGjE {\n  animation: styles-module__popupExit___JJKQX 0.15s ease-in forwards;\n}\n.styles-module__popup___IhzrD.styles-module__entered___COX-w.styles-module__shake___jdbWe {\n  animation: styles-module__shake___jdbWe 0.25s ease-out;\n}\n\n.styles-module__header___wWsSi {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 0.5625rem;\n}\n\n.styles-module__element___fTV2z {\n  font-size: 0.75rem;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.5);\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  flex: 1;\n}\n\n.styles-module__headerToggle___WpW0b {\n  display: flex;\n  align-items: center;\n  gap: 0.25rem;\n  background: none;\n  border: none;\n  padding: 0;\n  cursor: pointer;\n  flex: 1;\n  min-width: 0;\n  text-align: left;\n}\n.styles-module__headerToggle___WpW0b .styles-module__element___fTV2z {\n  flex: 1;\n}\n\n.styles-module__chevron___ZZJlR {\n  color: rgba(255, 255, 255, 0.5);\n  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n  flex-shrink: 0;\n}\n.styles-module__chevron___ZZJlR.styles-module__expanded___2Hxgv {\n  transform: rotate(90deg);\n}\n\n.styles-module__stylesWrapper___pnHgy {\n  display: grid;\n  grid-template-rows: 0fr;\n  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);\n}\n.styles-module__stylesWrapper___pnHgy.styles-module__expanded___2Hxgv {\n  grid-template-rows: 1fr;\n}\n\n.styles-module__stylesInner___YYZe2 {\n  overflow: hidden;\n}\n\n.styles-module__stylesBlock___VfQKn {\n  background: rgba(255, 255, 255, 0.05);\n  border-radius: 0.375rem;\n  padding: 0.5rem 0.625rem;\n  margin-bottom: 0.5rem;\n  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;\n  font-size: 0.6875rem;\n  line-height: 1.5;\n}\n\n.styles-module__styleLine___1YQiD {\n  color: rgba(255, 255, 255, 0.85);\n  word-break: break-word;\n}\n\n.styles-module__styleProperty___84L1i {\n  color: #c792ea;\n}\n\n.styles-module__styleValue___q51-h {\n  color: rgba(255, 255, 255, 0.85);\n}\n\n.styles-module__timestamp___Dtpsv {\n  font-size: 0.625rem;\n  font-weight: 500;\n  color: rgba(255, 255, 255, 0.35);\n  font-variant-numeric: tabular-nums;\n  margin-left: 0.5rem;\n  flex-shrink: 0;\n}\n\n.styles-module__quote___mcMmQ {\n  font-size: 12px;\n  font-style: italic;\n  color: rgba(255, 255, 255, 0.6);\n  margin-bottom: 0.5rem;\n  padding: 0.4rem 0.5rem;\n  background: rgba(255, 255, 255, 0.05);\n  border-radius: 0.25rem;\n  line-height: 1.45;\n}\n\n.styles-module__textarea___jrSae {\n  width: 100%;\n  padding: 0.5rem 0.625rem;\n  font-size: 0.8125rem;\n  font-family: inherit;\n  background: rgba(255, 255, 255, 0.05);\n  color: #fff;\n  border: 1px solid rgba(255, 255, 255, 0.15);\n  border-radius: 8px;\n  resize: none;\n  outline: none;\n  transition: border-color 0.15s ease;\n}\n.styles-module__textarea___jrSae:focus {\n  border-color: #3c82f7;\n}\n.styles-module__textarea___jrSae.styles-module__green___99l3h:focus {\n  border-color: #34c759;\n}\n.styles-module__textarea___jrSae::placeholder {\n  color: rgba(255, 255, 255, 0.35);\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar {\n  width: 6px;\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar-track {\n  background: transparent;\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar-thumb {\n  background: rgba(255, 255, 255, 0.2);\n  border-radius: 3px;\n}\n\n.styles-module__actions___D6x3f {\n  display: flex;\n  justify-content: flex-end;\n  gap: 0.375rem;\n  margin-top: 0.5rem;\n}\n\n.styles-module__cancel___hRjnL,\n.styles-module__submit___K-mIR {\n  padding: 0.4rem 0.875rem;\n  font-size: 0.75rem;\n  font-weight: 500;\n  border-radius: 1rem;\n  border: none;\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;\n}\n\n.styles-module__cancel___hRjnL {\n  background: transparent;\n  color: rgba(255, 255, 255, 0.5);\n}\n.styles-module__cancel___hRjnL:hover {\n  background: rgba(255, 255, 255, 0.1);\n  color: rgba(255, 255, 255, 0.8);\n}\n\n.styles-module__submit___K-mIR {\n  color: white;\n}\n.styles-module__submit___K-mIR:hover:not(:disabled) {\n  filter: brightness(0.9);\n}
1\n.styles-module__submit___K-mIR:disabled {\n  cursor: not-allowed;\n}\n\n.styles-module__deleteWrapper___oSjdo {\n  margin-right: auto;\n}\n\n.styles-module__deleteButton___4VuAE {\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 28px;\n  height: 28px;\n  border-radius: 50%;\n  border: none;\n  background: transparent;\n  color: rgba(255, 255, 255, 0.4);\n  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;\n}\n.styles-module__deleteButton___4VuAE:hover {\n  background: rgba(255, 59, 48, 0.25);\n  color: #ff3b30;\n}\n.styles-module__deleteButton___4VuAE:active {\n  transform: scale(0.92);\n}\n\n.styles-module__light___6AaSQ.styles-module__popup___IhzrD {\n  background: #fff;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);\n}\n.styles-module__light___6AaSQ .styles-module__element___fTV2z {\n  color: rgba(0, 0, 0, 0.6);\n}\n.styles-module__light___6AaSQ .styles-module__timestamp___Dtpsv {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__chevron___ZZJlR {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__stylesBlock___VfQKn {\n  background: rgba(0, 0, 0, 0.03);\n}\n.styles-module__light___6AaSQ .styles-module__styleLine___1YQiD {\n  color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__styleProperty___84L1i {\n  color: #7c3aed;\n}\n.styles-module__light___6AaSQ .styles-module__styleValue___q51-h {\n  color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__quote___mcMmQ {\n  color: rgba(0, 0, 0, 0.55);\n  background: rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae {\n  background: rgba(0, 0, 0, 0.03);\n  color: #1a1a1a;\n  border-color: rgba(0, 0, 0, 0.12);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae::placeholder {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {\n  background: rgba(0, 0, 0, 0.15);\n}\n.styles-module__light___6AaSQ .styles-module__cancel___hRjnL {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___6AaSQ .styles-module__cancel___hRjnL:hover {\n  background: rgba(0, 0, 0, 0.06);\n  color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE:hover {\n  background: rgba(255, 59, 48, 0.15);\n  color: #ff3b30;\n}',document.head.appendChild(e))}var $="styles-module__element___fTV2z",ee="styles-module__expanded___2Hxgv",et=({size:e=24})=>(0,n.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4383 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.43
117 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})}),en=(["data-feedback-toolbar","data-annotation-popup","data-annotation-marker"].flatMap(e=>[`:not([${e}])`,`:not([${e}] *)`]).join(""),"__agentation_freeze"),er=function(){if("u"<typeof window)return{frozen:!1,installed:!0,origSetTimeout:setTimeout,origSetInterval:setInterval,origRAF:e=>0,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]};let e=window;return e[en]||(e[en]={frozen:!1,installed:!1,origSetTimeout:null,origSetInterval:null,origRAF:null,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]}),e[en]}();"u">typeof window&&!er.installed&&(er.origSetTimeout=window.setTimeout.bind(window),er.origSetInterval=window.setInterval.bind(window),er.origRAF=window.requestAnimationFrame.bind(window),window.setTimeout=(e,t,...n)=>"string"==typeof e?er.origSetTimeout(e,t):er.origSetTimeout((...t)=>{er.frozen?er.frozenTimeoutQueue.push(()=>e(...t)):e(...t)},t,...n),window.setInterval=(e,t,...n)=>"string"==typeof e?er.origSetInterval(e,t):er.origSetInterval((...t)=>{er.frozen||e(...t)},t,...n),window.requestAnimationFrame=e=>er.origRAF(t=>{er.frozen?er.frozenRAFQueue.push(e):e(t)}),er.installed=!0);var eo=er.origSetTimeout;er.origSetInterval;(0,m.forwardRef)(function({element:e,timestamp:t,selectedText:r,placeholder:o="What should change?",initialValue:a="",submitLabel:s="Add",onSubmit:l,onCancel:i,onDelete:c,style:d,accentColor:u="#3c82f7",isExiting:_=!1,lightMode:h=!1,computedStyles:p},g){let[f,y]=(0,m.useState)(a),[b,w]=(0,m.useState)(!1),[x,v]=(0,m.useState)("initial"),[k,C]=(0,m.useState)(!1),[E,S]=(0,m.useState)(!1),I=(0,m.useRef)(null),N=(0,m.useRef)(null),j=(0,m.useRef)(null),L=(0,m.useRef)(null);(0,m.useEffect)(()=>{_&&"exit"!==x&&v("exit")},[_,x]),(0,m.useEffect)(()=>{eo(()=>{v("enter")},0);let e=eo(()=>{v("entered")},200),t=eo(()=>{let e=I.current;e&&(e.focus(),e.selectionStart=e.selectionEnd=e.value.length,e.scrollTop=e.scrollHeight)},50);return()=>{clearTimeout(e),clearTimeout(t),j.current&&clearTimeout(j.current),L.current&&clearTimeout(L.current)}},[]);let T=(0,m.useCallback)(()=>{L.current&&clearTimeout(L.current),w(!0),L.current=eo(()=>{w(!1),I.current?.focus()},250)},[]);(0,m.useImperativeHandle)(g,()=>({shake:T}),[T]);let A=(0,m.useCallback)(()=>{v("exit"),j.current=eo(()=>{i()},150)},[i]),M=(0,m.useCallback)(()=>{f.trim()&&l(f.trim())},[f,l]),P=(0,m.useCallback)(e=>{e.nativeEvent.isComposing||("Enter"!==e.key||e.shiftKey||(e.preventDefault(),M()),"Escape"===e.key&&A())},[M,A]),z=["styles-module__popup___IhzrD",h?"styles-module__light___6AaSQ":"","enter"===x?"styles-module__enter___L7U7N":"","entered"===x?"styles-module__entered___COX-w":"","exit"===x?"styles-module__exit___5eGjE":"",b?"styles-module__shake___jdbWe":""].filter(Boolean).join(" ");return(0,n.jsxs)("div",{ref:N,className:z,"data-annotation-popup":!0,style:d,onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"styles-module__header___wWsSi",children:[p&&Object.keys(p).length>0?(0,n.jsxs)("button",{className:"styles-module__headerToggle___WpW0b",onClick:()=>{S(!E),E&&eo(()=>I.current?.focus(),0)},type:"button",children:[(0,n.jsx)("svg",{className:`styles-module__chevron___ZZJlR ${E?ee:""}`,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M5.5 10.25L9 7.25L5.75 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,n.jsx)("span",{className:$,children:e})]}):(0,n.jsx)("span",{className:$,children:e}),t&&(0,n.jsx)("span",{className:"styles-module__timestamp___Dtpsv",children:t})]}),p&&Object.keys(p).length>0&&(0,n.jsx)("div",{className:`styles-module__stylesWrapper___pnHgy ${E?ee:""}`,children:(0,n.jsx)("div",{className:"styles-module__stylesInner___YYZe2",children:(0,n.jsx)("div",{className:"styles-module__stylesBlock___VfQKn",children:Object.entries(p).map(([e,t])=>(0,n.jsxs)("div",{className:"styles-module__styleLine___1YQiD",children:[(0,n.jsx)("span",{className:"styles-module__styleProperty___84L1i",children:e.replace(/([A-Z])/g,"-$1").toLowerCase()}),": ",(0,n.jsx)("span",{className:"styles-module__styleValue___q51-h",children:t}),";"]},e))})})}),r&&(0,n.jsxs)("div",{className:"styles-module__quote___mcMmQ",children:["“",r.slice(0,80),r.length>80?"...":"","”"]}),(0,n.jsx)("textarea",{ref:I,className:"styles-module__textarea___jrSae",style:{borderColor:k?u:void 0},placeholder:o,value:f,onChange:e=>y(e.target.value),onFocus:()=>C(!0),onBlur:()=>C(!1),rows:2,onKeyDown:P}),(0,n.jsxs)("div",{className:"styles-module__actions___D6x3f",children:[c&&(0,n.jsx)("div",{className:"styles-module__deleteWrapper___oSjdo",children:(0,n.jsx)("button",{className:"styles-module__deleteButton___4VuAE",onClick:c,type:"button",children:(0,n.jsx)(et,{size:22})})}),(0,n.jsx)("button",{className:"styles-module__cancel___hRjnL",onClick:A,children:"Cancel"}),(0,n.jsx)("button",{className:"styles-module__submit___K-mIR",style:{backgroundColor:u,opacity:f.trim()?1:.4},onClick:M,disabled:!f.trim(),children:s})]})]})});if("u">typeof document){let e=document.getElementById("feedback-tool-styles-page-toolbar-css-styles");e||((e=document.createElement("style")).id="feedback-tool-styles-page-toolbar-css-styles",e.textContent='svg[fill=none] {\n  fill: none !important;\n}\n\n@keyframes styles-module__toolbarEnter___u8RRu {\n  from {\n    opacity: 0;\n    transform: scale(0.5) rotate(90deg);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1) rotate(0deg);\n  }\n}\n@keyframes styles-module__badgeEnter___mVQLj {\n  from {\n    opacity: 0;\n    transform: scale(0);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n@keyframes styles-module__scaleIn___c-r1K {\n  from {\n    opacity: 0;\n    transform: scale(0.85);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n@keyframes styles-module__scaleOut___Wctwz {\n  from {\n    opacity: 1;\n    transform: scale(1);\n  }\n  to {\n    opacity: 0;\n    transform: scale(0.85);\n  }\n}\n@keyframes styles-module__slideUp___kgD36 {\n  from {\n    opacity: 0;\n    transform: scale(0.85) translateY(8px);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1) translateY(0);\n  }\n}\n@keyframes styles-module__slideDown___zcdje {\n  from {\n    opacity: 1;\n    transform: scale(1) translateY(0);\n  }\n  to {\n    opacity: 0;\n    transform: scale(0.85) translateY(8px);\n  }\n}\n@keyframes styles-module__markerIn___5FaAP {\n  0% {\n    opacity: 0;\n    transform: translate(-50%, -50%) scale(0.3);\n  }\n  100% {\n    opacity: 1;\n    transform: translate(-50%, -50%) scale(1);\n  }\n}\n@keyframes styles-module__markerOut___GU5jX {\n  0% {\n    opacity: 1;\n    transform: translate(-50%, -50%) scale(1);\n  }\n  100% {\n    opacity: 0;\n    transform: translate(-50%, -50%) scale(0.3);\n  }\n}\n@keyframes styles-module__fadeIn___b9qmf {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n@keyframes styles-module__fadeOut___6Ut6- {\n  from {\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n  }\n}\n@keyframes styles-module__tooltipIn___0N31w {\n  from {\n    opacity: 0;\n    transform: translateX(-50%) translateY(2px) scale(0.891);\n  }\n  to {\n    opacity: 1;\n    transform: translateX(-50%) translateY(0) scale(0.909);\n  }\n}\n@keyframes styles-module__hoverHighlightIn___6WYHY {\n  from {\n    opacity: 0;\n    transform: scale(0.98);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n@keyframes styles-module__hoverTooltipIn___FYGQx {\n  from {\n    opacity: 0;\n    transform: scale(0.95) translateY(4px);\n  }\n  to {\n    opacity: 1;\n    transform: scale(1) translateY(0);\n  }\n}\n@keyframes styles-module__settingsPanelIn___MGfO8 {\n  from {\n    opacity: 0;\n    transform: translateY(10px) scale(0.95);\n    filter: blur(5px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0) scale(1);\n    filter: blur(0px);\n  }\n}\n@keyframes styles-module__settingsPanelOut___Zfymi {\n  from {\n    opacity: 1;\n    transform: translateY(0) scale(1);\n    filter: blur(0px);\n  }\n  to {\n    opacity: 0;\n    transform: translateY(20px) scale(0.95);\n    filter: blur(5px);\n  }\n}\n.styles-module__toolbar___wNsdK {\n  position: fixed;\n  bottom: 1.25rem;\n  right: 1.25rem;\n  width: 297px;\n  z-index: 100000;\n  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n  pointer-events: none;\n  transition: left 0s, top 0s, right 0s, bottom 0s;\n}\n\n.styles-module__toolbarContainer___dIhma {\n  user-select: none;\n  margin-left: auto;\n  align-self: flex-end;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: #1a1a1a;\n  color: #fff;\n  border: none;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);\n  pointer-events: auto;\n  cursor: grab;\n  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__toolbarContainer___dIhma.styles-module__dragging___xrolZ {\n  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n  cursor: grabbing;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__entrance___sgHd8 {\n  animation: styles-module__toolbarEnter___u8RRu 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn {\n  width: 44px;\n  height: 44px;\n  border-radius: 22px;\n  padding: 0;\n  cursor: pointer;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn svg {\n  margin-top: -1
1px;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {\n  background: #2a2a2a;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:active {\n  transform: scale(0.95);\n}\n.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx {\n  height: 44px;\n  border-radius: 1.5rem;\n  padding: 0.375rem;\n  width: 257px;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx.styles-module__serverConnected___Gfbou {\n  width: 297px;\n}\n\n.styles-module__toggleContent___0yfyP {\n  position: absolute;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  transition: opacity 0.1s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__toggleContent___0yfyP.styles-module__visible___KHwEW {\n  opacity: 1;\n  visibility: visible;\n  pointer-events: auto;\n}\n.styles-module__toggleContent___0yfyP.styles-module__hidden___Ae8H4 {\n  opacity: 0;\n  pointer-events: none;\n}\n\n.styles-module__controlsContent___9GJWU {\n  display: flex;\n  align-items: center;\n  gap: 0.375rem;\n  transition: filter 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__controlsContent___9GJWU.styles-module__visible___KHwEW {\n  opacity: 1;\n  filter: blur(0px);\n  transform: scale(1);\n  visibility: visible;\n  pointer-events: auto;\n}\n.styles-module__controlsContent___9GJWU.styles-module__hidden___Ae8H4 {\n  opacity: 0;\n  filter: blur(10px);\n  transform: scale(0.4);\n}\n\n.styles-module__badge___2XsgF {\n  position: absolute;\n  top: -13px;\n  right: -13px;\n  user-select: none;\n  min-width: 18px;\n  height: 18px;\n  padding: 0 5px;\n  border-radius: 9px;\n  background: #3c82f7;\n  color: white;\n  font-size: 0.625rem;\n  font-weight: 600;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);\n  opacity: 1;\n  transition: transform 0.3s ease, opacity 0.2s ease;\n  transform: scale(1);\n}\n.styles-module__badge___2XsgF.styles-module__fadeOut___6Ut6- {\n  opacity: 0;\n  transform: scale(0);\n  pointer-events: none;\n}\n.styles-module__badge___2XsgF.styles-module__entrance___sgHd8 {\n  animation: styles-module__badgeEnter___mVQLj 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;\n}\n\n.styles-module__controlButton___8Q0jc {\n  position: relative;\n  cursor: pointer !important;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 34px;\n  height: 34px;\n  border-radius: 50%;\n  border: none;\n  background: transparent;\n  color: rgba(255, 255, 255, 0.85);\n  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.2s ease;\n}\n.styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {\n  background: rgba(255, 255, 255, 0.12);\n  color: #fff;\n}\n.styles-module__controlButton___8Q0jc:active:not(:disabled) {\n  transform: scale(0.92);\n}\n.styles-module__controlButton___8Q0jc:disabled {\n  opacity: 0.35;\n  cursor: not-allowed;\n}\n.styles-module__controlButton___8Q0jc[data-active=true] {\n  color: #3c82f7;\n  background: rgba(60, 130, 247, 0.25);\n}\n.styles-module__controlButton___8Q0jc[data-error=true] {\n  color: #ff3b30;\n  background: rgba(255, 59, 48, 0.25);\n}\n.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {\n  background: rgba(255, 59, 48, 0.25);\n  color: #ff3b30;\n}\n.styles-module__controlButton___8Q0jc[data-no-hover=true], .styles-module__controlButton___8Q0jc.styles-module__statusShowing___te6iu {\n  cursor: default !important;\n  pointer-events: none;\n  background: transparent !important;\n}\n.styles-module__controlButton___8Q0jc[data-auto-sync=true] {\n  color: #34c759;\n  background: transparent;\n  cursor: default;\n}\n.styles-module__controlButton___8Q0jc[data-failed=true] {\n  color: #ff3b30;\n  background: rgba(255, 59, 48, 0.25);\n}\n\n.styles-module__buttonBadge___NeFWb {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  min-width: 16px;\n  height: 16px;\n  padding: 0 4px;\n  border-radius: 8px;\n  background: #3c82f7;\n  color: white;\n  font-size: 0.625rem;\n  font-weight: 600;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: 0 0 0 2px #1a1a1a, 0 1px 3px rgba(0, 0, 0, 0.2);\n  pointer-events: none;\n}\n.styles-module__buttonBadge___NeFWb.styles-module__light___r6n4Y {\n  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);\n}\n\n@keyframes styles-module__mcpIndicatorPulseConnected___EDodZ {\n  0%, 100% {\n    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);\n  }\n  50% {\n    box-shadow: 0 0 0 5px rgba(52, 199, 89, 0);\n  }\n}\n@keyframes styles-module__mcpIndicatorPulseConnecting___cCYte {\n  0%, 100% {\n    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);\n  }\n  50% {\n    box-shadow: 0 0 0 5px rgba(245, 166, 35, 0);\n  }\n}\n.styles-module__mcpIndicator___zGJeL {\n  position: absolute;\n  top: 3px;\n  right: 3px;\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  pointer-events: none;\n  transition: background 0.3s ease, opacity 0.15s ease, transform 0.15s ease;\n  opacity: 1;\n  transform: scale(1);\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__connected___7c28g {\n  background: #34c759;\n  animation: styles-module__mcpIndicatorPulseConnected___EDodZ 2.5s ease-in-out infinite;\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__connecting___uo-CW {\n  background: #f5a623;\n  animation: styles-module__mcpIndicatorPulseConnecting___cCYte 1.5s ease-in-out infinite;\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__hidden___Ae8H4 {\n  opacity: 0;\n  transform: scale(0);\n  animation: none;\n}\n\n@keyframes styles-module__connectionPulse___-Zycw {\n  0%, 100% {\n    opacity: 1;\n    transform: scale(1);\n  }\n  50% {\n    opacity: 0.6;\n    transform: scale(0.9);\n  }\n}\n.styles-module__connectionIndicatorWrapper___L-e-3 {\n  width: 8px;\n  height: 34px;\n  margin-left: 6px;\n  margin-right: 6px;\n}\n\n.styles-module__connectionIndicator___afk9p {\n  position: relative;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  opacity: 0;\n  transition: opacity 0.3s ease, background 0.3s ease;
1\n  cursor: default;\n}\n\n.styles-module__connectionIndicatorVisible___C-i5B {\n  opacity: 1;\n}\n\n.styles-module__connectionIndicatorConnected___IY8pR {\n  background: #34c759;\n  animation: styles-module__connectionPulse___-Zycw 2.5s ease-in-out infinite;\n}\n\n.styles-module__connectionIndicatorDisconnected___kmpaZ {\n  background: #ff3b30;\n  animation: none;\n}\n\n.styles-module__connectionIndicatorConnecting___QmSLH {\n  background: #f59e0b;\n  animation: styles-module__connectionPulse___-Zycw 1s ease-in-out infinite;\n}\n\n.styles-module__buttonWrapper___rBcdv {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {\n  opacity: 1;\n  visibility: visible;\n  transform: translateX(-50%) scale(1);\n  transition-delay: 0.85s;\n}\n.styles-module__buttonWrapper___rBcdv:has(.styles-module__controlButton___8Q0jc:disabled):hover .styles-module__buttonTooltip___Burd9 {\n  opacity: 0;\n  visibility: hidden;\n}\n\n.styles-module__sendButtonWrapper___UUxG6 {\n  width: 0;\n  opacity: 0;\n  overflow: hidden;\n  pointer-events: none;\n  margin-left: -0.375rem;\n  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1), margin 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__sendButtonWrapper___UUxG6 .styles-module__controlButton___8Q0jc {\n  transform: scale(0.8);\n  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU {\n  width: 34px;\n  opacity: 1;\n  overflow: visible;\n  pointer-events: auto;\n  margin-left: 0;\n}\n.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU .styles-module__controlButton___8Q0jc {\n  transform: scale(1);\n}\n\n.styles-module__buttonTooltip___Burd9 {\n  position: absolute;\n  bottom: calc(100% + 14px);\n  left: 50%;\n  transform: translateX(-50%) scale(0.95);\n  padding: 6px 10px;\n  background: #1a1a1a;\n  color: rgba(255, 255, 255, 0.9);\n  font-size: 12px;\n  font-weight: 500;\n  border-radius: 8px;\n  white-space: nowrap;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: none;\n  z-index: 100001;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n  transition: opacity 0.135s ease, transform 0.135s ease, visibility 0.135s ease;\n}\n.styles-module__buttonTooltip___Burd9::after {\n  content: "";\n  position: absolute;\n  top: calc(100% - 4px);\n  left: 50%;\n  transform: translateX(-50%) rotate(45deg);\n  width: 8px;\n  height: 8px;\n  background: #1a1a1a;\n  border-radius: 0 0 2px 0;\n}\n\n.styles-module__shortcut___lEAQk {\n  margin-left: 4px;\n  opacity: 0.5;\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9 {\n  bottom: auto;\n  top: calc(100% + 14px);\n  transform: translateX(-50%) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9::after {\n  top: -4px;\n  bottom: auto;\n  border-radius: 2px 0 0 0;\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(-50%) scale(1);\n}\n\n.styles-module__tooltipsHidden___VtLJG .styles-module__buttonTooltip___Burd9 {\n  opacity: 0 !important;\n  visibility: hidden !important;\n  transition: none !important;\n}\n\n.styles-module__tooltipVisible___0jcCv,\n.styles-module__tooltipsHidden___VtLJG .styles-module__tooltipVisible___0jcCv {\n  opacity: 1 !important;\n  visibility: visible !important;\n  transform: translateX(-50%) scale(1) !important;\n  transition-delay: 0s !important;\n}\n\n.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {\n  left: 50%;\n  transform: translateX(-12px) scale(0.95);\n}\n.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9::after {\n  left: 16px;\n}\n.styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(-12px) scale(1);\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(-12px) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(-12px) scale(1);\n}\n\n.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {\n  left: 50%;\n  transform: translateX(calc(-100% + 12px)) scale(0.95);\n}\n.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9::after {\n  left: auto;\n  right: 8px;\n}\n.styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(calc(-100% + 12px)) scale(1);\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(calc(-100% + 12px)) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {\n  transform: translateX(calc(-100% + 12px)) scale(1);\n}\n\n.styles-module__divider___c--s1 {\n  width: 1px;\n  height: 12px;\n  background: rgba(255, 255, 255, 0.15);\n  margin: 0 0.125rem;\n}\n\n.styles-module__overlay___Q1O9y {\n  position: fixed;\n  inset: 0;\n  z-index: 99997;\n  pointer-events: none;\n}\n.styles-module__overlay___Q1O9y > * {\n  pointer-events: auto;\n}\n\n.styles-module__hoverHighlight___ogakW {\n  position: fixed;\n  border: 2px solid rgba(60, 130, 247, 0.5);\n  border-radius: 4px;\n  pointer-events: none !important;\n  background: rgba(60, 130, 247, 0.04);\n  box-sizing: border-box;\n  will-change: opacity;\n  contain: layout style;\n}\n.styles-module__hoverHighlight___ogakW.styles-module__enter___WFIki {\n  animation: styles-module__hoverHighlightIn___6WYHY 0.12s ease-out forwards;\n}\n\n.styles-module__multiSelectOutline___cSJ-m {\n  position: fixed;\n  border: 2px dashed rgba(52, 199, 89, 0.6);\n  border-radius: 4px;\n  pointer-events: none !important;\n  background: rgba(52, 199, 89, 0.05);\n  box-sizing: border-box;\n  will-change: opacity;\n}\n.styles-module__multiSelectOutline___cSJ-m.styles-module__enter___WFIki {\n  animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;\n}\n.styles-module__multiSelectOutline___cSJ-m.styles-module__exit___fyOJ0 {\n  animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;\n}\n\n.styles-module__singleSelectOutline___QhX-O {\n  position: fixed;\n  border: 2px solid rgba(60, 130, 247, 0.6);\n  border-radius: 4px;\n  pointer-events: none !important;\n  background: rgba(60, 130, 247, 0.05);\n  box-sizing: border-box;\n  will-change: opacity;\n}\n.styles-module__singleSelectOutline___QhX-O.styles-module__enter___WFIki {\n  animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;\n}\n.styles-module__singleSelectOutline___QhX-O.styles-module__exit___fyOJ0 {\n  animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;\n}\n\n.styles-module__hoverTooltip___bvLk7 {\n  position: fixed;\n  font-size: 0.6875rem;\n  font-weight: 500;\n  color: #fff;\n  background: rgba(0, 0, 0, 0.85);\n  padding: 0.35rem 0.6rem;\n  border-radius: 0.375rem;\n  pointer-events: none !important;\n  white-space: nowrap;\n  max-width: 280px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.styles-module__hoverTooltip___bvLk7.styles-module__enter___WFIki {\n  animation: styles-module__hoverTooltipIn___FYGQx 0.1s ease-out forwards;\n}\n\n.styles-module__hoverReactPath___gx1IJ {\n  font-size: 0.625rem;\n  color: rgba(255, 255, 255, 0.6);\n  margin-bottom: 0.15rem;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.styles-module__hoverElementName___QMLMl {\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.styles-module__markersLayer___-25j1 {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  height: 0;\n  z-index: 99998;\n  pointer-events: none;\n}\n.styles-module__markersLayer___-25j1 > * {\n  pointer-events: auto;\n}\n\n.styles-module__fixedMarkersLayer___ffyX6 {\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  z-index: 99998;\n  pointer-events: none;\n}\n.styles-module__fixedMarkersLayer___ffyX6 > * {\n  pointer-events: auto;\n}\n\n.styles-module__marker___6sQrs {\n  position: absolute;\n  width: 22px;\n  height: 22px;\n  background: #3c82f7;\n  color: white;\n  border-radius: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 0.6875rem;\n  font-weight: 600;\n  transform: translate(-50%, -50%) scale(1);\n  opacity: 1;\n  cursor: pointer;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04);\n  user-select: none;\n  will-change: transform, opacity;\n  contain: layout style;\n  z-index: 1;\n}\n.styles-module__marker___6sQrs:hover {\n  z-index: 2;\n}\n.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7) {\n  transition: background-color 0.15s ease, transform 0.1s ease;\n}\n.styles-module__marker___6sQrs.styles-module__enter___WFIki {\n  animation: styles-module__markerIn___5FaAP 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;\n}\n.styles-module__marker___6sQrs.styles-module__exit___fyOJ0 {\n  animation: styles-module__markerOut___GU5jX 0.2s ease-out both;\n  pointer-events: none;\n}\n.styles-module__marker___6sQrs.styles-module__clearing___FQ--7 {\n  animation: styles-module__markerOut___GU5jX 0.15s ease-out both;\n  pointer-events: none;\n}\n.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7):hover {\n  transform: translate(-50%, -50%) scale(1.1);\n}\n.styles-module__marker___6sQrs.styles-module__pending___2IHLC {\n  position: fixed;\n  background: #3c82f7;\n}\n.styles-module__marker___6sQrs.styles-module__fixed___dBMHC {\n  position: fixed;\n}\n.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz {\n  background: #34c759;\n  width: 26px;
1\n  height: 26px;\n  border-radius: 6px;\n  font-size: 0.75rem;\n}\n.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz.styles-module__pending___2IHLC {\n  background: #34c759;\n}\n.styles-module__marker___6sQrs.styles-module__hovered___ZgXIy {\n  background: #ff3b30;\n}\n\n.styles-module__renumber___nCTxD {\n  display: block;\n  animation: styles-module__renumberRoll___Wgbq3 0.2s ease-out;\n}\n\n@keyframes styles-module__renumberRoll___Wgbq3 {\n  0% {\n    transform: translateX(-40%);\n    opacity: 0;\n  }\n  100% {\n    transform: translateX(0);\n    opacity: 1;\n  }\n}\n.styles-module__markerTooltip___aLJID {\n  position: absolute;\n  top: calc(100% + 10px);\n  left: 50%;\n  transform: translateX(-50%) scale(0.909);\n  z-index: 100002;\n  background: #1a1a1a;\n  padding: 8px 0.75rem;\n  border-radius: 0.75rem;\n  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n  font-weight: 400;\n  color: #fff;\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n  min-width: 120px;\n  max-width: 200px;\n  pointer-events: none;\n  cursor: default;\n}\n.styles-module__markerTooltip___aLJID.styles-module__enter___WFIki {\n  animation: styles-module__tooltipIn___0N31w 0.1s ease-out forwards;\n}\n\n.styles-module__markerQuote___FHmrz {\n  display: block;\n  font-size: 12px;\n  font-style: italic;\n  color: rgba(255, 255, 255, 0.6);\n  margin-bottom: 0.3125rem;\n  line-height: 1.4;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.styles-module__markerNote___QkrrS {\n  display: block;\n  font-size: 13px;\n  font-weight: 400;\n  line-height: 1.4;\n  color: #fff;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-bottom: 2px;\n}\n\n.styles-module__markerHint___2iF-6 {\n  display: block;\n  font-size: 0.625rem;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.6);\n  margin-top: 0.375rem;\n  white-space: nowrap;\n}\n\n.styles-module__settingsPanel___OxX3Y {\n  position: absolute;\n  right: 5px;\n  bottom: calc(100% + 0.5rem);\n  z-index: 1;\n  overflow: hidden;\n  background: #1c1c1c;\n  border-radius: 1rem;\n  padding: 13px 0 16px;\n  min-width: 205px;\n  cursor: default;\n  opacity: 1;\n  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);\n  transition: background 0.25s ease, box-shadow 0.25s ease;\n}\n.styles-module__settingsPanel___OxX3Y::before, .styles-module__settingsPanel___OxX3Y::after {\n  content: "";\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  width: 16px;\n  z-index: 2;\n  pointer-events: none;\n}\n.styles-module__settingsPanel___OxX3Y::before {\n  left: 0;\n  background: linear-gradient(to right, #1c1c1c 0%, transparent 100%);\n}\n.styles-module__settingsPanel___OxX3Y::after {\n  right: 0;\n  background: linear-gradient(to left, #1c1c1c 0%, transparent 100%);\n}\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX,\n.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw,\n.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY,\n.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz,\n.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa,\n.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax,\n.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr,\n.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp,\n.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56,\n.styles-module__settingsPanel___OxX3Y .styles-module__themeToggle___2rUjA {\n  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__enter___WFIki {\n  opacity: 1;\n  transform: translateY(0) scale(1);\n  filter: blur(0px);\n  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__exit___fyOJ0 {\n  opacity: 0;\n  transform: translateY(8px) scale(0.95);\n  filter: blur(5px);\n  pointer-events: none;\n  transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf {\n  background: #1a1a1a;\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsLabel___8UjfX {\n  color: rgba(255, 255, 255, 0.6);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12 {\n  color: rgba(255, 255, 255, 0.85);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12:hover {\n  background: rgba(255, 255, 255, 0.1);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {\n  background: rgba(255, 255, 255, 0.15);\n  color: #fff;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__toggleLabel___Xm8Aa {\n  color: rgba(255, 255, 255, 0.85);\n}\n\n.styles-module__settingsPanelContainer___Xksv8 {\n  overflow: visible;\n  position: relative;\n  display: flex;\n  padding: 0 1rem;\n}\n.styles-module__settingsPanelContainer___Xksv8.styles-module__transitioning___qxzCk {\n  overflow-x: clip;\n  overflow-y: visible;\n}\n\n.styles-module__settingsPage___6YfHH {\n  min-width: 100%;\n  flex-shrink: 0;\n  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease-out;\n  opacity: 1;\n}\n\n.styles-module__settingsPage___6YfHH.styles-module__slideLeft___Ps01J {\n  transform: translateX(-100%);\n  opacity: 0;\n}\n\n.styles-module__automationsPage___uvCq6 {\n  position: absolute;\n  top: 0;\n  left: 100%;\n  width: 100%;\n  height: 100%;\n  padding: 3px 1rem 0;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease-out 0.1s;\n  opacity: 0;\n}\n\n.styles-module__automationsPage___uvCq6.styles-module__slideIn___4-qXe {\n  transform: translateX(-100%);\n  opacity: 1;\n}\n\n.styles-module__settingsNavLink___wCzJt {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  width: 100%;\n  padding: 0;\n  border: none;\n  background: transparent;\n  font-family: inherit;\n  font-size: 0.8125rem;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.5);\n  cursor: pointer;\n  transition: color 0.15s ease;\n}
1\n.styles-module__settingsNavLink___wCzJt:hover {\n  color: rgba(255, 255, 255, 0.9);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover {\n  color: rgba(0, 0, 0, 0.8);\n}\n.styles-module__settingsNavLink___wCzJt svg {\n  color: rgba(255, 255, 255, 0.4);\n  transition: color 0.15s ease;\n}\n.styles-module__settingsNavLink___wCzJt:hover svg {\n  color: #fff;\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y svg {\n  color: rgba(0, 0, 0, 0.25);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover svg {\n  color: rgba(0, 0, 0, 0.8);\n}\n\n.styles-module__settingsNavLinkRight___ZWwhj {\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n\n.styles-module__mcpNavIndicator___cl9pO {\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  flex-shrink: 0;\n}\n.styles-module__mcpNavIndicator___cl9pO.styles-module__connected___7c28g {\n  background: #34c759;\n  animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;\n}\n.styles-module__mcpNavIndicator___cl9pO.styles-module__connecting___uo-CW {\n  background: #f5a623;\n  animation: styles-module__mcpPulse___uNggr 1.5s ease-in-out infinite;\n}\n\n.styles-module__settingsBackButton___bIe2j {\n  display: flex;\n  align-items: center;\n  gap: 4px;\n  padding: 6px 0 12px 0;\n  margin: -6px 0 0.5rem 0;\n  border: none;\n  border-bottom: 1px solid rgba(255, 255, 255, 0.07);\n  border-radius: 0;\n  background: transparent;\n  font-family: inherit;\n  font-size: 0.8125rem;\n  font-weight: 500;\n  letter-spacing: -0.15px;\n  color: #fff;\n  cursor: pointer;\n  transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);\n}\n.styles-module__settingsBackButton___bIe2j svg {\n  opacity: 0.4;\n  flex-shrink: 0;\n  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);\n}\n.styles-module__settingsBackButton___bIe2j:hover svg {\n  opacity: 1;\n}\n.styles-module__settingsBackButton___bIe2j.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.85);\n  border-bottom-color: rgba(0, 0, 0, 0.08);\n}\n\n.styles-module__automationHeader___InP0r {\n  display: flex;\n  align-items: center;\n  gap: 0.125rem;\n  font-size: 0.8125rem;\n  font-weight: 400;\n  color: #fff;\n}\n.styles-module__automationHeader___InP0r .styles-module__helpIcon___xQg56 svg {\n  transform: none;\n}\n.styles-module__automationHeader___InP0r.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.85);\n}\n\n.styles-module__automationDescription___NKlmo {\n  font-size: 0.6875rem;\n  font-weight: 300;\n  color: rgba(255, 255, 255, 0.5);\n  margin-top: 2px;\n  line-height: 14px;\n}\n.styles-module__automationDescription___NKlmo.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__learnMoreLink___8xv-x {\n  color: rgba(255, 255, 255, 0.8);\n  text-decoration: underline dotted;\n  text-decoration-color: rgba(255, 255, 255, 0.2);\n  text-underline-offset: 2px;\n  transition: color 0.15s ease;\n}\n.styles-module__learnMoreLink___8xv-x:hover {\n  color: #fff;\n}\n.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.6);\n  text-decoration-color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y:hover {\n  color: rgba(0, 0, 0, 0.85);\n}\n\n.styles-module__autoSendRow___UblX5 {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.styles-module__autoSendLabel___icDc2 {\n  font-size: 0.6875rem;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.4);\n  transition: color 0.15s ease;\n}\n.styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {\n  color: #66b8ff;\n}\n.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y.styles-module__active___-zoN6 {\n  color: #3c82f7;\n}\n\n.styles-module__webhookUrlInput___2375C {\n  display: block;\n  width: 100%;\n  flex: 1;\n  min-height: 60px;\n  box-sizing: border-box;\n  margin-top: 11px;\n  padding: 8px 10px;\n  border: 1px solid rgba(255, 255, 255, 0.1);\n  border-radius: 6px;\n  background: rgba(255, 255, 255, 0.03);\n  font-family: inherit;\n  font-size: 0.75rem;\n  font-weight: 400;\n  color: #fff;\n  outline: none;\n  resize: none;\n  cursor: text !important;\n  user-select: text;\n  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;\n}\n.styles-module__webhookUrlInput___2375C::placeholder {\n  color: rgba(255, 255, 255, 0.3);\n}\n.styles-module__webhookUrlInput___2375C:focus {\n  border-color: rgba(255, 255, 255, 0.3);\n  background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y {\n  border-color: rgba(0, 0, 0, 0.1);\n  background: rgba(0, 0, 0, 0.03);\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y::placeholder {\n  color: rgba(0, 0, 0, 0.3);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y:focus {\n  border-color: rgba(0, 0, 0, 0.25);\n  background: rgba(0, 0, 0, 0.05);\n}\n\n.styles-module__settingsHeader___pwDY9 {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  min-height: 24px;\n  margin-bottom: 0.5rem;\n  padding-bottom: 9px;\n  border-bottom: 1px solid rgba(255, 255, 255, 0.07);\n}\n\n.styles-module__settingsBrand___0gJeM {\n  font-size: 0.8125rem;\n  font-weight: 600;\n  letter-spacing: -0.0094em;\n  color: #fff;\n}\n\n.styles-module__settingsBrandSlash___uTG18 {\n  color: rgba(255, 255, 255, 0.5);\n}\n\n.styles-module__settingsVersion___TUcFq {\n  font-size: 11px;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.4);\n  margin-left: auto;\n  letter-spacing: -0.0094em;\n}\n\n.styles-module__settingsSection___m-YM2 + .styles-module__settingsSection___m-YM2 {\n  margin-top: 0.5rem;\n  padding-top: 0.5rem;\n  border-top: 1px solid rgba(255, 255, 255, 0.07);\n}\n.styles-module__settingsSection___m-YM2.styles-module__settingsSectionExtraPadding___jdhFV {\n  padding-top: calc(0.5rem + 4px);\n}\n\n.styles-module__settingsSectionGrow___h-5HZ {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n}\n\n.styles-module__settingsRow___3sdhc {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  min-height: 24px;\n}\n.styles-module__settingsRow___3sdhc.styles-module__settingsRowMarginTop___zA0Sp {\n  margin-top: 8px;\n}\n\n.styles-module__dropdownContainer___BVnxe {\n  position: relative;\n}\n\n.styles-module__dropdownButton___16NPz {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n  padding: 0.25rem 0.5rem;\n  border: none;\n  border-radius: 0.375rem;\n  background: transparent;\n  font-size: 0.8125rem;\n  font-weight: 600;\n  color: #fff;
1\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease;\n  letter-spacing: -0.0094em;\n}\n.styles-module__dropdownButton___16NPz:hover {\n  background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__dropdownButton___16NPz svg {\n  opacity: 0.6;\n}\n\n.styles-module__cycleButton___FMKfw {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n  padding: 0;\n  border: none;\n  background: transparent;\n  font-size: 0.8125rem;\n  font-weight: 500;\n  color: #fff;\n  cursor: pointer;\n  letter-spacing: -0.0094em;\n}\n.styles-module__cycleButton___FMKfw.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__cycleButton___FMKfw:disabled {\n  opacity: 0.35;\n  cursor: not-allowed;\n}\n\n.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {\n  color: rgba(255, 255, 255, 0.2);\n}\n.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__settingsRowDisabled___EgS0V .styles-module__toggleSwitch___l4Ygm {\n  opacity: 0.4;\n  cursor: not-allowed;\n}\n\n@keyframes styles-module__cycleTextIn___Q6zJf {\n  0% {\n    opacity: 0;\n    transform: translateY(-6px);\n  }\n  100% {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n.styles-module__cycleButtonText___fD1LR {\n  display: inline-block;\n  animation: styles-module__cycleTextIn___Q6zJf 0.2s ease-out;\n}\n\n.styles-module__cycleDots___LWuoQ {\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n}\n\n.styles-module__cycleDot___nPgLY {\n  width: 3px;\n  height: 3px;\n  border-radius: 50%;\n  background: rgba(255, 255, 255, 0.3);\n  transform: scale(0.667);\n  transition: background-color 0.25s ease-out, transform 0.25s ease-out;\n}\n.styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {\n  background: #fff;\n  transform: scale(1);\n}\n.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y {\n  background: rgba(0, 0, 0, 0.2);\n}\n.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y.styles-module__active___-zoN6 {\n  background: rgba(0, 0, 0, 0.7);\n}\n\n.styles-module__dropdownMenu___k73ER {\n  position: absolute;\n  right: 0;\n  top: calc(100% + 0.25rem);\n  background: #1a1a1a;\n  border-radius: 0.5rem;\n  padding: 0.25rem;\n  min-width: 120px;\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);\n  z-index: 10;\n  animation: styles-module__scaleIn___c-r1K 0.15s ease-out;\n}\n\n.styles-module__dropdownItem___ylsLj {\n  width: 100%;\n  display: flex;\n  align-items: center;\n  padding: 0.5rem 0.625rem;\n  border: none;\n  border-radius: 0.375rem;\n  background: transparent;\n  font-size: 0.8125rem;\n  font-weight: 500;\n  color: rgba(255, 255, 255, 0.85);\n  cursor: pointer;\n  text-align: left;\n  transition: background-color 0.15s ease, color 0.15s ease;\n  letter-spacing: -0.0094em;\n}\n.styles-module__dropdownItem___ylsLj:hover {\n  background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__dropdownItem___ylsLj.styles-module__selected___OwRqP {\n  background: rgba(255, 255, 255, 0.12);\n  color: #fff;\n  font-weight: 600;\n}\n\n.styles-module__settingsLabel___8UjfX {\n  font-size: 0.8125rem;\n  font-weight: 400;\n  letter-spacing: -0.0094em;\n  color: rgba(255, 255, 255, 0.5);\n  display: flex;\n  align-items: center;\n  gap: 0.125rem;\n}\n.styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__settingsLabelMarker___ewdtV {\n  padding-top: 3px;\n  margin-bottom: 10px;\n}\n\n.styles-module__settingsOptions___LyrBA {\n  display: flex;\n  gap: 0.25rem;\n}\n\n.styles-module__settingsOption___UNa12 {\n  flex: 1;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 0.25rem;\n  padding: 0.375rem 0.5rem;\n  border: none;\n  border-radius: 0.375rem;\n  background: transparent;\n  font-size: 0.6875rem;\n  font-weight: 500;\n  color: rgba(0, 0, 0, 0.7);\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease;\n}\n.styles-module__settingsOption___UNa12:hover {\n  background: rgba(0, 0, 0, 0.05);\n}\n.styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {\n  background: rgba(60, 130, 247, 0.15);\n  color: #3c82f7;\n}\n\n.styles-module__sliderContainer___ducXj {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n\n.styles-module__slider___GLdxp {\n  -webkit-appearance: none;\n  appearance: none;\n  width: 100%;\n  height: 4px;\n  background: rgba(255, 255, 255, 0.15);\n  border-radius: 2px;\n  outline: none;\n  cursor: pointer;\n}\n.styles-module__slider___GLdxp::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  appearance: none;\n  width: 14px;\n  height: 14px;\n  background: white;\n  border-radius: 50%;\n  cursor: pointer;\n  transition: transform 0.15s ease, box-shadow 0.15s ease;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n}\n.styles-module__slider___GLdxp::-moz-range-thumb {\n  width: 14px;\n  height: 14px;\n  background: white;\n  border: none;\n  border-radius: 50%;\n  cursor: pointer;\n  transition: transform 0.15s ease, box-shadow 0.15s ease;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n}\n.styles-module__slider___GLdxp:hover::-webkit-slider-thumb {\n  transform: scale(1.15);\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);\n}\n.styles-module__slider___GLdxp:hover::-moz-range-thumb {\n  transform: scale(1.15);\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);\n}\n\n.styles-module__sliderLabels___FhLDB {\n  display: flex;\n  justify-content: space-between;\n}\n\n.styles-module__sliderLabel___U8sPr {\n  font-size: 0.625rem;\n  font-weight: 500;\n  color: rgba(255, 255, 255, 0.4);\n  cursor: pointer;\n  transition: color 0.15s ease;\n}
1\n.styles-module__sliderLabel___U8sPr:hover {\n  color: rgba(255, 255, 255, 0.7);\n}\n.styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {\n  color: rgba(255, 255, 255, 0.9);\n}\n\n.styles-module__colorOptions___iHCNX {\n  display: flex;\n  gap: 0.5rem;\n  margin-top: 0.375rem;\n  margin-bottom: 1px;\n}\n\n.styles-module__colorOption___IodiY {\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  border: 2px solid transparent;\n  cursor: pointer;\n  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);\n}\n.styles-module__colorOption___IodiY:hover {\n  transform: scale(1.15);\n}\n.styles-module__colorOption___IodiY.styles-module__selected___OwRqP {\n  transform: scale(0.83);\n}\n\n.styles-module__colorOptionRing___U2xpo {\n  display: flex;\n  width: 24px;\n  height: 24px;\n  border: 2px solid transparent;\n  border-radius: 50%;\n  transition: border-color 0.3s ease;\n}\n.styles-module__settingsToggle___fBrFn {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n  cursor: pointer;\n}\n.styles-module__settingsToggle___fBrFn + .styles-module__settingsToggle___fBrFn {\n  margin-top: calc(0.5rem + 6px);\n}\n.styles-module__settingsToggle___fBrFn input[type=checkbox] {\n  position: absolute;\n  opacity: 0;\n  width: 0;\n  height: 0;\n}\n.styles-module__settingsToggle___fBrFn.styles-module__settingsToggleMarginBottom___MZUyF {\n  margin-bottom: calc(0.5rem + 6px);\n}\n\n.styles-module__customCheckbox___U39ax {\n  position: relative;\n  width: 14px;\n  height: 14px;\n  border: 1px solid rgba(255, 255, 255, 0.2);\n  border-radius: 4px;\n  background: rgba(255, 255, 255, 0.05);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n  transition: background 0.25s ease, border-color 0.25s ease;\n}
1\n.styles-module__customCheckbox___U39ax svg {\n  color: #1a1a1a;\n  opacity: 1;\n  transition: opacity 0.15s ease;\n}\ninput[type=checkbox]:checked + .styles-module__customCheckbox___U39ax {\n  border-color: rgba(255, 255, 255, 0.3);\n  background: rgb(255, 255, 255);\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y {\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  background: #fff;\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo {\n  border-color: #1a1a1a;\n  background: #1a1a1a;\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo svg {\n  color: #fff;\n}\n\n.styles-module__toggleLabel___Xm8Aa {\n  font-size: 0.8125rem;\n  font-weight: 400;\n  color: rgba(255, 255, 255, 0.5);\n  letter-spacing: -0.0094em;\n  display: flex;\n  align-items: center;\n  gap: 0.25rem;\n}\n.styles-module__toggleLabel___Xm8Aa.styles-module__light___r6n4Y {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__toggleSwitch___l4Ygm {\n  position: relative;\n  display: inline-block;\n  width: 24px;\n  height: 16px;\n  flex-shrink: 0;\n  cursor: pointer;\n  transition: opacity 0.15s ease;\n}\n.styles-module__toggleSwitch___l4Ygm input {\n  opacity: 0;\n  width: 0;\n  height: 0;\n}\n.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn {\n  background: #3c82f7;\n}\n.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn::before {\n  transform: translateX(8px);\n}\n.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw {\n  opacity: 0.4;\n  pointer-events: none;\n}\n.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw .styles-module__toggleSlider___wprIn {\n  cursor: not-allowed;\n}\n\n.styles-module__toggleSlider___wprIn {\n  position: absolute;\n  cursor: pointer;\n  inset: 0;\n  border-radius: 16px;\n  background: #484848;\n}\n.styles-module__light___r6n4Y .styles-module__toggleSlider___wprIn {\n  background: #dddddd;\n}\n.styles-module__toggleSlider___wprIn::before {\n  content: "";\n  position: absolute;\n  height: 12px;\n  width: 12px;\n  left: 2px;\n  bottom: 2px;\n  background: white;\n  border-radius: 50%;\n  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\n\n@keyframes styles-module__mcpPulse___uNggr {\n  0% {\n    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);\n  }\n  70% {\n    box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);\n  }\n  100% {\n    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);\n  }\n}\n@keyframes styles-module__mcpPulseError___fov9B {\n  0% {\n    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);\n  }\n  70% {\n    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);\n  }\n  100% {\n    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);\n  }\n}\n.styles-module__mcpStatusDot___ibgkc {\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  flex-shrink: 0;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__connecting___uo-CW {\n  background: #f5a623;\n  animation: styles-module__mcpPulse___uNggr 1.5s infinite;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__connected___7c28g {\n  background: #34c759;\n  animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__disconnected___cHPxR {\n  background: #ff3b30;\n  animation: styles-module__mcpPulseError___fov9B 2s infinite;\n}\n\n.styles-module__helpIcon___xQg56 {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  cursor: help;\n  margin-left: 0;\n}\n.styles-module__helpIcon___xQg56 svg {\n  display: block;\n  transform: translateY(1px);\n  color: rgba(255, 255, 255, 0.2);\n  transition: color 0.15s ease;\n}\n.styles-module__helpIcon___xQg56:hover svg {\n  color: rgba(255, 255, 255, 0.5);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudgeDown___0cqpM svg {\n  transform: translateY(1px);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNoNudge___abogC svg {\n  transform: translateY(0.5px);\n}
1\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudge1-5___DM2TQ svg {\n  transform: translateY(1.5px);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudge2___TfWgC svg {\n  transform: translateY(2px);\n}\n\n.styles-module__dragSelection___kZLq2 {\n  position: fixed;\n  top: 0;\n  left: 0;\n  border: 2px solid rgba(52, 199, 89, 0.6);\n  border-radius: 4px;\n  background: rgba(52, 199, 89, 0.08);\n  pointer-events: none;\n  z-index: 99997;\n  will-change: transform, width, height;\n  contain: layout style;\n}\n\n.styles-module__dragCount___KM90j {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  background: #34c759;\n  color: white;\n  font-size: 0.875rem;\n  font-weight: 600;\n  padding: 0.25rem 0.5rem;\n  border-radius: 1rem;\n  min-width: 1.5rem;\n  text-align: center;\n}\n\n.styles-module__highlightsContainer___-0xzG {\n  position: fixed;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n  z-index: 99996;\n}\n\n.styles-module__selectedElementHighlight___fyVlI {\n  position: fixed;\n  top: 0;\n  left: 0;\n  border: 2px solid rgba(52, 199, 89, 0.5);\n  border-radius: 4px;\n  background: rgba(52, 199, 89, 0.06);\n  pointer-events: none;\n  will-change: transform, width, height;\n  contain: layout style;\n}\n\n.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma {\n  background: #fff;\n  color: rgba(0, 0, 0, 0.85);\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {\n  background: #f5f5f5;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {\n  background: rgba(0, 0, 0, 0.06);\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-active=true] {\n  color: #3c82f7;\n  background: rgba(60, 130, 247, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-error=true] {\n  color: #ff3b30;\n  background: rgba(255, 59, 48, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {\n  background: rgba(255, 59, 48, 0.15);\n  color: #ff3b30;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-auto-sync=true] {\n  color: #34c759;\n  background: transparent;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-failed=true] {\n  color: #ff3b30;\n  background: rgba(255, 59, 48, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9 {\n  background: #fff;\n  color: rgba(0, 0, 0, 0.85);\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9::after {\n  background: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__divider___c--s1 {\n  background: rgba(0, 0, 0, 0.1);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID {\n  background: #fff;\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerQuote___FHmrz {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerNote___QkrrS {\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerHint___2iF-6 {\n  color: rgba(0, 0, 0, 0.35);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y {\n  background: #fff;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::before {\n  background: linear-gradient(to right, #fff 0%, transparent 100%);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::after {\n  background: linear-gradient(to left, #fff 0%, transparent 100%);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9 {\n  border-bottom-color: rgba(0, 0, 0, 0.08);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM {\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18 {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq {\n  
1color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2 {\n  border-top-color: rgba(0, 0, 0, 0.08);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw {\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY {\n  background: rgba(0, 0, 0, 0.2);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {\n  background: rgba(0, 0, 0, 0.7);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz {\n  color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz:hover {\n  background: rgba(0, 0, 0, 0.05);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {\n  color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax {\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  background: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {\n  border-color: #1a1a1a;\n  background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {\n  
1color: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr:hover {\n  color: rgba(0, 0, 0, 0.7);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {\n  color: rgba(0, 0, 0, 0.9);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp {\n  background: rgba(0, 0, 0, 0.1);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-webkit-slider-thumb {\n  background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-moz-range-thumb {\n  background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56 svg {\n  color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56:hover svg {\n  color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__themeToggle___2rUjA {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 22px;\n  height: 22px;\n  margin-left: 0.5rem;\n  border: none;\n  border-radius: 6px;\n  background: transparent;\n  color: rgba(255, 255, 255, 0.4);\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease;\n}\n.styles-module__themeToggle___2rUjA:hover {\n  background: rgba(255, 255, 255, 0.1);\n  color: rgba(255, 255, 255, 0.8);\n}\n.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA {\n  color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA:hover {\n  background: rgba(0, 0, 0, 0.06);\n  color: rgba(0, 0, 0, 0.7);\n}\n\n.styles-module__themeIconWrapper___LsJIM {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  position: relative;\n  width: 20px;\n  height: 20px;\n}\n\n.styles-module__themeIcon___lCCmo {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  animation: styles-module__themeIconIn___TU6ML 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n}\n\n@keyframes styles-module__themeIconIn___TU6ML {\n  0% {\n    opacity: 0;\n    transform: scale(0.8) rotate(-30deg);\n  }\n  100% {\n    opacity: 1;\n    transform: scale(1) rotate(0deg);\n  }\n}',document.head.appendChild(e))}e.s(["default",0,function({children:e,modal:t}){return(0,n.jsxs)(n.Fragment,{children:[!1,(0,n.jsx)(G.default,{children:(0,n.jsx)(q,{})}),(0,n.jsx)("div",{className:"pb-[calc(4rem+min(env(safe-area-inset-bottom),0.75rem))] md:pb-0",children:e}),t]})}],629935)},548791,e=>{"use strict";var t=e.i(332080),n=e.i(143680),r=e.i(231978),o=e.i(400690),a=e.i(879412),s=e.i(561251),l=e.i(607564);e.s(["FloatingModal",0,function(){let[e,i]=(0,r.useAtom)(n.FLOATING_MODAL_OPEN_ATOM),c=(0,r.useAtomValue)(n.FLOATING_MODAL_CONTENT_ATOM),d=(0,l.useCallback)(()=>{i(!e)},[e,i]),u=Array.isArray(c)?c.sort((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime()):[],_=u.length>0?Object.keys(u[0]):[];return 0===c.length?null:(0,t.jsx)(s.motion.div,{variants:{closed:{width:"2.5rem",height:"2.5rem",y:0,opacity:1,transition:{duration:.2,ease:"easeInOut"}},open:{width:"min(92vw, 34rem)",height:"min(78vh, 34rem)",y:0,opacity:1,transition:{duration:.3,ease:"easeInOut"}}},initial:"closed",animate:e?"open":"closed",className:`bg-pbp-refactor-gray rounded-md flex items-center justify-center relative z-50 ${e?"p-4 flex-col gap-4":""}`,onClick:e?void 0:d,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:"bg-white/10 rounded-md flex items-center justify-center absolute top-2 right-2 p-2",onClick:d,children:(0,t.jsx)(o.Minus,{className:"w-6 h-6 text-white"})}),(0,t.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,t.jsx)("h3",{className:"mb-3 pr-10 text-base font-bold text-white",children:"Recent Activity"}),(0,t.jsx)("div",{className:"-mr-1 flex-1 space-y-2 overflow-y-auto pr-1",children:u.length>0?u.map((e,n)=>(0,t.jsx)("div",{className:"rounded-lg border border-white/10 bg-white/[0.04] p-3",children:_.map(n=>(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-0.5 text-sm",children:[(0,t.jsx)("span",{className:"shrink-0 text-white/45",children:n.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}),(0,t.jsx)("span",{className:"min-w-0 break-words text-right font-medium text-white",children:"created_at"===n||"modified_at"===n?new Date(e[n]).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):e[n]})]},n))},n)):(0,t.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-white/60",children:"No recent activity"})})]})]}):(0,t.jsx)(a.Plus,{className:"w-6 h-6 text-white"})})}])},954078,e=>{"use strict";var t=e.i(332080),n=e.i(171747),r=e.i(264458),o=e.i(290978);async function a(){try{let e=await fetch("/api/updates/notifications");
1if(200===e.status)return await e.json();return console.error("Error fetching system notification",e.status,e.statusText),null}catch(e){return console.error("Error fetching system notification",e),null}}e.s(["NotificationBanner",0,function(){let{data:e,isLoading:s,isError:l,error:i}=(0,n.useQuery)({queryKey:["notification"],queryFn:a,refetchInterval:36e5,refetchIntervalInBackground:!1,refetchOnWindowFocus:"always",staleTime:1/0,retry:!1});if(!e||s||l)return null;i&&console.error("Error connecting to notification system",i);let c=(0,r.default)("z-10 flex w-full h-full",{"bg-red-600 text-primary-foreground dark:text-secondary-foreground":"announcement_active"===e.type,"bg-green-500 text-primary-foreground dark:text-secondary-foreground":"announcement_resolved"===e.type});return(0,t.jsx)(o.default,{prefetch:!1,href:e.link||`/updates/${e.vanity_url}`,className:c,children:(0,t.jsx)("span",{className:"w-full flex flex-row py-2 px-2 justify-center items-center text-center z-10",children:e.title})})}])},111976,e=>{"use strict";var t=e.i(332080),n=e.i(319036),r=e.i(899261),o=e.i(869277),a=e.i(50983),s=e.i(549910),l=e.i(600821),i=e.i(535700),c=e.i(775354),d=e.i(231978),u=e.i(607564);function _(e){if(e){document.cookie=`${r.ADMIN_PLAYER_PRICE_MODE_COOKIE}=${r.ADMIN_PLAYER_PRICE_MODE_COOKIE_VALUE}; path=/; max-age=31536000; SameSite=Lax`;return}document.cookie=`${r.ADMIN_PLAYER_PRICE_MODE_COOKIE}=; path=/; max-age=0; SameSite=Lax`}e.s(["RoleBanner",0,function(){let e=(0,d.useAtomValue)(c.userAtom),r=e?.session?.user?.role??o.ROLES.PLAYER,m=e?.session?.user?.playFabId||"",[h,p]=(0,d.useAtom)(s.adminPlayerPriceModeAtom),[g,f]=(0,d.useAtom)(l.competitionDevPhaseAtom),y=(0,d.useSetAtom)(i.shopCartStorageAtom),[b,w]=(0,u.useReducer)(e=>!e,!0);(0,u.useEffect)(()=>{r===o.ROLES.ADMIN?_(h):_(!1)},[h,r]);let x=(0,u.useCallback)(e=>{p(e),_(e),m&&y(e=>({...e,[m]:[]})),a.queryClient.invalidateQueries({queryKey:["Shops"]}),a.queryClient.invalidateQueries({queryKey:["user-missions"]}),a.queryClient.invalidateQueries({queryKey:["OwnedItems"]})},[m,p,y]);(0,u.useCallback)(e=>{f(e.target.value)},[f]);let v=(0,u.useCallback)(e=>{e.target.closest("[data-admin-price-mode-control]")||w()},[]);return r===o.ROLES.ADMIN&&b?(0,t.jsx)("div",{onClick:v,className:"z-50",children:(0,t.jsxs)("div",{className:"bg-yellow-400 rounded-md shadow-md p-4 text-center w-fit text-black flex flex-col gap-3",children:[(0,t.jsx)("span",{children:o.ROLES[r]}),(0,t.jsxs)("div",{"data-admin-price-mode-control":!0,className:"flex items-center justify-between gap-3 text-sm",children:[(0,t.jsx)("label",{htmlFor:"admin-player-price-mode",className:"font-semibold whitespace-nowrap",children:"Player prices"}),(0,t.jsx)(n.Switch,{id:"admin-player-price-mode",checked:h,onCheckedChange:x,"aria-label":"Use player prices"})]}),null]})}):null}])},347432,e=>{"use strict";var t=e.i(332080),n=e.i(174117),r=e.i(869277),o=e.i(89927),a=e.i(731397),s=e.i(775354),l=e.i(128210),i=e.i(504819),c=e.i(231978),d=e.i(627501),u=e.i(607564);e.s(["SystemToasts",0,function(){let{toast:e}=(0,n.useToast)(),_=(0,c.useAtomValue)(s.userAtom);(0,r.getUserRole)(_?.session?.user?.playFabId)||r.ROLES.PLAYER;let m=(0,u.useRef)(null),h=(0,u.useCallback)(()=>{window.location.reload()},[]);return(0,u.useEffect)(()=>{let n;return console.log("Subscribing to channel",o.WEB_NOTIFICATION_CHANNEL),(async()=>{n=await i.events.connect(`/default/${o.WEB_NOTIFICATION_CHANNEL}`,a.connectionConfig),m.current||(m.current=n.subscribe({next:({event:{event:n,payload:o}})=>{if("update"===n&&e({title:"New Update Available",description:"There's a new version of the game available. Please refresh your browser to get the latest version.",duration:1/0,action:(0,t.jsx)(l.ToastAction,{altText:"Refresh",onClick:h,children:(0,t.jsxs)("span",{className:"flex flex-row gap-2",children:["Refresh ",(0,t.jsx)(d.RefreshCcw,{className:"w-4"})]})})}),"notify"===n&&e({title:o.title,description:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:o.message}),(0,t.jsxs)("span",{className:"text-xs",children:["Sent By: ",r.usersWhitelist[o.sentBy].displayName]})]}),duration:1/0,action:(0,t.jsx)(l.ToastAction,{altText:"Acknowledge",children:(0,t.jsx)("span",{className:"flex flex-row",children:"OK"})})}),"test"===n&&e({title:"Test Notification",description:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Ping Test"}),(0,t.jsx)("span",{className:"text-xs",children:"Sent By: System Test Notification"})]}),duration:1/0,action:(0,t.jsx)(l.ToastAction,{altText:"Acknowledge",children:(0,t.jsx)("span",{className:"flex flex-row",children:"OK"})})}),"rental_batch_cooldown"===n){let n=o.displayName||"A player",r=o.nftCount??0;e({globalNotification:!0,title:"🧊 Rental Batch Cooldown cleared!",description:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:o.message||`${n} just cleared a batch of ${r} rental cooldowns.`}),(0,t.jsxs)("span",{className:"text-xs text-white/60",children:[r," NFT",1===r?"":"s"," up for grabs"]})]}),duration:8e3,action:(0,t.jsx)(l.ToastAction,{altText:"View rentals",children:(0,t.jsx)("span",{className:"flex flex-row",children:"OK"})})})}},error:e=>console.error("error",e)}))})(),()=>{if(m.current?.unsubscribe(),m.current=null,n)return n.close()}},[h,e]),(0,t.jsx)(t.Fragment,{})}])},334863,e=>{"use strict";var t=e.i(332080),n=e.i(6799),r=e.i(174117);e.s(["Toaster",0,function(){let{toasts:e}=(0,r.useToast)();return(0,t.jsxs)(n.ToastProvider,{children:[e.map(function({id:e,title:r,de
1scription:o,action:a,...s}){return(0,t.jsxs)(n.Toast,{...s,children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[r&&(0,t.jsx)(n.ToastTitle,{children:r}),o&&(0,t.jsx)(n.ToastDescription,{children:o})]}),a,(0,t.jsx)(n.ToastClose,{})]},e)}),(0,t.jsx)(n.ToastViewport,{})]})}])},383642,e=>{"use strict";var t=e.i(332080),n=e.i(322484);e.s(["default",0,function({children:e}){return(0,t.jsx)(n.SessionProvider,{refetchOnWindowFocus:!1,refetchInterval:0,children:e})}])},530689,(e,t,n)=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},628151,(e,t,n)=>{let r,o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},n.getSymbolTotalCodewords=function(e){return o[e]},n.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},n.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},n.isKanjiModeEnabled=function(){return void 0!==r},n.toSJIS=function(e){return r(e)}},731351,(e,t,n)=>{n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},n.from=function(e,t){if(n.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw Error("Unknown EC Level: "+e)}}catch(e){return t}}},299931,(e,t,n)=>{function r(){this.buffer=[],this.length=0}r.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=r},762091,(e,t,n)=>{function r(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}r.prototype.set=function(e,t,n,r){let o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=r},271112,(e,t,n)=>{let r=e.r(628151).getSymbolSize;n.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-o;return a.push(6),a.reverse()},n.getPositions=function(e){let t=[],r=n.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let n=0;n<o;n++)(0!==e||0!==n)&&(0!==e||n!==o-1)&&(e!==o-1||0!==n)&&t.push([r[e],r[n]]);return t}},853658,(e,t,n)=>{let r=e.r(628151).getSymbolSize;n.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},546711,(e,t,n)=>{n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};n.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},n.from=function(e){return n.isValid(e)?parseInt(e,10):void 0},n.getPenaltyN1=function(e){let t=e.size,n=0,r=0,o=0,a=null,s=null;for(let l=0;l<t;l++){r=o=0,a=s=null;for(let i=0;i<t;i++){let t=e.get(l,i);t===a?r++:(r>=5&&(n+=3+(r-5)),a=t,r=1),(t=e.get(i,l))===s?o++:(o>=5&&(n+=3+(o-5)),s=t,o=1)}r>=5&&(n+=3+(r-5)),o>=5&&(n+=3+(o-5))}return n},n.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){let t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);(4===t||0===t)&&n++}return 3*n},n.getPenaltyN3=function(e){let t=e.size,n=0,r=0,o=0;for(let a=0;a<t;a++){r=o=0;for(let s=0;s<t;s++)r=r<<1&2047|e.get(a,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,a),s>=10&&(1488===o||93===o)&&n++}return 40*n},n.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},n.applyMask=function(e,t){let r=t.size;
1for(let o=0;o<r;o++)for(let a=0;a<r;a++)t.isReserved(a,o)||t.xor(a,o,function(e,t,r){switch(e){case n.Patterns.PATTERN000:return(t+r)%2==0;case n.Patterns.PATTERN001:return t%2==0;case n.Patterns.PATTERN010:return r%3==0;case n.Patterns.PATTERN011:return(t+r)%3==0;case n.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case n.Patterns.PATTERN101:return t*r%2+t*r%3==0;case n.Patterns.PATTERN110:return(t*r%2+t*r%3)%2==0;case n.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,a,o))},n.getBestMask=function(e,t){let r=Object.keys(n.Patterns).length,o=0,a=1/0;for(let s=0;s<r;s++){t(s),n.applyMask(s,e);let r=n.getPenaltyN1(e)+n.getPenaltyN2(e)+n.getPenaltyN3(e)+n.getPenaltyN4(e);n.applyMask(s,e),r<a&&(a=r,o=s)}return o}},105693,(e,t,n)=>{let r=e.r(731351),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},n.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[(e-1)*4+0];case r.M:return a[(e-1)*4+1];case r.Q:return a[(e-1)*4+2];case r.H:return a[(e-1)*4+3];default:return}}},473398,(e,t,n)=>{let r=new Uint8Array(512),o=new Uint8Array(256),a=1;for(let e=0;e<255;e++)r[e]=a,o[a]=e,256&(a<<=1)&&(a^=285);for(let e=255;e<512;e++)r[e]=r[e-255];n.log=function(e){if(e<1)throw Error("log("+e+")");return o[e]},n.exp=function(e){return r[e]},n.mul=function(e,t){return 0===e||0===t?0:r[o[e]+o[t]]}},476093,(e,t,n)=>{let r=e.r(473398);n.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},n.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},n.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let o=0;o<e;o++)t=n.mul(t,new Uint8Array([1,r.exp(o)]));return t}},701763,(e,t,n)=>{let r=e.r(476093);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){let e=new Uint8Array(this.degree);return e.set(n,o),e}return n},t.exports=o},111735,(e,t,n)=>{n.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},214477,(e,t,n)=>{let r="[0-9]+",o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(o=o.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=RegExp(o,"g"),n.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=RegExp(a,"g"),n.NUMERIC=RegExp(r,"g"),n.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let s=RegExp("^"+o+"$"),l=RegExp("^"+r+"$"),i=RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(e){return s.test(e)},n.testNumeric=function(e){return l.test(e)},n.testAlphanumeric=function(e){return i.test(e)}},310413,(e,t,n)=>{let r=e.r(111735),o=e.r(214477);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},n.getBestModeForData=function(e){return o.testNumeric(e)?n.NUMERIC:o.testAlphanumeric(e)?n.ALPHANUMERIC:o.testKanji(e)?n.KANJI:n.BYTE},n.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},n.isValid=function(e){return e&&e.bit&&e.ccBits},n.from=function(e,t){if(n.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw Error("Unknown mode: "+e)}}catch(e){return t}}},725510,(e,t,n)=>{let r=e.r(628151),o=e.r(105693),a=e.r(731351),s=e.r(310413),l=e.r(111735),i=r.getBCHDigit
1(7973);function c(e,t){return s.getCharCountIndicator(e,t)+4}n.from=function(e,t){return l.isValid(e)?parseInt(e,10):t},n.getCapacity=function(e,t,n){if(!l.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);let a=(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t))*8;if(n===s.MIXED)return a;let i=a-c(n,e);switch(n){case s.NUMERIC:return Math.floor(i/10*3);case s.ALPHANUMERIC:return Math.floor(i/11*2);case s.KANJI:return Math.floor(i/13);case s.BYTE:default:return Math.floor(i/8)}},n.getBestVersionForData=function(e,t){let r,o=a.from(t,a.M);if(Array.isArray(e)){if(e.length>1){for(let t=1;t<=40;t++)if(function(e,t){let n=0;return e.forEach(function(e){let r=c(e.mode,t);n+=r+e.getBitsLength()}),n}(e,t)<=n.getCapacity(t,o,s.MIXED))return t;return}if(0===e.length)return 1;r=e[0]}else r=e;return function(e,t,r){for(let o=1;o<=40;o++)if(t<=n.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},n.getEncodedBits=function(e){if(!l.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-i>=0;)t^=7973<<r.getBCHDigit(t)-i;return e<<12|t}},546103,(e,t,n)=>{let r=e.r(628151),o=r.getBCHDigit(1335);n.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return(n<<10|a)^21522}},938983,(e,t,n)=>{let r=e.r(310413);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},t.exports=o},488440,(e,t,n)=>{let r=e.r(310413),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},t.exports=a},120648,(e,t,n)=>{let r=e.r(310413);function o(e){this.mode=r.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=o},416133,(e,t,n)=>{let r=e.r(310413),o=e.r(628151);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},t.exports=a},745759,(e,t,n)=>{"use strict";var r={single_source_shortest_paths:function(e,t,n){var o,a,s,l,i,c,d,u={},_={};_[t]=0;var m=r.PriorityQueue.make();for(m.push(t,0);!m.empty();)for(s in a=(o=m.pop()).value,l=o.cost,i=e[a]||{})i.hasOwnProperty(s)&&(c=l+i[s],d=_[s],(void 0===_[s]||d>c)&&(_[s]=c,m.push(s,c),u[s]=a));if(void 0!==n&&void 0===_[n])throw Error("Could not find a path from "+t+" to "+n+".");return u},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var o=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,o={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(o[t]=n[t]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=r},658931,(e,t,n)=>{let r=e.r(310413),o=e.r(938983),a=e.r(488440),s=e.r(120648),l=e.r(416133),i=e.r(214477),c=e.r(628151),d=e.r(745759);function u(e){return unescape(encodeURIComponent(e)).length}function _(e,t,n){let r,o=[];for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function m(e){let t,n,o=_(i.NUMERIC,r.NUMERIC,e),a=_(i.ALPHANUMERIC,r.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=_(i.BYTE,r.BYTE,e),n=_(i.KANJI,r.KANJI,e)):(t=_(i.BYTE_KANJI,r.BYTE,e),n=[]),o.concat(a,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return l.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function p(e,t){let n,i=r.getBestModeForData(e);
vendor: 8,328 bytes, line 1
1if((n=r.from(t,i))!==r.BYTE&&n.bit<i.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(i));switch(n===r.KANJI&&!c.isKanjiModeEnabled()&&(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new l(e);case r.BYTE:return new s(e)}}n.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},n.fromString=function(e,t){let o=function(e,t){let n={},o={start:{}},a=["start"];for(let s=0;s<e.length;s++){let l=e[s],i=[];for(let e=0;e<l.length;e++){let c=l[e],d=""+s+e;i.push(d),n[d]={node:c,lastCount:0},o[d]={};for(let e=0;e<a.length;e++){let s=a[e];n[s]&&n[s].node.mode===c.mode?(o[s][d]=h(n[s].lastCount+c.length,c.mode)-h(n[s].lastCount,c.mode),n[s].lastCount+=c.length):(n[s]&&(n[s].lastCount=c.length),o[s][d]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=i}for(let e=0;e<a.length;e++)o[a[e]].end=0;return{map:o,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:u(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:u(o.data)}])}}return t}(m(e,c.isKanjiModeEnabled())),t),a=d.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return n.fromArray(s.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},n.rawSplit=function(e){return n.fromArray(m(e,c.isKanjiModeEnabled()))}},364367,(e,t,n)=>{let r=e.r(628151),o=e.r(731351),a=e.r(299931),s=e.r(762091),l=e.r(271112),i=e.r(853658),c=e.r(546711),d=e.r(105693),u=e.r(701763),_=e.r(725510),m=e.r(546103),h=e.r(310413),p=e.r(658931);function g(e,t,n){let r,o,a=e.size,s=m.getEncodedBits(t,n);for(r=0;r<15;r++)o=(s>>r&1)==1,r<6?e.set(r,8,o,!0):r<8?e.set(r+1,8,o,!0):e.set(a-15+r,8,o,!0),r<8?e.set(8,a-r-1,o,!0):r<9?e.set(8,15-r-1+1,o,!0):e.set(8,15-r-1,o,!0);e.set(a-8,8,1,!0)}n.create=function(e,t){let n,m;if(void 0===e||""===e)throw Error("No input text");let f=o.M;return void 0!==t&&(f=o.from(t.errorCorrectionLevel,o.M),n=_.from(t.version),m=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,o){let m;if(Array.isArray(e))m=p.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=p.rawSplit(e);r=_.getBestVersionForData(t,n)}m=p.fromString(e,r||40)}else throw Error("Invalid data");let f=_.getBestVersionForData(m,n);if(!f)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<f)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+f+".\n")}else t=f;let y=function(e,t,n){let o=new a;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)});let s=(r.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t))*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);let l=(s-o.getLengthInBits())/8;for(let e=0;e<l;e++)o.put(e%2?17:236,8);return function(e,t,n){let o,a,s=r.getSymbolTotalCodewords(t),l=s-d.getTotalCodewordsCount(t,n),i=d.getBlocksCount(t,n),c=s%i,_=i-c,m=Math.floor(s/i),h=Math.floor(l/i),p=h+1,g=m-h,f=new u(g),y=0,b=Array(i),w=Array(i),x=0,v=new Uint8Array(e.buffer);for(let e=0;e<i;e++){let t=e<_?h:p;b[e]=v.slice(y,y+t),w[e]=f.encode(b[e]),y+=t,x=Math.max(x,t)}let k=new Uint8Array(s),C=0;for(o=0;o<x;o++)for(a=0;a<i;a++)o<b[a].length&&(k[C++]=b[a][o]);for(o=0;o<g;o++)for(a=0;a<i;a++)k[C++]=w[a][o];return k}(o,e,t)}(t,n,m),b=new s(r.getSymbolSize(t));!function(e,t){let n=e.size,r=i.getPositions(t);for(let t=0;t<r.length;t++){let o=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1)&&!(n<=o+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,a+r,!0,!0):e.set(o+t,a+r,!1,!0))}}(b,t);let w=b.size;for(let e=8;e<w-8;e++){let t=e%2==0;b.set(e,6,t,!0),b.set(6,e,t,!0)}return!function(e,t){let n=l.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(b,t),g(b,n,0),t>=7&&function(e,t){let n,r,o,a=e.size,s=_.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+a-8-3,o=(s>>t&1)==1,e.set(n,r,o,!0),e.set(r,n,o,!0)}(b,t),!function(e,t){let n=e.size,r=-1,o=n-1,a=7,s=0;for(let l=n-1;l>0;l-=2)for(6===l&&l--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,l-n)){let r=!1;s<t.length&&(r=(t[s]>>>a&1)==1),e.set(o,l-n,r),-1==--a&&(s++,a=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(b,y),isNaN(o)&&(o=c.getBestMask(b,g.bind(null,b,n))),c.applyMask(o,b),g(b,n,o),{modules:b,version:t,errorCorrectionLevel:n,maskPattern:o,segments:m}}(e,n,f,m)}},283195,(e,t,n)=>{function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}n.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},n.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},n.getImageWidth=function(e,t){let r=n.getScale(e,t);return Math.floor((e+2*t.margin)*r)},n.qrToImageData=function(e,t,r){let o=t.modules.size,a=t.modules.data,s=n.getScale(o,r),l=Math.floor((o+2*r.margin)*s),i=r.margin*s,c=[r.color.light,r.color.dark];for(let t=0;t<l;t++)for(let n=0;n<l;n++){let d=(t*l+n)*4,u=r.color.light;t>=i&&n>=i&&t<l-i&&n<l-i&&(u=c[+!!a[Math.floor((t-i)/s)*o+Math.floor((n-i)/s)]]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}},61494,(e,t,n)=>{let r=e.r(283195);n.render=function(e,t,n){var o;let a=n,s=t;void 0!==a||t&&t.getContext||(a=t,t=void 0),t||(s=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),a=r.getOptions(a);let l=r.getImageWidth(e.modules.size,a),i=s.getContext("2d"),c=i.createImageData(l,l);return r.qrToImageData(c.data,e,a),o=s,i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=l,o.width=l,o.style.height=l+"px",o.style.width=l+"px",i.putImageData(c,0,0),s},n.renderToDataURL=function(e,t,r){let o=r;void 0!==o||t&&t.getContext||(o=t,t=void 0),o||(o={});let a=n.render(e,t,o),s=o.type||"image/png",l=o.rendererOpts||{};return a.toDataURL(s,l.quality)}},3442,(e,t,n)=>{let r=e.r(283195);function o(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}n.render=function(e,t,n){let s=r.getOptions(t),l=e.modules.size,i=e.modules.data,c=l+2*s.margin,d=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,s=!1,l=0;for(let i=0;i<e.length;i++){let c=Math.floor(i%t),d=Math.floor(i/t);c||s||(s=!0),e[i]?(l++,i>0&&c>0&&e[i-1]||(r+=s?a("M",c+n,.5+d+n):a("m",o,0),o=0,s=!1),c+1<t&&e[i+1]||(r+=a("h",l),l=0)):o++}return r}(i,l,s.margin)+'"/>',_='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+('viewBox="0 0 '+c+" ")+c+'" shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof n&&n(null,_),_}},698870,(e,t,n)=>{let r=e.r(530689),o=e.r(364367),a=e.r(61494),s=e.r(3442);function l(e,t,n,a,s){let l=[].slice.call(arguments,1),i=l.length,c="function"==typeof l[i-1];if(!c&&!r())throw Error("Callback required as last argument");
1if(c){if(i<2)throw Error("Too few arguments provided");2===i?(s=n,n=t,t=a=void 0):3===i&&(t.getContext&&void 0===s?(s=a,a=void 0):(s=a,a=n,n=t,t=void 0))}else{if(i<1)throw Error("Too few arguments provided");return 1===i?(n=t,t=a=void 0):2!==i||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,s){try{let s=o.create(n,a);r(e(s,t,a))}catch(e){s(e)}})}try{let r=o.create(n,a);s(null,e(r,t,a))}catch(e){s(e)}}n.create=o.create,n.toCanvas=l.bind(null,a.render),n.toDataURL=l.bind(null,a.renderToDataURL),n.toString=l.bind(null,function(e,t,n){return s.render(e,n)})},610482,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,o="~";function a(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,r,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var l=new s(n,r||e,a),i=o?o+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],l]:e._events[i].push(l):(e._events[i]=l,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function c(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,a=n.length,s=Array(a);r<a;r++)s[r]=n[r].fn;return s},c.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,a,s){var l=o?o+e:e;if(!this._events[l])return!1;var i,c,d=this._events[l],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,r),!0;case 5:return d.fn.call(d.context,t,n,r,a),!0;case 6:return d.fn.call(d.context,t,n,r,a,s),!0}for(c=1,i=Array(u-1);c<u;c++)i[c-1]=arguments[c];d.fn.apply(d.context,i)}else{var _,m=d.length;for(c=0;c<m;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,r);break;default:if(!i)for(_=1,i=Array(u-1);_<u;_++)i[_-1]=arguments[_];d[c].fn.apply(d[c].context,i)}}return!0},c.prototype.on=function(e,t,n){return l(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return l(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],d=s.length;l<d;l++)(s[l].fn!==t||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&i(this,t)):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=o,c.EventEmitter=c,t.exports=c},208232,e=>{"use strict";let t,n,r,o;e.i(969621);var a,s,l,i,c,d,u,_,m,h,p,g,f,y,b,w,x,v,k,C,E,S,I,N,j,L=e.i(332080);(a=i||(i={})).Mainnet="mainnet-beta",a.Testnet="testnet",a.Devnet="devnet";var T=e.i(436683),A=e.i(740702);function M(e){return"version"in e}class P extends T.BaseWalletAdapter{async sendTransaction(e,t,n={}){let r=!0;try{if(M(e)){if(!this.supportedTransactionVersions)throw new A.WalletSendTransactionError("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new A.WalletSendTransactionError(`Sending transaction version ${e.version} isn't supported by this wallet`);try{let r=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(r,n)}catch(e){if(e instanceof A.WalletSignTransactionError)throw r=!1,e;throw new A.WalletSendTransactionError(e?.message,e)}}try{let{signers:r,...o}=n;e=await this.prepareTransaction(e,t,o),r?.length&&e.partialSign(...r);let a=(e=await this.signTransaction(e)).serialize();return await t.sendRawTransaction(a,o)}catch(e){if(e instanceof A.WalletSignTransactionError)throw r=!1,e;throw new A.WalletSendTransactionError(e?.message,e)}}
1catch(e){throw r&&this.emit("error",e),e}}async signAllTransactions(e){for(let t of e)if(M(t)){if(!this.supportedTransactionVersions)throw new A.WalletSignTransactionError("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new A.WalletSignTransactionError(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let n of e)t.push(await this.signTransaction(n));return t}}class z extends P{}class R extends z{}var O=e.i(250564);class W extends z{constructor(e={}){super(),this.name="Coinbase Wallet",this.url="https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",this.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSI1MTIiIHI9IjUxMiIgZmlsbD0iIzAwNTJGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1MiA1MTJDMTUyIDcxMC44MjMgMzEzLjE3NyA4NzIgNTEyIDg3MkM3MTAuODIzIDg3MiA4NzIgNzEwLjgyMyA4NzIgNTEyQzg3MiAzMTMuMTc3IDcxMC44MjMgMTUyIDUxMiAxNTJDMzEzLjE3NyAxNTIgMTUyIDMxMy4xNzcgMTUyIDUxMlpNNDIwIDM5NkM0MDYuNzQ1IDM5NiAzOTYgNDA2Ljc0NSAzOTYgNDIwVjYwNEMzOTYgNjE3LjI1NSA0MDYuNzQ1IDYyOCA0MjAgNjI4SDYwNEM2MTcuMjU1IDYyOCA2MjggNjE3LjI1NSA2MjggNjA0VjQyMEM2MjggNDA2Ljc0NSA2MTcuMjU1IDM5NiA2MDQgMzk2SDQyMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="u"<typeof window||"u"<typeof document?T.WalletReadyState.Unsupported:T.WalletReadyState.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new A.WalletDisconnectedError),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==T.WalletReadyState.Unsupported&&(0,T.scopePollingDetectionStrategy)(()=>!!window?.coinbaseSolana&&(this._readyState=T.WalletReadyState.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async connect(){try{let e;if(this.connected||this.connecting)return;if(this._readyState!==T.WalletReadyState.Installed)throw new A.WalletNotReadyError;this._connecting=!0;let t=window.coinbaseSolana;try{await t.connect()}catch(e){throw new A.WalletConnectionError(e?.message,e)}if(!t.publicKey)throw new A.WalletAccountError;try{e=new O.PublicKey(t.publicKey.toBytes())}catch(e){throw new A.WalletPublicKeyError(e?.message,e)}t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new A.WalletDisconnectionError(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,n={}){try{let r=this._wallet;if(!r)throw new A.WalletNotConnectedError;try{let{signers:o,...a}=n;M(e)?o?.length&&e.sign(o):(e=await this.prepareTransaction(e,t,a),o?.length&&e.partialSign(...o)),a.preflightCommitment=a.preflightCommitment||t.commitment;let{signature:s}=await r.signAndSendTransaction(e,a);return s}catch(e){if(e instanceof A.WalletError)throw e;throw new A.WalletSendTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new A.WalletNotConnectedError;try{return await t.signTransaction(e)||e}catch(e){throw new A.WalletSignTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new A.WalletNotConnectedError;try{return await t.signAllTransactions(e)||e}catch(e){throw new A.WalletSignTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new A.WalletNotConnectedError;try{let{signature:n}=await t.signMessage(e);return n}catch(e){throw new A.WalletSignTransactionError(e?.message,e)}}
1catch(e){throw this.emit("error",e),e}}}var B=e.i(121015);e.i(347347);var D=e.i(78564);function Y(e){return(0x80000000|e)>>>0}async function U(e,t){let n=await H(e,5,0,t);return new O.PublicKey(n)}async function F(e,t,n){let r=B.Buffer.alloc(1);r.writeUInt8(1,0);let o=M(t)?t.message.serialize():t.serializeMessage(),a=B.Buffer.concat([r,n,o]);return await H(e,6,1,a)}async function H(e,t,n,r){let o=0,a=0;if(r.length>255)for(;r.length-a>255;){let s=r.slice(a,a+255);if(2!==(await e.send(224,t,n,2|o,s)).length)throw new D.TransportStatusError(D.StatusCodes.INCORRECT_DATA);o|=1,a+=255}let s=r.slice(a),l=await e.send(224,t,n,o,s);return l.slice(0,l.length-2)}class Q extends P{constructor(e={}){super(),this.name="Ledger",this.url="https://ledger.com",this.icon="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0ibTIzLjU4OCAwaC0xNnYyMS41ODNoMjEuNnYtMTZhNS41ODUgNS41ODUgMCAwIDAgLTUuNi01LjU4M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5KSIvPjxwYXRoIGQ9Im04LjM0MiAwaC0yLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCAtNS41ODUgNS41ODV2Mi43NTdoOC4zNDJ6Ii8+PHBhdGggZD0ibTAgNy41OWg4LjM0MnY4LjM0MmgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUuNzM5KSIvPjxwYXRoIGQ9Im0xNS4xOCAyMy40NTFoMi43NTdhNS41ODUgNS41ODUgMCAwIDAgNS41ODUtNS42di0yLjY3MWgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS40NzggMTEuNDc4KSIvPjxwYXRoIGQ9Im03LjU5IDE1LjE4aDguMzQydjguMzQyaC04LjM0MnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5IDExLjQ3OCkiLz48cGF0aCBkPSJtMCAxNS4xOHYyLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCA1LjU4NSA1LjU4NWgyLjc1N3YtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDExLjQ3OCkiLz48L2c+PC9zdmc+",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="u">typeof window&&"u">typeof document&&"u">typeof navigator&&navigator.hid?T.WalletReadyState.Loadable:T.WalletReadyState.Unsupported,this._disconnected=()=>{let e=this._transport;e&&(e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null,this.emit("error",new A.WalletDisconnectedError),this.emit("disconnect"))},this._derivationPath=e.derivationPath||function(){let e=B.Buffer.alloc(17),t=e.writeUInt8(4,0);return t=e.writeUInt32BE(Y(44),t),t=e.writeUInt32BE(Y(501),t),t=e.writeUInt32BE(Y(0),t),e.writeUInt32BE(Y(0),t),e}(),this._connecting=!1,this._transport=null,this._publicKey=null}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async connect(){try{let t,n,r;if(this.connected||this.connecting)return;if(this._readyState!==T.WalletReadyState.Loadable)throw new A.WalletNotReadyError;this._connecting=!0;try{t=(await e.A(180101)).default}catch(e){throw new A.WalletLoadError(e?.message,e)}try{n=await t.create()}catch(e){throw new A.WalletConnectionError(e?.message,e)}try{r=await U(n,this._derivationPath)}catch(e){throw new A.WalletPublicKeyError(e?.message,e)}n.on("disconnect",this._disconnected),this._transport=n,this._publicKey=r,this.emit("connect",r)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._transport;if(e){e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null;try{await e.close()}catch(e){this.emit("error",new A.WalletDisconnectionError(e?.message,e))}}this.emit("disconnect")}async signTransaction(e){try{let t=this._transport,n=this._publicKey;if(!t||!n)throw new A.WalletNotConnectedError;try{let r=await F(t,e,this._derivationPath);e.addSignature(n,r)}catch(e){throw new A.WalletSignTransactionError(e?.message,e)}return e}catch(e){throw this.emit("error",e),e}}}var K=e.i(607564);let V=(0,K.createContext)({}),X=({children:e,endpoint:t,config:n={commitment:"confirmed"}})=>{let r=(0,K.useMemo)(()=>new O.Connection(t,n),[t,n]);return K.default.createElement(V.Provider,{value:{connection:r}},e)};var Z=e.i(307774);let J="solana:signIn",q="solana:signMessage",G="solana:signAndSendTransaction",$="solana:signTransaction",ee="standard:events",et="standard:connect",en="standard:disconnect";e.i(698870);RegExp("^(?<domain>[^\\n]+?) wants you to sign in with your Solana account:\\n(?<address>[^\\n]+)(?:\\n|$)(?:\\n(?<statement>[\\S\\s]*?)(?:\\n|$))??(?:\\nURI: (?<uri>[^\\n]+))?(?:\\nVersion: (?<version>[^\\n]+))?(?:\\nChain ID: (?<chainId>[^\\n]+))?(?:\\nNonce: (?<nonce>[^\\n]+))?(?:\\nIssued At: (?<issuedAt>[^\\n]+))?(?:\\nExpiration Time: (?<expirationTime>[^\\n]+))?(?:\\nNot Before: (?<notBefore>[^\\n]+))?(?:\\nRequest ID: (?<requestId>[^\\n]+))?(?:\\nResources:(?<resources>(?:\\n- [^\\n]+)*))?\\n*$");let er="ERROR_FORBIDDEN_WALLET_BASE_URL",eo="ERROR_SESSION_CLOSED",ea="ERROR_LOOPBACK_ACCESS_BLOCKED",es="ERROR_ASSOCIATION_CANCELLED";
1class el extends Error{data;code;constructor(...e){const[t,n,r]=e;super(n),this.code=t,this.data=r,this.name="SolanaMobileWalletAdapterError"}}class ei extends Error{data;code;jsonRpcMessageId;constructor(...e){const[t,n,r,o]=e;super(r),this.code=n,this.data=o,this.jsonRpcMessageId=t,this.name="SolanaMobileWalletAdapterProtocolError"}}function ec(e,t){let n=window.btoa(String.fromCharCode.call(null,...e));return t?n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):n}function ed(e){return new Uint8Array(window.atob(e).split("").map(e=>e.charCodeAt(0)))}async function eu(e,t){let n=await crypto.subtle.exportKey("raw",e),r=await crypto.subtle.sign({hash:"SHA-256",name:"ECDSA"},t,n),o=new Uint8Array(n.byteLength+r.byteLength);return o.set(new Uint8Array(n),0),o.set(new Uint8Array(r),n.byteLength),o}let e_="solana:cloneAuthorization";async function em(e,t,n){var r,o,a,s;let l=e.domain??window.location.host,i=t.accounts[0].address,c=(s=function(e){let t=`${e.domain} wants you to sign in with your Solana account:
2`;t+=`${e.address}`,e.statement&&(t+=`
3
4${e.statement}`);let n=[];if(e.uri&&n.push(`URI: ${e.uri}`),e.version&&n.push(`Version: ${e.version}`),e.chainId&&n.push(`Chain ID: ${e.chainId}`),e.nonce&&n.push(`Nonce: ${e.nonce}`),e.issuedAt&&n.push(`Issued At: ${e.issuedAt}`),e.expirationTime&&n.push(`Expiration Time: ${e.expirationTime}`),e.notBefore&&n.push(`Not Before: ${e.notBefore}`),e.requestId&&n.push(`Request ID: ${e.requestId}`),e.resources)for(let t of(n.push("Resources:"),e.resources))n.push(`- ${t}`);return n.length&&(t+=`
5
6${n.join("\n")}`),t}({...e,domain:l,address:(r=ed(i),(o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Object.freeze({...a={read(e,t){let n=0===t?e:e.slice(t);if(0===n.length)return["",0];let r=n.findIndex(e=>0!==e);r=-1===r?n.length:r;let a=o[0].repeat(r);return r===n.length?[a,e.length]:[a+function(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}(n.slice(r).reduce((e,t)=>256n*e+BigInt(t),0n),o),e.length]}},decode:(e,t=0)=>a.read(e,t)[0]})).decode(r))}),window.btoa(s)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),d=ed((await n("sign_messages",{addresses:[i],payloads:[c]})).signed_payloads[0]),u=ec(d.slice(0,d.length-64)),_=ec(d.slice(d.length-64));return{address:i,signed_message:0==u.length?c:u,signature:_}}async function eh(e,t,n){let r=function(e){if(e>=0x100000000)throw Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),new Uint8Array(t)}(t),o=new Uint8Array(12);crypto.getRandomValues(o);let a=await crypto.subtle.encrypt(eg(r,o),n,new TextEncoder().encode(e)),s=new Uint8Array(r.byteLength+o.byteLength+a.byteLength);return s.set(new Uint8Array(r),0),s.set(new Uint8Array(o),r.byteLength),s.set(new Uint8Array(a),r.byteLength+o.byteLength),s}async function ep(e,n){let r=e.slice(0,4),o=e.slice(4,16),a=e.slice(16),s=await crypto.subtle.decrypt(eg(r,o),n,a);return(void 0===t&&(t=new TextDecoder("utf-8")),t).decode(s)}function eg(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}async function ef(){return await crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])}async function ey(){return await crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])}function eb(e){if(e<49152||e>65535)throw new el("ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",`Association port number must be between 49152 and 65535. ${e} given.`,{port:e});return e}function ew(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}async function ex(e,t,n,r=["v1"]){let o=eb(t),a=function(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e++)t+=String.fromCharCode(n[e]);return window.btoa(t)}(await crypto.subtle.exportKey("raw",e)),s=function(e,t){let n=null;if(t){try{n=new URL(t)}catch{}if(n?.protocol!=="https:")throw new el(er,"Base URLs supplied by wallets must be valid `https` URLs")}return n||=new URL("solana-wallet:/"),new URL(e.startsWith("/")?e:[...ew(n.pathname),...ew(e)].join("/"),n)}("v1/associate/local",n);return s.searchParams.set("association",a.replace(/[/+=]/g,e=>({"/":"_","+":"-","=":"."})[e])),s.searchParams.set("port",`${o}
6`),r.forEach(e=>{s.searchParams.set("v",e)}),s}async function ev(e,t){return eh(JSON.stringify(e),e.id,t)}async function ek(e,t){let n=JSON.parse(await ep(e,t));if(Object.hasOwnProperty.call(n,"error"))throw new ei(n.id,n.error.code,n.error.message);return n}async function eC(e,t,n){let[r,o]=await Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e.slice(0,65),{name:"ECDH",namedCurve:"P-256"},!1,[])]),a=await crypto.subtle.deriveBits({name:"ECDH",public:o},n,256),s=await crypto.subtle.importKey("raw",a,"HKDF",!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(r),info:new Uint8Array},s,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"])}async function eE(e,t){let n=JSON.parse(await ep(e,t)),r="legacy";if(Object.hasOwnProperty.call(n,"v"))switch(n.v){case 1:case"1":case"v1":r="v1";break;case"legacy":r="legacy";break;default:throw new el("ERROR_INVALID_PROTOCOL_VERSION",`Unknown/unsupported protocol version: ${n.v}`)}return{protocol_version:r}}let eS=null;async function eI(e){if("https:"===e.protocol)window.location.assign(e);else try{switch(1*(-1===navigator.userAgent.indexOf("Firefox/"))){case 0:null==eS&&((eS=document.createElement("iframe")).style.display="none",document.body.appendChild(eS)),eS.contentWindow.location.href=e.toString();break;case 1:{let t=new Promise((e,t)=>{function n(){clearTimeout(o),window.removeEventListener("blur",r)}function r(){n(),e()}window.addEventListener("blur",r);let o=setTimeout(()=>{n(),t()},3e3)});window.location.assign(e),await t}}}catch(e){throw new el("ERROR_WALLET_NOT_FOUND","Found no installed wallet that supports the mobile wallet protocol.")}}async function eN(e,t){let n=eb(49152+Math.floor(16384*Math.random())),r=await ex(e,n,t);return await eI(r),n}let ej=[150,150,200,500,500,750,750,1e3];function eL(e){return new DataView(e).getUint32(0,!1)}async function eT(e){let t,n,r,o;if("u"<typeof window||!0!==window.isSecureContext)throw new el("ERROR_SECURE_CONTEXT_REQUIRED","The mobile wallet adapter protocol must be used in a secure context (`https`).");let a=await ef(),s=await eN(a.publicKey,e?.baseUri),l=`ws://localhost:${s}/solana-wallet`,i=(o=[...ej],()=>o.length>1?o.shift():o[0]),c=1,d=0,u={__type:"disconnected"},_=!1;return{close:()=>{n.close(),r()},wallet:new Promise((e,o)=>{let s,m,h={},p=async()=>{if("connecting"!==u.__type)return void console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${u.__type}\`.`);n.removeEventListener("open",p);let{associationKeypair:e}=u,t=await ey();n.send(await eu(t.publicKey,e.privateKey)),u={__type:"hello_req_sent",associationPublicKey:e.publicKey,ecdhPrivateKey:t.privateKey}},g=e=>{e.wasClean?u={__type:"disconnected"}:o(new el(eo,`The wallet session dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),s()},f=async e=>{s(),Date.now()-t>=3e4?o(new el("ERROR_SESSION_TIMEOUT",`Failed to connect to the wallet websocket at ${l}.`)):(await new Promise(e=>{let t=i();m=window.setTimeout(e,t)}),b())},y=async t=>{let r=await t.data.arrayBuffer();switch(u.__type){case"connecting":if(0!==r.byteLength)throw Error("Encountered unexpected message while connecting");let s=await ey();n.send(await eu(s.publicKey,a.privateKey)),u={__type:"hello_req_sent",associationPublicKey:a.publicKey,ecdhPrivateKey:s.privateKey};break;case"connected":try{let e=r.slice(0,4),t=eL(e);if(t!==d+1)throw Error("Encrypted message has invalid sequence number");d=t;let n=await ek(r,u.sharedSecret),o=h[n.id];delete h[n.id],o.resolve(n.result)}catch(e){if(e instanceof ei){let t=h[e.jsonRpcMessageId];delete h[e.jsonRpcMessageId],t.reject(e)}else throw e}break;case"hello_req_sent":{var l,i;if(0===r.byteLength){let e=await ey();n.send(await eu(e.publicKey,a.privateKey)),u={__type:"hello_req_sent",associationPublicKey:a.publicKey,ecdhPrivateKey:e.privateKey};break}let t=await eC(r,u.associationPublicKey,u.ecdhPrivateKey),s=r.slice(65),m=0!==s.byteLength?await (async()=>{let e=eL(s.slice(0,4));if(e!==d+1)throw Error("Encrypted message has invalid sequence number");return d=e,eE(s,t)})():{protocol_version:"legacy"};u={__type:"connected",sharedSecret:t,sessionProperties:m};let p=(l=m.protocol_version,i=async(e,r)=>{let o=c++;return n.send(await ev({id:o,jsonrpc:"2.0",method:e,params:r??{}},t)),new Promise((t,n)=>{h[o]={resolve(r){switch(e){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=r;if(null!=e)try{let t;try{t=new URL(e)}catch{throw new el(er,"Invalid base URL supplied by wallet")}if("https:"!==t.protocol)throw new el(er,"Base URLs supplied by wallets must be valid `https` URLs")}catch(e){n(e);return}}}t(r)},reject:n}})},new Proxy({},{get:(e,t)=>"then"===t?null:(null==e[t]&&(e[t]=async function(e){let{method:n,params:r}=function(e,t,n){let r=t,o=e.toString().replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).toLowerCase();switch(e){case"authorize":{let{chain:e}=r;
6if("legacy"===n){switch(e){case"solana:testnet":e="testnet";break;case"solana:devnet":e="devnet";break;case"solana:mainnet":e="mainnet-beta";break;default:e=r.cluster}r.cluster=e}else{switch(e){case"testnet":case"devnet":e=`solana:${e}`;break;case"mainnet-beta":e="solana:mainnet"}r.chain=e}}case"reauthorize":{let{auth_token:e,identity:t}=r;e&&("legacy"===n?(o="reauthorize",r={auth_token:e,identity:t}):o="authorize")}}return{method:o,params:r}}(t,e,l),o=await i(n,r);return"authorize"===n&&r.sign_in_payload&&!o.sign_in_result&&(o.sign_in_result=await em(r.sign_in_payload,o,i)),function(e,t,n){if("getCapabilities"===e)switch(n){case"legacy":{let e=["solana:signTransactions"];return!0===t.supports_clone_authorization&&e.push(e_),{...t,features:e}}case"v1":return{...t,supports_sign_and_send_transactions:!0,supports_clone_authorization:t.features.includes(e_)}}return t}(t,o,l)}),e[t]),defineProperty:()=>!1,deleteProperty:()=>!1}));_=!0;try{e(p)}catch(e){o(e)}}}};r=()=>{n.removeEventListener("message",y),s(),_||o(new el(eo,"The wallet session was closed before connection.",{closeEvent:new CloseEvent("socket was closed before connection")}))};let b=()=>{s&&s(),u={__type:"connecting",associationKeypair:a},void 0===t&&(t=Date.now()),(n=new WebSocket(l,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",p),n.addEventListener("close",g),n.addEventListener("error",f),n.addEventListener("message",y),s=()=>{window.clearTimeout(m),n.removeEventListener("open",p),n.removeEventListener("close",g),n.removeEventListener("error",f),n.removeEventListener("message",y)}};b()})}}let eA="standard:events",eM="standard:connect";var eP=e.i(344048);Event,new WeakMap;let ez="solana:mainnet",eR=`
7<div class="mobile-wallet-adapter-embedded-loading-indicator" role="dialog" aria-modal="true" aria-labelledby="modal-title">
8    <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div>
9    <div class="mobile-wallet-adapter-embedded-loading-container">
10        <div class="mobile-wallet-adapter-embedded-loading-animation"></div>
11    </div>
12</div>
13`,eO=`
14.mobile-wallet-adapter-embedded-loading-indicator {
15    display: flex; /* Use flexbox to center content */
16    justify-content: center; /* Center horizontally */
17    align-items: start; /* Center vertically */
18    position: fixed; /* Stay in place */
19    z-index: 1; /* Sit on top */
20    left: 0;
21    top: 0;
22    width: 100%; /* Full width */
23    height: 100%; /* Full height */
24    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
25    overflow-y: auto; /* enable scrolling */
26}
27
28.mobile-wallet-adapter-embedded-loading-container {
29    display: flex;
30    margin: auto;
31}
32
33.mobile-wallet-adapter-embedded-loading-animation {
34    position: relative;
35    left: -9999px;
36    width: 10px;
37    height: 10px;
38    border-radius: 5px;
39    background-color: var(--spinner-color);
40    color: var(--spinner-color);
41    box-shadow: 9984px 0 0 0 var(--spinner-color), 
42                9999px 0 0 0 var(--spinner-color), 
43                10014px 0 0 0 var(--spinner-color);
44    animation: dot-typing 1.5s infinite linear;
45}
46
47@keyframes dot-typing {
48    0% {
49        box-shadow: 9984px 0 0 0 var(--spinner-color), 
50                    9999px 0 0 0 var(--spinner-color), 
51                    10014px 0 0 0 var(--spinner-color);
52    }
53    16.667% {
54        box-shadow: 9984px -10px 0 0 var(--spinner-color), 
55                    9999px 0 0 0 var(--spinner-color), 
56                    10014px 0 0 0 var(--spinner-color);
57    }
58    33.333% {
59        box-shadow: 9984px 0 0 0 var(--spinner-color), 
60                    9999px 0 0 0 var(--spinner-color), 
61                    10014px 0 0 0 var(--spinner-color);
62    }
63    50% {
64        box-shadow: 9984px 0 0 0 var(--spinner-color), 
65                    9999px -10px 0 0 var(--spinner-color), 
66                    10014px 0 0 0 var(--spinner-color);
67    }
68    66.667% {
69        box-shadow: 9984px 0 0 0 var(--spinner-color), 
70                    9999px 0 0 0 var(--spinner-color), 
71                    10014px 0 0 0 var(--spinner-color);
72    }
73    83.333% {
74        box-shadow: 9984px 0 0 0 var(--spinner-color), 
75                    9999px 0 0 0 var(--spinner-color), 
76                    10014px -10px 0 0 var(--spinner-color);
77    }
78    100% {
79        box-shadow: 9984px 0 0 0 var(--spinner-color), 
80                    9999px 0 0 0 var(--spinner-color), 
81                    10014px 0 0 0 var(--spinner-color);
82    }
83}
84`;class eW{#e=null;#t={};#n=!1;dom=null;constructor(){this.init=this.init.bind(this),this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui")}
84async init(){console.log("Injecting modal"),this.#r()}open=()=>{console.debug("Modal open"),this.#o(),this.#e&&(this.#e.style.display="flex")};close=e=>{console.debug("Modal close"),this.#a(),this.#e&&(this.#e.style.display="none"),this.#t.close?.forEach(t=>t(e))};addEventListener(e,t){return this.#t[e]?.push(t)||(this.#t[e]=[t]),()=>this.removeEventListener(e,t)}removeEventListener(e,t){this.#t[e]=this.#t[e]?.filter(e=>t!==e)}#r(){if(this.dom)return;this.#e=document.createElement("div"),this.#e.id="mobile-wallet-adapter-embedded-root-ui",this.#e.innerHTML=eR,this.#e.style.display="none";let e=document.createElement("style");e.id="mobile-wallet-adapter-embedded-modal-styles",e.textContent=eO;let t=document.createElement("div");this.dom=t.attachShadow({mode:"closed"}),t.style.setProperty("--spinner-color","#FFFFFF"),this.dom.appendChild(e),this.dom.appendChild(this.#e),document.body.appendChild(t)}#o(){!this.#e||this.#n||([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.addEventListener("click",e=>{this.close(e)})),window.addEventListener("load",this.close),document.addEventListener("keydown",this.#s),this.#n=!0)}#a(){!this.#n||(window.removeEventListener("load",this.close),document.removeEventListener("keydown",this.#s),this.#e&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.removeEventListener("click",this.close)),this.#n=!1))}#s=e=>{"Escape"===e.key&&this.close(e)}}let eB=`
85<div class="mobile-wallet-adapter-embedded-modal-container" role="dialog" aria-modal="true" aria-labelledby="modal-title">
86    <div data-modal-close style="position: absolute; width: 100%; height: 100%;"></div>
87	<div class="mobile-wallet-adapter-embedded-modal-card">
88		<div>
89			<button data-modal-close class="mobile-wallet-adapter-embedded-modal-close">
90				<svg width="14" height="14">
91					<path d="M 6.7125,8.3036995 1.9082,13.108199 c -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 C 0.1056,12.896899 0,12.631699 0,12.312499 c 0,-0.3192 0.1056,-0.5844 0.3167,-0.7958 L 5.1212,6.7124995 0.3167,1.9082 C 0.1056,1.6969 0,1.4317 0,1.1125 0,0.7933 0.1056,0.5281 0.3167,0.3167 0.5281,0.1056 0.7933,0 1.1125,0 1.4317,0 1.6969,0.1056 1.9082,0.3167 L 6.7125,5.1212 11.5167,0.3167 C 11.7281,0.1056 11.9933,0 12.3125,0 c 0.3192,0 0.5844,0.1056 0.7957,0.3167 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 L 8.3037001,6.7124995 13.1082,11.516699 c 0.2112,0.2114 0.3168,0.4766 0.3168,0.7958 0,0.3192 -0.1056,0.5844 -0.3168,0.7957 -0.2113,0.2112 -0.4765,0.3168 -0.7957,0.3168 -0.3192,0 -0.5844,-0.1056 -0.7958,-0.3168 z" />
92				</svg>
93			</button>
94		</div>
95		<div class="mobile-wallet-adapter-embedded-modal-content"></div>
96	</div>
97</div>
98`,eD=`
99.mobile-wallet-adapter-embedded-modal-container {
100    display: flex; /* Use flexbox to center content */
101    justify-content: center; /* Center horizontally */
102    align-items: center; /* Center vertically */
103    position: fixed; /* Stay in place */
104    z-index: 1; /* Sit on top */
105    left: 0;
106    top: 0;
107    width: 100%; /* Full width */
108    height: 100%; /* Full height */
109    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
110    overflow-y: auto; /* enable scrolling */
111}
112
113.mobile-wallet-adapter-embedded-modal-card {
114    display: flex;
115    flex-direction: column;
116    margin: auto 20px;
117    max-width: 780px;
118    padding: 20px;
119    border-radius: 24px;
120    background: #ffffff;
121    font-family: "Inter Tight", "PT Sans", Calibri, sans-serif;
122    transform: translateY(-200%);
123    animation: slide-in 0.5s forwards;
124}
125
126@keyframes slide-in {
127    100% { transform: translateY(0%); }
128}
129
130.mobile-wallet-adapter-embedded-modal-close {
131    display: flex;
132    align-items: center;
133    justify-content: center;
134    width: 32px;
135    height: 32px;
136    cursor: pointer;
137    background: #e4e9e9;
138    border: none;
139    border-radius: 50%;
140}
141
142.mobile-wallet-adapter-embedded-modal-close:focus-visible {
143    outline-color: red;
144}
145
146.mobile-wallet-adapter-embedded-modal-close svg {
147    fill: #546266;
148    transition: fill 200ms ease 0s;
149}
150
151.mobile-wallet-adapter-embedded-modal-close:hover svg {
152    fill: #fff;
153}
154`,eY=`
155<link rel="preconnect" href="https://fonts.googleapis.com">
156<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
157<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
158`;class eU{#e=null;#t={};#n=!1;dom=null;constructor(){this.init=this.init.bind(this),this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui")}async init(){console.log("Injecting modal"),this.#r()}open=()=>{console.debug("Modal open"),this.#o(),this.#e&&(this.#e.style.display="flex")};close=e=>{console.debug("Modal close"),this.#a(),this.#e&&(this.#e.style.display="none"),this.#t.close?.forEach(t=>t(e))};addEventListener(e,t){return this.#t[e]?.push(t)||(this.#t[e]=[t]),()=>this.removeEventListener(e,t)}removeEventListener(e,t){this.#t[e]=this.#t[e]?.filter(e=>t!==e)}#r(){if(document.getElementById("mobile-wallet-adapter-embedded-root-ui")){this.#e||(this.#e=document.getElementById("mobile-wallet-adapter-embedded-root-ui"));return}this.#e=document.createElement("div"),this.#e.id="mobile-wallet-adapter-embedded-root-ui",this.#e.innerHTML=eB,this.#e.style.display="none";let e=this.#e.querySelector(".mobile-wallet-adapter-embedded-modal-content");e&&(e.innerHTML=this.contentHtml);let t=document.createElement("style");t.id="mobile-wallet-adapter-embedded-modal-styles",t.textContent=eD+this.contentStyles;let n=document.createElement("div");n.innerHTML=eY,this.dom=n.attachShadow({mode:"closed"}),this.dom.appendChild(t),this.dom.appendChild(this.#e),document.body.appendChild(n)}#o(){!this.#e||this.#n||([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.addEventListener("click",this.close)),window.addEventListener("load",this.close),document.addEventListener("keydown",this.#s),this.#n=!0)}#a(){!this.#n||(window.removeEventListener("load",this.close),document.removeEventListener("keydown",this.#s),this.#e&&([...this.#e.querySelectorAll("[data-modal-close]")].forEach(e=>e?.removeEventListener("click",this.close)),this.#n=!1))}#s=e=>{"Escape"===e.key&&this.close(e)}}function eF(e){return window.btoa(String.fromCharCode.call(null,...e))}function eH(e){return new Uint8Array(window.atob(e).split("").map(e=>e.charCodeAt(0)))}class eQ extends eU{contentStyles=eV;contentHtml=eK;initWithCallback(e){super.init(),this.#l(e)}#l(e){let t=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),n=async()=>{t?.removeEventListener("click",n),this.close(),e()};t?.addEventListener("click",n)}}let eK=`
159<svg class="mobile-wallet-adapter-embedded-modal-launch-icon" width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
160    <path d="M21.6 48C7.2 48 0 40.8 0 26.4V21.6C0 7.2 7.2 0 21.6 0H26.4C40.8 0 48 7.2 48 21.6V26.4C48 40.8 40.8 48 26.4 48H21.6Z" fill="#15994E"/>
161    <mask id="mask0_189_522" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
162        <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
163    </mask>
164    <g mask="url(#mask0_189_522)">
165        <mask id="mask1_189_522" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
166            <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
167        </mask>
168        <g mask="url(#mask1_189_522)">
169            <path d="M22.1092 26.1208L19.4498 23.4615C19.1736 23.1851 18.8253 23.0468 18.4048 23.0468C17.9846 23.0468 17.6363 23.1851 17.3598 23.4615C17.0836 23.7377 16.9468 24.0861 16.9495 24.5065C16.9522 24.9267 17.0916 25.275 17.3678 25.5512L21.0405 29.2238C21.3463 29.5276 21.7031 29.6795 22.1108 29.6795C22.5184 29.6795 22.8742 29.5276 23.1782 29.2238L30.5918 21.8098C30.8683 21.5336 31.0065 21.1867 31.0065 20.7692C31.0065 20.3514 30.8683 20.0044 30.5918 19.7282C30.3156 19.4517 29.9673 19.3135 29.5468 19.3135C29.1266 19.3135 28.7784 19.4517 28.5022 19.7282L22.1092 26.1208ZM23.9998 37.6042C22.113 37.6042 20.3425 37.2473 18.6885 36.5335C17.0343 35.8197 15.5954 34.8512 14.3718 33.6278C13.1485 32.4043 12.18 30.9654 11.4662 29.3112C10.7524 27.6572 10.3955 25.8867 10.3955 23.9998C10.3955 22.113 10.7524 20.3425 11.4662 18.6885C12.18 17.0343 13.1485 15.5954 14.3718 14.3718C15.5954 13.1485 17.0343 12.18 18.6885 11.4662C20.3425 10.7524 22.113 10.3955 23.9998 10.3955C25.8867 10.3955 27.6572 10.7524 29.3112 11.4662C30.9654 12.18 32.4043 13.1485 33.6278 14.3718C34.8512 15.5954 35.8197 17.0343 36.5335 18.6885C37.2473 20.3425 37.6042 22.113 37.6042 23.9998C37.6042 25.8867 37.2473 27.6572 36.5335 29.3112C35.8197 30.9654 34.8512 32.4043 33.6278 33.6278C32.4043 34.8512 30.9654 35.8197 29.3112 36.5335C27.6572 37.2473 25.8867 37.6042 23.9998 37.6042Z" fill="white"/>
170        </g>
171    </g>
172</svg>
173<div class="mobile-wallet-adapter-embedded-modal-title">Ready to connect!</div>
174<div>
175    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
176        Connect Wallet
177    </button>
178</div>
179`,eV=`
180.mobile-wallet-adapter-embedded-modal-close {
181    display: none;
182}
183.mobile-wallet-adapter-embedded-modal-content {
184    text-align: center;
185    min-width: 300px;
186}
187.mobile-wallet-adapter-embedded-modal-launch-icon {
188    margin-top: 24px;
189}
190.mobile-wallet-adapter-embedded-modal-title {
191    margin: 18px 100px 30px 100px;
192    color: #000000;
193    font-size: 2.75em;
194    font-weight: 600;
195}
196.mobile-wallet-adapter-embedded-modal-launch-action {
197    display: block;
198    width: 100%;
199    height: 56px;
200    font-size: 1.25em;
201    background: #000000;
202    color: #FFFFFF;
203    border-radius: 18px;
204}
205/* Smaller screens */
206@media all and (max-width: 600px) {
207    .mobile-wallet-adapter-embedded-modal-title {
208        font-size: 1.5em;
209        margin-right: 12px;
210        margin-left: 12px;
211    }
212}
213`;class eX extends eU{contentStyles=eJ;get contentHtml(){let e=!function(){let e="u">typeof document&&document.referrer.startsWith("android-app://");if("u"<typeof window)return e;let t=window.matchMedia("(display-mode: standalone)").matches,n=window.matchMedia("(display-mode: fullscreen)").matches,r=window.matchMedia("(display-mode: minimal-ui)").matches;return e||t||n||r}()?"Tap the lock or settings icon in the address bar to open site settings":"Long press the app icon on your home screen to open site settings";return eZ.replace("{{PERMISSION_INSTRUCTION_DETAIL}}",e)}async init(
213){super.init(),this.#l()}#l(){let e=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),t=async n=>{e?.removeEventListener("click",t),this.close(n)};e?.addEventListener("click",t)}}let eZ=`
214<div class="mobile-wallet-adapter-embedded-modal-header">
215    Local Wallet Connection
216</div>
217<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
218    <path d="M21.6 48C7.2 48 0 40.8 0 26.4V21.6C0 7.2 7.2 0 21.6 0H26.4C40.8 0 48 7.2 48 21.6V26.4C48 40.8 40.8 48 26.4 48H21.6Z" fill="#ED1515"/>
219    <mask id="mask0_147_1364" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="8" y="8" width="32" height="32">
220        <rect x="8" y="8" width="32" height="32" fill="#D9D9D9"/>
221    </mask>
222    <g mask="url(#mask0_147_1364)">
223        <path d="M20.1398 36.2705C19.7363 36.2705 19.3508 36.1945 18.9835 36.0425C18.6162 35.8907 18.2916 35.674 18.0098 35.3922L12.6072 29.9895C12.3254 29.7077 12.1086 29.3832 11.9568 29.0158C11.8048 28.6485 11.7288 28.2631 11.7288 27.8595V20.1395C11.7288 19.736 11.8048 19.3505 11.9568 18.9832C12.1086 18.6158 12.3254 18.2913 12.6072 18.0095L18.0098 12.6068C18.2916 12.3251 18.6162 12.1083 18.9835 11.9565C19.3508 11.8045 19.7363 11.7285 20.1398 11.7285H27.8598C28.2634 11.7285 28.6488 11.8045 29.0162 11.9565C29.3835 12.1083 29.708 12.3251 29.9898 12.6068L35.3925 18.0095C35.6743 18.2913 35.891 18.6158 36.0428 18.9832C36.1948 19.3505 36.2708 19.736 36.2708 20.1395V27.8595C36.2708 28.2631 36.1948 28.6485 36.0428 29.0158C35.891 29.3832 35.6743 29.7077 35.3925 29.9895L29.9898 35.3922C29.708 35.674 29.3835 35.8907 29.0162 36.0425C28.6488 36.1945 28.2634 36.2705 27.8598 36.2705H20.1398ZM20.1732 33.2372H27.8265L33.2375 27.8262V20.1728L27.8265 14.7618H20.1732L14.7622 20.1728V27.8262L20.1732 33.2372ZM23.9998 25.9538L26.7868 28.7408C27.0473 29.0013 27.3729 29.1302 27.7638 29.1275C28.1549 29.1248 28.4807 28.9933 28.7412 28.7328C29.0016 28.4724 29.1318 28.1466 29.1318 27.7555C29.1318 27.3646 29.0016 27.039 28.7412 26.7785L25.9542 23.9995L28.7412 21.2125C29.0016 20.9521 29.1318 20.6264 29.1318 20.2355C29.1318 19.8444 29.0016 19.5186 28.7412 19.2582C28.4807 18.9977 28.1549 18.8675 27.7638 18.8675C27.3729 18.8675 27.0473 18.9977 26.7868 19.2582L23.9998 22.0452L21.2128 19.2582C20.9524 18.9977 20.628 18.8675 20.2398 18.8675C19.8514 18.8675 19.5269 18.9977 19.2665 19.2582C19.006 19.5186 18.8758 19.8444 18.8758 20.2355C18.8758 20.6264 19.006 20.9521 19.2665 21.2125L22.0455 23.9995L19.2585 26.7865C18.998 27.047 18.8692 27.3713 18.8718 27.7595C18.8745 28.148 19.006 28.4724 19.2665 28.7328C19.5269 28.9933 19.8527 29.1235 20.2438 29.1235C20.6347 29.1235 20.9604 28.9933 21.2208 28.7328L23.9998 25.9538Z" fill="black"/>
224    </g>
225</svg>
226<div class="mobile-wallet-adapter-embedded-modal-title">
227    Your wallet connection is blocked
228</div>
229<div id="mobile-wallet-adapter-local-launch-message" class="mobile-wallet-adapter-embedded-modal-subtitle">
230    Visit site settings in the address bar and allow "Apps on Device".
231</div>
232
233<div class="mobile-wallet-adapter-embedded-modal-divider"><hr></div>
234<div class="mobile-wallet-adapter-embedded-modal-footer">
235    <div class="mobile-wallet-adapter-embedded-modal-details">
236        <!-- Clickable header (label associated with the checkbox) -->
237      	<label for="collapsible-1" class="mobile-wallet-adapter-embedded-modal-details-collapsible-header">
238            <!-- Hidden checkbox to track state -->
239            <input type="checkbox" id="collapsible-1" class="mobile-wallet-adapter-embedded-modal-details-collapsible-input">
240            <span class="mobile-wallet-adapter-embedded-modal-details-collapsible-header-label">
241              See details
242            </span>
243            <svg class="mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
244              <mask id="mask0_147_1382" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
245                <rect width="24" height="24" fill="#D9D9D9"/>
246              </mask>
247              <g mask="url(#mask0_147_1382)">
248                <path d="M11.9999 17.0811C11.8506 17.0811 11.7087 17.0563 11.5741 17.0067C11.4395 16.957 11.3162 16.8762 11.2042 16.7643L6.57924 12.1393C6.36801 11.9281 6.26656 11.66
2487 6.27489 11.3561C6.28322 11.0453 6.39301 10.7842 6.60424 10.573C6.81547 10.3618 7.08069 10.2561 7.39989 10.2561C7.71909 10.2561 7.9843 10.3618 8.19554 10.573L11.9999 14.3773L15.8292 10.548C16.0405 10.3368 16.3015 10.2353 16.6124 10.2436C16.9233 10.252 17.1843 10.3618 17.3955 10.573C17.6068 10.7842 17.7124 11.0494 17.7124 11.3686C17.7124 11.6878 17.6068 11.9531 17.3955 12.1643L12.7955 16.7643C12.6836 16.8762 12.5603 16.957 12.4257 17.0067C12.2911 17.0563 12.1492 17.0811 11.9999 17.0811Z" fill="black"/>
249              </g>
250            </svg>
251      	</label>
252        
253        <!-- Content to show/hide -->
254        <ul class="mobile-wallet-adapter-embedded-modal-details-collapsible-content">
255            <li>{{PERMISSION_INSTRUCTION_DETAIL}}</li>
256            <li>Allow "Apps on Device"</li>
257        </ul>
258    </div>
259</div>
260<div>
261    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
262        Got it
263    </button>
264</div>
265`,eJ=`
266.mobile-wallet-adapter-embedded-modal-close {
267    display: none;
268}
269.mobile-wallet-adapter-embedded-modal-content {
270    text-align: center;
271}
272.mobile-wallet-adapter-embedded-modal-header {
273    margin: 18px auto 30px auto;
274    color: #7D9093;
275    font-size: 1.0em;
276    font-weight: 500;
277}
278.mobile-wallet-adapter-embedded-modal-title {
279    margin: 18px 100px auto 100px;
280    color: #000000;
281    font-size: 2.75em;
282    font-weight: 600;
283}
284.mobile-wallet-adapter-embedded-modal-subtitle {
285    margin: 12px 60px 30px 60px;
286    color: #7D9093;
287    font-size: 1.25em;
288    font-weight: 400;
289}
290.mobile-wallet-adapter-embedded-modal-details-collapsible-header {
291    display: flex;
292    flex-direction: row;
293  	justify-content: space-between;
294    margin: 10px auto 10px auto;
295    color: #000000;
296    font-size: 1.5em;
297    font-weight: 600;
298    cursor: pointer; /* Show pointer on hover */
299    transition: background 0.2s ease; /* Smooth background change */
300}
301.mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon {
302  	transition: rotate 0.3s ease;
303}
304.mobile-wallet-adapter-embedded-modal-details-collapsible-input {
305  	display: none; /* Hide the checkbox */
306}
307.mobile-wallet-adapter-embedded-modal-details-collapsible-content {
308    margin: 0px auto 40px auto;
309    max-height: 0px; /* Collapse content */
310    overflow: hidden; /* Hide overflow when collapsed */
311    transition: max-height 0.3s ease; /* Smooth transition */
312}
313.mobile-wallet-adapter-embedded-modal-details-collapsible-content li {
314    margin: 20px auto;
315    color: #000000;
316    font-size: 1.25em;
317    font-weight: 400;
318    text-align: left;
319}
320/* When checkbox is checked, show content */
321.mobile-wallet-adapter-embedded-modal-details-collapsible-header:has(> input:checked) ~ .mobile-wallet-adapter-embedded-modal-details-collapsible-content {
322  	max-height: 300px;
323}
324.mobile-wallet-adapter-embedded-modal-details-collapsible-header:has(> input:checked) > .mobile-wallet-adapter-embedded-modal-details-collapsible-header-icon {
325  	rotate: 180deg;
326}
327.mobile-wallet-adapter-embedded-modal-launch-action {
328    display: block;
329    width: 100%;
330    height: 56px;
331    /*margin-top: 40px;*/
332    font-size: 1.25em;
333    /*line-height: 24px;*/
334    /*letter-spacing: -1%;*/
335    background: #000000;
336    color: #FFFFFF;
337    border-radius: 18px;
338}
339/* Smaller screens */
340@media all and (max-width: 600px) {
341    .mobile-wallet-adapter-embedded-modal-title {
342        font-size: 1.75em;
343        margin-right: 12px;
344        margin-left: 12px;
345    }
346    .mobile-wallet-adapter-embedded-modal-subtitle {
347        margin-right: 12px;
348        margin-left: 12px;
349    }
350}
351`;class eq extends eU{contentStyles=e$;contentHtml=eG;async init(){super.init(),this.#l()}#l(){let e=this.dom?.getElementById("mobile-wallet-adapter-launch-action"),t=async()=>{e?.removeEventListener("click",t);try{await fetch("http://localhost")}catch(e){}this.close()};e?.addEventListener("click",t)}}let eG=`
352<div class="mobile-wallet-adapter-embedded-modal-title">Allow connections to your wallet</div>
353<div id="mobile-wallet-adapter-local-launch-message" class="mobile-wallet-adapter-embedded-modal-subtitle">
354    Tap "Allow" on the next screen
355</div>
356<svg class="mobile-wallet-adapter-embedded-modal-permission-prompt-mock" xmlns="http://www.w3.org/2000/svg" width="281" height="83" viewBox="0 0 281 83" fill="none">
357    <rect width="281" height="83" rx="22" fill="#F0F3F5"/>
358    <path d="M254.194 64L252.626 56.657H254.047L254.866 61.452L254.985 62.278H255.02L255.146 61.452L255.993 57.497H257.4L258.254 61.431L258.373 62.278H258.415L258.534 61.431L259.346 56.657H260.718L259.143 64H257.673L256.826 59.961L256.693 59.093H256.651L256.511 59.961L255.664 64H254.194Z" fill="black"/>
359    <path d="M248.837 64.231C248.147 64.231 247.54 64.07 247.017 63.748C246.495 63.426 246.086 62.978 245.792 62.404C245.498 61.83 245.351 61.1673 245.351 60.416V60.241C245.351 59.4897 245.498 58.827 245.792 58.253C246.086 57.679 246.495 57.2333 247.017 56.916C247.54 56.594 248.147 56.433 248.837 56.433C249.528 56.433 250.135 56.594 250.657 56.916C251.18 5
3597.2333 251.588 57.679 251.882 58.253C252.176 58.827 252.323 59.4897 252.323 60.241V60.416C252.323 61.1673 252.176 61.83 251.882 62.404C251.588 62.978 251.18 63.426 250.657 63.748C250.135 64.07 249.528 64.231 248.837 64.231ZM248.837 62.824C249.43 62.824 249.897 62.607 250.237 62.173C250.583 61.7343 250.755 61.1417 250.755 60.395V60.262C250.755 59.5107 250.583 58.918 250.237 58.484C249.897 58.05 249.43 57.833 248.837 57.833C248.249 57.833 247.783 58.05 247.437 58.484C247.092 58.918 246.919 59.5107 246.919 60.262V60.395C246.919 61.1417 247.092 61.7343 247.437 62.173C247.783 62.607 248.249 62.824 248.837 62.824Z" fill="black"/>
360    <path d="M242.298 64.231C241.467 64.231 240.814 63.993 240.338 63.517C239.866 63.0364 239.631 62.3737 239.631 61.529V53.78H241.178V61.389C241.178 62.3317 241.591 62.803 242.417 62.803C242.65 62.803 242.865 62.7587 243.061 62.67C243.257 62.5814 243.464 62.4367 243.684 62.236L244.538 63.377C244.225 63.6664 243.884 63.881 243.516 64.021C243.152 64.161 242.746 64.231 242.298 64.231ZM237.51 55.061V53.78H240.611V55.061H237.51Z" fill="black"/>
361    <path d="M234.463 64.231C233.633 64.231 232.979 63.993 232.503 63.517C232.032 63.0364 231.796 62.3737 231.796 61.529V53.78H233.343V61.389C233.343 62.3317 233.756 62.803 234.582 62.803C234.816 62.803 235.03 62.7587 235.226 62.67C235.422 62.5814 235.63 62.4367 235.849 62.236L236.703 63.377C236.391 63.6664 236.05 63.881 235.681 64.021C235.317 64.161 234.911 64.231 234.463 64.231ZM229.675 55.061V53.78H232.776V55.061H229.675Z" fill="black"/>
362    <path d="M221.442 64L224.557 53.976H226.132L229.233 64H227.581L225.642 56.972L225.341 55.761H225.299L225.005 56.972L223.073 64H221.442ZM222.835 61.634L223.255 60.29H227.371L227.805 61.634H222.835Z" fill="black"/>
363    <path d="M178.261 64L175.034 60.066V60.024L178.121 56.657H180.011L176.504 60.423V59.632L180.165 64H178.261ZM173.543 64V53.78H175.097V64H173.543Z" fill="#7D9093" fill-opacity="0.5"/>
364    <path d="M169.306 64.224C168.588 64.224 167.958 64.0653 167.416 63.748C166.88 63.426 166.462 62.9803 166.163 62.411C165.865 61.837 165.715 61.1673 165.715 60.402V60.248C165.715 59.4873 165.862 58.8223 166.156 58.253C166.45 57.679 166.863 57.2333 167.395 56.916C167.927 56.594 168.546 56.433 169.25 56.433C169.978 56.433 170.59 56.6056 171.084 56.951C171.579 57.2917 171.955 57.777 172.211 58.407L170.874 58.995C170.72 58.6123 170.508 58.323 170.237 58.127C169.967 57.9263 169.633 57.826 169.236 57.826C168.63 57.826 168.149 58.0383 167.794 58.463C167.444 58.883 167.269 59.4616 167.269 60.199V60.465C167.269 61.1837 167.454 61.7577 167.822 62.187C168.196 62.6163 168.69 62.831 169.306 62.831C169.712 62.831 170.06 62.733 170.349 62.537C170.639 62.341 170.877 62.0423 171.063 61.641L172.379 62.285C172.188 62.6957 171.941 63.0457 171.637 63.335C171.334 63.6243 170.986 63.846 170.594 64C170.202 64.1493 169.773 64.224 169.306 64.224Z" fill="#7D9093" fill-opacity="0.5"/>
365    <path d="M161.003 64.231C160.312 64.231 159.706 64.07 159.183 63.748C158.66 63.426 158.252 62.978 157.958 62.404C157.664 61.83 157.517 61.1673 157.517 60.416V60.241C157.517 59.4897 157.664 58.827 157.958 58.253C158.252 57.679 158.66 57.2333 159.183 56.916C159.706 56.594 160.312 56.433 161.003 56.433C161.694 56.433 162.3 56.594 162.823 56.916C163.346 57.2333 163.754 57.679 164.048 58.253C164.342 58.827 164.489 59.4897 164.489 60.241V60.416C164.489 61.1673 164.342 61.83 164.048 62.404C163.754 62.978 163.346 63.426 162.823 63.748C162.3 64.07 161.694 64.231 161.003 64.231ZM161.003 62.824C161.596 62.824 162.062 62.607 162.403 62.173C162.748 61.7343 162.921 61.1417 162.921 60.395V60.262C162.921 59.5107 162.748 58.918 162.403 58.484C162.062 58.05 161.596 57.833 161.003 57.833C160.415 57.833 159.948 58.05 159.603 58.484C159.258 58.918 159.085 59.5107 159.085 60.262V60.395C159.085 61.1417 159.258 61.7343 159.603 62.173C159.948 62.607 160.415 62.824 161.003 62.824Z" fill="#7D9093" fill-opacity="0.5"/>
366    <path d="M154.463 64.231C153.633 64.231 152.979 63.993 152.503 63.517C152.032 63.0364 151.796 62.3737 151.796 61.529V53.78H153.343V61.389C153.343 62.3317 153.756 62.803 154.582 62.803C154.816 62.803 155.03 62.7587 155.226 62.67C155.422 62.5814 155.63 62.4367 155.849 62.236L156.703 63.377C156.391 63.6664 156.05 63.881 155.681 64.021C155.317 64.161 154.911 64.231 154.463 64.231ZM149.675 55.061V53.78H152.776V55.061H149.675Z" fill="#7D9093" fill-opacity="0.5"/>
367    <path d="M142.24 64V53.976H145.544C146.421 53.976 147.112 54.1953 147.616 54.634C148.12 55.0726 148.372 55.6583 148.372 56.391V56.566C148.372 57.0886 148.246 57.5366 147.994 57.91C147.742 58.2833 147.38 58.5586 146.909 58.736V58.792C147.492 58.9226 147.947 59.2003 148.274 59.625C148.605 60.045 148.771 60.5606 148.771 61.172V61.361C148.771 61.893 148.645 62.3573 148.393 62.754C148.145 63.1506 147.795 63.4586 147.343 63.678C146.895 63.8926 146.365 64 145.754 64H142.24ZM143.794 62.656H145.5
36772C146.085 62.656 146.482 62.5253 146.762 62.264C147.042 62.0026 147.182 61.6293 147.182 61.144V60.99C147.182 60.5046 147.037 60.1313 146.748 59.87C146.463 59.604 146.05 59.471 145.509 59.471H143.36V58.183H145.32C145.791 58.183 146.153 58.064 146.405 57.826C146.657 57.588 146.783 57.2496 146.783 56.811V56.685C146.783 56.2416 146.657 55.9033 146.405 55.67C146.157 55.4366 145.796 55.32 145.32 55.32H143.794V62.656Z" fill="#7D9093" fill-opacity="0.5"/>
368    <rect x="18" y="17" width="246" height="7" rx="3.5" fill="#7D9093" fill-opacity="0.26"/>
369    <rect x="18" y="33" width="82" height="7" rx="3.5" fill="#7D9093" fill-opacity="0.26"/>
370</svg>
371<div>
372    <button data-modal-action id="mobile-wallet-adapter-launch-action" class="mobile-wallet-adapter-embedded-modal-launch-action">
373        Continue to Allow
374    </button>
375</div>
376`,e$=`
377.mobile-wallet-adapter-embedded-modal-close {
378    display: none;
379}
380.mobile-wallet-adapter-embedded-modal-content {
381    text-align: center;
382}
383.mobile-wallet-adapter-embedded-modal-title {
384    margin: 18px 100px auto 100px;
385    color: #000000;
386    font-size: 2.75em;
387    font-weight: 600;
388}
389.mobile-wallet-adapter-embedded-modal-subtitle {
390    margin: 20px 60px 40px 60px;
391    color: #7D9093;
392    font-size: 1.25em;
393    font-weight: 400;
394}
395.mobile-wallet-adapter-embedded-modal-permission-prompt-mock {
396    width: 90%;
397    height: auto;
398    margin: 0 auto 30px auto;
399    display: block;
400}
401.mobile-wallet-adapter-embedded-modal-launch-action {
402    display: block;
403    width: 100%;
404    height: 56px;
405    font-size: 1.25em;
406    background: #000000;
407    color: #FFFFFF;
408    border-radius: 18px;
409}
410/* Smaller screens */
411@media all and (max-width: 600px) {
412    .mobile-wallet-adapter-embedded-modal-title {
413        font-size: 1.5em;
414        margin-right: 12px;
415        margin-left: 12px;
416    }
417    .mobile-wallet-adapter-embedded-modal-subtitle {
418        margin-right: 12px;
419        margin-left: 12px;
420    }
421}
422`;async function e0(){try{let e=await navigator.permissions.query({name:"loopback-network"});if("granted"===e.state)return;if("denied"===e.state){let e=new eX;throw e.init(),e.open(),new el(ea,"Local Network Access permission denied")}if("prompt"===e.state){let t=new eq,n=await new Promise((n,r)=>{t.addEventListener("close",e=>{e&&r(new el(es,"Wallet connection cancelled by user",{event:e}))}),e.onchange=()=>{e.onchange=null,n(e.state)},t.init(),t.open()});if("granted"!==n)return await e0();{let e=new eQ;await new Promise((t,n)=>{e.addEventListener("close",e=>{e&&n(new el(es,"Wallet connection cancelled by user",{event:e}))}),e.initWithCallback(async()=>{t(!0)}),e.open()});return}}throw new el(ea,"Local Network Access permission unknown")}catch(e){if(e instanceof TypeError&&(e.message.includes("loopback-network")||e.message.includes("local-network-access")))return;if(e instanceof el)throw e;throw new el(ea,e instanceof Error?e.message:"Local Network Access permission unknown")}}let e1="Mobile Wallet Adapter",e5=[G,$,q,J];class e2{#i={};#c="1.0.0";#d=e1;#u="https://solanamobile.com/wallets";#_="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDIuNUgxN0MxNy44Mjg0IDIuNSAxOC41IDMuMTcxNTcgMTguNSA0VjIwQzE4LjUgMjAuODI4NCAxNy44Mjg0IDIxLjUgMTcgMjEuNUg3QzYuMTcxNTcgMjEuNSA1LjUgMjAuODI4NCA1LjUgMjBWNEM1LjUgMy4xNzE1NyA2LjE3MTU3IDIuNSA3IDIuNVpNMyA0QzMgMS43OTA4NiA0Ljc5MDg2IDAgNyAwSDE3QzE5LjIwOTEgMCAyMSAxLjc5MDg2IDIxIDRWMjBDMjEgMjIuMjA5MSAxOS4yMDkxIDI0IDE3IDI0SDdDNC43OTA4NiAyNCAzIDIyLjIwOTEgMyAyMFY0Wk0xMSA0LjYxNTM4QzEwLjQ0NzcgNC42MTUzOCAxMCA1LjA2MzEgMTAgNS42MTUzOFY2LjM4NDYyQzEwIDYuOTM2OSAxMC40NDc3IDcuMzg0NjIgMTEgNy4zODQ2MkgxM0MxMy41NTIzIDcuMzg0NjIgMTQgNi45MzY5IDE0IDYuMzg0NjJWNS42MTUzOEMxNCA1LjA2MzEgMTMuNTUyMyA0LjYxNTM4IDEzIDQuNjE1MzhIMTFaIiBmaWxsPSIjRENCOEZGIi8+Cjwvc3ZnPgo=";#m;#h;#p;#g=!1;#f=0;#y=[];#b;#w;#x;get version(){return this.#c}get name(){return this.#d}get url(){return this.#u}get icon(){return this.#_}get chains(){return this.#y}get features(){return{[eM]:{version:"1.0.0",connect:this.#v},"standard:disconnect":{version:"1.0.0",disconnect:this.#k},[eA]:{version:"1.0.0",on:this.#C},[q]:{version:"1.0.0",signMessage:this.#E},[J]:{version:"1.0.0",signIn:this.#S},...this.#w}}get accounts(){return this.#h?.accounts??[]}constructor(e){this.#p=e.authorizationCache,this.#m=e.appIdentity,this.#y=e.chains,this.#b=e.chainSelector,this.#x=e.onWalletNotFound,this.#w={[G]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:this.#I},[$]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:this.#N}}}get connected(){return!!this.#h}get isAuthorized(){return!!this.#h}get currentAuthorization(){return this.#h}get cachedAuthorizationResult(){return this.#p.get()}#C=(e,t)=>(this.#i[e]?.push(t)||(this.#i[e]=[t]),()=>this.#j(e,t));
422#L(e,...t){this.#i[e]?.forEach(e=>e.apply(null,t))}#j(e,t){this.#i[e]=this.#i[e]?.filter(e=>t!==e)}#v=async({silent:e}={})=>{if(this.#g||this.connected)return{accounts:this.accounts};this.#g=!0;try{if(e){let e=await this.#p.get();if(!e)return{accounts:this.accounts};await this.#T(e.capabilities),await this.#A(e)}else await this.#M()}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{this.#g=!1}return{accounts:this.accounts}};#M=async e=>{try{let t=await this.#p.get();if(t)return this.#A(t),t;let n=await this.#b.select(this.#y);return await this.#P(async t=>{let[r,o]=await Promise.all([t.getCapabilities(),t.authorize({chain:n,identity:this.#m,sign_in_payload:e})]),a=this.#z(o.accounts),s={...o,accounts:a,chain:n,capabilities:r};return Promise.all([this.#T(r),this.#p.set(s),this.#A(s)]),s})}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}};#A=async e=>{let t=null==this.#h||this.#h?.accounts.length!==e.accounts.length||this.#h.accounts.some((t,n)=>t.address!==e.accounts[n].address);this.#h=e,t&&this.#L("change",{accounts:this.accounts})};#T=async e=>{let t=e.features.includes("solana:signTransactions"),n=e.supports_sign_and_send_transactions,r=G in this.features!==n||$ in this.features!==t;this.#w={...(n||!n&&!t)&&{[G]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:this.#I}},...t&&{[$]:{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:this.#N}}},r&&this.#L("change",{features:this.features})};#R=async(e,t,n)=>{try{let[r,o]=await Promise.all([this.#h?.capabilities??await e.getCapabilities(),e.authorize({auth_token:t,identity:this.#m,chain:n})]),a=this.#z(o.accounts),s={...o,accounts:a,chain:n,capabilities:r};Promise.all([this.#p.set(s),this.#A(s)])}catch(e){throw this.#k(),Error(e instanceof Error&&e.message||"Unknown error")}};#k=async()=>{this.#p.clear(),this.#g=!1,this.#f++,this.#h=void 0,this.#L("change",{accounts:this.accounts})};#P=async e=>{let t=this.#h?.wallet_uri_base,n=t?{baseUri:t}:void 0,r=this.#f,o=new eW;try{let t,r=await Promise.race([e0().then(async()=>{o.init();let{wallet:t,close:r}=await eT(n);o.addEventListener("close",e=>{e&&r()}),o.open();let a=await e(await t);return o.close(),r(),a}),new Promise((e,n)=>{t=setTimeout(()=>{n(new el(es,"Wallet connection timed out",{event:void 0}))},3e4)})]);return clearTimeout(t),r}catch(e){throw o.close(),this.#f!==r&&await new Promise(()=>{}),e instanceof Error&&"SolanaMobileWalletAdapterError"===e.name&&"ERROR_WALLET_NOT_FOUND"===e.code&&await this.#x(this),e}};#O=()=>{if(!this.#h)throw Error("Wallet not connected");return{authToken:this.#h.auth_token,chain:this.#h.chain}};#z=e=>e.map(e=>{let t=eH(e.address);return{address:eP.default.encode(t),publicKey:t,label:e.label,icon:e.icon,chains:e.chains??this.#y,features:e.features??e5}});#W=async e=>{let{authToken:t,chain:n}=this.#O();try{let r=e.map(e=>eF(e));return await this.#P(async e=>(await this.#R(e,t,n),(await e.signTransactions({payloads:r})).signed_payloads.map(eH)))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}};#B=async(e,t)=>{let{authToken:n,chain:r}=this.#O();try{return await this.#P(async o=>{let[a,s]=await Promise.all([o.getCapabilities(),this.#R(o,n,r)]);if(a.supports_sign_and_send_transactions){let n=eF(e);return(await o.signAndSendTransactions({...t,payloads:[n]})).signatures.map(eH)[0]}throw Error("connected wallet does not support signAndSendTransaction")})}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}};#I=async(...e)=>{let t=[];for(let n of e){let e=await this.#B(n.transaction,n.options);t.push({signature:e})}return t};#N=async(...e)=>(await this.#W(e.map(({transaction:e})=>e))).map(e=>({signedTransaction:e}));#E=async(...e)=>{let{authToken:t,chain:n}=this.#O(),r=e.map(({account:e})=>eF(new Uint8Array(e.publicKey))),o=e.map(({message:e})=>eF(e));try{return await this.#P(async e=>(await this.#R(e,t,n),(await e.signMessages({addresses:r,payloads:o})).signed_payloads.map(eH).map(e=>({signedMessage:e,signature:e.slice(-64)}))))}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}};#S=async(...e)=>{let t=[];if(!(e.length>1))return[await this.#D(e[0])];for(let n of e)t.push(await this.#D(n));return t};#D=async e=>{this.#g=!0;try{let t=await this.#M({...e,domain:e?.domain??window.location.host});if(!t.sign_in_result)throw Error("Sign in failed, no sign in result returned by wallet");let n=t.sign_in_result.address,r=t.accounts.find(e=>e.address==n);return{account:{...r??{address:eP.default.encode(eH(n))},publicKey:eH(n),chains:r?.chains??this.#y,features:r?.features??t.capabilities.features},signedMessage:eH(t.sign_in_result.signed_message),signature:eH(t.sign_in_result.signature)}}catch(e){throw Error(e instanceof Error&&e.message||"Unknown error")}finally{this.#g=!1}}}class e6 extends eU{contentStyles=e4;contentHtml=e3;initWithError(e){super.init(),this.populateError(e)}populateError(e){let t=this.dom?.getElementById("mobile-wallet-adapter-error-message"),n=this.dom?.getElementById("mobile-wallet-adapter-error-action");if(t){if("SolanaMobileWalletAdapterError"===e.name)switch(e.code){case"ERROR_WALLET_NOT_FOUND":t.innerHTML="To use mobile wallet adapter, you must have a compatible mobile wallet application installed on your device.",n&&n.addEventListener("click",()=>{window.location.href="https://solanamobile.com/wallets"});return;case"ERROR_BROWSER_NOT_SUPPORTED":t.innerHTML="This browser appears to be incompatible with mobile wallet adapter. Open this page in a compatible mobile browser app and try again.",n&&(n.style.display="none");return}t.innerHTML=`An unexpected error occurred: ${e.message}`}else console.log("Failed to locate error dialog element")}}let e3=`
423<svg class="mobile-wallet-adapter-embedded-modal-error-icon" xmlns="http://www.w3.org/2000/svg" height="50px" viewBox="0 -960 960 960" width="50px" fill="#000000"><path d="M 280,-80 Q 197,-80 138.5,-138.5 80,-197 80,-280 80,-363 138.5,-421.5 197,-480 280,-480 q 83,0 141.5,58.5 58.5,58.5 58.5,141.5 0,83 -58.5,141.5 Q 363,-80 280,-80 Z M 824,-120 568,-376 Q 556,-389 542.5,-402.5 529,-416 516,-428 q 38,-24 61,-64 23,-40 23,-88 0,-75 -52.5,-127.5 Q 495,-760 420,-760 345,-760 292.5,-707.5 240,-655 240,-580 q 0,6 0.5,11.5 0.5,5.5 1.5,11.5 -18,2 -39.5,8 -21.5,6 -38.5,14 -2,-11 -3,-22 -1,-11 -1,-23 0,-109 75.5,-184.5 Q 311,-840 420,-840 q 109,0 184.5,75.5 75.5,75.5 75.5,184.5 0,43 -13.5,81.5 Q 653,-460 629,-428 l 251,252 z m -615,-61 71,-71 70,71 29,-28 -71,-71 71,-71 -28,-28 -71,71 -71,-71 -28,28 71,71 -71,71 z"/></svg>
424<div class="mobile-wallet-adapter-embedded-modal-title">We can't find a wallet.</div>
425<div id="mobile-wallet-adapter-error-message" class="mobile-wallet-adapter-embedded-modal-subtitle"></div>
426<div>
427    <button data-error-action id="mobile-wallet-adapter-error-action" class="mobile-wallet-adapter-embedded-modal-error-action">
428        Find a wallet
429    </button>
430</div>
431`,e4=`
432.mobile-wallet-adapter-embedded-modal-content {
433    text-align: center;
434}
435
436.mobile-wallet-adapter-embedded-modal-error-icon {
437    margin-top: 24px;
438}
439
440.mobile-wallet-adapter-embedded-modal-title {
441    margin: 18px 100px auto 100px;
442    color: #000000;
443    font-size: 2.75em;
444    font-weight: 600;
445}
446
447.mobile-wallet-adapter-embedded-modal-subtitle {
448    margin: 30px 60px 40px 60px;
449    color: #000000;
450    font-size: 1.25em;
451    font-weight: 400;
452}
453
454.mobile-wallet-adapter-embedded-modal-error-action {
455    display: block;
456    width: 100%;
457    height: 56px;
458    /*margin-top: 40px;*/
459    font-size: 1.25em;
460    /*line-height: 24px;*/
461    /*letter-spacing: -1%;*/
462    background: #000000;
463    color: #FFFFFF;
464    border-radius: 18px;
465}
466
467/* Smaller screens */
468@media all and (max-width: 600px) {
469    .mobile-wallet-adapter-embedded-modal-title {
470        font-size: 1.5em;
471        margin-right: 12px;
472        margin-left: 12px;
473    }
474    .mobile-wallet-adapter-embedded-modal-subtitle {
475        margin-right: 12px;
476        margin-left: 12px;
477    }
478}
479`;async function e8(){if("u">typeof window){let e=window.navigator.userAgent.toLowerCase(),t=new e6;e.includes("wv")?t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_BROWSER_NOT_SUPPORTED",message:""}):t.initWithError({name:"SolanaMobileWalletAdapterError",code:"ERROR_WALLET_NOT_FOUND",message:""}),t.open()}}let e7="SolanaMobileWalletAdapterDefaultAuthorizationCache";function e9(e){return window.btoa(String.fromCharCode.call(null,...e))}function te(e){switch(e){case"mainnet-beta":return"solana:mainnet";case"testnet":return"solana:testnet";case"devnet":return"solana:devnet";default:return e}}class tt extends R{supportedTransactionVersions=new Set(["legacy",0]);name;icon;url;#Y;#g=!1;#U="u">typeof window&&window.isSecureContext&&"u">typeof document&&/android/i.test(navigator.userAgent)?T.WalletReadyState.Loadable:T.WalletReadyState.Unsupported;#F;#H;#Q;#K=async e=>{if(e.accounts&&e.accounts.length>0){this.#V();let t=await this.#F(e.accounts);t!==this.#H&&(this.#H=t,this.#Q=void 0,this.emit("connect",this.publicKey))}};constructor(e,t){super(),this.#F=async e=>{let n=await t.addressSelector.select(e.map(({publicKey:e})=>e9(new Uint8Array(e))));return e.find(({publicKey:e})=>e9(new Uint8Array(e))===n)??e[0]},this.#Y=e,this.#Y.features[ee].on("change",this.#K),this.name=this.#Y.name,this.icon=this.#Y.icon,this.url=this.#Y.url}get publicKey(){if(!this.#Q&&this.#H)try{this.#Q=new O.PublicKey(this.#H.publicKey)}catch(e){throw new A.WalletPublicKeyError(e instanceof Error&&e?.message||"Unknown error",e)}return this.#Q??null}get connected(){return this.#Y.connected}get connecting(){return this.#g}get readyState(){return this.#U}async autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return await this.autoConnect()}async autoConnect(){this.#v(!0)}async connect(){this.#v()}async #v(e=!1){if(!this.connecting&&!this.connected)return await this.#X(async()=>{if(this.#U!==T.WalletReadyState.Installed&&this.#U!==T.WalletReadyState.Loadable)throw new A.WalletNotReadyError;this.#g=!0;try{await this.#Y.features[et].connect({silent:e})}catch(e){throw new A.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}finally{this.#g=!1}})}async performAuthorization(e){try{let t=await this.#Y.cachedAuthorizationResult;if(t)return await this.#Y.features[et].connect({silent:!0}),t;return e?await this.#Y.features[J].signIn(e):await this.#Y.features[et].connect(),await await this.#Y.cachedAuthorizationResult}catch(e){throw new A.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}}async disconnect(){return await this.#X(async()=>{this.#g=!1,this.#Q=void 0,this.#H=void 0,await this.#Y.features[en].disconnect(),this.emit("disconnect")})}async signIn(e){return this.#X(async()=>{if(this.#U!==T.WalletReadyState.Installed&&this.#U!==T.WalletReadyState.Loadable)throw new A.WalletNotReadyError;this.#g=!0;try{let t=await this.#Y.features[J].signIn({...e,domain:e?.domain??window.location.host});if(t.length>0)return t[0];throw Error("Sign in failed, no sign in result returned by wallet")}catch(e){throw new A.WalletConnectionError(e instanceof Error&&e.message||"Unknown error",e)}finally{this.#g=!1}})}async signMessage(e){return await this.#X(async()=>{let t=this.#O();try{return(await this.#Y.features[q].signMessage({account:t,message:e}))[0].signature}catch(e){throw new A.WalletSignMessageError(e?.message,e)}})}async sendTransaction(e,t,n){return await this.#X(async()=>{let r=this.#O();try{if(G in this.#Y.features){let t=te(this.#Y.currentAuthorization.chain),[o]=(await this.#Y.features[G].signAndSendTransaction({account:r,transaction:e.serialize(),chain:t,options:n?{skipPreflight:n.skipPreflight,maxRetries:n.maxRetries}:void 0})).map(e=>e9(e.signature));return o}{let[r]=await this.#W([e]);if("version"in r)return await t.sendTransaction(r);{let e=r.serialize();return await t.sendRawTransaction(e,{...n,preflightCommitment:function(){let e,r;switch(t.commitment){case"confirmed":case"finalized":case"processed":e=t.commitment;break;default:e="finalized"}switch(n?.preflightCommitment){case"confirmed":case"finalized":case"processed":r=n.preflightCommitment;break;case void 0:r=e;break;default:r="finalized"}let o="finalized"===r?2:+("confirmed"===r),a="finalized"===e?2:+("confirmed"===e);return o<a?r:e}()})}}}catch(e){throw new A.WalletSendTransactionError(e?.message,e)}})}async signTransaction(e){return await this.#X(async()=>{let[t]=await this.#W([e]);return t})}async signAllTransactions(e){return await this.#X(async()=>await this.#W(e))}
479#V(){this.#U!==T.WalletReadyState.Installed&&this.emit("readyStateChange",this.#U=T.WalletReadyState.Installed)}#O(){if(!this.#Y.isAuthorized||!this.#H)throw new A.WalletNotConnectedError;return this.#H}async #W(e){let t=this.#O();try{if($ in this.#Y.features)return this.#Y.features[$].signTransaction(...e.map(e=>({account:t,transaction:e.serialize()}))).then(e=>e.map(e=>{let t=e.signedTransaction,n=t[0],r=O.VersionedMessage.deserializeMessageVersion(t.slice(64*n+1,t.length));return"legacy"===r?O.Transaction.from(t):O.VersionedTransaction.deserialize(t)}));throw Error("Connected wallet does not support signing transactions")}catch(e){throw new A.WalletSignTransactionError(e?.message,e)}}async #X(e){try{return await e()}catch(e){throw this.emit("error",e),e}}}class tn extends tt{constructor(e){const t=te(e.chain??e.cluster);super(new e2({appIdentity:e.appIdentity,authorizationCache:{set:e.authorizationResultCache.set,get:async()=>await e.authorizationResultCache.get(),clear:e.authorizationResultCache.clear},chains:[t],chainSelector:{select:async e=>1===e.length?e[0]:e.includes(ez)?ez:e[0]},onWalletNotFound:async()=>{e.onWalletNotFound(this)}}),{addressSelector:e.addressSelector,chain:t})}}class tr extends tn{}async function to(e){return e8()}let ta=function(e){return eM in e.features&&eA in e.features&&(G in e.features||$ in e.features)};var ts=e.i(610482),tl=e.i(987721);(s=c||(c={})).Installed="Installed",s.NotDetected="NotDetected",s.Loadable="Loadable",s.Unsupported="Unsupported";class ti extends ts.default{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,t,n={}){let r=this.publicKey;if(!r)throw new tl.WalletNotConnectedError;return e.feePayer=e.feePayer||r,e.recentBlockhash=e.recentBlockhash||(await t.getLatestBlockhash({commitment:n.preflightCommitment,minContextSlot:n.minContextSlot})).blockhash,e}}function tc(e){return"version"in e}let td="solana:signAndSendTransaction",tu="solana:signIn",t_="solana:signMessage",tm="solana:signTransaction",th="solana:mainnet";function tp(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var tg=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},tf=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class ty extends ti{get name(){return tg(this,f,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return tg(this,f,"f").icon}get readyState(){return tg(this,y,"f")}get publicKey(){return tg(this,_,"f")}get connecting(){return tg(this,m,"f")}get supportedTransactionVersions(){return tg(this,g,"f")}get wallet(){return tg(this,f,"f")}get standard(){return!0}constructor({wallet:e}){super(),d.add(this),u.set(this,void 0),_.set(this,void 0),m.set(this,void 0),h.set(this,void 0),p.set(this,void 0),g.set(this,void 0),f.set(this,void 0),y.set(this,"u"<typeof window||"u"<typeof document?c.Unsupported:c.Installed),k.set(this,e=>{if("accounts"in e){let e=tg(this,f,"f").accounts[0];tg(this,u,"f")&&!tg(this,h,"f")&&e!==tg(this,u,"f")&&(e?tg(this,d,"m",w).call(this,e):(this.emit("error",new tl.WalletDisconnectedError),tg(this,d,"m",x).call(this)))}"features"in e&&tg(this,d,"m",v).call(this)}),tf(this,f,e,"f"),tf(this,u,null,"f"),tf(this,_,null,"f"),tf(this,m,!1,"f"),tf(this,h,!1,"f"),tf(this,p,tg(this,f,"f").features[ee].on("change",tg(this,k,"f")),"f"),tg(this,d,"m",v).call(this)}destroy(){tf(this,u,null,"f"),tf(this,_,null,"f"),tf(this,m,!1,"f"),tf(this,h,!1,"f");let e=tg(this,p,"f");e&&(tf(this,p,null,"f"),e())}async autoConnect(){return tg(this,d,"m",b).call(this,{silent:!0})}async connect(){return tg(this,d,"m",b).call(this)}async disconnect(){if(en in tg(this,f,"f").features)try{tf(this,h,!0,"f"),await tg(this,f,"f").features[en].disconnect()}
vendor: 13,363 bytes, line 479
479catch(e){this.emit("error",new tl.WalletDisconnectionError(e?.message,e))}finally{tf(this,h,!1,"f")}tg(this,d,"m",x).call(this)}async sendTransaction(e,t,n={}){try{var r;let o,a=tg(this,u,"f");if(!a)throw new tl.WalletNotConnectedError;if(td in tg(this,f,"f").features)if(a.features.includes(td))o=td;else if(tm in tg(this,f,"f").features&&a.features.includes(tm))o=tm;else throw new tl.WalletAccountError;else if(tm in tg(this,f,"f").features){if(!a.features.includes(tm))throw new tl.WalletAccountError;o=tm}else throw new tl.WalletConfigError;let s=(r=t.rpcEndpoint).includes("https://api.mainnet-beta.solana.com")?th:/\bdevnet\b/i.test(r)?"solana:devnet":/\btestnet\b/i.test(r)?"solana:testnet":/\blocalhost\b/i.test(r)||/\b127\.0\.0\.1\b/.test(r)?"solana:localnet":th;if(!a.chains.includes(s))throw new tl.WalletSendTransactionError;try{let r,{signers:l,...i}=n;if(tc(e)?(l?.length&&e.sign(l),r=e.serialize()):(e=await this.prepareTransaction(e,t,i),l?.length&&e.partialSign(...l),r=new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))),o===td){let[e]=await tg(this,f,"f").features[td].signAndSendTransaction({account:a,chain:s,transaction:r,options:{preflightCommitment:tp(i.preflightCommitment||t.commitment),skipPreflight:i.skipPreflight,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot}});return eP.default.encode(e.signature)}{let[e]=await tg(this,f,"f").features[tm].signTransaction({account:a,chain:s,transaction:r,options:{preflightCommitment:tp(i.preflightCommitment||t.commitment),minContextSlot:i.minContextSlot}});return await t.sendRawTransaction(e.signedTransaction,{...i,preflightCommitment:tp(i.preflightCommitment||t.commitment)})}}catch(e){if(e instanceof tl.WalletError)throw e;throw new tl.WalletSendTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}u=new WeakMap,_=new WeakMap,m=new WeakMap,h=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,k=new WeakMap,d=new WeakSet,b=async function(e){try{if(this.connected||this.connecting)return;if(tg(this,y,"f")!==c.Installed)throw new tl.WalletNotReadyError;if(tf(this,m,!0,"f"),!tg(this,f,"f").accounts.length)try{await tg(this,f,"f").features[et].connect(e)}catch(e){throw new tl.WalletConnectionError(e?.message,e)}let t=tg(this,f,"f").accounts[0];if(!t)throw new tl.WalletAccountError;tg(this,d,"m",w).call(this,t)}catch(e){throw this.emit("error",e),e}finally{tf(this,m,!1,"f")}},w=function(e){let t;try{t=new O.PublicKey(e.address)}catch(e){throw new tl.WalletPublicKeyError(e?.message,e)}tf(this,u,e,"f"),tf(this,_,t,"f"),tg(this,d,"m",v).call(this),this.emit("connect",t)},x=function(){tf(this,u,null,"f"),tf(this,_,null,"f"),tg(this,d,"m",v).call(this),this.emit("disconnect")},v=function(){let e=td in tg(this,f,"f").features?tg(this,f,"f").features[td].supportedTransactionVersions:tg(this,f,"f").features[tm].supportedTransactionVersions;tf(this,g,!function(e,t){if(e===t)return!0;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(e,["legacy"])?new Set(e):null,"f"),tm in tg(this,f,"f").features&&tg(this,u,"f")?.features.includes(tm)?(this.signTransaction=tg(this,d,"m",C),this.signAllTransactions=tg(this,d,"m",E)):(delete this.signTransaction,delete this.signAllTransactions),t_ in tg(this,f,"f").features&&tg(this,u,"f")?.features.includes(t_)?this.signMessage=tg(this,d,"m",S):delete this.signMessage,tu in tg(this,f,"f").features?this.signIn=tg(this,d,"m",I):delete this.signIn},C=async function(e){try{let t=tg(this,u,"f");if(!t)throw new tl.WalletNotConnectedError;if(!(tm in tg(this,f,"f").features))throw new tl.WalletConfigError;if(!t.features.includes(tm))throw new tl.WalletAccountError;try{let n=(await tg(this,f,"f").features[tm].signTransaction({account:t,transaction:tc(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))}))[0].signedTransaction;return tc(e)?O.VersionedTransaction.deserialize(n):O.Transaction.from(n)}catch(e){if(e instanceof tl.WalletError)throw e;throw new tl.WalletSignTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}},E=async function(e){try{let t=tg(this,u,"f");if(!t)throw new tl.WalletNotConnectedError;if(!(tm in tg(this,f,"f").features))throw new tl.WalletConfigError;if(!t.features.includes(tm))throw new tl.WalletAccountError;try{let n=await tg(this,f,"f").features[tm].signTransaction(...e.map(e=>({account:t,transaction:tc(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return e.map((e,t)=>{let r=n[t].signedTransaction;return tc(e)?O.VersionedTransaction.deserialize(r):O.Transaction.from(r)})}catch(e){throw new tl.WalletSignTransactionError(e?.message,e)}}catch(e){throw this.emit("error",e),e}},S=async function(e){try{let t=tg(this,u,"f");if(!t)throw new tl.WalletNotConnectedError;if(!(t_ in tg(this,f,"f").features))throw new tl.WalletConfigError;if(!t.features.includes(t_))throw new tl.WalletAccountError;try{return(await tg(this,f,"f").features[t_].signMessage({account:t,message:e}))[0].signature}catch(e){throw new tl.WalletSignMessageError(e?.message,e)}}catch(e){throw this.emit("error",e),e}},I=async function(e={}){try{let t;if(!(tu in tg(this,f,"f").features))throw new tl.WalletConfigError;try{[t]=await tg(this,f,"f").features[tu].signIn(e)}catch(e){throw new tl.WalletSignInError(e?.message,e)}if(!t)throw new tl.WalletSignInError;return tg(this,d,"m",w).call(this,t.account),t}catch(e){throw this.emit("error",e),e}};var tb=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},tw=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};let tx=new Set,tv={};function tk(...e){return(e=e.filter(e=>!tx.has(e))).length?(e.forEach(e=>{n=void 0,tx.add(e)}),tv.register?.forEach(t=>tS(()=>t(...e))),function(){e.forEach(e=>{n=void 0,tx.delete(e)}),tv.unregister?.forEach(t=>tS(()=>t(...e)))}):()=>{}}function tC(){return n||(n=[...tx]),n}function tE(e,t){return tv[e]?.push(t)||(tv[e]=[t]),function(){tv[e]=tv[e]?.filter(e=>t!==e)}}function tS(e){try{e()}catch(e){console.error(e)}}class tI extends Event{get detail(){return tb(this,N,"f")}get type(){return"wallet-standard:app-ready"}constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),N.set(this,void 0),tw(this,N,e,"f")}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}function tN(e){let t=(0,K.useRef)(void 0);return void 0===t.current&&(t.current={value:e()}),t.current.value}function tj(e){return e.filter(ta).map(e=>new ty({wallet:e}))}N=new WeakMap,(l=j||(j={}))[l.DESKTOP_WEB=0]="DESKTOP_WEB",l[l.MOBILE_WEB=1]="MOBILE_WEB";var tL=A;class tT extends tL.WalletError{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}function tA({children:e,wallets:t,adapter:n,isUnloadingRef:r,onAutoConnectRequest:o,onConnectError:a,onError:s,onSelectWallet:l}){let i=(0,K.useRef)(!1),[c,d]=(0,K.useState)(!1),u=(0,K.useRef)(!1),[_,m]=(0,K.useState)(!1),[h,p]=(0,K.useState)(()=>n?.publicKey??null),[g,f]=(0,K.useState)(()=>n?.connected??!1),y=(0,K.useRef)(s);(0,K.useEffect)(()=>(y.current=s,()=>{y.current=void 0}),[s]);let b=(0,K.useRef)((e,t)=>(!r.current&&(y.current?y.current(e,t):(console.error(e,t),e instanceof A.WalletNotReadyError&&"u">typeof window&&t&&window.open(t.url,"_blank"))),e)),[w,x]=(0,K.useState)(()=>t.map(e=>({adapter:e,readyState:e.readyState})).filter(({readyState:e})=>e!==T.WalletReadyState.Unsupported));(0,K.useEffect)(()=>{function e(e){x(t=>{let n=t.findIndex(({adapter:e})=>e===this);if(-1===n)return t;let{adapter:r}=t[n];return[...t.slice(0,n),{adapter:r,readyState:e},...t.slice(n+1)].filter(({readyState:e})=>e!==T.WalletReadyState.Unsupported)})}return x(e=>t.map((t,n)=>{let r=e[n];return r&&r.adapter===t&&r.readyState===t.readyState?r:{adapter:t,readyState:t.readyState}}).filter(({readyState:e})=>e!==T.WalletReadyState.Unsupported)),t.forEach(t=>t.on("readyStateChange",e,t)),()=>{t.forEach(t=>t.off("readyStateChange",e,t))}},[n,t]);let v=(0,K.useMemo)(()=>w.find(e=>e.adapter===n)??null,[n,w]);(0,K.useEffect)(()=>{if(!n)return;let e=e=>{p(e),i.current=!1,d(!1),f(!0),u.current=!1,m(!1)},t=()=>{r.current||(p(null),i.current=!1,d(!1),f(!1),u.current=!1,m(!1))},o=e=>{b.current(e,n)};return n.on("connect",e),n.on("disconnect",t),n.on("error",o),()=>{n.off("connect",e),n.off("disconnect",t),n.off("error",o),t()}},[n,r]);let k=(0,K.useRef)(!1);(0,K.useEffect)(()=>()=>{k.current=!1},[n]),(0,K.useEffect)(()=>{k.current||i.current||g||!o||v?.readyState!==T.WalletReadyState.Installed&&v?.readyState!==T.WalletReadyState.Loadable||(i.current=!0,d(!0),k.current=!0,async function(){try{await o()}catch{a()}finally{d(!1),i.current=!1}}())},[g,o,a,v]);let C=(0,K.useCallback)(async(e,t,r)=>{if(!n)throw b.current(new tT);if(!g)throw b.current(new A.WalletNotConnectedError,n);return await n.sendTransaction(e,t,r)},[n,g]),E=(0,K.useMemo)(()=>n&&"signTransaction"in n?async e=>{if(!g)throw b.current(new A.WalletNotConnectedError,n);return await n.signTransaction(e)}:void 0,[n,g]),S=(0,K.useMemo)(()=>n&&"signAllTransactions"in n?async e=>{if(!g)throw b.current(new A.WalletNotConnectedError,n);return await n.signAllTransactions(e)}:void 0,[n,g]),I=(0,K.useMemo)(()=>n&&"signMessage"in n?async e=>{if(!g)throw b.current(new A.WalletNotConnectedError,n);return await n.signMessage(e)}:void 0,[n,g]),N=(0,K.useMemo)(()=>n&&"signIn"in n?async e=>await n.signIn(e):void 0,[n]),j=(0,K.useCallback)(async()=>{if(i.current||u.current||v?.adapter.connected)return;if(!v)throw b.current(new tT);let{adapter:e,readyState:t}=v;if(t!==T.WalletReadyState.Installed&&t!==T.WalletReadyState.Loadable)throw b.current(new A.WalletNotReadyError,e);i.current=!0,d(!0);try{await e.connect()}catch(e){throw a(),e}finally{d(!1),i.current=!1}},[a,v]),L=(0,K.useCallback)(async()=>{if(!u.current&&n){u.current=!0,m(!0);try{await n.disconnect()}finally{m(!1),u.current=!1}}},[n]);return K.default.createElement(Z.WalletContext.Provider,{value:{autoConnect:!!o,wallets:w,wallet:v,publicKey:h,connected:g,connecting:c,disconnecting:_,select:l,connect:j,disconnect:L,sendTransaction:C,signTransaction:E,signAllTransactions:S,signMessage:I,signIn:N}},e)}function tM(e){return function({adapters:e,userAgentString:t}){return e.some(e=>e.name!==e1&&e.readyState===T.WalletReadyState.Installed)?j.DESKTOP_WEB:t&&/android/i.test(t)&&!/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(t)?j.MOBILE_WEB:j.DESKTOP_WEB}({adapters:e,userAgentString:(void 0===r&&(r=globalThis.navigator?.userAgent??null),r)})===j.MOBILE_WEB}function tP({children:e,wallets:t,autoConnect:n,localStorageKey:r="walletName",onError:a}){let s,l,i,{connection:c}=(0,K.useContext)(V),d=function(e){var t;let n,r=tN(()=>new Set),{get:a,on:s}=tN(()=>(function(){if(o||(o=function(){if(o||(o=Object.freeze({register:tk,get:tC,on:tE}),"u"<typeof window))return o;let e=Object.freeze({register:tk});try{window.addEventListener("wallet-standard:register-wallet",({detail:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new tI(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return o}(),"u"<typeof window))return o;let e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),o;let{register:t}=o,n=(...e)=>e.forEach(e=>tS(()=>e({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:n})})}catch(e){return console.error("window.navigator.wallets could not be set"),o}return n(...e),o})()),[l,i]=(0,K.useState)(()=>tj(a()));(0,K.useEffect)(()=>{let e=[s("register",(...e)=>i(t=>[...t,...tj(e)])),s("unregister",(...e)=>i(t=>t.filter(t=>e.some(e=>e===t.wallet))))];return()=>e.forEach(e=>e())},[s]);let c=(t=l,n=(0,K.useRef)(void 0),(0,K.useEffect)(()=>{n.current=t}),n.current);return(0,K.useEffect)(()=>{if(!c)return;let e=new Set(l);new Set(c.filter(t=>!e.has(t))).forEach(e=>e.destroy())},[c,l]),(0,K.useEffect)(()=>()=>l.forEach(e=>e.destroy()),[]),(0,K.useMemo)(()=>[...l,...e.filter(({name:e})=>!l.some(t=>t.name===e)||(r.has(e)||(r.add(e),console.warn(`${e} was registered as a Standard Wallet. The Wallet Adapter for ${e} can be removed from your app.`)),!1))],[l,e,r])}(t),u=(0,K.useMemo)(()=>{var e;if(!tM(d))return null;let t=d.find(e=>e.name===e1);return t?t:new tr({addressSelector:{select:async e=>e[0]},appIdentity:{uri:function(){let e=globalThis.location;if(e)return`${e.protocol}//${e.host}`}()},authorizationResultCache:function(){let e;try{e=window.localStorage}catch{}return{async clear(){if(e)try{e.removeItem(e7)}catch{}}
479,async get(){if(e)try{let t=JSON.parse(e.getItem(e7));if(!t||!t.accounts)return t||void 0;{let e=t.accounts.map(e=>({...e,publicKey:"publicKey"in e?new Uint8Array(Object.values(e.publicKey)):eP.default.decode(e.address)}));return{...t,accounts:e}}}catch{}},async set(t){if(e)try{e.setItem(e7,JSON.stringify(t))}catch{}}}}(),cluster:(e=c?.rpcEndpoint)?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta",onWalletNotFound:to})},[d,c?.rpcEndpoint]),_=(0,K.useMemo)(()=>null==u||-1!==d.indexOf(u)?d:[u,...d],[d,u]),[m,h]=(l=(s=(0,K.useState)(()=>{try{let e=localStorage.getItem(r);if(e)return JSON.parse(e)}catch(e){"u">typeof window&&console.error(e)}return null}))[0],i=(0,K.useRef)(!0),(0,K.useEffect)(()=>{if(i.current){i.current=!1;return}try{null===l?localStorage.removeItem(r):localStorage.setItem(r,JSON.stringify(l))}catch(e){"u">typeof window&&console.error(e)}},[l,r]),s),p=(0,K.useMemo)(()=>_.find(e=>e.name===m)??null,[_,m]),g=(0,K.useCallback)(e=>{m!==e&&(p&&p.name!==e1&&p.disconnect(),h(e))},[p,h,m]);(0,K.useEffect)(()=>{if(p)return p.on("disconnect",e),()=>{p.off("disconnect",e)};function e(){b.current||h(null)}},[p,d,h,m]);let f=(0,K.useRef)(!1),y=(0,K.useMemo)(()=>{if(n&&p)return async()=>{(!0===n||await n(p))&&(f.current?await p.connect():await p.autoConnect())}},[n,p]),b=(0,K.useRef)(!1);(0,K.useEffect)(()=>{if(m===e1&&tM(d)){b.current=!1;return}function e(){b.current=!0}return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[d,m]);let w=(0,K.useCallback)(()=>{p&&g(null)},[p,g]),x=(0,K.useCallback)(e=>{f.current=!0,g(e)},[g]);return K.default.createElement(tA,{wallets:_,adapter:p,isUnloadingRef:b,onAutoConnectRequest:y,onConnectError:w,onError:a,onSelectWallet:x},e)}var tz=e.i(6799),tR=e.i(174117),tO=e.i(195157),tW=e.i(288178),tB=e.i(559110);let tD=(0,tW.default)(async()=>(await e.A(898527)).WalletModalProvider,{loadableGenerated:{modules:[320905]},ssr:!1});function tY({disconnectRef:e,selectRef:t,setModalVisibleRef:n}){let{disconnect:r,select:o}=(0,Z.useWallet)(),{setVisible:a}=(0,tB.useWalletModal)();return(0,K.useEffect)(()=>(e.current=r,t.current=o,n.current=a,()=>{e.current=null,t.current=null,n.current=null}),[r,e,o,t,a,n]),null}e.s(["SolanaContextProvider",0,({children:e})=>{let{toast:t}=(0,tR.useToast)(),n=(0,K.useRef)(null),r=(0,K.useRef)(null),o=(0,K.useRef)(null),a=i.Mainnet,s=(0,K.useMemo)(()=>[new W({network:a}),new Q],[a]),l=(0,K.useCallback)(()=>{window.location.reload()},[]),c=(0,K.useCallback)(async()=>{window.localStorage.removeItem("wallet"),window.localStorage.removeItem("walletName");try{n.current&&await n.current()}catch(e){console.error("Wallet disconnect during recovery failed",e)}try{r.current?.(null)}catch(e){console.error("Wallet selection reset failed",e)}setTimeout(()=>{o.current?.(!0)},0)},[]),d=(0,K.useCallback)(async e=>{if(console.error("WalletError",e),"User rejected the request."===e.message)return;let n="WalletNotReadyError"===e.name,r="WalletSignTransactionError"===e.name;n&&await c();let o=r?(0,tO.getWalletSigningGuidance)(window.navigator.userAgent):null;t({variant:"destructive",title:o?.title??"Wallet Error",duration:1/0,description:(0,L.jsx)("div",{className:"flex flex-col",children:o?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{children:o.intro}),(0,L.jsx)("span",{children:o.detail}),(0,L.jsx)("span",{children:o.instruction}),(0,L.jsx)("span",{children:o.fallback})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"font-bold",children:e.name}),(0,L.jsx)("span",{children:e.message}),(0,L.jsx)("span",{children:n?"That wallet is not available. Choose a different wallet.":"Try refreshing"})]})}),action:(0,L.jsx)(tz.ToastAction,{altText:n?"choose another wallet":"refresh",onClick:n?c:l,children:n?"Choose Wallet":"Refresh"})})},[l,c,t]);return(0,L.jsx)(X,{endpoint:"https://tildy-7acdlr-fast-mainnet.helius-rpc.com/",children:(0,L.jsx)(tP,{wallets:s,autoConnect:!0,onError:d,localStorageKey:"wallet",children:(0,L.jsxs)(tD,{children:[(0,L.jsx)(tY,{disconnectRef:n,selectRef:r,setModalVisibleRef:o}),e]})})})}],208232)},849122,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return a}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
479dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},819013,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return f}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(481258),s=e.r(744066),l=e.r(332080),i=a._(e.r(961542)),c=s._(e.r(607564)),d=e.r(668564),u=e.r(313529),_=e.r(849122),m=new Map,h=new Set,p=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:s="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,_=n||t;if(_&&h.has(_))return;if(m.has(t)){h.add(_),m.get(t).then(r,c);return}let p=()=>{o&&o(),h.add(_)},g=document.createElement("script"),f=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(g.innerHTML=a.__html||"",p()):s?(g.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",p()):t&&(g.src=t,m.set(t,f)),(0,u.setAttributesFromProps)(g,e),"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),d&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(g)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,_.requestIdleCallback)(()=>p(e))}):p(e)}function f(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:a="afterInteractive",onError:s,stylesheets:u,...m}=e,{updateScripts:g,scripts:f,getIsSsr:y,appDir:b,nonce:w}=(0,c.useContext)(d.HeadManagerContext);w=m.nonce||w;let x=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;x.current||(o&&e&&h.has(e)&&o(),x.current=!0)},[o,t,n]);let v=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!v.current){if("afterInteractive"===a)p(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,_.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,_.requestIdleCallback)(()=>p(e))}));v.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(g?(f[a]=(f[a]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:s,...m,nonce:w}]),g(f)):y&&y()?h.add(t||n):y&&!y()&&p({...e,nonce:w})),b){if(u&&u.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!n)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...m,id:t}])})`}});else return i.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([n,{...m,id:t}])})`}});"afterInteractive"===a&&n&&i.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}]);

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.