1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1747,3880,6008,6085],{50871:(e,t,r)=>{Promise.resolve().then(r.bind(r,62707)),Promise.resolve().then(r.bind(r,47222)),Promise.resolve().then(r.bind(r,52066))},38298:(e,t,r)=>{"use strict";function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}r.d(t,{_:()=>a})},62707:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(38298),o=r(39912),n=r(46626),c=r(85839),l=r(88339),s=(0,c.forwardRef)(function(e,t){let{defaultLocale:r,href:s,locale:i,localeCookie:u,onClick:d,prefetch:f,unprefixed:h,...p}=e,v=(0,l.A)(),m=null!=i&&i!==v,_=i||v,g=function(){let[e,t]=(0,c.useState)();return(0,c.useEffect)(()=>{t(window.location.host)},[]),e}(),y=g&&h&&(h.domains[g]===_||!Object.keys(h.domains).includes(g)&&v===r&&!i)?h.pathname:s,w=(0,n.usePathname)();return m&&(f&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),f=!1),c.createElement(o.default,(0,a._)({ref:t,href:y,hrefLang:m?i:void 0,onClick:function(e){(function(e,t,r,a){if(!e||!(a!==r&&null!=a)||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:n,...c}=e;c.path||(c.path=""!==o?o:"/");let l="".concat(n,"=").concat(a,";");for(let[e,t]of Object.entries(c))l+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(l+="="+t),l+=";";document.cookie=l})(u,w,v,i),d&&d(e)},prefetch:f},p))})},47222:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var a=r(38298),o=r(46626),n=r(85839),c=r(88339);function l(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function s(e,t){let r;return"string"==typeof e?r=i(t,e):(r={...e},e.pathname&&(r.pathname=i(t,e.pathname))),r}function i(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}r(55036);var u=r(62707);let d=(0,n.forwardRef)(function(e,t){let{href:r,locale:i,localeCookie:d,localePrefixMode:f,prefix:h,...p}=e,v=(0,o.usePathname)(),m=(0,c.A)(),_=i!==m,[g,y]=(0,n.useState)(()=>l(r)&&("never"!==f||_)?s(r,h):r);return(0,n.useEffect)(()=>{v&&y(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!l(e))return e;let n=a===o||a.startsWith("".concat(o,"/"));return(t!==r||n)&&null!=o?s(e,o):e}(r,i,m,v,h))},[m,r,i,v,h]),n.createElement(u.default,(0,a._)({ref:t,href:g,locale:i,localeCookie:d},p))});d.displayName="ClientLink"},88339:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(46626),o=r(5165);let n="locale";function c(){let e;let t=(0,a.useParams)();try{e=(0,o.useLocale)()}catch(r){if("string"!=typeof(null==t?void 0:t[n]))throw r;e=t[n]}return e}},52066:(e,t,r)=>{"use strict";r.d(t,{K:()=>d,TarotProvider:()=>u});var a=r(61127),o=r(85839),n=r(50455),c=r(91491),l=r(55036);let s=(0,o.createContext)(void 0),i=!!l.env.NEXT_PUBLIC_IS_DEV;function u(e){let{children:t}=e,r=(0,n.useLocale)(),[l,u]=(0,o.useState)(!0),[d,f]=(0,o.useState)([]),[h,p]=(0,o.useState)([]),[v,m]=(0,o.useState)([]),[_,g]=(0,o.useState)([]),y=["tarot/tarot_cards_".concat(r).concat(i?"_dev":"",".json"),"tarot/tarot_spreads_".concat(r).concat(i?"_dev":"",".json"),"tarot/tarot_readers_".concat(r).concat(i?"_dev":"",".json"),"tarot/tarot_backs_".concat(r).concat(i?"_dev":"",".json")],w=()=>({cards:"tarot_cards_".concat(r).concat(i?"_dev":""),cardArrays:"tarot_spreads_".concat(r).concat(i?"_dev":""),masters:"tarot_readers_".concat(r).concat(i?"_dev":""),cardBacks:"tarot_backs_".concat(r).concat(i?"_dev":"")}),k=e=>{try{let t=localStorage.getItem(e);if(!t)return null;let r=JSON.parse(t);if(Date.now()-r.timestamp>36e5)return localStorage.removeItem(e),null;return r.data}catch(e){return console.error("Error reading from cache:",e),null}},b=(e,t)=>{try{let r={data:t,timestamp:Date.now()};localStorage.setItem(e,JSON.stringify(r))}catch(e){console.error("Error saving to cache:",e)}},E=async()=>{let e=w(),t=k(e.cards),r=k(e.cardArrays),a=k(e.masters),o=k(e.cardBacks);if(t&&r&&a&&o){f(t),p(r),m(a),g(o),u(!1);return}u(!0);try{let t=y.map(e=>c.B9.get(e).json()),[r=[],a=[],o=[],n=[]]=await Promise.all(t);f(r),p(a),m(o),g(n),b(e.cards,r),b(e.cardArrays,a),b(e.masters,o),b(e.cardBacks,n)}catch(e){console.error("Fetching failed:",e)}finally{u(!1)}};return(0,o.useEffect)(()=>{E()},[r]),(0,a.jsx)(s.Provider,{value:{fetching:l,cards:d,cardArrays:h,masters:v,cardBacks:_},children:t})}let d=()=>{let e=(0,o.useContext)(s);if(void 0===e)throw Error("useTarot must be used within an TarotProvider");return e}},91491:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,B9:()=>l,HD:()=>i});var a=r(73429),o=r(79474);let n={credentials:"include",timeout:3e4,hooks:{beforeRequest:[async e=>{var t;if(null===(t=e.signal)||void 0===t?void 0:t.aborted)throw Error("Request aborted");let r=await (0,o.Hd)();e.headers.set("x-fingerprint",r)}],afterResponse:[async(e,t,r)=>{if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let a=await r.json();(401===a.error_code||403===a.error_code)&&(window.location.href="/login")}]}},c=e=>a.Ay.create({prefixUrl:e||"/common-api/v1",...n}),l=c("/cdn"),s=c(),i=c("/"),u=s}},e=>{var t=t=>e(e.s=t);e.O(0,[4003,455,7108,3517,8905,7358],()=>t(50871)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.