!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de884e61-d2a7-4025-8432-0c7738900ade",e._sentryDebugIdIdentifier="sentry-dbid-de884e61-d2a7-4025-8432-0c7738900ade")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9823],{49823:function(e,t,a){a.r(t),a.d(t,{default:function(){return Oa}});var i=a(95235),n=a(82269),r=a(97729),o=a.n(r),s=a(52322),l=a(69549),d=a(77111),p=a(7307),c=a(2784),m=a(52049),h=a(13980),g=a.n(h),u=a(53770),f=a(43992),x=a(3517),b=a(55249),w=a(9358),y=a(98046),v=a(82091),j=a(72692),_=a(33197),k=a(29650);const z=["bgColor","children","className"],C=["id","use","className"],I=["heading","richText","video","fallback"],U=["smaller","direction","color"],N=["animate","className","children"],q=["items"],M=["direction","setCharacterState"],S=["items"],T=["id"],P=["children","className"],E=["children","className"],O=["variant","children","className"];function X(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Y(e){for(var t=1;t{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{theme:t}=e;return t.pmp.typography.families.handwriting}),(e=>{let{theme:t}=e;return t.pmp.typography.weights.handwriting})),R=(0,p.createGlobalStyle)([".","{--paper-tear-angle:5vw;--paper-tear-duration:1.5;@media ","{--paper-tear-duration:2;}@media ","{--paper-tear-duration:2.5;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp"),(0,l.t)("largeUp")),W=p.default.figcaption.withConfig({componentId:"pmp-module__sc-1vrpza9-0"})(["align-self:end;background-color:",";clip-path:polygon(0 3%,100% 0,96% 100%,2% 96%);grid-area:main;justify-self:center;padding:13px 19px 11px;transform:translateY(50%);@media ","{padding:20px 32px 12px;}"],(e=>{let{bgColor:t}=e;return(0,l.a)(t)}),(0,l.t)("largeUp"));function L(e){let{bgColor:t,children:a,className:i}=e,r=(0,n.Z)(e,z);return(0,s.jsx)(W,Y(Y({bgColor:t,className:i},r),{},{children:a}))}L.defaultProps={bgColor:"yellow"},L.propTypes=Y({bgColor:g().oneOf(["yellow","blue","white"]).isRequired},u.c);const A=p.default.svg.withConfig({componentId:"pmp-module__sc-1543wt0-0"})([""," "," ",""],(e=>{let{fillColor:t,theme:a}=e;return t&&(0,p.css)(["fill:",";"],a.pmp.colors[t])}),(e=>{let{strokeColor:t,theme:a}=e;return t&&(0,p.css)(["stroke:",";"],a.pmp.colors[t])}),(e=>{let{theme:t}=e;return(0,p.css)(["height:",";width:",";"],t.pmp.iconSize.inline,t.pmp.iconSize.inline)})),Z=e=>{let{id:t,use:a,className:i}=e,r=(0,n.Z)(e,C);return a?(0,s.jsx)(A,Y(Y({className:i},r),{},{"aria-hidden":"true",children:(0,s.jsx)("use",{xlinkHref:`#${l.N}-icon-${t}`,style:{width:"100%",height:"100%"}})})):Ht(Y({id:t,className:i,as:"svg","aria-hidden":!0},r))};Z.defaultProps={use:!0},Z.propTypes={id:h.string.isRequired,use:h.bool,fillColor:h.string,strokeColor:h.string,className:h.string};var G=Z;const V=p.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-0"})(["padding-block-start:72px;padding-block-end:calc(var(--paper-tear-angle) - 45px);position:relative;margin-bottom:calc(var(--paper-tear-angle) * -1);overflow:hidden;&::after{background-color:",";content:'';height:",";inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute;}@media ","{padding-block-end:calc(var(--paper-tear-angle) * 2);}@media ","{padding-block-start:160px;}"],(0,l.a)("burnt-orange"),(0,l.s)(2),(0,l.t)("mediumUp"),(0,l.t)("largeUp")),F=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-1pyxua8-1"})(["@media ","{margin-inline-start:",";}"],(0,l.t)("largeUp"),(e=>{let{theme:t}=e;return(0,l.i)(t,1)})),J=p.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-2"})(["@media ","{inline-size:min(100%,614px);margin:auto;}"],(0,l.t)("xlargeUp")),Q=(0,p.default)(G).withConfig({componentId:"pmp-module__sc-1pyxua8-3"})(["--rotation:0deg;--scale:1;--size:28px;color:",";height:var(--size);position:relative;top:-0.1em;transform:scale(var(--scale)) rotate(var(--rotation));transition:transform "," ",";width:var(--size);@media ","{--size:44px;}"],(0,l.a)("red"),(0,f.d)(.2),(0,l.d)("out"),(0,l.t)("largeUp")),K=(0,p.default)(f.V).withConfig({componentId:"pmp-module__sc-1pyxua8-4"})(["display:block;inline-size:100%;@media (hover:hover){&:hover{","{--rotation:-6deg;--scale:1.36;}}}"],Q),B=(0,p.default)(L).withConfig({componentId:"pmp-module__sc-1pyxua8-5"})(["align-items:center;display:flex;gap:",";@media ","{gap:",";}"],(0,l.s)(),(0,l.t)("largeUp"),(0,l.s)(2)),$=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1pyxua8-6"})(["--start-alpha:0;--end-alpha:1;--start-rotate:-20deg;--end-rotate:-45deg;--start-scale:1.4;--end-scale:1;left:-8%;position:absolute;top:12%;width:34%;"]),ee=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1pyxua8-7"})(["display:block;"]),te=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-1pyxua8-8"})(["inline-size:240px;margin-inline:auto;"]),ae=p.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-9"})(["@media ","{inline-size:118%;margin-inline:0;max-inline-size:none;}"],(0,l.t)("mediumUp")),ie=p.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-10"})(["--y:",";inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute;transform:translateY(var(--y));transition:transform "," ",";."," & img{inline-size:max(100%,745px);inset-block-start:0;inset-inline-start:50%;max-width:none;position:relative;transform:translateX(-50%);}@media (prefers-reduced-motion:reduce){display:none;}"],(e=>{let{reveal:t}=e;return t?"-100%":0}),(0,f.d)(2),(0,l.d)("in-out"),(e=>{let{theme:t}=e;return t.pmp.namespace}));function ne(){const{section:e,content:t,trailer:a,character:i}=(0,f.a)({section:"4G6MTbGTup0bQSWpbx9zgV",content:"5ye6pOewuplOblLrNY9gn7",trailer:"645wnLEflk88AXl24lLYXr",character:"5MllDHMdljouGc7DgWXhjm"}),[n,r]=(0,m.YD)(.3,!0,!0),{0:o,1:l}=(0,c.useState)(!1);return(0,c.useEffect)((()=>{let e=setTimeout((()=>{l(!0)}),1400);return()=>{clearTimeout(e)}}),[r]),e.hide?null:(0,s.jsx)("section",{ref:n,children:(0,s.jsxs)(V,{as:ra,variant:"paper-red",children:[(0,s.jsxs)(f.R,{verticalCenter:!0,className:"child-spacing-small--6",children:[(0,s.jsxs)(F,{span:6,className:"text-center child-spacing--3 child-spacing-small--2",forwardedAs:f.I,once:!0,children:[(0,s.jsx)(f.b,{as:"h2",className:"title-1 color-white",animation:"up",delay:1,children:t.heading}),(0,s.jsx)(f.b,{animation:"up",delay:1.2,children:(0,s.jsx)(f.e,{className:"title-3 text-weight-bold color-yellow",data:t.body})}),(0,s.jsx)(J,{children:(0,s.jsx)(K,{assetPath:a.heading,dialogLabel:"Paper Mario: The Thousand Year Door trailer",hashId:"",children:(0,s.jsxs)(Jt,{children:[(0,s.jsx)(Kt,{children:(0,s.jsx)(Wt,{as:f.b,delay:1.4,animation:"pop",children:(0,s.jsx)(et,{animate:o,children:(0,s.jsx)(w.I,Y(Y({},t.asset.primary),{},{alt:""}))})})}),(0,s.jsxs)(B,{forwardedAs:f.b,animation:!0,delay:1.8,bgColor:"blue",className:"handwriting color-white",children:[t.cta.label,(0,s.jsx)(Q,{id:"play"})]}),(0,s.jsx)($,{as:f.b,delay:1.8,animation:"fade",children:(0,s.jsx)(ee,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tape/tape-green",alt:""})})]})})})]}),(0,s.jsx)(te,{span:6,large:5,forwardedAs:f.I,once:!0,children:(0,s.jsx)(ae,Y(Y({},i.primary),{},{alt:i.alt,as:f.b,forwardedAs:w.I,animation:"left",delay:.75,duration:.6}))})]}),(0,s.jsx)(ie,{reveal:r,children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/intro/curtain",alt:"",loading:"lazy"})})]})})}const re=p.default.div.withConfig({componentId:"pmp-module__sc-17zt1h2-0"})(["padding:"," 0 calc(var(--paper-tear-angle) * 2.5);margin-bottom:calc(var(--paper-tear-angle) * -1);@media ","{padding-block-start:",";}"],(0,l.s)(6),(0,l.t)("xlargeUp"),(0,l.s)(11));function oe(){const{section:e,content:t}=(0,f.a)({section:"k8EgAz2MncFATk3wksPGx",content:"4jwbPUElZCGhGJNzHapQCD"}),a=(0,c.useMemo)((()=>e.modules.filter((e=>"modulePromoC"===e.__contentType))),[e]);return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(ra,{variant:"paper-brown",className:"color-black text-center",children:(0,s.jsxs)(re,{as:f.I,className:"child-spacing-small--4 child-spacing-medium--4 child-spacing--8",children:[(0,s.jsx)(f.R,{children:(0,s.jsxs)(f.C,{span:10,large:8,className:"child-spacing--2",children:[(0,s.jsx)(f.b,{as:"h3",className:"title-1 color-blue",animation:"shortUp",children:t.heading}),(0,s.jsx)(f.b,{animation:"shortUp",delay:.2,children:(0,s.jsx)(f.e,{data:t.body,className:"title-3 text-weight-700"})})]})}),(0,s.jsx)(f.b,{animation:"pop",delay:.4,children:(0,s.jsx)(Dt,{items:a})})]})})})}const se=p.default.article.withConfig({componentId:"pmp-module__sc-85wr6s-0"})(["margin-top:calc(var(--paper-tear-angle) * -1);padding-block:calc(50px + var(--paper-tear-angle,0vw));padding-block-start:calc(var(--paper-tear-angle) * 2.5 + 30px);@media ","{padding-block-start:calc(var(--paper-tear-angle) * 2.5);}"],(0,l.t)("mediumUp")),le=p.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-1"})(["perspective:1850px;"]),de=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-85wr6s-2"})(["display:grid;padding-block:"," ",";place-items:center;text-align:center;[class^='title-']{text-shadow:0px 4px 4px rgba(0,0,0,0.25);}@media ","{padding-block-end:",";}@media ","{padding-block:",";}"],(0,l.s)(3),(0,l.s)(6),(0,l.t)("mediumUp"),(0,l.s)(7),(0,l.t)("largeUp"),(0,l.s)(7)),pe=p.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-3"})(["inline-size:min(100%,450px);padding-inline:calc(var(--gutter-width) * 0.5);@media ","{padding-inline:0;}"],(0,l.t)("xlargeUp")),ce=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-85wr6s-4"})(["--rotate:",";align-items:flex-end;background-color:",";background:linear-gradient(180deg,#0010a1 0%,rgba(1,17,161,0) 100%),#0012b1;backface-visibility:visible;display:flex;padding-inline:0 !important;perspective:inherit;transform-origin:50% 0;transform:rotateX(var(--rotate));transition:transform "," ",";@media (prefers-reduced-motion:reduce){--rotate:0deg;}@media ","{--rotate:",";background-image:linear-gradient( 90deg,#0010a1 0%,rgba(1,17,161,0) 100% );transform-origin:0 50%;transform:rotateY(var(--rotate));}"],(e=>{let{unfold:t}=e;return t?"0deg":"180deg"}),(0,l.a)("blue"),(0,f.d)(1.5),(0,l.d)("in-out"),(0,l.t)("largeUp"),(e=>{let{unfold:t}=e;return t?"0deg":"-180deg"})),me=p.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-5"})(["--rotate:",";inline-size:100%;opacity:0;transform-origin:50% 100%;transform:rotateX(var(--rotate));transition:transform 0.4s "," 0s,opacity 0s 0.4s;"," margin-top:auto;@media (prefers-reduced-motion:reduce){opacity:1;transform:none;}"],(e=>{let{reveal:t}=e;return t?"0deg":"-82deg"}),(0,l.d)("back-in"),(e=>{let{reveal:t}=e;return t&&(0,p.css)(["opacity:1;transition-delay:1s,1s;transition-duration:0.5s,0.5s;transition-timing-function:linear,linear;"])})),he=p.default.img.withConfig({componentId:"pmp-module__sc-85wr6s-6"})(["clip-path:inset(0 0 13.36666% 0);@media ","{inline-size:min(100%,422px);}"],(0,l.t)("medium"));function ge(){const{mediumDown:e}=(0,f.u)(),[t,a]=(0,m.YD)(.3,!1,!1),{section:i,content:n}=(0,f.a)({section:"1JWUKERRKBHULAJMWvqQUt",content:"1TMsuA2Pf7VuMi66qX48Gz"});return i.hide?null:(0,s.jsx)("section",{ref:t,children:(0,s.jsx)(se,{as:ra,variant:"dots-yellow",children:(0,s.jsx)(f.R,{children:(0,s.jsx)(f.C,{span:10,large:11,xxlarge:10,children:(0,s.jsxs)(le,{as:f.R,stackMedium:!0,children:[(0,s.jsx)(de,{span:6,className:"bg-blue",children:(0,s.jsxs)(pe,{className:"child-spacing--2",children:[(0,s.jsx)("h3",{className:"title-2 color-yellow",children:n.heading}),(0,s.jsx)(f.e,{data:n.body,className:"body color-white"})]})}),(0,s.jsx)(ce,{span:6,unfold:a,children:(0,s.jsx)(me,{as:y.I,width:578,height:470,maxWidth:e?"422px":"100%",className:"center",reveal:a,children:(0,s.jsx)(y.a,{width:566,left:12,top:-50,children:(0,s.jsx)(he,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/mario-map-2x",alt:""})})})})]})})})})})}const ue=(0,p.default)(L).attrs({bgColor:"yellow"}).withConfig({componentId:"pmp-module__sc-xmzgj1-0"})(["--alpha:0;--delay:0;--overlap:1rem;--scale:0.5;inline-size:88%;opacity:var(--alpha);padding:20px 32px;margin:calc(var(--overlap) * -1) auto var(--overlap);transform:scale(var(--scale));transition-property:transform,opacity;transition-duration:",";transition-delay:",";transition-timing-function:",";.pmp-module & > * + *{margin-top:4px;}"," @media ","{--overlap:2rem;inline-size:min(80%,470px);padding:28px 40px;}"],(0,f.d)(.4),(0,f.d)("var(--delay)"),(0,l.d)("back-out"),(e=>{let{animate:t}=e;return t&&(0,p.css)(["--alpha:1;--delay:0.4;--scale:1;"])}),(0,l.t)("mediumUp"));function fe(e){let{heading:t,richText:a,video:i,fallback:r}=e,o=(0,n.Z)(e,I);const[l,d]=(0,m.YD)(.3,!0,!1),p=(0,x.J)();return(0,s.jsxs)("div",Y(Y({ref:l},o),{},{children:[(0,s.jsx)(et,{animate:d,reverse:!d,children:(0,s.jsx)(Jt,{children:(0,s.jsx)(Kt,{children:(0,s.jsx)(k.o,{src:i,posterImg:r,prefersReducedMotion:p,renderReducedMotionFallback:()=>(0,s.jsx)("img",{src:r,alt:""})})})})}),t&&(0,s.jsxs)(ue,{forwardedAs:"div",bgColor:"yellow",animate:d,children:[(0,s.jsx)("h4",{className:"handwriting color-blue",children:t}),a&&(0,s.jsx)(f.e,{data:a,className:"color-black"})]})]}))}fe.propTypes={heading:g().string,richText:g().object,asset:g().object,video:g().string,fallback:g().string};const xe=p.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-0"})(["padding:calc(var(--paper-tear-angle) * 2.5 + ",") 0 calc(var(--paper-tear-angle) * 2.5 + ",");margin:calc(var(--paper-tear-angle) * -1) auto;z-index:2;@media ","{padding:calc(var(--paper-tear-angle) * 2.5) 0 calc(var(--paper-tear-angle) * 2.5 + ",");}@media ","{padding:calc(var(--paper-tear-angle)) 0;}"],(0,l.s)(4),(0,l.s)(8),(0,l.t)("mediumUp"),(0,l.s)(10),(0,l.t)("largeUp")),be=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-4ufqxp-1"})(["@media ","{block-size:100vh;display:grid;place-content:center;position:sticky;inset-block-start:120px;}"],(0,l.t)("largeUp")),we=p.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-2"})(["--max-width:486px;inline-size:min(100%,var(--max-width));margin:0 auto;@media ","{--max-width:384px;margin-block-start:-170px;}@media ","{--max-width:450px;}"],(0,l.t)("largeUp"),(0,l.t)("xlarge")),ye=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-4ufqxp-3"})(["display:flex;flex-direction:column;gap:48px;margin:"," auto 0 !important;inline-size:min(100%,486px);@media ","{margin-block-start:",";}@media ","{gap:0;inline-size:auto;margin:0 !important;}"],(0,l.s)(3),(0,l.t)("largeUp"),(0,l.s)(4),(0,l.t)("largeUp")),ve=p.default.li.withConfig({componentId:"pmp-module__sc-4ufqxp-4"})(["align-items:center;display:grid;@media ","{block-size:100vh;}"],(0,l.t)("largeUp")),je=(0,p.default)(f.R).attrs({stackMedium:!0}).withConfig({componentId:"pmp-module__sc-4ufqxp-5"})(["inset:0;inset-block-start:420px;pointer-events:none;position:absolute;@media ","{inset-block-start:0;}"],(0,l.t)("largeUp")),_e=(0,p.default)(f.C).attrs({span:6}).withConfig({componentId:"pmp-module__sc-4ufqxp-6"})(["inset:0;position:absolute;@media ","{margin-inline-start:",";position:relative;}@media ","{margin-inline-start:",";}"],(0,l.t)("largeUp"),(e=>{let{theme:t}=e;return(0,l.i)(t,5)}),(0,l.t)("xxlarge"),(e=>{let{theme:t}=e;return(0,l.i)(t,4)})),ke=p.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-7"})(["--tile-size:17px;--half-tile-size:calc(var(--tile-size) * 0.5);background-image:radial-gradient( circle at 50%,"," 40%,transparent 43% );background-size:var(--half-tile-size) var(--tile-size);block-size:100%;inline-size:var(--half-tile-size);margin-inline:auto;"],(0,l.a)("white")),ze=(0,p.default)((function(e){const[t,a]=(0,m.YD)(0,!1,!1);return(0,s.jsx)($t,Y(Y({ref:t,animate:a},e),{},{children:(0,s.jsx)(ea,{src:"https://assets.nintendo.com/image/upload/v1713826850/Marketing/pmp-paper-mario-ttyd-197h3odh827n/gameplay/plane-optimised.png",alt:""})}))})).withConfig({componentId:"pmp-module__sc-4ufqxp-8"})(["inline-size:100%;inset-block-end:40vh;inset-inline-start:0;position:absolute;"]);function Ce(){const{section:e,content:t,badges:a,badgesVideo:i,badgesThumb:n,specials:r,specialsVideo:o,specialsThumb:l,abilities:d,abilitiesVideo:p,abilitiesThumb:m}=(0,f.a)({section:"31OV4Pts9qrppJNFRd2jy6",content:"5tvYsNnRArHfmjHWYzQYim",badges:"2v9vgd8HX9U2D9gXZ8UMap",badgesVideo:"1S88qLPPzSkieilsN1Lnhr",badgesThumb:"2AEjRpGd2fbazeRiKE16gY",specials:"4jS7Bn33M10iPeeiMs0DG1",specialsVideo:"1A8td6aEaqsjcFhLqF8dLE",specialsThumb:"44k3mel2oQPWSx82K04Lxb",abilities:"mxPX8ugX7aDtWZpCMK3FW",abilitiesVideo:"356qBaOJ3zoaXhaKXnAOOY",abilitiesThumb:"147tiNldmpty145qN6oJ9k"}),h=(0,x.J)(),g=(0,c.useMemo)((()=>[a,r,d]),[a,r,d]),u={"2v9vgd8HX9U2D9gXZ8UMap":{video:i.heading,fallback:n.heading},"4jS7Bn33M10iPeeiMs0DG1":{video:o.heading,fallback:l.heading},mxPX8ugX7aDtWZpCMK3FW:{video:p.heading,fallback:m.heading}};return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(ra,{variant:"paper-blue",className:"color-white text-center relative",children:(0,s.jsxs)(xe,{children:[(0,s.jsx)(je,{children:(0,s.jsx)(_e,{children:(0,s.jsx)(ke,{})})}),(0,s.jsxs)(f.R,{stackMedium:!0,children:[(0,s.jsx)(be,{span:5,xxlarge:4,children:(0,s.jsxs)(we,{className:"child-spacing--1",as:f.I,staggerChildren:{animation:"shortUp"},once:!0,children:[(0,s.jsx)("h3",{className:"title-2 color-yellow",children:t.heading}),(0,s.jsx)(f.e,{data:t.body})]})}),(0,s.jsx)(ye,{forwardedAs:"ul",span:6,children:g.map((e=>(0,s.jsx)(ve,{children:(0,s.jsx)(fe,{heading:e.heading,richText:e.body,video:u[e.__entryId].video,fallback:u[e.__entryId].fallback})},e.__entryId)))})]}),!h&&(0,s.jsx)(ze,{})]})})})}const Ie=p.default.div.withConfig({componentId:"pmp-module__sc-1kjrz9m-0"})(["padding:calc(var(--paper-tear-angle) * 4 + ",") 0 ",";margin-top:calc(var(--paper-tear-angle) * -1);@media screen and (min-width:460px){padding:calc(var(--paper-tear-angle) * 3 + ",") 0 ",";}@media ","{padding:calc(var(--paper-tear-angle) * 2.5 + ",") 0 ",";}"],(0,l.s)(6),(0,l.s)(6),(0,l.s)(4),(0,l.s)(6),(0,l.t)("mediumUp"),(0,l.s)(3),(0,l.s)(7)),Ue=(0,p.default)(f.R).attrs({reverse:!0}).withConfig({componentId:"pmp-module__sc-1kjrz9m-1"})(["align-items:flex-start;"]),Ne=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1kjrz9m-2"})(["position:absolute;right:-30px;top:9px;transform:rotate(45deg);width:130px;@media ","{right:-5.3%;top:4%;width:26%;}"],(0,l.t)("mediumUp"));function qe(){const{section:e,content:t}=(0,f.a)({section:"1X4BTlN9bd03IS2LJEQorO",content:"4Co0RwNcffdH0S6g6sdYun"}),a=(0,f.a)([{content:"1KJQGgmhsP4h9pJag9iUof",cloudinaryUrl:"6nOzFb48DzmuHMqJcAsU2L"},{content:"7sSTOOGTntERkU90QXIcRr",cloudinaryUrl:"57ojYIeEZbe47NscCGsFUm"},{content:"7mbl4kE174XQOYusjcFziM",cloudinaryUrl:"2T6b5SJm5iFmxShUVTeaJP"},{content:"7domBVOc2AlOQ9kTWq7mqK",cloudinaryUrl:"3gEgqjnABpFTlZAVcGpz8q"},{content:"imRtuoDDuykKAfirbVA6i",cloudinaryUrl:"2BhVGrYK2GnjVcqYchpq35"},{content:"4Or2LtyPiV5MMOEuFnNSG0",cloudinaryUrl:"3NJ9DsvhMU9BxEwEYpvGMm"},{content:"wjeZJAVFAYqiE5Cj8cGWf",cloudinaryUrl:"5A0vC5vOGV291QNEQshq8Z"},{content:"3kCDxvYjddxSzPL33PZCQt",cloudinaryUrl:"1tYmhPX1JOGjMZSYXSXax7"},{content:"63ToJKYjQQHfjQvnfdzolB",cloudinaryUrl:"21sNZMgXNOhslhZheEXc73"},{content:"2HxzxM0nBeYp2XIy5xP3VP",cloudinaryUrl:"41cZKaAKuMwsQ5k9r7ouW1"}]),i=Object.keys(a).map((e=>[e,a[e]]));return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(ra,{variant:"paper-red",className:"color-white text-center",children:(0,s.jsxs)(Ie,{className:"child-spacing-small--5 child-spacing-medium--6 child-spacing--14",children:[(0,s.jsx)(f.R,{children:(0,s.jsxs)(f.C,{as:f.I,span:10,className:"child-spacing--2",staggerChildren:{animation:"up",stagger:.2},children:[(0,s.jsx)("h3",{className:"title-1 color-yellow",children:t.heading}),(0,s.jsx)(f.e,{data:t.body,className:"title-3"})]})}),(0,s.jsxs)(Ue,{forwardedAs:f.I,children:[(0,s.jsxs)(f.C,{as:f.b,animation:"pop",delay:.2,span:7,className:"relative",children:[(0,s.jsx)(lt,{items:i}),(0,s.jsx)(Ne,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tape/tape-yellow",alt:""})]}),(0,s.jsx)(f.C,{span:3,children:(0,s.jsx)(Vt,{})})]})]})})})}p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1kjrz9m-3"})(["display:block;inline-size:240px;margin-inline:auto;@media ","{inline-size:100%;margin-block-end:",";}"],(0,l.t)("mediumUp"),(0,l.s)(5));const Me=p.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-0"})(["padding-top:",";@media ","{padding-top:",";}"],(0,l.s)(7),(0,l.t)("largeUp"),(0,l.s)(12)),Se=p.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-1"})(["display:inline-block;padding:"," ",";position:relative;margin-left:auto;margin-right:auto;&::before{clip-path:polygon( 0 4px,100% 0,calc(100% - 8px) 100%,6px calc(100% - 4px) );content:'';background:#fff;position:absolute;top:0;left:0;height:100%;width:100%;}"],(0,l.s)(3),(0,l.s)(8)),Te=p.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-2"})(["&&{inline-size:min(100%,1074px);margin-inline:auto;}"]),Pe=(0,p.default)(L).withConfig({componentId:"pmp-module__sc-1t85z3v-3"})(["align-items:center;justify-content:center;display:inline-flex;gap:",";position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);@media ","{gap:",";}"],(0,l.s)(),(0,l.t)("largeUp"),(0,l.s)(2)),Ee=(0,p.default)(G).withConfig({componentId:"pmp-module__sc-1t85z3v-4"})(["--rotation:0deg;--scale:1;--size:28px;color:",";height:var(--size);position:relative;top:-0.1em;transform:scale(var(--scale)) rotate(var(--rotation));transition:transform "," ",";width:var(--size);@media ","{--size:44px;}"],(0,l.a)("red"),(0,f.d)(.2),(0,l.d)("out"),(0,l.t)("largeUp")),Oe=(0,p.default)(f.V).withConfig({componentId:"pmp-module__sc-1t85z3v-5"})(["display:block;inline-size:100%;@media (hover:hover){&:hover{","{--rotation:-6deg;--scale:1.36;}}}"],Ee);function Xe(){const{section:e,content:t,clourdinaryThumb:a,clourdinaryVideo:i}=(0,f.a)({section:"4qKw4YuRN0G5b5BOS5yPGp",content:"6l62zuU5c46KB0CJuHemSx",clourdinaryThumb:"1Q06kbne5KG4DG1ibl4Uxp",clourdinaryVideo:"3bWmXnnQEThPkjgaRlpviD"}),[n,r]=(0,m.YD)();return e.hide?null:(0,s.jsx)("section",{ref:n,children:(0,s.jsxs)(Me,{as:ra,variant:"dots-yellow",className:"child-spacing-small--2 child-spacing-medium--2 child-spacing--3",children:[(0,s.jsx)(f.R,{verticalCenter:!0,children:(0,s.jsxs)(f.C,{as:f.I,span:10,className:"text-center child-spacing--2 child-spacing-large--3",staggerChildren:{animation:"shortUp",stagger:.2},children:[(0,s.jsx)(Se,{children:(0,s.jsx)("h3",{className:"title-2 relative color-blue",children:t.heading})}),(0,s.jsx)(Te,{as:f.e,data:t.body,className:"text-weight-bold body--larger"}),(0,s.jsx)(Oe,{assetPath:i.heading,posterPath:a.heading,dialogLabel:"Paper Mario: The Thousand Year Door. See what's new.",hashId:"",children:(0,s.jsxs)(y.I,{className:"center",height:443,maxWidth:1047,width:1047,children:[(0,s.jsx)(y.a,{width:1047,left:0,top:0,children:(0,s.jsx)(w.I,{assetPath:t.asset.primary.assetPath,alt:t.asset.alt})}),(0,s.jsx)(y.a,{width:670,left:190,top:40,children:(0,s.jsx)(w.I,{assetPath:a.heading,alt:""})}),(0,s.jsxs)(Pe,{bgColor:"blue",className:"handwriting color-white txt-center",children:[t.cta.label,(0,s.jsx)(Ee,{id:"play"})]})]})})]})}),(0,s.jsx)(Fe,{reveal:r})]})})}const Ye=p.default.div.withConfig({componentId:"pmp-module__sc-1toktdz-0"})(["--color:",";--color-hover:",";--size:40px;background-color:var(--color);block-size:var(--size);clip-path:polygon(0 2%,100% 0,100% 100%,0 98%);color:",";inline-size:var(--size);transition:background-color "," ",";"," @media (hover:hover){&:hover{background-color:var(--color-hover);}}@media ","{--size:",";}"],(e=>{let{$color:t}=e;return(0,l.a)(t)}),(0,l.a)("black"),(0,l.a)("white"),(0,f.d)(.3),(0,l.d)("out"),(e=>{let{$direction:t}=e;return!t&&(0,p.css)(["transform:scaleX(-1);"])}),(0,l.t)("largeUp"),(e=>{let{smaller:t}=e;return t?"52px":"80px"})),De=(0,p.default)(G).attrs({id:"arrow"}).withConfig({componentId:"pmp-module__sc-1toktdz-1"})(["block-size:100%;inline-size:100%;transform:rotate(0deg) scale(1);transition:transform "," ",";@media (hover:hover){",":hover &{transform:rotate(-6deg) scale(1.1);}}"],(0,f.d)(.2),(0,l.d)("out"),Ye);function He(e){let{smaller:t,direction:a,color:i}=e,r=(0,n.Z)(e,U);return(0,s.jsx)(Ye,Y(Y({smaller:t,$color:i,$direction:a},r),{},{children:(0,s.jsx)(De,{})}))}He.defaultProps={color:"red",direction:1},He.propTypes={color:g().oneOf(["red","blue"]).isRequired,direction:g().oneOf([0,1]).isRequired,smaller:g().bool};const Re=(0,p.keyframes)(["0%{transform:rotateX(var(--rotate)) translateY(0);}20%{transform:rotateX(var(--rotate)) translateY(-5%);}30%{transform:rotateX(var(--rotate)) translateY(0%);}40%{transform:rotateX(var(--rotate)) translateY(-3%);}50%,100%{transform:rotateX(var(--rotate)) translateY(0%);}"]),We=(0,p.default)(y.a).withConfig({componentId:"pmp-module__sc-w2eckp-0"})(["--rotate:",";transform:rotateX(var(--rotate));transform-origin:bottom;transition:transform 0.4s "," 0s;"," "," ",""],(e=>{let{reveal:t}=e;return t?"0deg":"-90deg"}),(0,l.d)("back-in"),(e=>{let{reveal:t,delay:a}=e;return t&&(0,p.css)(["animation:"," "," infinite;animation-delay:0.5s;transition-delay:","s;transition-duration:",";transition-timing-function:",";"],Re,(0,f.d)(2),a,(0,f.d)(1.6),(0,l.d)("spring"))}),(e=>{let{minWidth:t}=e;return t&&(0,p.css)(["top:20px;position:relative;left:-75px;min-width:calc(100% + 150px);"])}),(e=>{let{displayMedium:t}=e;return t&&(0,p.css)(["display:none;@media ","{display:block;}@media ","{display:none;}"],(0,l.t)("mediumUp"),(0,l.t)("largeUp"))})),Le=(0,p.default)(y.I).withConfig({componentId:"pmp-module__sc-w2eckp-1"})(["display:none;@media ","{display:block;}"],(0,l.t)("largeUp")),Ae=(0,p.default)(y.I).withConfig({componentId:"pmp-module__sc-w2eckp-2"})(["display:block;@media ","{display:none;}"],(0,l.t)("mediumUp"));function Ze(e){let{reveal:t}=e;return(0,s.jsxs)(Le,{width:1440,height:226,maxWidth:"1793px",className:"center",as:y.I,children:[(0,s.jsx)(We,{as:y.a,reveal:t,width:433,left:-97,top:15,delay:.6,children:(0,s.jsx)(w.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-left-2x.png"})}),(0,s.jsx)(We,{as:y.a,reveal:t,width:918,left:256,top:15,delay:.8,children:(0,s.jsx)(w.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-center-2x.png"})}),(0,s.jsx)(We,{as:y.a,reveal:t,width:443,left:1094,top:15,delay:.7,children:(0,s.jsx)(w.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-right-2x.png"})})]})}function Ge(e){let{reveal:t}=e;return(0,s.jsx)(We,{as:w.I,reveal:t,delay:.8,assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-center-2x.png",minWidth:763,displayMedium:!0})}function Ve(e){let{reveal:t}=e;return(0,s.jsxs)(Ae,{as:y.I,width:375,height:197,maxWidth:"500px",className:"center",children:[(0,s.jsx)(We,{as:y.a,reveal:t,width:377,left:-100,top:15,delay:.7,children:(0,s.jsx)(w.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-left-2x.png"})}),(0,s.jsx)(We,{as:y.a,reveal:t,width:387,left:100,top:20,delay:.8,children:(0,s.jsx)(w.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-right-2x.png"})})]})}function Fe(e){let{reveal:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ze,{reveal:t}),(0,s.jsx)(Ge,{reveal:t}),(0,s.jsx)(Ve,{reveal:t})]})}Ze.propTypes={reveal:g().bool},Ge.propTypes={reveal:g().bool},Ve.propTypes={reveal:g().bool},Fe.propTypes={reveal:g().bool};const Je=(0,p.keyframes)(["0%{mask-position:0 0;}100%{mask-position:0 100%;}"]),Qe=(0,p.keyframes)(["0%{background-position:0% 0%;}100%{background-position:0% 100%;}"]),Ke=p.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-0"})(["",";aspect-ratio:16 / 9;mask-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/sprite');mask-mode:alpha;mask-position:0 0;mask-size:100% 700%;overflow:hidden;position:relative;",""],b.a,(e=>{let{animate:t}=e;return t&&(0,p.css)(["animation:"," 0.5s steps(6,end) forwards;"],Je)})),Be=p.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-1"})(["height:100%;object-fit:cover;width:100%;"]),$e=p.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-2"})(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/overlay');background-position:0% 0%;background-size:100% auto;width:100%;height:100%;position:absolute;inset:0;z-index:1;",""],(e=>{let{animate:t}=e;return t&&(0,p.css)(["animation:"," 0.5s steps(6,end) forwards;"],Qe)}));function et(e){let{animate:t,className:a,children:i}=e,r=(0,n.Z)(e,N);return(0,x.J)()?(0,s.jsx)("div",Y(Y({},r),{},{children:i})):(0,s.jsxs)(Ke,Y(Y({className:a},r),{},{animate:t,children:[(0,s.jsx)(Be,{children:i}),(0,s.jsx)($e,{animate:t})]}))}et.propTypes=Y({},u.c);const tt=p.default.div.withConfig({componentId:"pmp-module__sc-fa443g-0"})(["height:30px;position:relative;"]);function at(){return(0,s.jsx)(tt,{as:ra,variant:"vintage-tile"})}const it=(0,p.default)(L).withConfig({componentId:"pmp-module__sc-7f8btz-0"})(["flex:1 1 100%;justify-content:center;text-align:center;transform:none;"]);function nt(e){const t=(0,j.d5)();if(!t)throw new Error("Must be used within a ");const a=t.galleryItems[t.activeIndex][1]?.content.heading;return a?(0,s.jsx)(it,Y(Y({bgColor:"yellow",className:"color-blue handwriting"},e),{},{children:a})):null}const rt=p.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-0"})(["",";position:relative;touch-action:pan-y;.gallery{--item-width:100%;--gap:0;display:grid;grid-template-areas:'main';justify-items:center;}.gallery__main{grid-area:main;z-index:0;}"],_.w),ot=p.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-1"})(["opacity:0;transition:opacity "," linear;transform:none;",""],(0,f.d)(.4),(e=>{let{active:t}=e;return t&&(0,p.css)(["opacity:1;"])})),st=p.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-2"})(["align-self:end;display:flex;gap:",";inline-size:92%;justify-content:center;justify-self:center;transform:translateY(-60%);@media ","{inline-size:min(83.7%,672px);}"],(0,l.s)(),(0,l.t)("mediumUp"));function lt(e){let{items:t}=e,a=(0,n.Z)(e,q);const{text:i}=(0,v.useLocalizer)();return(0,s.jsx)(rt,Y(Y({},a),{},{children:(0,s.jsxs)(j.ri,{items:t,ariaLiveText:i("Active gallery item: $i of $t."),loop:!0,children:[(0,s.jsx)(Wt,{children:(0,s.jsx)(j.nH,{renderGalleryItem:e=>{let{active:t,index:a,item:i}=e;return(0,s.jsx)(ot,{as:j.Lm,index:a,active:t,children:(0,s.jsx)(Jt,{children:(0,s.jsx)(Kt,{children:(0,s.jsx)("img",{className:"block",src:i[1].cloudinaryUrl.heading,alt:"",loading:"lazy"})})})},i.__entryId)}})}),(0,s.jsxs)(st,{children:[(0,s.jsxs)(j.__,{direction:0,children:[(0,s.jsx)(He,{direction:0,color:"blue",smaller:!0}),(0,s.jsx)(d.S,{children:i("Previous gallery item")})]}),(0,s.jsx)(nt,{}),(0,s.jsxs)(j.__,{direction:1,children:[(0,s.jsx)(He,{direction:1,color:"blue",smaller:!0}),(0,s.jsx)(d.S,{children:i("Next gallery item")})]})]})]})}))}lt.propTypes={items:g().array};const dt=(0,p.css)(["display:grid;grid-template-areas:'top' 'bottom';grid-template-rows:300px 300px;@media ","{grid-template-areas:'left right';grid-template-columns:50% 50%;grid-template-rows:min(40vw,400px);}"],(0,l.t)("mediumUp")),pt=p.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-0"})(["grid-area:book;"]),ct=p.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-1"})(["",";opacity:0;pointer-events:none;transition:opacity ",";",""],dt,(0,f.d)(.6),(e=>{let{active:t}=e;return t&&(0,p.css)(["opacity:1;pointer-events:all;"])})),mt=p.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-2"})(["display:grid;gap:8px;grid-area:top;margin-inline:auto;max-inline-size:min(100%,450px);opacity:",";padding:24px;place-content:center;transition:opacity ",";transition-delay:",";@media ","{grid-area:left;}"],(e=>{let{characterState:t}=e;return"enter"===t?1:0}),(0,f.d)(.4),(e=>{let{characterState:t}=e;return"enter"===t?0:(0,f.d)(.25)}),(0,l.t)("mediumUp")),ht=p.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-3"})(["grid-area:bottom;@media ","{grid-area:right;}"],(0,l.t)("mediumUp")),gt=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1t63bc-4"})(["object-fit:contain;position:relative;top:-10%;user-select:none;&&{block-size:120%;inline-size:100%;}",""],(e=>{let{characterState:t}=e;return"enter"===t?(0,p.css)(["opacity:1;transform:scale(1);transition-property:transform,opacity;transition-duration:",";transition-timing-function:",";"],(0,f.d)(.4),(0,l.d)("back-out")):(0,p.css)(["opacity:0;transform:scale(0);transition-property:transform,opacity;transition-duration:0.3s;transition-timing-function:",";"],(0,l.d)("back-in"))}));function ut(e){let{characterState:t}=e;return(0,s.jsx)(pt,{as:j.nH,renderGalleryItem:e=>{let{active:a,index:i,item:n}=e;return(0,s.jsxs)(ct,{as:j.Lm,index:i,active:a,children:[(0,s.jsxs)(mt,{characterState:t,children:[(0,s.jsx)("h4",{className:"title-2 color-blue",children:n.heading}),(0,s.jsx)(f.e,{data:n.body,className:"body--larger text-weight-bold"})]}),(0,s.jsx)(ht,{children:(0,s.jsx)(gt,{characterState:t,src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${n.asset.primary.assetPath.split(".").shift()}`,alt:""})})]},n.__entryId)}})}ut.propTypes={characterState:g().oneOf(["enter","exit"]).isRequired};const ft=p.default.button.withConfig({componentId:"pmp-module__sc-yaqc71-0"})(["appearance:none;background:none;border-radius:0;border:0;cursor:pointer;margin:0;padding:0;filter:drop-shadow(0px 6px 20px rgba(0,0,0,0.2));"]);function xt(e){let{direction:t,setCharacterState:a}=e,i=(0,n.Z)(e,M);const r=(0,x.J)(),{text:o}=(0,v.useLocalizer)(),{next:l,previous:p}=(0,j.d5)(),m=(0,c.useCallback)((()=>{const e=r?0:Xt,i=new CustomEvent("bookflipstart"),n=new CustomEvent("bookflipend"),o=new CustomEvent("flipnext"),s=new CustomEvent("flipprevious");window.dispatchEvent(i),a(Yt.EXIT),setTimeout((()=>{t?(l(),window.dispatchEvent(o)):(p(),window.dispatchEvent(s))}),.5*e),setTimeout((()=>{window.dispatchEvent(n),a(Yt.ENTER)}),e)}),[t,l,r,p,a]);return(0,s.jsxs)(ft,Y(Y({onClick:m},i),{},{children:[(0,s.jsx)(He,{direction:t,color:"red"}),(0,s.jsx)(d.S,{children:o(t?"Next gallery item":"Previous gallery item")})]}))}xt.propTypes={direction:g().number.isRequired,setCharacterState:g().func.isRequired};const bt=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-0"})(["."," &&{position:absolute;width:100%;height:50%;top:0;left:0;background:linear-gradient(-180deg,rgb(255,255,255) 0%,#f9f3ec 100%);@media ","{background:linear-gradient(90deg,rgba(255,255,255) 0%,#f9f3ec 100%);width:50%;height:100%;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp")),wt=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-1"})(["",";box-shadow:0px 6px 20px 0px rgba(0,0,0,0.2);grid-area:book;perspective:1850px;position:relative;"],dt),yt=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-1adz5tk-2"})(["."," &&{--rotate:0deg;background:linear-gradient(-180deg,rgb(255,255,255) 0%,#f9f3ec 100%);transform-style:preserve-3d;transform-origin:bottom;transform:rotateX(var(--rotate));transition:none;position:relative;z-index:1;padding-inline:0;"," @media ","{background:linear-gradient(90deg,rgba(255,255,255) 0%,#f9f3ec 100%);transform-origin:right;transform:rotateY(var(--rotate));","}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{flipPrevious:t}=e;return t&&(0,p.css)(["--rotate:-180deg;transition:transform;transition-duration:",";"],(0,f.d)("var(--flip-duration)"))}),(0,l.t)("mediumUp"),(e=>{let{flipPrevious:t}=e;return t&&(0,p.css)(["--rotate:179deg;"])})),vt=(0,p.default)(f.C).withConfig({componentId:"pmp-module__sc-1adz5tk-3"})(["."," &&{--rotate:0deg;display:grid;grid-area:bottom;grid-template-areas:'a';padding:0;transform-origin:50% 0;transform-style:preserve-3d;transform:rotateX(var(--rotate));transition:none;"," @media ","{grid-area:right;transform-origin:0 50%;transform:rotateY(var(--rotate));","}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{flipNext:t}=e;return t&&(0,p.css)(["--rotate:179deg;transition:transform;transition-duration:",";transition-timing-function:",";"],(0,f.d)("var(--flip-duration)"),(0,l.d)("in-out"))}),(0,l.t)("mediumUp"),(e=>{let{flipNext:t}=e;return t&&(0,p.css)(["--rotate:-180deg;"])})),jt=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-4"})(["background-color:",";backface-visibility:hidden;grid-area:a;display:grid;grid-template-areas:'inner';transform:translateZ(0);"],(0,l.a)("white")),_t=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-5"})(["."," &&{background:linear-gradient(0deg,rgba(255,255,255,0) 0%,#f9f3ec 100%);grid-area:a;transform:translateZ(-1px);@media ","{background:linear-gradient( -90deg,rgba(255,255,255,0) 0%,#f9f3ec 100% );}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp")),kt=(0,p.css)(["--inset:",";--size:calc(100% - var(--inset) * 2);block-size:var(--size);border-radius:20px;border:4px solid ",";inline-size:var(--size);margin:var(--inset) var(--inset);"],(0,l.s)(3),(0,l.a)("yellow")),zt=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-6"})(["",";grid-area:inner;",""],kt,(e=>{let{reverse:t}=e;return t&&(0,p.css)(["transform:translateZ(-1px);"])})),Ct=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-7"})(["background-color:",";transform:translateZ(-1px);position:absolute;left:0;top:0;width:100%;height:100%;"],(0,l.a)("white")),It=p.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-8"})(["."," &&{",";grid-area:bottom;@media ","{grid-area:right;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),kt,(0,l.t)("mediumUp"));function Ut(e){const{0:t,1:a}=(0,c.useState)(!1),{0:i,1:n}=(0,c.useState)(!1);return(0,c.useEffect)((()=>{function e(){a(!0)}function t(){n(!0)}function i(){setTimeout((()=>{a(!1),n(!1)}),500)}return window.addEventListener("flipnext",e),window.addEventListener("flipprevious",t),window.addEventListener("bookflipend",i),()=>{window.removeEventListener("flipnext",e),window.removeEventListener("flipprevious",t),window.removeEventListener("bookflipend",i)}})),(0,s.jsxs)(wt,Y(Y({className:"bg-white"},e),{},{children:[(0,s.jsx)(bt,{}),(0,s.jsxs)(yt,{span:6,flipPrevious:i,children:[(0,s.jsx)(Ct,{}),(0,s.jsx)(zt,{reverse:!0})]}),(0,s.jsxs)(vt,{span:6,className:"bg-white",flipNext:t,children:[(0,s.jsx)(jt,{children:(0,s.jsx)(zt,{})}),(0,s.jsx)(_t,{})]}),(0,s.jsx)(It,{})]}))}const Nt=p.default.ul.withConfig({componentId:"pmp-module__sc-hqteg6-0"})(["display:flex;gap:",";padding:0;grid-area:pagination;list-style-type:none;margin:0;"],(0,l.s)()),qt=p.default.span.withConfig({componentId:"pmp-module__sc-hqteg6-1"})(["background:",";clip-path:polygon(0 2%,100% 0,94% 100%,0 97%);inset:0;position:absolute;transition:background-color "," linear;"],(0,l.a)("white"),(0,f.d)(.2)),Mt=p.default.li.withConfig({componentId:"pmp-module__sc-hqteg6-2"})(["--size:",";block-size:var(--size);inline-size:var(--size);position:relative;transition:inline-size "," ",";",""],(0,l.s)(2),(0,f.d)(.3),(0,l.d)("in-out"),(e=>{let{active:t}=e;return t&&(0,p.css)(["inline-size:",";","{background:",";}"],(0,l.s)(5),qt,(0,l.a)("blue"))}));function St(){const{galleryItems:e,activeIndex:t}=(0,j.d5)(),{text:a}=(0,v.useLocalizer)();return(0,s.jsx)(Nt,{"aria-hidden":"true",children:e.map(((e,i)=>{let{id:n,heading:r}=e;return(0,s.jsxs)(Mt,{active:i===t,children:[(0,s.jsx)(qt,{}),(0,s.jsx)(d.S,{children:`${a("Gallery item")} ${i+1}: ${r}`})]},n)}))})}const Tt=p.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-0"})(["",";position:relative;touch-action:pan-y;"],_.w),Pt=p.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-1"})(["."," &&{--flip-duration:",";--item-width:100%;--gap:0;display:grid;gap:",";grid-template-rows:1fr 16px;grid-template-areas:'main' 'pagination';inline-size:min(100%,1316px);justify-items:center;margin-inline:auto;@media ","{gap:",";}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{pageFlipDuration:t}=e;return t}),(0,l.s)(4),(0,l.t)("largeUp"),(0,l.s)(5)),Et=p.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-2"})(["align-content:center;display:flex;grid-area:main;inline-size:100%;"]),Ot=p.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-3"})(["display:grid;flex:1 1 100%;grid-template-areas:'book';z-index:3;"]),Xt=1e3,Yt={ENTER:"enter",EXIT:"exit"};function Dt(e){let{items:t}=e,a=(0,n.Z)(e,S);const{text:i}=(0,v.useLocalizer)(),r=(0,x.J)(),{0:o,1:l}=(0,c.useState)(Yt.ENTER);return(0,s.jsx)(Tt,Y(Y({},a),{},{children:(0,s.jsxs)(Pt,{as:j.ri,items:t,ariaLiveText:i("Active gallery item: $i of $t."),pageFlipDuration:r?0:.001*Xt,loop:!0,children:[(0,s.jsxs)(Et,{children:[(0,s.jsx)(xt,{direction:0,setCharacterState:l}),(0,s.jsxs)(Ot,{children:[(0,s.jsx)(Ut,{}),(0,s.jsx)(ut,{characterState:o})]}),(0,s.jsx)(xt,{direction:1,setCharacterState:l})]}),(0,s.jsx)(St,{})]})}))}Dt.propTypes={items:g().array};const Ht=e=>{let{id:t}=e,a=(0,n.Z)(e,T);return{arrow:(0,s.jsx)(l.S,Y(Y({},a),{},{id:"arrow",width:52,height:52,children:(0,s.jsx)("path",{fill:"currentColor",d:"M43 26.14 25.71 39.33l.22-9.15-13.94 2.24L11 20.61l15.07 1.71-.41-9.65L43 26.14z"})})),play:(0,s.jsxs)(l.S,Y(Y({},a),{},{id:"play",width:28,height:28,children:[(0,s.jsx)("circle",{cx:"14",cy:"14",r:"14",fill:"currentColor"}),(0,s.jsx)("path",{d:"M21 14.0644L10.0274 20L10 8L21 14.0644Z",fill:"white"})]}))}[t]},Rt=()=>(0,s.jsx)(d.S,{children:(0,s.jsxs)("svg",{"aria-hidden":"true",children:[(0,s.jsx)("defs",{children:Ht({id:"arrow"})}),(0,s.jsx)("defs",{children:Ht({id:"play"})})]})}),Wt=p.default.div.withConfig({componentId:"pmp-module__sc-cfseng-0"})(["background-color:",";clip-path:polygon(0 0.6%,100% 0,99.5% 100%,0.8% 99%);padding:2%;"],(0,l.a)("white")),Lt=(0,p.keyframes)(["0%{opacity:1;transform:translateX(var(--start-x));}99.9%{opacity:1;transform:translateX(0);}100%{opacity:0;transform:translateX(0);}"]),At=p.default.div.withConfig({componentId:"pmp-module__sc-6l5xwa-0"})(["--start-x:-300%;inline-size:min(100%,210px);margin-inline:auto;position:relative;@media ","{inline-size:auto;}@media ","{--start-x:-200%;--walk-duration:1.32s !important;}"],(0,l.t)("mediumUp"),(0,l.t)("xlargeUp")),Zt=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-6l5xwa-1"})(["opacity:0;"," @media ","{&&{max-width:none;}}"],(e=>{let{show:t}=e;return t&&(0,p.css)(["opacity:1;transition:opacity 0s calc(var(--walk-duration) - 0.01s);"])}),(0,l.t)("mediumUp")),Gt=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-6l5xwa-2"})(["inline-size:115%;inset-block-start:-2.5%;inset-inline-start:-7.5%;position:absolute;transform:translateX(var(--start-x));&&{max-width:none;}"," @media ","{inset-inline-start:-4.5%;inline-size:auto;}"],(e=>{let{walk:t}=e;return t&&(0,p.css)(["animation:"," var(--walk-duration) linear 1 forwards;"],Lt)}),(0,l.t)("mediumUp"));function Vt(){const[e,t]=(0,m.YD)(0,!1,!1),a=(0,x.J)(),i=a?0:"2s";return(0,s.jsxs)(At,{ref:e,style:{"--walk-duration":i},children:[(0,s.jsx)(Zt,{src:"https://assets.nintendo.com/image/upload/q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/mario_idle.webp",alt:"",show:t}),!a&&(0,s.jsx)(Gt,{src:"https://assets.nintendo.com/image/upload/q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/mario_walk.webp",alt:"",walk:t})]})}const Ft=p.default.div.withConfig({componentId:"pmp-module__sc-1q3tokx-0"})(["display:grid;grid-template-areas:'main';inline-size:100%;position:relative;"]);function Jt(e){let{children:t,className:a}=e,i=(0,n.Z)(e,P);return(0,s.jsx)(Ft,Y(Y({className:(0,l.g)([a])},i),{},{children:t}))}Jt.propTypes=u.c;const Qt=p.default.div.withConfig({componentId:"pmp-module__sc-9tkri3-0"})(["grid-area:main;"]);function Kt(e){let{children:t,className:a}=e,i=(0,n.Z)(e,E);return(0,s.jsx)(Qt,Y(Y({className:(0,l.g)([a])},i),{},{children:t}))}Kt.propTypes={children:g().oneOfType([g().node,g().arrayOf(g().node)]),className:g().string};const Bt=(0,p.keyframes)(["0%{transform:translateX(var(--plane-size)) translateY(0);}40%,100%{transform:translateX(-100%) translateY(10vw);}"]),$t=p.default.div.withConfig({componentId:"pmp-module__sc-qf6j4-0"})(["--plane-size:250px;display:flex;justify-content:flex-end;",";"],(e=>{let{animate:t}=e;return t&&(0,p.css)(["animation:"," 8s linear infinite forwards;"],Bt)})),ea=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-qf6j4-1"})(["inline-size:var(--plane-size);transform:rotate(5deg);"]);const ta=p.default.div.withConfig({componentId:"pmp-module__sc-1cjqkeg-0"})(["background-color:",";background-image:url(",");background-repeat:repeat;background-size:",";"],(e=>{let{bgColor:t}=e;return(0,l.a)(t)}),(e=>{let{bgTile:t}=e;return t}),(e=>{let{bgSize:t}=e;return t})),aa="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/dots-transparent-dark",ia="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/stripes-transparent-dark",na=new Map([["dots-red",{color:"red",image:aa,cssSize:"40px"}],["dots-yellow",{color:"yellow",image:aa,cssSize:"40px"}],["stripes-green",{color:"green",image:ia,cssSize:"45px"}],["stripes-blue",{color:"blue",image:ia,cssSize:"45px"}],["stripes-yellow",{color:"yellow",image:ia,cssSize:"45px"}],["vintage-tile",{color:"tan",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/divider-vintage-tile-2x",cssSize:"42px 30px"}],["paper-blue",{color:"blue",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-blue",cssSize:"500px"}],["paper-brown",{color:"tan",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-brown",cssSize:"750px"}],["paper-red",{color:"red",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-red",cssSize:"500px"}]]);function ra(e){let{variant:t,children:a,className:i}=e,r=(0,n.Z)(e,O);const o=(0,c.useMemo)((()=>na.get(t)),[t]);return(0,s.jsx)(ta,Y(Y({className:(0,l.g)([i]),bgColor:o.color,bgTile:o.image,bgSize:o.cssSize},r),{},{children:a}))}ra.propTypes={variant:g().oneOf(na.keys()).isRequired,children:g().oneOfType([g().node,g().arrayOf(g().node)]),className:g().string};const oa="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-s-2x",sa="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-m-2x",la="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-l-2x",da="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-xl-2x",pa=(0,p.keyframes)(["0%{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%);opacity:1;}99%{opacity:1;}100%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%);opacity:0;}"]),ca=(0,p.keyframes)(["0%{transform:translateX(0);}100%{transform:translateX(100%);}"]),ma=(0,p.keyframes)(["0%{transform:scaleX(1) scaleY(1);}100%{transform:scaleX(2) scaleY(1);}"]),ha=p.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-0"})(["width:100%;position:relative;text-align:center;max-height:420px;z-index:2;transform:",";&::before{clip-path:polygon( 0 var(--paper-tear-angle),100% 0%,100% calc(100% - var(--paper-tear-angle)),0% 100% );content:'';position:absolute;inline-size:100%;block-size:100%;top:0;left:0;",";}"],(e=>{let{reverse:t}=e;return t?"scaleX(-1)":""}),(e=>{let{background:t}=e;switch(t){case"map":return(0,p.css)(["background-image:url(",");background-size:cover;background-position:center;@media ","{background-image:url(",");}@media ","{background-image:url(",");}@media ","{background-image:url(",");}"],oa,(0,l.t)("mediumUp"),sa,(0,l.t)("largeUp"),la,(0,l.t)("xlargeUp"),da);case"dots":return(0,p.css)(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/dots-transparent-dark');background-repeat:repeat;background-size:40px;background-color:",";"],(0,l.a)("red"));case"stripes":return(0,p.css)(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/stripes-transparent-dark');background-repeat:repeat;background-size:45px;background-color:",";"],(0,l.a)("green"))}})),ga=p.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-1"})(["position:relative;"," ",""],(e=>{let{hasChildren:t}=e;return!t&&(0,p.css)(["padding-top:calc(var(--paper-tear-angle) * 3);padding-bottom:calc(var(--paper-tear-angle) * 3);min-height:393px;"])}),(e=>{let{reverse:t}=e;return t&&(0,p.css)(["transform:scaleX(-1);"])})),ua=p.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-r8x6nq-2"})(["inline-size:100%;position:absolute;left:0;"," ",""],(e=>{let{top:t}=e;return t&&(0,p.css)(["filter:drop-shadow(0px 15px 30px rgba(0,0,0,0.25));top:calc(var(--paper-tear-angle) / 2 * -1);"])}),(e=>{let{bottom:t}=e;return t&&(0,p.css)(["filter:drop-shadow(0px -15px 30px rgba(0,0,0,0.25));bottom:calc(var(--paper-tear-angle) / 2 * -1);"])})),fa=p.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-3"})(["--rotation:-3deg;transform:rotate(var(--rotation));position:absolute;height:calc(100% + (var(--paper-tear-angle) * 2.5));width:calc(100vw + 200px);top:calc(var(--paper-tear-angle) * -1.25);left:-100px;@media ","{height:calc(100% + (var(--paper-tear-angle) * 2));top:calc(var(--paper-tear-angle) * -1);}",""],(0,l.t)("mediumUp"),(e=>{let{reveal:t}=e;return t&&(0,p.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],pa)})),xa=p.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-4"})(["position:absolute;width:100%;left:0;top:5%;height:90%;"]),ba=p.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-5"})(["width:100%;height:100%;",""],(e=>{let{reveal:t}=e;return t&&(0,p.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],ca)})),wa=p.default.svg.withConfig({componentId:"pmp-module__sc-r8x6nq-6"})(["filter:drop-shadow(5px 0px 2px rgba(0,0,0,0.2));display:block;left:0;position:absolute;top:0;width:60px;height:100%;",""],(e=>{let{reveal:t}=e;return t&&(0,p.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],ma)})),ya="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-s-v1-2x",va="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-m-2x",ja="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-l-2x",_a="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-xl-2x";function ka(e){let{children:t,background:a,reverse:i,variant:n,color:r}=e;const{mediumUp:o,largeUp:l,xlargeUp:d}=(0,f.u)(),{0:p,1:h}=(0,c.useState)(),[g,u]=(0,m.YD)(),b=(0,x.J)();return(0,c.useEffect)((()=>{switch(!0){case d:h(_a);break;case l:h(ja);break;case o:h(va);break;default:h(ya)}}),[o,l,d]),(0,s.jsxs)(ha,{background:a,reverse:i,ref:g,children:[(0,s.jsx)(ua,{src:p,alt:"",loading:"lazy",top:!0}),(0,s.jsx)(ga,{reverse:i,hasChildren:t,children:t}),(0,s.jsx)(ua,{src:p,alt:"",loading:"lazy",bottom:!0}),!b&&(0,s.jsxs)(fa,{reveal:u,children:[(0,s.jsx)(xa,{as:ra,variant:n}),(0,s.jsx)(ba,{variant:n,reveal:u,children:(0,s.jsxs)(wa,{fill:"none",xmlns:"http://www.w3.org/2000/svg",reveal:u,viewBox:"0 0 58 489",preserveAspectRatio:"none",children:[(0,s.jsx)("path",{d:"M0 16.994S10.136 2.376 28.437.427C53.2-2.21 58 8.223 58 8.223l-.563 469.412s-10.152 9.068-27.592 11.015C12.388 490.599 0 483.778 0 483.778V16.993z",fill:r}),(0,s.jsx)("path",{d:"M0 16.994S10.136 2.376 28.437.427C53.2-2.21 58 8.223 58 8.223l-.563 469.412s-10.152 9.068-27.592 11.015C12.388 490.599 0 483.778 0 483.778V16.993z",fill:r})]})})]})]})}ka.propTypes={children:g().oneOfType([g().node,g().arrayOf(g().node)]),background:g().string,reverse:g().bool,variant:g().string,color:g().string};const za=(0,p.default)(f.b).withConfig({componentId:"pmp-module__sc-11o6iqu-0"})(["--show-delay:calc(var(--paper-tear-duration) - 0.5);"]),Ca=(0,p.default)(f.b).withConfig({componentId:"pmp-module__sc-11o6iqu-1"})(["--show-delay:calc(var(--paper-tear-duration) - 1);"]),Ia={width:375,height:260,maxWidth:"100%",peach:{width:172,top:40,left:-10},bowser:{width:393,top:-20,left:140}},Ua={width:565,height:245,maxWidth:"100%",peach:{width:172,top:28,left:30},bowser:{width:393,top:-45,left:180}},Na={width:1038,height:410,maxWidth:"1038px",peach:{width:330,top:-5,left:-10},bowser:{width:684,top:-100,left:354}};function qa(){const{mediumUp:e,largeUp:t}=(0,f.u)(),{0:a,1:i}=(0,c.useState)(Ia);return(0,c.useEffect)((()=>{switch(!0){case t:i(Na);break;case e:i(Ua);break;default:i(Ia)}}),[e,t]),(0,s.jsxs)(y.I,{as:f.I,width:a.width,height:a.height,maxWidth:a.maxWidth,className:"center",once:!0,children:[(0,s.jsx)(za,{forwardedAs:y.a,as:f.b,width:a.peach.width,left:a.peach.left,top:a.peach.top,animation:"fade",children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/peach-cropped-2x",alt:"",loading:"lazy"})}),(0,s.jsx)(Ca,{forwardedAs:y.a,as:f.b,width:a.bowser.width,left:a.bowser.left,top:a.bowser.top,animation:"fade",children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/bowser-cropped-2x.png",alt:"",loading:"lazy"})})]})}const Ma=(0,p.default)(y.a).withConfig({componentId:"pmp-module__sc-w6eln4-0"})(["clip-path:polygon(0 0,100% 0,100% calc(100% - 40px),0% 100%);transform:translateY(5%);opacity:0;transition:opacity 0.4s ease,transform 0.4s ease;transition-delay:",";",""],(0,f.d)("calc(var(--paper-tear-duration) - 0.8)"),(e=>{let{reveal:t}=e;return t&&(0,p.css)(["opacity:1;transform:translateY(0);"])})),Sa={width:375,height:240,maxWidth:"100%",char:{width:480,top:-60,left:-30,noMaxWidth:!0}},Ta={width:640,height:275,maxWidth:"100%",char:{width:566,top:-100,left:40,noMaxWidth:!1}},Pa={width:1230,height:420,maxWidth:"1230px",char:{width:1038,top:-230,left:0,noMaxWidth:!1}};function Ea(){const{mediumUp:e,largeUp:t}=(0,f.u)(),{0:a,1:i}=(0,c.useState)(Sa),[n,r]=(0,m.YD)(.3,!0,!0);return(0,c.useEffect)((()=>{switch(!0){case t:i(Pa);break;case e:i(Ta);break;default:i(Sa)}}),[e,t]),(0,s.jsx)("div",{ref:n,children:(0,s.jsx)(y.I,{className:"center",height:a.height,maxWidth:a.maxWidth,width:a.width,children:(0,s.jsx)(Ma,{as:y.a,width:a.char.width,left:a.char.left,top:a.char.top,noMaxWidth:a.char.noMaxWidth,reveal:r,children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/hooktail-cropped-2x",alt:"",loading:"lazy"})})})})}var Oa=e=>(0,s.jsxs)(l.P,{customTheme:D,pageProps:e,children:[(0,s.jsx)(o(),{children:(0,s.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/wvf2hrc.css"})}),(0,s.jsx)(Rt,{}),(0,s.jsx)(H,{}),(0,s.jsx)(R,{}),(0,s.jsx)(ne,{}),(0,s.jsx)(ka,{background:"map",variant:"stripes-blue",color:"#0012B1"}),(0,s.jsx)(ge,{}),(0,s.jsx)(at,{}),(0,s.jsx)(oe,{}),(0,s.jsx)(ka,{background:"dots",reverse:!0,variant:"stripes-green",color:"#41D700",children:(0,s.jsx)(qa,{})}),(0,s.jsx)(Ce,{}),(0,s.jsx)(ka,{background:"stripes",variant:"stripes-yellow",color:"#FFF032",children:(0,s.jsx)(Ea,{})}),(0,s.jsx)(qe,{}),(0,s.jsx)(at,{}),(0,s.jsx)(Xe,{}),(0,s.jsx)(at,{})]});a(80865),a(84004)},53770:function(e,t,a){a.d(t,{c:function(){return r}});var i=a(13980),n=a.n(i);const r={children:n().oneOfType([n().node,n().arrayOf(n().node)]),className:n().string}}}]); //# sourceMappingURL=9823.854fbef560efa8e2.js.map