PageSourceSearch

https://www.bomtoon.tw/_next/static/chunks/pages/play/fortune-b127ece3f2a91bdb.js

js bomtoon.tw collected 2026-10-02 10:56:03 UTC 118,996 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88518],{5879:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/play/fortune",function(){return n(51242)}])},51242:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return rY}});var o,r,i=n(97458),a=n(52983),l=n(38112),s=n(57887),c=n(23441),u=n(37892),d=n(98873),p=n(81390),h=n(5275),g=n(63119),f=n(52113),m=n(19807),b=n(32881),x=n(98606),w=n(26383),y=n(96226);let k={"bom-kr":{headerTitle:{stars:"별자리 운세",tarot:"타로 운세"}},"bom-th":{headerTitle:{stars:"ดวงตามราศี",tarot:"ไพ่ทาโรต์"}},"bom-tw":{headerTitle:{stars:"星座"}},"lezhin-de":{headerTitle:{stars:"Sternzeichen",tarot:"Tarot"}},"lezhin-fr":{headerTitle:{stars:"Signes astrologiques",tarot:"Tarot"}},"lezhin-es":{headerTitle:{stars:"Signo zodiacal",tarot:"Tarot"}}},v="fortune-selected-sign",C="star",j=["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"],I=[{id:"aries",dateRange:"21/3~19/4"},{id:"taurus",dateRange:"20/4~20/5"},{id:"gemini",dateRange:"21/5~21/6"},{id:"cancer",dateRange:"22/6~22/7"},{id:"leo",dateRange:"23/7~22/8"},{id:"virgo",dateRange:"23/8~22/9"},{id:"libra",dateRange:"23/9~23/10"},{id:"scorpio",dateRange:"24/10~22/11"},{id:"sagittarius",dateRange:"23/11~21/12"},{id:"capricorn",dateRange:"22/12~19/1"},{id:"aquarius",dateRange:"20/1~18/2"},{id:"pisces",dateRange:"19/2~20/3"}];function L(e){return!!e&&j.includes(e)}var T=n(46125),E=n(71498),S=n(85472),D=n(63754);let R=["EXPIRED_ACCESS_TOKEN","MALFORMED_JWT","MISMATCH_ADULT_INFO"],M=e=>!!((null==e?void 0:e.code)&&R.includes(e.code)),O=async e=>{if(M(e))try{await (0,S.kg)(S.hi.ERROR,"handleBalconyApiError","reload",e.code)}finally{window.location.reload()}};var N=n(41523);let F=[N.i.android_playstore,N.i.ios_appstore],A=["GET","POST"],_="isIncludeAdult",H=e=>e.replace(/([?&])isIncludeAdult=true(?=(&|#|$))/g,"$1".concat(_,"=false")),X=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),B=(e,t)=>{if(!e)return;let n=t.toLowerCase(),o=Object.entries(e).find(e=>{let[t]=e;return t.toLowerCase()===n});return null==o?void 0:o[1]},P=(e,t)=>{var n,o;let r=e.url.split("?")[0],i=!t.show||t.show&&!!(null===(n=t.exceptApiPaths)||void 0===n?void 0:n.includes(r)),a=B(e.headers,"x-platform"),l=F.includes(null!=a?a:""),s=(null!==(o=e.method)&&void 0!==o?o:"GET").toUpperCase();return i&&l&&A.includes(s)?{...e,url:H(e.url),params:e.params&&_ in e.params?{...e.params,[_]:!1}:e.params,data:X(e.data)&&_ in e.data?{...e.data,[_]:!1}:e.data}:e},z={BOMTOON_COM:{show:!0,exceptApiPaths:["/tag/top10/v2"]},BOOMTOON_COM:{show:!0,exceptApiPaths:["/tag/top10/v2"]},BOMTOON_TW:{show:!0,exceptApiPaths:["/tag/top10/v2"]},LEZHIN_ES:{show:!0,exceptApiPaths:["/tag/top10/v2"]},BELTOON_JP:{show:!0},LEZHINFR_COM:{show:!1},LEZHINDE_COM:{show:!1}},J=()=>{var e;return null!==(e=z[T.V.platform])&&void 0!==e?e:{show:!1}},U=e=>{var t,n;let{token:o,balconyId:r,timeZone:i,platformName:a,referer:l,accept:s,acceptLanguage:c}=e,u=(null==l?void 0:l.trim())||(null!==(n=null===(t=window.location)||void 0===t?void 0:t.href)&&void 0!==n?n:"");return{Accept:s||"application/json","x-balcony-id":r,"x-balcony-timeZone":i,"x-platform":a,...o?{Authorization:"Bearer ".concat(o)}:{},...u?{"x-referer":u}:{},...c?{"Accept-Language":c}:{}}},Z=e=>{if("object"!=typeof e||null===e||!("error"in e))return;let t=e.error;return"object"==typeof t&&null!==t?t:void 0},W=(e,t)=>{let n=D.axiosHttpClient.create({baseURL:(0,E.b)(e),timeout:2e4,withCredentials:!0,headers:U(t),retry:!1});return n.interceptors.request.use(e=>{var n;return P(e,null!==(n=t.adultContentsPolicy)&&void 0!==n?n:J())}),n.interceptors.response.use(async e=>{if(await O(Z(e.data)),e.statusCode<200||e.statusCode>=300)throw new D.AxiosHttpClientError("Balcony HTTP request failed with status ".concat(e.statusCode),{code:"UNKNOWN",cause:e});return e}),n},V=e=>{let t=e.data;return"SUCCESS"===t.result?{result:t.data}:{error:{...t.error,url:e.config.url}}},K=(e,t,n)=>{let o=W(e,t),r=e=>{if(n){var t;(0,S.kg)(null!==(t=n.logType)&&void 0!==t?t:S.hi.DEBUG,e.config.url,n.action,e.data)}return V(e)};return{get:async(e,t)=>r(await o.get(e,t)),post:async(e,t,n)=>r(await o.post(e,t,n)),put:async(e,t,n)=>r(await o.put(e,t,n)),delete:async(e,t)=>r(await o.delete(e,t))}},G={postFortuneStars:"/fortune/stars",postFortuneActivity:"/fortune/stars/activity",postFortuneRecommendations:"/fortune/stars/recommendations",fortuneTarotUsageDaily:"/fortune/tarot/usage/daily",fortuneTarotSelections:"/fortune/tarot/selections",fortuneTarotRecommendations:"/fortune/tarot/recommendations"};var q=n(48467);let Q=e=>{var t;return K(E.I.FORTUNE,{token:null!==(t=e.token)&&void 0!==t?t:void 0,balconyId:T.V.platform,timeZone:e.timeZone,platformName:q.bQ.platformName})},$=async(e,t,n,o,r)=>Q(e).post(G.postFortuneStars,{zodiacSign:t,userId:n,isAdult:o},{signal:r}),Y=async(e,t)=>{let{result:n}=await Q(e).post("".concat(G.postFortuneRecommendations,"/").concat(encodeURIComponent(t),"/click"));return!!n},ee=async(e,t)=>{let{result:n}=await Q(e).post("".concat(G.postFortuneRecommendations,"/").concat(encodeURIComponent(t),"/impression"));return!!n},et=async(e,t)=>{let{result:n}=await Q(e).post("".concat(G.postFortuneActivity,"/").concat(encodeURIComponent(t),"/claim"));return!!n},en={BOMTOON_COM:{common:{error:{imageDownloadFailed:"이미지 다운로드에 실패했습니다.",fortuneLoadFailed:"운세를 읽어들이는 데 실패했습니다. 다시 시도해 주세요.",unknown:"알수 없는 오류가 발생하였습니다."},loading:{messages:["또보미가 신비로운 수정구를 들여다보는 중입니다. \uD83D\uDD2E","또보미가 카드의 개연성을 해석하고 있습니다. ✨","또보미가 당신을 위한 주술을 외우고 있습니다. \uD83C\uDF20","또보미의 수정구에 빛이 들어오고 있습니다. \uD83C\uDF0C"]}},star:{signs:{aries:"양자리",taurus:"황소자리",gemini:"쌍둥이자리",cancer:"게자리",leo:"사자자리",virgo:"처녀자리",libra:"천칭자리",scorpio:"전갈자리",sagittarius:"사수자리",capricorn:"염소자리",aquarius:"물병자리",pisces:"물고기자리"},selection:{title:"또보미의 오늘의 운세 스포일러",button:"운세보기"},result:{resultTitle:{nickName:"{nickName} 님의</br>오늘 운세~!"},todayScore:{title:"오늘의 덕질 지수",scoreLabel:"덕질 지수",scoreFormat:"{score}점"},categoryDetail:{general:"총운",love:"애정운",money:"금전운",work:"직장운",health:"건강운"},todayLuckyPoint:{title:"오늘의 행운 포인트",luckyNumber:"행운의 숫자",luckyColor:"행운의 색깔",luckyDirection:"행운의 방향",luckyFood:"행운의 음식",luckyItem:"행운의 아이템",luckyTag:"행운의 작품 태그"},luckyMission:{title:"오늘의 행운 미션",description:["출석 미션 완료하고 보너스 기운 얻기","추천 작품 정주행하고 주인공에게 행운 에너지 30% 받기","행운 카드/부적 SNS에 자랑하고 행운 버프 2배로 받기","추천 작품에 응원 댓글 달고 액운 타파하기"]},charm:{title:"오늘의 행운 부적",button:"행운 부적 이미지 다운로드",imageDownloadSuccess:"이미지 다운로드가 완료되었습니다."}}}},BOOMTOON_COM:{common:{error:{imageDownloadFailed:"ดาวน์โหลดภาพล้มเหลว",fortuneLoadFailed:"การทำนายดวงล้มเหลว กรุณาลองใหม่อีกครั้ง",unknown:"ระบบขัดข้องโดยไม่ทราบสาเหตุ"},loading:{messages:["J.MEE กำลังจ้องมองเข้าไปในลูกแก้ววิเศษ","J.MEE  กำลังตีความความหมายของไพ่","J.MEE กำลังร่ายมนตร์เพื่อคุณ","แสงสว่างเปล่งประกายในลูกแก้ววิเศษของ J.MEE แล้ว"]}},star:{signs:{aries:"ราศีเมษ",taurus:"ราศีพฤษภ",gemini:"ราศีเมถุน",cancer:"ราศีกรกฎ",leo:"ราศีสิงห์",virgo:"ราศีกันย์",libra:"ราศีตุลย์",scorpio:"ราศีพิจิก",sagittarius:"ราศีธนู",capricorn:"ราศีมังกร",aquarius:"ราศีกุมภ์",pisces:"ราศีมีน"},selection:{title:"J.MEE จะสปอยล์ดวงวันนี้ให้เอง",button:"คลิกเลย"},result:{resultTitle:{nickName:"ดวงวันนี้ของ {nickName}"},todayScore:{title:"ระดับความติ่งในวันนี้",scoreLabel:"ระดับความติ่ง",scoreFormat:"{score} คะแนน"},categoryDetail:{general:"ดวงโดยรวม",love:"ดวงความรัก",money:"ดวงการเงิน",work:"ดวงการงาน",health:"ดวงสุขภาพ"},todayLuckyPoint:{title:"สิ่งที่ช่วยเสริมดวงประจำวัน",luckyNumber:"เลขนำโชค",luckyColor:"สีนำโชค",luckyDirection:"ทิศนำโชค",luckyFood:"อาหารนำโชค",luckyItem:"ไอเทà¹
1‡à¸¡à¸™à¸³à¹‚ชค",luckyTag:"แฮชแท็กของเรื่องนำโชค"},luckyMission:{title:"มิชชั่นเสริมดวงประจำวัน",description:["เข้าร่วม Today's Check แล้วรับพลังจากเหรียญโบนัส","อ่านเรื่องแนะนำแบบรวดเดียวจบ แล้วรับพลังนำโชค 30% จากตัวเอก","แชร์การ์ด/เครื่องรางนำโชคลงโซเชียล แล้วรับบัฟความโชคดี 2 เท่า!","เขียนคอมเมนต์ให้กำลังใจเรื่องแนะนำ แล้วปัดเป่าโชคร้ายให้หมดไป"]},charm:{title:"เครื่องรางนำโชคประจำวัน",button:"ดาวน์โหลดภาพเครื่องรางนำโชค",imageDownloadSuccess:"ดาวน์โหลดภาพสำเร็จ"}}}},BOMTOON_TW:{common:{error:{imageDownloadFailed:"圖片下載失敗",fortuneLoadFailed:"運勢讀取失敗,請重新嘗試。",unknown:"未知的錯誤"},loading:{messages:["またみちゃんが運命の糸を読み解いています…","またみちゃんがキャラクターたちの声に耳を傾けています…","またみちゃんがまだ見ぬ未来の気配を感じています…","またみちゃんが物語の流れを操ろうとしています…"]}},star:{signs:{aries:"牡羊座",taurus:"金牛座",gemini:"雙子座",cancer:"巨蟹座",leo:"獅子座",virgo:"處女座",libra:"天秤座",scorpio:"天蠍座",sagittarius:"射手座",capricorn:"摩羯座",aquarius:"水瓶座",pisces:"雙魚座"},selection:{title:"桃波米的今日運勢",button:"查看運勢"},result:{resultTitle:{nickName:"{nickName} </br>的今日運勢"},todayScore:{title:"今日追漫指數",scoreLabel:"追漫指數",scoreFormat:"{score}分"},categoryDetail:{general:"綜合運勢",love:"戀愛運",money:"財運",work:"工作運",health:"健康運"},todayLuckyPoint:{title:"今日開運指南",luckyNumber:"幸運數字",luckyColor:"幸運色",luckyDirection:"幸運方位",luckyFood:"幸運食物",luckyItem:"幸運小物",luckyTag:"幸運作品標籤"},luckyMission:{title:"今日幸運任務",description:["完成簽到任務,幸運加倍!","追完推薦作品,獲得主角 30% 幸運能量!","分享幸運符到社群網站,獲得 2 倍幸運!","為推薦作品留下應援留言,驅散厄運!"]},charm:{title:"今日幸運符",button:"下載幸運符",imageDownloadSuccess:"圖片下載完成"}}}},LEZHINDE_COM:{common:{error:{imageDownloadFailed:"Das Bild konnte nicht heruntergeladen werden.",fortuneLoadFailed:"Das Horoskop konnte nicht geladen werden. Bitte versuche es erneut.",unknown:"Unbekannter Fehler"},loading:{messages:["J.MEE schaut in eine geheimnisvolle Kristallkugel. \uD83D\uDD2E","J.MEE deutet die Bedeutung deiner Karten. ✨","J.MEE spricht einen Zauber f\xfcr dich. \uD83C\uDF20","J.MEEs Kristallkugel beginnt zu leuchten. \uD83C\uDF0C"]}},star:{signs:{aries:"Widder",taurus:"Stier",gemini:"Zwillinge",cancer:"Krebs",leo:"L\xf6we",virgo:"Jungfrau",libra:"Waage",scorpio:"Skorpion",sagittarius:"Sch\xfctze",capricorn:"Steinbock",aquarius:"Wassermann",pisces:"Fische"},selection:{title:"J.MEEs Spoiler zum Tageshoroskop",button:"Horoskop"},result:{resultTitle:{nickName:"Heutiges Horoskop f\xfcr</br>{nickName}"},todayScore:{title:"Dein Fandom-Level heute",scoreLabel:"Fandom-Index",scoreFormat:"{score}"},categoryDetail:{general:"Gesamt",love:"Liebe",money:"Finanzen",work:"Karriere",health:"Gesundheit"},todayLuckyPoint:{title:"Dein Gl\xfccks-Highlight heute",luckyNumber:"Gl\xfcckszahl",luckyColor:"Gl\xfccksfarbe des Tages",luckyDirection:"Gl\xfccksrichtung",luckyFood:"Gl\xfccksessen",luckyItem:"Gl\xfccksbringer",luckyTag:"Gl\xfccks-Hashtag"},luckyMission:{title:"Deine Gl\xfccksmission des Tages",description:["Schlie\xdfe die Check-in Mission ab und erhalte einen Gl\xfccksbonus.","Empfohlene Webcomics bingen und 30 % Gl\xfccksenergie erhalten","Gl\xfcckskarte oder Gl\xfccksamulett auf SNS teilen und den doppelten Gl\xfccksbonus erhalten.","Hinterlasse einen unter
1st\xfctzenden Kommentar zum empfohlenen Webcomic und vertreibe alles Ungl\xfcck!"]},charm:{title:"Dein Gl\xfccksamulett des Tages",button:"Herunterladen",imageDownloadSuccess:"Das Bild wurde heruntergeladen."}}}},LEZHINFR_COM:{common:{error:{imageDownloadFailed:"\xc9chec du t\xe9l\xe9chargement de l'image.",fortuneLoadFailed:"Impossible de charger l’horoscope. Veuillez r\xe9essayer.",unknown:"Erreur inconnue"},loading:{messages:["J.Mee contemple une boule de cristal myst\xe9rieuse. \uD83D\uDD2E","J.Mee interpr\xe8te la signification de vos cartes. ✨","J.Mee lance un sort pour vous. \uD83C\uDF20 ","La boule de cristal de J.Mee s’illumine.\uD83C\uDF0C"]}},star:{signs:{aries:"B\xe9lier",taurus:"Taureau",gemini:"G\xe9meaux",cancer:"Cancer",leo:"Lion",virgo:"Vierge",libra:"Balance",scorpio:"Scorpion",sagittarius:"Sagittaire",capricorn:"Capricorne",aquarius:"Verseau",pisces:"Poissons"},selection:{title:"L'aper\xe7u de l'horoscope du jour de J.Mee ",button:"Horoscope"},result:{resultTitle:{nickName:"L’horoscope du jour pour</br>{nickName}"},todayScore:{title:"Indice du fandom",scoreLabel:"Indice de fandom",scoreFormat:"{score}"},categoryDetail:{general:"Fortune g\xe9n\xe9rale",love:"Amour",money:"Argent",work:"Travail",health:"Sant\xe9"},todayLuckyPoint:{title:"Indice chance",luckyNumber:"Chiffre du jour",luckyColor:"Couleur porte-bonheur",luckyDirection:"Direction du jour",luckyFood:"Plat du jour",luckyItem:"Objet du jour",luckyTag:"Hashtag du jour"},luckyMission:{title:"Mission porte-bonheur du jour",description:["Terminer la mission de pr\xe9sence et obtenir de l'\xe9nergie bonus","Lire en rafale les titres recommand\xe9s et recevoir 30 % de l'\xe9nergie de chance","Partager votre carte porte-bonheur sur les r\xe9seaux sociaux et b\xe9n\xe9ficier d'un bonus de chance doubl\xe9.","Laisser un commentaire sur les titres recommand\xe9s et conjurer le mauvais sort"]},charm:{title:"Carte porte-bonheur du jour",button:"T\xe9l\xe9charger",imageDownloadSuccess:"T\xe9l\xe9chargement de l'image termin\xe9."}}}},LEZHIN_ES:{common:{error:{imageDownloadFailed:"No se pudo descargar la imagen.",fortuneLoadFailed:"Se produjo un error al cargar el hor\xf3scopo. Int\xe9ntalo de nuevo.",unknown:"Ha ocurrido un error desconocido."},loading:{messages:["Jaymee est\xe1 mirando dentro de una misteriosa bola de cristal. \uD83D\uDD2E","Jaymee est\xe1 interpretando el significado de las cartas. ✨","Jaymee est\xe1 lanzando un hechizo para ti. \uD83C\uDF20","La bola de cristal de Jaymee est\xe1 empezando a brillar. \uD83C\uDF0C"]}},star:{signs:{aries:"Aries",taurus:"Tauro",gemini:"G\xe9minis",cancer:"C\xe1ncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis"},selection:{title:"Spoiler del hor\xf3scopo de hoy de Jaymee",button:"Ir a ver"},result:{resultTitle:{nickName:"Hor\xf3scopo de hoy de</br>{nickName}"},todayScore:{title:"\xcdndice de lectura",scoreLabel:"\xcdndice de lectura",scoreFormat:"{score}"},categoryDetail:{general:"General",love:"Amor",money:"Dinero",work:"Trabajo",health:"Salud"},todayLuckyPoint:{title:"Suertes de hoy",luckyNumber:"N\xfamero",luckyColor:"Color de la suerte",luckyDirection:"Direcci\xf3n",luckyFood:"Comida",luckyItem:"Objeto",luckyTag:"Hashtag"},luckyMission:{title:"Misi\xf3n de suerte de hoy",description:["Completa la misi\xf3n de asistencia y consigue energ\xeda extra","Lee las obras recomendadas y recibe un 30 % de energ\xeda de la suerte del protagonista","Comparte tu amuleto de la suerte en las redes sociales y duplica tu suerte","Deja un comentario de apoyo en las series recomendadas y aleja la mala suerte"]},charm:{title:"Amuleto de la suerte de hoy",button:"Descargar",imageDownloadSuccess:"La imagen se ha descargado correctamente."}}}}};function eo(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.V.platform;return null!==(e=en[t])&&void 0!==e?e:en.BOMTOON_COM}let er=eo().common.error,ei=e=>"object"==typeof e&&null!==e&&"code"in e&&"ABORT"===e.code,ea=e=>{let{isRestoreCompleted:t,isLoggedIn:n,isTransitioning:o,selectedStarsSignIdFromState:r,resultStarsSignId:i,fetchedStarsSignId:a,loadingStarsSignId:l}=e;if(!t||!n)return null;let s=o?r:i;return s&&a!==s&&l!==s?s:null},el=e=>{let{isTransitioning:t,selectedStarsSignIdFromState:n,isMinimumLoadingCompleted:o,fetchedStarsSignId:r,fortuneResult:i,isCompletingTransition:a}=e;return t&&n&&o&&r===n&&i&&!a?n:null},es=e=>"string"==typeof e?e:null,ec=e=>L(e)?e:null,eu=e=>{let{isTransitioning:t,resultStarsSignId:n}=e;return t?"loading":n?"result":"selection"},ed=e=>{let t={...e};return delete t[C],t};var ep=n(51158),eh=n.n(ep);let eg="".concat("https://image.balcony.studio/BOMTOON_TW/","images/fortune/"),ef="#1b1b1b",em=["LEZHINDE_COM","LEZHINFR_COM"].includes(T.V.platform)?61:0,eb=[{key:"twitter",label:"X",icon:"/images/common/share/twitter.png"},{key:"facebook",label:"Facebook",icon:"/images/common/share/facebook.png"},{key:"kakao",label:"Kakao",icon:"/images/common/share/kakao.png"},{key:"line",label:"Line",icon:"/images/common/share/line.png"},{key:"whatsapp",label:"WhatsApp",icon:"/images/common/share/whatsapp.png"},{key:"url",label:"URL",icon:"/images/common/share/url.png"}],ex={BOOMTOON_COM:["twitter","facebook","url"],BOMTOON_TW:["twitter","facebook","line","url"],LEZHINDE_COM:["twitter","facebook","url"],LEZHINFR_COM:["twitter","facebook","url"],LEZHIN_ES:["twitter","facebook","whatsapp","url"]},ew="".concat(eg,"img-fortune-banner.png");function ey(e){let{isDesktop:t}=e;return(0,i.jsx)(ek,{children:(0,i.jsx)(ev,{src:ew,alt:"banner",width:1440,height:1080,unoptimized:!0})})}let ek=s.default.div.withConfig({componentId:"sc-722d9e20-0"})(["width:100%;background-color:",";"],ef),ev=(0,s.default)(eh()).withConfig({componentId:"sc-722d9e20-1"})(["display:block;width:100%;height:auto;"]);var eC=n(11549);let ej=[{type:"tarot"},{type:"stars"}],eI=null!==(o=({BOOMTOON_COM:ej,BOMTOON_TW:[{type:"stars"}],LEZHINDE_COM:ej,LEZHINFR_COM:ej,LEZHIN_ES:ej})[T.V.platform])&&void 0!==o?o:ej,eL={BOMTOON_COM:{tabs:{title:"또보미의 오늘의 운세 스포일러",stars:"별자리",tarot:"타로"},loading:{messages:["또보미가 신비로운 수정구를 들여다보는 중입니다. \uD83D\uDD2E","또보미가 카드의 개연성을 해석하고 있습니다. ✨","또보미가 당신을 위한 주술을 외우고 있습니다. \uD83C\uDF20","또보미의 수정구에 빛이 들어오고 있습니다. \uD83C\uDF0C"]},share:{button:"SNS 공유하기",popupTitle:"SNS 공유하기",shareTitle:"또보미의 운세보기",shareSynopsis:"또보미가 알려주는 타로와 별자리 운세",urlCopySuccess:"URL이 클립보드에 저장되었습니다.",urlCopyFail:"오류가 발생하였습니다."},recommendation:{title:"오늘의 행운 작품",button:"작품 보러가기",nextButton:"행운 작품 더보기"}},BOOMTOON_COM:{tabs:{title:"J.MEE จะสปอยล์ดวงวันนี้ให้เอง",stars:"ดวงตามราศี",tarot:"ไพ่ทาà¹
1‚รต์"},loading:{messages:["J.MEE กำลังจ้องมองเข้าไปในลูกแก้ววิเศษ","J.MEE  กำลังตีความความหมายของไพ่","J.MEE กำลังร่ายมนตร์เพื่อคุณ","แสงสว่างเปล่งประกายในลูกแก้ววิเศษของ J.MEE แล้ว"]},share:{button:"แชร์ไปที่ SNS",popupTitle:"แชร์ไปที่ SNS",shareTitle:"ทำนายดวงกับ J.MEE",shareSynopsis:"J.MEE จะทำนายดวงด้วยไพ่ทาโรต์ และดวงตามราศีให้เอง",urlCopySuccess:"ที่อยู่ URL ถูกบันทึกลงในคลิปบอร์ดแล้ว",urlCopyFail:"พบข้อผิดพลาด"},recommendation:{title:"เรื่องนำโชควันนี้",button:"ดูเรื่องนี้",nextButton:"เรื่องนำโชคอื่นๆ"}},BOMTOON_TW:{tabs:{title:"桃波米的今日運勢",stars:"星座"},loading:{messages:["桃波米正在凝視神秘的水晶球中… \uD83D\uDD2E","桃波米正在解讀今日運勢… ✨","桃波米正在為你唸誦咒語… \uD83C\uDF20","桃波米的水晶球正逐漸透出光芒… \uD83C\uDF0C"]},share:{button:"分享",popupTitle:"分享",shareTitle:"查看桃波米的運勢",shareSynopsis:"桃波米的星座運勢",urlCopySuccess:"已複製連結",urlCopyFail:"出現錯誤"},recommendation:{title:"今日開運作品",button:"前往觀看作品",nextButton:"查看更多開運作品"}},LEZHINDE_COM:{tabs:{title:"J.MEEs Spoiler zum Tageshoroskop",stars:"Sternzeichen",tarot:"Tarot"},loading:{messages:["J.MEE schaut in eine geheimnisvolle Kristallkugel. \uD83D\uDD2E","J.MEE deutet die Bedeutung deiner Karten. ✨","J.MEE spricht einen Zauber f\xfcr dich. \uD83C\uDF20","J.MEEs Kristallkugel beginnt zu leuchten. \uD83C\uDF0C"]},share:{button:"Auf SNS teilen",popupTitle:"Auf SNS teilen",shareTitle:"J.MEEs Horoskop",shareSynopsis:"Tarot- und Sternzeichen-Horoskope mit J.MEE.",urlCopySuccess:"URL wurde kopiert.",urlCopyFail:"Ein Fehler ist aufgetreten."},recommendation:{title:"Heutige Empfehlung",button:"Zum Webcomic",nextButton:"Mehr Gl\xfcck entdecken"}},LEZHINFR_COM:{tabs:{title:"Petit aper\xe7u de l’horoscope du jour de J.Mee",stars:"Signes astrologiques",tarot:"Tarot"},loading:{messages:["J.Mee contemple une boule de cristal myst\xe9rieuse. \uD83D\uDD2E","J.Mee interpr\xe8te la signification de vos cartes. ✨","J.Mee lance un sort pour vous. \uD83C\uDF20 ","La boule de cristal de J.Mee s’illumine.\uD83C\uDF0C"]},share:{button:"Partager",popupTitle:"Partager",shareTitle:"Horoscope de J.Mee",shareSynopsis:"Tarot et horoscope de J.Mee",urlCopySuccess:"L'URL a \xe9t\xe9 copi\xe9e.",urlCopyFail:"Une erreur s'est produite."},recommendation:{title:"S\xe9rie porte-bonheur du jour",button:"Voir la s\xe9rie",nextButton:"Plus de s\xe9ries"}},LEZHIN_ES:{tabs:{title:"Spoiler del hor\xf3scopo de hoy de Jaymee",stars:"Signo zodiacal",tarot:"Tarot"},loading:{messages:["Jaymee est\xe1 mirando dentro de una misteriosa bola de cristal. \uD83D\uDD2E","Jaymee est\xe1 interpretando el significado de las cartas. ✨","Jaymee est\xe1 lanzando un hechizo para ti. \uD83C\uDF20","La bola de cristal de Jaymee est\xe1 empezando a brillar. \uD83C\uDF0C"]},share:{button:"Compartir",popupTitle:"Compartir",shareTitle:"Hor\xf3scopo de Jaymee",shareSynopsis:"Tarot y hor\xf3scopo de Jaymee",urlCopySuccess:"La URL se ha copiado al portapapeles.",urlCopyFail:"Se ha producido un error."},recommendation:{title:"Obra de la suerte de hoy",button:"Ver obra",nextButton:"Ver m\xe1s"}}};function eT(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.V.platform;return null!==(e=eL[t])&&void 0!==e?e:eL.BOMTOON_COM}let eE=eT(),eS={tarot:{onImage:"".concat(eg,"img-tarot-on.png"),offImage:"".concat(eg,"img-tarot-off.png")},stars:{onImage:"".concat(eg,"img-star-on.png"),offImage:"".concat(eg,"img-star-off.png")}};function eD(e){let{activeType:t,tabs:n=eI,onChangeType:o}=e;return(0,i.jsxs)(eR,{pt:"7XL",pb:"10XL",px:"5XL",children:[(0,i.jsx)(eM,{children:(0,i.jsx)(w.x,{variant:"headlineM",weight:"700",align:"center",children:eE.tabs.title})}),(0,i.jsx)(eO,{children:n.map(e=>{let n=t===e.type,r=eS[e.type],a=n?r.onImage:r.offImage;return(0,i.jsxs)(eN,{py:"5XL",borderRadius:"M",$isActive:n,onClick:()=>o(e.type),children:[(0,i.jsx)(eh(),{src:a,width:32,height:32,alt:"",unoptimized:!0}),(0,i.jsx)(w.x,{variant:"body",weight:"700",children:eE.tabs[e.type]})]},e.type)})})]})}let eR=(0,s.default)(eC.x).withConfig({componentId:"sc-9720c117-0"})(["display:flex;flex-direction:column;width:100%;gap:12px;background-color:",";"],ef),eM=s.default.div.withConfig({componentId:"sc-9720c117-1"})(["display:flex;justify-content:center;align-items:center;gap:3px;color:",";&::before,&::after{content:'';width:40px;height:40px;background-image:url(",");background-repeat:no-repeat;background-position:center;background-size:contain;}
1&::after{transform:scaleX(-1);}"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert},"".concat(eg,"img-tab-title.png")),eO=s.default.div.withConfig({componentId:"sc-9720c117-2"})(["display:flex;gap:12px;width:100%;"]),eN=(0,s.default)(eC.x).withConfig({componentId:"sc-9720c117-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;color:",";background:",";border:1px solid ",";text-align:center;appearance:none;cursor:pointer;opacity:",";","{gap:8px;}"],e=>{let{$isActive:t,theme:n}=e;return t?n.tokens.colors.gray[50]:n.tokens.colors.lavender[600]},e=>{let{$isActive:t,theme:n}=e;return t?"linear-gradient(180deg, ".concat(n.tokens.colors.lavender[900]," 0%, ").concat(n.tokens.colors.lavender[600]," 100%)"):n.tokens.colors.lavender[900]},e=>{let{$isActive:t,theme:n}=e;return t?n.tokens.colors.lavender[500]:"transparent"},e=>{let{$isActive:t}=e;return t?1:.8},e=>{let{theme:t}=e;return t.breakpoints.mobile});function eF(){let e=(0,a.useRef)(0);return{lockScroll:(0,a.useCallback)(()=>{e.current=window.scrollY,document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-".concat(e.current,"px"),document.body.style.width="100%"},[]),openScroll:(0,a.useCallback)(()=>{document.body.style.removeProperty("overflow"),document.body.style.removeProperty("position"),document.body.style.removeProperty("top"),document.body.style.removeProperty("width"),window.scrollTo(0,e.current)},[])}}var eA={src:"/_next/static/media/img-loading.2613ec96.gif",height:1281,width:1536,blurWidth:0,blurHeight:0};let e_=eT().loading.messages;function eH(){let[e,t]=(0,a.useState)(0),{lockScroll:n,openScroll:o}=eF();return(0,a.useEffect)(()=>(window.scrollTo(0,0),n(),()=>{o()}),[n,o]),(0,a.useEffect)(()=>{if(e_.length<=1)return;let e=setInterval(()=>{t(e=>(e+(Math.floor(Math.random()*(e_.length-1))+1))%e_.length)},1750);return()=>clearInterval(e)},[]),(0,i.jsx)(eB,{children:(0,i.jsxs)(eP,{children:[(0,i.jsx)(ez,{variant:"subtitle",weight:"500",children:e_[e]},e),(0,i.jsx)(eJ,{src:eA,alt:"LOADING",width:280,height:280,unoptimized:!0})]})})}let eX=(0,s.keyframes)(["0%{opacity:0;}25%{opacity:1;}70%{opacity:1;}100%{opacity:0.1;}"]),eB=s.default.div.withConfig({componentId:"sc-27eb8512-0"})(["width:100%;height:100vh;"]),eP=s.default.div.withConfig({componentId:"sc-27eb8512-1"})(["position:fixed;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;margin:","px auto 0;text-align:center;inset:0;","{margin-top:0;}"],52,e=>{let{theme:t}=e;return t.breakpoints.mobile}),ez=(0,s.default)(w.x).withConfig({componentId:"sc-27eb8512-2"})(["min-height:48px;padding:0 16px;color:",";opacity:0;animation:"," ","ms linear;"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert},eX,1750),eJ=(0,s.default)(eh()).withConfig({componentId:"sc-27eb8512-3"})(["width:320px;height:267px;"]),eU="".concat(eg,"stars/"),eZ=eo(),eW=eZ.star.selection,eV=eZ.star.signs;function eK(e){let{selectedStarsSignId:t,isDesktop:n,onSelectFortuneSign:o,onClickFortuneResult:r}=e,a=n?100:70;return(0,i.jsx)(eG,{children:(0,i.jsx)(eq,{px:"5XL",children:I.map(e=>{let n=t===e.id,l=null!==t&&!n,s="".concat(eU,"img-star-").concat(e.id,".png");return(0,i.jsxs)(eQ,{$isSelected:n,$isUnselected:l,children:[(0,i.jsx)(e$,{type:"button","aria-label":eV[e.id],"aria-pressed":n,onClick:()=>o(e.id)}),(0,i.jsxs)(eY,{$isSelected:n,children:[(0,i.jsx)(e0,{$iconSize:a,children:(0,i.jsx)(eh(),{src:s,width:3*a,height:3*a,alt:e.id,style:{width:a,height:a}})}),(0,i.jsx)(e1,{children:n?(0,i.jsx)(e5,{type:"button",onClick:()=>r(e.id),children:(0,i.jsx)(w.x,{variant:"buttonS",weight:"500",children:eW.button})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e2,{variant:"body",weight:"700",ellipsis:!0,children:eV[e.id]}),(0,i.jsx)(e4,{variant:"buttonS",weight:"400",children:e.dateRange})]})})]})]},e.id)})})})}let eG=s.default.div.withConfig({componentId:"sc-74962432-0"})(["width:100%;max-width:720px;margin:0 auto;text-align:center;"]),eq=(0,s.default)(eC.x).withConfig({componentId:"sc-74962432-1"})(["display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;","{grid-template-columns:repeat(3,1fr);gap:6px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),eQ=s.default.li.withConfig({componentId:"sc-74962432-2"})(["position:relative;display:flex;justify-content:center;min-width:0;height:212px;padding:20px 16px;background:",";border:2px solid ",";border-radius:8px;box-sizing:border-box;","{height:157px;}"],e=>{let{theme:t}=e;return t.color.bg.layer.overlay60},e=>{let{$isSelected:t,theme:n}=e;return t?n.tokens.colors.lavender[500]:"transparent"},e=>{let{theme:t}=e;return t.breakpoints.mobile}),e$=s.default.button.withConfig({componentId:"sc-74962432-3"})(["position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;background:transparent;border:0;border-radius:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;"]),eY=s.default.div.withConfig({componentId:"sc-74962432-4"})(["display:flex;flex-direction:column;justify-content:center;gap:16px;align-items:center;width:100%;text-align:center;-webkit-tap-highlight-color:transparent;","{gap:12px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),e0=s.default.div.withConfig({componentId:"sc-74962432-5"})(["display:inline-block;width:","px;height:","px;border-radius:100px;"],e=>{let{$iconSize:t}=e;return t},e=>{let{$iconSize:t}=e;return t}),e1=s.default.div.withConfig({componentId:"sc-74962432-6"})(["display:flex;flex-direction:column;justify-content:center;gap:8px;width:100%;","{gap:4px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),e2=(0,s.default)(w.x).withConfig({componentId:"sc-74962432-7"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),e4=(0,s.default)(w.x).withConfig({componentId:"sc-74962432-8"})(["color:#a6a6a6;"]),e5=s.default.button.withConfig({componentId:"sc-74962432-9"})(["position:relative;z-index:2;display:flex;justify-content:center;align-items:center;width:100%;height:32px;color:",";line-height:18px;background:",";border-radius:100px;"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert},e=>{let{theme:t}=e;return t.tokens.colors.lavender[500]});function e8(e){let{size:t=24,className:n}=e;return(0,i.jsxs)("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,
1children:[(0,i.jsx)("path",{d:"M16.2543 5.16356L15.0418 4.59858C14.1041 4.21278 13.0769 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 10.7818 19.7277 9.62727 19.2407 8.59382",stroke:"#1B1B1B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.9166 2.00017L16.8854 5.88556L13 6.85429",stroke:"#1B1B1B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function e6(e){let{size:t=24,className:n}=e;return(0,i.jsxs)("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M16.2543 5.16356L15.0418 4.59858C14.1041 4.21278 13.0769 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 10.7818 19.7277 9.62727 19.2407 8.59382",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.9166 2.00017L16.8854 5.88556L13 6.85429",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function e3(e){let{size:t=24,className:n}=e;return(0,i.jsxs)("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M12 3L12 16",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7 8L12 3L17 8",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3 15V17.4C3 19.3882 4.61178 21 6.6 21H17.4C19.3882 21 21 19.3882 21 17.4V15",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})]})}function e7(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=JSON.stringify({type:e,title:o,message:n,img:r,link:t});try{q.bQ.isAndroid?window.android.jsComicShare(i):webkit.messageHandlers.jsComicShare.postMessage(i)}catch(e){console.error("[ERROR] ",e)}}function e9(e,t,n){let o=JSON.stringify({type:e,url:t,message:n});try{q.bQ.isAndroid?window.android.jsShareExtention(o):webkit.messageHandlers.jsShareExtention.postMessage(o)}catch(e){console.error("[ERROR] ",e)}}var te=n(20711);function tt(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r={autoClose:t,onClose:n};return null!==o&&(r={...r,style:{width:o}}),(0,te.Am)(e,r)}let tn=()=>void 0;function to(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1500,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return q.bQ.isApp&&!("BELTOON_JP"===T.V.platform&&q.bQ.isIos)?(!function(e,t,n){try{(function(e,t){if("BELTOON_JP"===T.V.platform)q.bQ.isAndroid?window.android.jsShowToast(e):q.bQ.isIos&&webkit.messageHandlers.jsShowToast.postMessage(e);else{let n=JSON.stringify({duration:t,message:e});q.bQ.isAndroid?window.android.jsShowTimerToast(n):q.bQ.isIos&&webkit.messageHandlers.jsShowTimerToast.postMessage(n)}})(e,t),n()}catch(o){console.error(o),tt(e,t,n)}}(e,n,t),"appToast"):tt(e,n,t,o)}function tr(e){let{show:t,isDesktop:n,fortuneType:o,onClose:r}=e,l=q.bQ.isApp&&q.bQ.isAndroid,s=!n&&!l,[c,u]=(0,a.useState)(0),[d,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),{lockScroll:g,openScroll:f}=eF();(0,a.useEffect)(()=>{if(t&&!n)return g(),()=>{f()}},[t,n,g,f]),(0,a.useEffect)(()=>{s&&t||(h.current=null,u(0),p(!1))},[s,t]);let m=(0,a.useCallback)(e=>{s&&(h.current=e.touches[0].clientY,p(!0))},[s]),b=(0,a.useCallback)(e=>{if(!s||null===h.current)return;let t=Math.max(0,e.touches[0].clientY-h.current);0!==t&&u(t)},[s]),x=(0,a.useCallback)(()=>{if(!s||null===h.current)return;let e=c>=80;h.current=null,p(!1),u(0),e&&r()},[s,c,r]);if(!t)return null;let w=eT().share,y=w.shareTitle,k=w.shareSynopsis,v="".concat("https://www.bomtoon.tw").concat("/play/fortune","?type=").concat(o),C="".concat("https://www.bomtoon.tw","/images/meta-image.jpg"),j=e=>{switch(e){case"twitter":!function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e+"\n"+t+"\n";if(i.length+n.length>180&&(i=i.substring(0,180-n.length)+"…"),q.bQ.isApp)r?e9("twitter",o,i+n):e7("twitter",n,i);else{let e="https://twitter.com/intent/tweet?text="+encodeURIComponent(i)+"&url="+encodeURIComponent(n);window.open(e,"_blank","toolbar=0, status=0, width=500, height=400")||(document.location.href=e)}}(y,k,v,C);break;case"facebook":!function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e+"\n"+t;if(q.bQ.isApp)r?e9("facebook",n,i):e7("facebook",n,i);else{let e="http://www.facebook.com/dialog/share?app_id=".concat("491075645319614","&href=")+encodeURIComponent(n),t=window.open(e,"facebook","toolbar=0, status=0, width=500, height=400");t&&t.focus()}}(y,k,v,C);break;case"kakao":!function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(q.bQ.isApp)r?e9("kakao",n,t):e7("kakao",n,t,e,o);else{let r=window.Kakao;r&&(r.isInitialized()||r.init("01d2530b05cef252f9b8d1b38cb9db88"),r.Link.sendDefault({objectType:"feed",content:{title:e,description:t,imageUrl:o,link:{mobileWebUrl:n,webUrl:n}},fail(){alert("오류가 발생하였습니다.")}}))}}(y,k,v,C);break;case"line":!function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=encodeURIComponent(n),a=encodeURIComponent(e);
1if(q.bQ.isApp)r?e9("line",n,t):e7("line",n,t,e,o);else{let e=window.open("https://social-plugins.line.me/lineit/share?url="+i+"&text="+a,"line","toolbar=0, status=0, width=500, height=400");e&&e.focus()}}(y,k,v,C);break;case"whatsapp":!function(e,t,n){let o=e+"\n"+t+"\n";o.length+n.length>180&&(o=o.substring(0,180-n.length)+"…");try{let e="https://wa.me/?text="+encodeURIComponent(o)+" "+encodeURIComponent(n);window.open(e,"_blank","toolbar=0, status=0, width=900, height=900")||(document.location.href=e)}catch(e){console.error("[ERROR] ",e)}}(y,k,v);break;case"url":!function(e,t,n,o,r){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;if(q.bQ.isApp)i?e9("url",o,t):e7("url",n,t);else{var s;null===(s=navigator)||void 0===s||s.clipboard.writeText(n).then(()=>{if(a&&l){l(r.success);return}alert(r.success)}).catch(()=>{alert("[".concat(e,"]").concat(r.fail))})}}(y,k,v,C,{success:w.urlCopySuccess,fail:w.urlCopyFail},!1,!0,to),r()}},I=eb.filter(e=>{var t;return(null!==(t=ex[T.V.platform])&&void 0!==t?t:[]).includes(e.key)}),L=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tm,{variant:"title",weight:"700",children:w.popupTitle}),(0,i.jsx)(tb,{pt:"4XL",pb:"7XL",children:I.map(e=>(0,i.jsxs)(tx,{type:"button",onClick:()=>j(e.key),children:[(0,i.jsx)(eh(),{src:e.icon,alt:e.label,width:60,height:60}),(0,i.jsx)(tw,{variant:"buttonM",weight:"400",children:e.label})]},e.key))})]});return n?(0,i.jsx)(ti,{onClick:r,children:(0,i.jsx)(ta,{mx:"2XL",px:"5XL",pt:"8XL",pb:"5XL",borderRadius:"L",onClick:e=>e.stopPropagation(),children:L})}):(0,i.jsxs)(tc,{children:[(0,i.jsx)(tu,{onClick:r,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onTouchStart:e=>{e.stopPropagation()}}),(0,i.jsx)(td,{children:(0,i.jsxs)(tp,{style:{transform:"translateY(".concat(c,"px)"),transition:d?"none":"transform 0.2s ease-out"},children:[l?(0,i.jsx)(th,{}):(0,i.jsx)(tg,{onTouchStart:m,onTouchMove:b,onTouchEnd:x,onTouchCancel:x,children:(0,i.jsx)(tf,{})}),L]})})]})}let ti=s.default.div.withConfig({componentId:"sc-8f7a8b5-0"})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:999;"]),ta=(0,s.default)(eC.x).withConfig({componentId:"sc-8f7a8b5-1"})(["width:100%;max-width:375px;background-color:",";"],e=>{let{theme:t}=e;return t.color.bg.layer.color}),tl=(0,s.keyframes)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),ts=(0,s.keyframes)(["from{opacity:0;}to{opacity:1;}"]),tc=s.default.div.withConfig({componentId:"sc-8f7a8b5-2"})(["position:fixed;inset:0;display:flex;flex-direction:column;justify-content:flex-end;z-index:999;"]),tu=s.default.div.withConfig({componentId:"sc-8f7a8b5-3"})(["position:absolute;inset:0;background:rgba(0,0,0,0.6);animation:"," 0.2s ease-out;"],ts),td=s.default.div.withConfig({componentId:"sc-8f7a8b5-4"})(["position:relative;z-index:1;"]),tp=s.default.div.withConfig({componentId:"sc-8f7a8b5-5"})(["width:100%;padding:0 0 0 20px;background-color:",";border-radius:12px 12px 0 0;overflow:hidden;animation:"," 0.3s ease-out;"],e=>{let{theme:t}=e;return t.color.bg.layer.color},tl),th=s.default.div.withConfig({componentId:"sc-8f7a8b5-6"})(["padding-top:24px;"]),tg=s.default.div.withConfig({componentId:"sc-8f7a8b5-7"})(["display:flex;justify-content:center;padding:8px 16px 12px;touch-action:none;"]),tf=s.default.div.withConfig({componentId:"sc-8f7a8b5-8"})(["width:48px;height:4px;border-radius:999px;background-color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.gray[200]}),tm=(0,s.default)(w.x).withConfig({componentId:"sc-8f7a8b5-9"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal}),tb=(0,s.default)(eC.x).withConfig({componentId:"sc-8f7a8b5-10"})(["display:flex;flex-wrap:wrap;justify-content:center;gap:22px;","{flex-wrap:nowrap;justify-content:flex-start;gap:16px;padding-right:20px;overflow-y:auto;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),tx=s.default.button.withConfig({componentId:"sc-8f7a8b5-11"})(["display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;background:transparent;border:none;cursor:pointer;","{gap:4px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),tw=(0,s.default)(w.x).withConfig({componentId:"sc-8f7a8b5-12"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal}),ty=eT().share;function tk(e){let{fortuneType:t,isDesktop:n}=e,[o,r]=(0,a.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(tv,{pt:"6XL",pb:"11XL",onClick:()=>r(!0),children:[(0,i.jsx)(tC,{variant:"buttonL",weight:"700",children:ty.button}),(0,i.jsx)(e3,{})]}),(0,i.jsx)(tr,{fortuneType:t,show:o,isDesktop:n,onClose:()=>r(!1)})]})}let tv=(0,s.default)(eC.x).attrs({as:"button",type:"button"}).withConfig({componentId:"sc-a98604fa-0"})(["display:flex;justify-content:center;gap:12px;width:100%;height:100%;color:",";background-color:transparent;border:none;cursor:pointer;","{gap:8px;}"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert},e=>{let{theme:t}=e;return t.breakpoints.mobile}),tC=(0,s.default)(w.x).withConfig({componentId:"sc-a98604fa-1"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});var tj=n(35524),tI=n.n(tj);function tL(e){let{html:t,...n}=e,o=tI()(t,{allowedTags:["span","br","a","b"],allowedAttributes:{span:["style"],a:["style","href","target"]}});return(0,i.jsx)(w.x,{...n,dangerouslySetInnerHTML:{__html:o}})}var tT=n(93580),tE=n(23143);let tS=e=>(0,tT.Z)((0,tE.Z)(new Date,e),"dd.MM.yyyy");function tD(e){let[t]=(0,a.useState)(()=>tS(e));return{today:t}}let tR=eo().star.result;function tM(e){let{signId:t,totalScore:n,scoreComment:o,nickName:r,timeZone:a}=e,{today:l}=tD(a),s="".concat(eU,"img-summary-").concat(t,".png");return(0,i.jsx)(tO,{px:"6XL",pt:"7XL",children:(0,i.jsxs)(tN,{children:[(0,i.jsxs)(tF,{children:[(0,i.jsx)(tA,{variant:"buttonM",weight:"500",children:l}),(0,i.jsx)(t_,{variant:"headlineL",weight:"700",html:tR.resultTitle.nickName.replace("{nickName}",null!=r?r:"")})]}
1),(0,i.jsxs)(tH,{children:[(0,i.jsx)(tX,{children:(0,i.jsx)(eh(),{src:s,width:120,height:120,alt:t,unoptimized:!0})}),(0,i.jsxs)(tB,{p:"5XL",borderRadius:"L",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(tP,{variant:"display",weight:"700",children:n})," ",(0,i.jsxs)(tz,{variant:"buttonM",weight:"700",children:[" ","/",100]})]}),(0,i.jsx)(tJ,{variant:"buttonL",weight:"500",children:o})]})]})]})})}let tO=(0,s.default)(eC.x).withConfig({componentId:"sc-b964dfd-0"})(["width:100%;"]),tN=(0,s.default)(eC.x).withConfig({componentId:"sc-b964dfd-1"})(["display:flex;flex-direction:column;"]),tF=s.default.div.withConfig({componentId:"sc-b964dfd-2"})(["display:flex;flex-direction:column;gap:8px;","{gap:4px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),tA=(0,s.default)(w.x).withConfig({componentId:"sc-b964dfd-3"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[200]}),t_=(0,s.default)(tL).withConfig({componentId:"sc-b964dfd-4"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),tH=s.default.div.withConfig({componentId:"sc-b964dfd-5"})(["display:flex;flex-direction:column;justify-content:flex-end;text-align:right;"]),tX=s.default.div.withConfig({componentId:"sc-b964dfd-6"})(["display:flex;justify-content:flex-end;"]),tB=(0,s.default)(eC.x).withConfig({componentId:"sc-b964dfd-7"})(["position:relative;display:flex;flex-direction:column;gap:8px;background-color:",";text-align:center;","{gap:4px;text-align:left;}"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[800]},e=>{let{theme:t}=e;return t.breakpoints.mobile}),tP=(0,s.default)(w.x).withConfig({componentId:"sc-b964dfd-8"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),tz=(0,s.default)(w.x).withConfig({componentId:"sc-b964dfd-9"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[500]}),tJ=(0,s.default)(w.x).withConfig({componentId:"sc-b964dfd-10"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});var tU=n(77767);let tZ="".concat(eg,"img-common-sparkle.png");function tW(e){let{children:t}=e;return(0,i.jsxs)(tV,{children:[(0,i.jsx)(tK,{}),(0,i.jsx)(eh(),{src:tZ,width:16,height:16,alt:"",unoptimized:!0}),(0,i.jsx)(tG,{variant:"headlineM",weight:"700",children:t}),(0,i.jsx)(eh(),{src:tZ,width:16,height:16,alt:"",unoptimized:!0}),(0,i.jsx)(tK,{})]})}let tV=s.default.div.withConfig({componentId:"sc-86af8fa6-0"})(["display:flex;align-items:center;justify-content:center;gap:8px;"]),tK=s.default.div.withConfig({componentId:"sc-86af8fa6-1"})(["flex:1;height:1px;background-color:rgba(255,255,255,0.2);"]),tG=(0,s.default)(w.x).withConfig({componentId:"sc-86af8fa6-2"})(["color:",";white-space:nowrap;"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function tq(e){let{items:t}=e;return t&&0!==t.length?(0,i.jsx)(tQ,{children:t.map(e=>(0,i.jsx)(t$,{py:"M",px:"3XL",children:(0,i.jsxs)(tY,{variant:"buttonL",weight:"500",children:["# ",e]})},e))}):null}let tQ=s.default.div.withConfig({componentId:"sc-4767b7b9-0"})(["display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;","{gap:8px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),t$=(0,s.default)(eC.x).withConfig({componentId:"sc-4767b7b9-1"})(["display:flex;justify-content:center;align-items:center;min-width:60px;background-color:",";border-radius:100px;"],e=>{let{theme:t}=e;return t.color.bg.layer.overlay60}),tY=(0,s.default)(w.x).withConfig({componentId:"sc-4767b7b9-2"})(["background:linear-gradient( 90deg,"," 0%,"," 100% );-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[300]},e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]}),t0=eo().star.result.todayScore,t1=null!==(r=({BOOMTOON_COM:["#C163F4","#ED1C24"],LEZHIN_ES:["#C163F4","#ED1C24"],LEZHINDE_COM:["#C163F4","#AB2432"],LEZHINFR_COM:["#C163F4","#AB2432"]})[T.V.platform])&&void 0!==r?r:["#B388FF","#7C4DFF"];function t2(e){let{data:t}=e,[n,o]=(0,a.useState)(!1),r=t.score||0,l=(0,a.useMemo)(()=>({threshold:.8,disable:n}),[n]),[s,c,u]=(0,tU.Z)(l);return(0,a.useEffect)(()=>{n||!s||c<.8||o(!0)},[c,s,n]),(0,i.jsx)(t5,{ref:u,px:"6XL",children:(0,i.jsxs)(t8,{p:"5XL",borderRadius:"L",children:[(0,i.jsxs)(eC.x,{pt:"3XL",pb:"6XL",children:[(0,i.jsx)(tW,{children:t0.title}),(0,i.jsx)(t6,{variant:"buttonL",weight:"500",children:t.comment})]}),(0,i.jsx)(tq,{items:t.tags}),(0,i.jsxs)(t3,{pt:"6XL",children:[(0,i.jsx)(t7,{children:(0,i.jsx)(t9,{children:(0,i.jsx)(ne,{$gaugeColors:t1,$scorePercent:Math.min(Math.max(r/100*100,0),100),$shouldAnimate:n})})}),(0,i.jsxs)(nt,{children:[(0,i.jsx)(nn,{variant:"labelL",weight:"400",children:t0.scoreLabel}),(0,i.jsx)(no,{variant:"labelL",weight:"700",children:t0.scoreFormat.replace("{score}",r.toString())})]})]})]})})}let t4=(0,s.keyframes)(["from{width:0;}"]),t5=(0,s.default)(eC.x).withConfig({componentId:"sc-e61bfac8-0"})(["width:100%;"]),t8=(0,s.default)(eC.x).withConfig({componentId:"sc-e61bfac8-1"})(["display:flex;flex-direction:column;background-color:",";text-align:center;"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[900]}),t6=(0,s.default)(w.x).withConfig({componentId:"sc-e61bfac8-2"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[300]}),t3=(0,s.default)(eC.x).withConfig({componentId:"sc-e61bfac8-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;","{gap:6px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),t7=s.default.div.withConfig({componentId:"sc-e61bfac8-4"})(["width:100%;"]),t9=s.default.div.withConfig({componentId:"sc-e61bfac8-5"})(["position:relative;width:100%;height:8px;border-radius:100px;background-color:",";overflow:visible;"],e=>{let{theme:t}=e;return t.color.bg.layer.overlay60}),ne=s.default.div.withConfig({componentId:"sc-e61bfac8-6"})(["position:relative;width:",";height:100%;border-radius:inherit;background:",";",""],e=>{let{$scorePercent:t,$shouldAnimate:n}=e;return n?"".concat(t,"%"):0},e=>{let{$gaugeColors:t}=e;return"linear-gradient(90deg, ".concat(t[0]," 0%, ").concat(t[1]," 100%)")},e=>{let{$shouldAnimate:t}=e;return t&&(0,s.css)(["animation:"," 0.8s ease-out forwards;"],t4)}),nt=s.default.div.withConfig({componentId:"sc-e61bfac8-7"})(["display:flex;justify-content:space-between;width:100%;"]),nn=(0,s.default)(w.x).withConfig({componentId:"sc-e61bfac8-8"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[200]}),no=(0,s.default)(w.x).withConfig({componentId:"sc-e61bfac8-9"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]});var nr=n(56455),ni=n(4752);
1n(858),n(29898),n(5210);let na=eo().star.result.categoryDetail,nl="".concat(eU,"img-stars-on.png"),ns="".concat(eU,"img-stars-off.png"),nc={work:{image:"".concat(eU,"img-category-work.png"),bgColor:"rgba(21, 114, 223, 0.8)"},health:{image:"".concat(eU,"img-category-health.png"),bgColor:"rgba(199, 42, 58, 0.8)"},general:{image:"".concat(eU,"img-category-general.png"),bgColor:"rgba(163, 54, 222, 0.6)"},love:{image:"".concat(eU,"img-category-love.png"),bgColor:"rgba(0, 146, 137, 0.8)"},money:{image:"".concat(eU,"img-category-money.png"),bgColor:"rgba(120, 56, 200, 0.8)"}};function nu(e){let{items:t,isDesktop:n}=e;return t&&0!==t.length?(0,i.jsx)(nd,{children:(0,i.jsx)(np,{touchMoveStopPropagation:!0,slidesPerView:"auto",spaceBetween:16,centeredSlides:!0,initialSlide:0,loop:t.length>2,loopedSlides:t.length,navigation:n&&t.length>1,pagination:{clickable:!0},modules:[nr.W_,nr.tl],style:{"--swiper-navigation-color":"transparent"},children:t.map(e=>{let t=nc[e.key],n=null==t?void 0:t.image,o=null==na?void 0:na[e.key];return(0,i.jsx)(nh,{children:(0,i.jsx)(ng,{px:"5XL",py:"6XL",borderRadius:"M",$bgColor:null==t?void 0:t.bgColor,children:(0,i.jsxs)(nf,{children:[(0,i.jsxs)(nm,{children:[n&&(0,i.jsx)(nb,{children:(0,i.jsx)(eh(),{src:n,width:40,height:40,alt:o,unoptimized:!0})}),(0,i.jsx)(nx,{variant:"headlineM",weight:"700",children:o}),(0,i.jsx)(nw,{children:Array.from({length:5}).map((t,n)=>{let o=n<e.stars?nl:ns;return(0,i.jsx)(ny,{children:(0,i.jsx)(eh(),{src:o,width:16,height:16,alt:"",unoptimized:!0})},"".concat(e.key,"-star-").concat(n))})})]}),(0,i.jsx)(nk,{variant:"body",weight:"400",children:e.body})]})})},e.key)})})}):null}let nd=s.default.div.withConfig({componentId:"sc-2eb62684-0"})(["width:100%;margin:0 auto;.swiper-button-prev,.swiper-button-next{width:24px !important;height:24px !important;}.swiper-button-prev{left:50% !important;transform:translateX(-130px);}.swiper-button-next{right:50% !important;transform:translateX(130px);}"]),np=(0,s.default)(ni.tq).withConfig({componentId:"sc-2eb62684-1"})(["position:relative;width:100%;margin-top:-20px;padding:20px 40px 16px;overflow:hidden;.swiper-slide{opacity:0.4;transition:opacity 0.25s ease,transform 0.25s ease;}.swiper-slide-active{opacity:1;}.swiper-pagination{bottom:0;}.swiper-pagination-bullet{width:6px;height:6px;margin:0 2px !important;background:",";border-radius:100px;opacity:1;}.swiper-pagination-bullet-active{background:",";}"],e=>{let{theme:t}=e;return t.color.fg.neutral.strong},e=>{let{theme:t}=e;return t.color.fg.secondary.normal}),nh=(0,s.default)(ni.o5).withConfig({componentId:"sc-2eb62684-2"})(["width:240px;"]),ng=(0,s.default)(eC.x).withConfig({componentId:"sc-2eb62684-3"})(["position:relative;min-height:336px;text-align:left;background-color:",";"],e=>{let{$bgColor:t}=e;return null!=t?t:"rgba(250, 250, 250, 0.7)"}),nf=s.default.div.withConfig({componentId:"sc-2eb62684-4"})(["display:flex;flex-direction:column;justify-content:flex-start;gap:48px;width:100%;height:100%;","{gap:40px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),nm=(0,s.default)(eC.x).withConfig({componentId:"sc-2eb62684-5"})(["display:flex;flex-direction:column;justify-content:flex-start;"]),nb=s.default.span.withConfig({componentId:"sc-2eb62684-6"})(["display:flex;justify-content:center;align-items:center;width:40px;height:40px;"]),nx=(0,s.default)(w.x).withConfig({componentId:"sc-2eb62684-7"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),nw=s.default.div.withConfig({componentId:"sc-2eb62684-8"})(["display:flex;"]),ny=s.default.span.withConfig({componentId:"sc-2eb62684-9"})(["display:flex;width:16px;height:16px;"]),nk=(0,s.default)(w.x).withConfig({componentId:"sc-2eb62684-10"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),nv=eo().star.result.todayLuckyPoint;function nC(e){let{data:t}=e;return(0,i.jsx)(nj,{px:"6XL",children:(0,i.jsxs)(nI,{children:[(0,i.jsx)(tW,{children:nv.title}),(0,i.jsxs)(nL,{mt:"7XL",borderRadius:"L",children:[(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-number.png"),width:40,height:40,alt:nv.luckyNumber,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyNumber}),(0,i.jsx)(nD,{variant:"title",weight:"700",children:t.luckyNumber})]})]}),(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-color.png"),width:40,height:40,alt:nv.luckyColor,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyColor}),(0,i.jsx)(nD,{variant:"title",weight:"700",children:t.luckyColor})]})]}),(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-direction.png"),width:40,height:40,alt:nv.luckyDirection,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyDirection}),(0,i.jsx)(nD,{variant:"title",weight:"700",children:t.luckyDirection})]})]}),(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-food.png"),width:40,height:40,alt:nv.luckyFood,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyFood}),(0,i.jsx)(nD,{variant:"title",weight:"700",children:t.luckyFood})]})]}),(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-item.png"),width:40,height:40,alt:nv.luckyItem,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyItem}),(0,i.jsx)(nD,{variant:"title",weight:"700",children:t.luckyItem})]})]}),(0,i.jsxs)(nT,{py:"5XL",children:[(0,i.jsx)(eh(),{src:"".concat(eU,"img-lucky-tag.png"),width:40,height:40,alt:nv.luckyTag,unoptimized:!0}),(0,i.jsxs)(nE,{pt:"XL",children:[(0,i.jsx)(nS,{variant:"buttonM",weight:"500",children:nv.luckyTag}),(0,i.jsxs)(nR,{variant:"title",weight:"700",children:["# ",t.luckyTag]})]})]})]})]})})}let nj=(0,s.default)(eC.x).withConfig({componentId:"sc-a9624605-0"})(["width:100%;"]),nI=(0,s.default)(eC.x).withConfig({componentId:"sc-a9624605-1"})(["display:flex;flex-direction:column;text-align:center;"]),nL=(0,s.default)(eC.x).withConfig({componentId:"sc-a9624605-2"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background-color:",";overflow:hidden;"],e=>{let{theme:t}=e;return t.color.fg.neutral.strong}),nT=(0,s.default)(eC.x).withConfig({componentId:"sc-a9624605-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;background-color:",";"],e=>{let{theme:t}=e;return t.color.bg.neutral.normal}),nE=(0,s.default)(eC.x).withConfig({componentId:"sc-a9624605-4"})(["display:flex;flex-direction:column;gap:4px;color:",";","{gap:2px;}"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal500},e=>{let{theme:t}=e;return t.breakpoints.mobile}),nS=(0,s.default)(w.x).withConfig({componentId:"sc-a9624605-5"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal500}),nD=(0,s.default)(w.x).withConfig({componentId:"sc-a9624605-6"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),nR=(0,s.default)(w.x).withConfig({componentId:"sc-a9624605-7"})(["color:transparent;background:",";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"],e=>{let{theme:t}=e;return"linear-gradient(95deg, ".concat(t.tokens.colors.lavender[400]," 10.48%, ").concat(t.color.fg.secondary.weak," 98.36%)")}),nM=eT().recommendation;function nO(e){var t,n;let{items:o,description:r,onClickContent:l,onImpression:s}=e,[c,u]=(0,a.useState)(0),d=o&&o.length>0?o[c%o.length]:void 0,p=null==d?void 0:d.trackingId;if((0,a.useEffect)(()=>{p&&(null==s||s(p))},[c,p,s]),!d)return null;let h=null!==(n=d.tags)&&void 0!==n?n:[],g=null===(t=d.author)||void 0===t?void 0:t.join(", ");return(0,i.jsx)(nN,{children:(0,i.jsxs)(nF,{px:"6XL",py:"9XL",borderRadius:"XL",children:[(0,i.jsx)(tW,{children:nM.title}),h.length>0&&(0,i.jsx)(eC.x,{pt:"5XL",children:(0,i.jsx)(tq,{items:h})}),(0,i.jsxs)(nA,{pt:"6XL",children:[(0,i.jsx)(n_,{children:(0,i.jsx)(nH,{children:d.coverUrl&&(0,i.jsx)(eh(),{src:d.coverUrl,alt:d.title,fill:!0,unoptimized:!0,style:{objectFit:"cover"}})})}),(0,i.jsxs)(nX,{children:[(0,i.jsx)(nB,{variant:"buttonL",weight:"700",ellipsis:!0,lineCount:1,width:"100%",children:d.title}),g&&(0,i.jsx)(nP,{variant:"body",weight:"500",children:g}),r&&(0,i.jsx)(nz,{variant:"body",weight:"400",children:r}),(0,i.jsx)(nJ,{variant:"body",weight:"400",children:d.comment})]}),(0,i.jsxs)(nU,{children:[o.length>1&&(0,i.jsx)(nZ,{borderRadius:"Full",children:(0,i.jsxs)("button",{type:"button",onClick:()=>{u(e=>(e+1)%o.length)},children:[(0,i.jsx)(e8,{}),(0,i.jsx)(nW,{variant:"buttonL",weight:"700",children:nM.nextButton})]})}),(0,i.jsx)(nV,{borderRadius:"Full",children:(0,i.jsx)("button",{type:"button",onClick:()=>l(d),children:(0,i.jsx)(nK,{variant:"buttonL",weight:"700",children:nM.button})})})]})]})]})})}
1let nN=(0,s.default)(eC.x).withConfig({componentId:"sc-af0ea9c9-0"})(["width:100%;"]),nF=(0,s.default)(eC.x).withConfig({componentId:"sc-af0ea9c9-1"})(["display:flex;flex-direction:column;background-color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[800]}),nA=(0,s.default)(eC.x).withConfig({componentId:"sc-af0ea9c9-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;"]),n_=s.default.div.withConfig({componentId:"sc-af0ea9c9-3"})(["position:relative;display:flex;align-items:center;justify-content:center;width:200px;aspect-ratio:315 / 415;margin:0 auto;background-color:",";border-radius:14px;overflow:hidden;"],e=>{let{theme:t}=e;return t.color.bg.neutral.normal}),nH=s.default.div.withConfig({componentId:"sc-af0ea9c9-4"})(["position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding-bottom:132%;"]),nX=s.default.div.withConfig({componentId:"sc-af0ea9c9-5"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;text-align:center;"]),nB=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-6"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),nP=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-7"})(["margin-top:4px;color:",";","{margin-top:2px;}"],e=>{let{theme:t}=e;return t.color.fg.neutral.weak},e=>{let{theme:t}=e;return t.breakpoints.mobile}),nz=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-8"})(["margin-top:12px;color:",";","{margin-top:8px;}"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[300]},e=>{let{theme:t}=e;return t.breakpoints.mobile}),nJ=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-9"})(["margin-top:8px;color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.weak}),nU=s.default.div.withConfig({componentId:"sc-af0ea9c9-10"})(["display:flex;flex-direction:row;gap:12px;width:100%;margin:0 auto;> div{display:flex;justify-content:center;align-items:center;width:100%;height:48px;text-align:center;}button{display:flex;justify-content:center;align-items:center;gap:4px;width:100%;height:100%;}","{flex-direction:column;gap:8px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),nZ=(0,s.default)(eC.x).withConfig({componentId:"sc-af0ea9c9-11"})(["color:",";background-color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal},e=>{let{theme:t}=e;return t.color.bg.neutral.weak}),nW=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-12"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal}),nV=(0,s.default)(eC.x).withConfig({componentId:"sc-af0ea9c9-13"})(["background-color:",";"],e=>{let{theme:t}=e;return t.color.line.neutral.strong}),nK=(0,s.default)(w.x).withConfig({componentId:"sc-af0ea9c9-14"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function nG(e){let{data:t,token:n,timeZone:o,recommendationsComment:r,onNavigateToDetail:l}=e,s=(0,a.useCallback)(e=>{ee({token:n,timeZone:o},e).catch(e=>{console.error("[ERROR] postStarsRecommendationsImpression",e)})},[n,o]);if(!t||0===t.length)return null;let c=async e=>{try{await Y({token:n,timeZone:o},e.trackingId)}catch(e){console.error("[ERROR] postStarsRecommendationsClick",e)}await l(e.alias)};return(0,i.jsx)(nO,{items:t,description:r,onClickContent:c,onImpression:s})}let nq=eo().star.result,nQ=nq.luckyMission.description;function n$(){let[e]=(0,a.useState)(()=>nQ[Math.floor(Math.random()*nQ.length)]);return(0,i.jsx)(nY,{px:"6XL",children:(0,i.jsxs)(n0,{children:[(0,i.jsx)(tW,{children:nq.luckyMission.title}),(0,i.jsx)(n1,{mt:"3XL",py:"5XL",px:"2XL",borderRadius:"M",children:(0,i.jsx)(n2,{variant:"buttonL",weight:"500",children:e})})]})})}let nY=(0,s.default)(eC.x).withConfig({componentId:"sc-6c126a45-0"})(["width:100%;"]),n0=(0,s.default)(eC.x).withConfig({componentId:"sc-6c126a45-1"})(["display:flex;flex-direction:column;text-align:center;"]),n1=(0,s.default)(eC.x).withConfig({componentId:"sc-6c126a45-2"})(["display:flex;justify-content:center;background-color:",";"],e=>{let{theme:t}=e;return t.color.bg.neutral.normal}),n2=(0,s.default)(w.x).withConfig({componentId:"sc-6c126a45-3"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]}),n4=eo().star.result,n5=eo().common.error,n8=n4.charm;function n6(e){var t;let{data:n,activityId:o,token:r,timeZone:l,onAppDownload:s}=e,[c,u]=(0,a.useState)(!1),d=null==n?void 0:null===(t=n.charm)||void 0===t?void 0:t.imageUrl,p=async()=>{let e=null,t=null;try{let o=await fetch(d,{method:"GET"});if(!o.ok)throw Error(n5.imageDownloadFailed);let r=await o.blob();e=window.URL.createObjectURL(r),t=document.createElement("a");let i=r.type.split("/")[1]||"png",a="".concat(n.charm.label||"fortune-charm",".").concat(i);t.href=e,t.download=a,document.body.appendChild(t),t.click()}finally{(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t),e&&window.URL.revokeObjectURL(e)}},h=async()=>
1{if(d&&!c){u(!0);try{q.bQ.isApp?s(d,n.charm.label||"fortune-charm"):await p()}catch(e){console.error(e),alert(n5.imageDownloadFailed),u(!1);return}to(n8.imageDownloadSuccess);try{await et({token:r,timeZone:l},o)}catch(e){console.error("[ERROR] postStarsActivityClaim",e)}finally{u(!1)}}};return(0,i.jsx)(n3,{children:(0,i.jsxs)(n7,{px:"6XL",py:"9XL",borderTopRightRadius:"XL",borderTopLeftRadius:"XL",children:[(0,i.jsx)(tW,{children:n8.title}),(0,i.jsxs)(n9,{children:[(0,i.jsx)(oe,{my:"7XL",borderRadius:"M",children:(0,i.jsx)(ot,{children:d&&(0,i.jsx)(eh(),{src:d,alt:n.label,fill:!0})})}),(0,i.jsx)(on,{borderRadius:"Full",children:(0,i.jsx)("button",{type:"button",onClick:()=>h(),children:(0,i.jsx)(oo,{variant:"buttonL",weight:"700",children:n8.button})})})]})]})})}let n3=(0,s.default)(eC.x).withConfig({componentId:"sc-e14f0da3-0"})(["width:100%;"]),n7=(0,s.default)(eC.x).withConfig({componentId:"sc-e14f0da3-1"})(["display:flex;flex-direction:column;background-color:",";"],e=>{let{theme:t}=e;return t.color.bg.neutral.normal}),n9=s.default.div.withConfig({componentId:"sc-e14f0da3-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;"]),oe=(0,s.default)(eC.x).withConfig({componentId:"sc-e14f0da3-3"})(["position:relative;display:flex;align-items:center;justify-content:center;width:200px;height:280px;background-color:",";overflow:hidden;"],e=>{let{theme:t}=e;return t.color.bg.neutral.weak}),ot=s.default.div.withConfig({componentId:"sc-e14f0da3-4"})(["position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding-bottom:140%;"]),on=(0,s.default)(eC.x).withConfig({componentId:"sc-e14f0da3-5"})(["display:flex;justify-content:center;width:100%;height:48px;background-color:",";button{width:100%;height:100%;}"],e=>{let{theme:t}=e;return t.color.fg.secondary.normal}),oo=(0,s.default)(w.x).withConfig({componentId:"sc-e14f0da3-6"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function or(e){let{isResultLoading:t,fortuneResult:n,token:o,nickName:r,isDesktop:a,timeZone:l,onAppDownload:s,onNavigateToDetail:c}=e;return(0,i.jsx)(oi,{children:!t&&n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(oa,{children:[(0,i.jsx)(tM,{signId:n.zodiacSign,totalScore:n.totalScore,scoreComment:n.scoreComment,nickName:r,timeZone:l}),(0,i.jsx)(t2,{data:n.fandom}),(0,i.jsx)(nu,{items:n.categoryDetails,isDesktop:a}),(0,i.jsx)(nC,{data:n.luckyPoints}),(0,i.jsx)(nG,{data:n.recommendations,token:o,timeZone:l,recommendationsComment:n.recommendationsComment,onNavigateToDetail:c}),(0,i.jsx)(n$,{}),(0,i.jsx)(n6,{data:n.reward,activityId:n.activityId,token:o,timeZone:l,onAppDownload:s})]}),(0,i.jsx)(tk,{fortuneType:"stars",isDesktop:a})]})})}let oi=s.default.div.withConfig({componentId:"sc-a262fb6a-0"})(["width:100%;","{padding-top:","px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile},52),oa=s.default.div.withConfig({componentId:"sc-a262fb6a-1"})(["display:flex;flex-direction:column;gap:40px;"]);function ol(e){let{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:s,onAppDownload:c,onLogin:u,onNavigateToDetail:d,onShowHeader:p,onBackHandlerChange:h}=e,{isRestoreCompleted:g,step:f,selectedStarsSignId:m,isResultLoading:b,fortuneResult:x,handleSelectFortuneSign:w,handleSubmitFortuneSelection:k}=function(e){var t;let{auth:n,timeZone:o,onLogin:r,onShowHeader:i,onBackHandlerChange:s}=e,c=(0,l.useRouter)(),u=es(c.query[C]),d=ec(u),{selectedStarsSignId:p,isTransitioning:h,selectSign:g,startTransition:f,finishTransition:m,restoreSelection:b,resetSelection:x}=function(){let[e,t]=(0,a.useState)(null),[n,o]=(0,a.useState)(!1),r=(0,a.useCallback)(e=>{t(t=>t===e?null:e)},[]),i=(0,a.useCallback)(e=>{t(e),o(!0)},[]);return{selectedStarsSignId:e,isTransitioning:n,selectSign:r,startTransition:i,finishTransition:(0,a.useCallback)(()=>{o(!1)},[]),restoreSelection:(0,a.useCallback)(e=>{t(e)},[]),resetSelection:(0,a.useCallback)(()=>{t(null),o(!1)},[])}}(),{isResultLoading:w,loadingStarsSignId:k,fetchedStarsSignId:j,fortuneResult:I,fetchResult:T,resetRequest:E}=function(e){let{token:t,userId:n,timeZone:o}=e,r=(0,y.useReportError)(),[i,l]=(0,a.useState)(null),[s,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),p=(0,a.useRef)(0),h=(0,a.useRef)(null);return{isResultLoading:null!==i,loadingStarsSignId:i,fetchedStarsSignId:s,fortuneResult:u,fetchResult:(0,a.useCallback)(async(e,i)=>{var a;let s=p.current+1;p.current=s,null===(a=h.current)||void 0===a||a.abort();let u=new AbortController;h.current=u,l(e);try{let{result:a,error:l}=await $({token:t,timeZone:o},e,n,i,u.signal);if(p.current!==s)return"stale";if(l)return r(l,"Stars result API error"),alert(er.fortuneLoadFailed),"business-error";if(!(null==a?void 0:a.zodiacSign))throw Error("[ERROR] postStarsResult returned empty result");return d(a),c(e),"success"}catch(t){if(ei(t))return"aborted";if(p.current!==s)return"stale";console.error("[ERROR] postStarsResult",t);let e=t instanceof Error?t:Error(String(t));throw e.message="Stars result API error: ".concat(e.message),e}finally{h.current===u&&(h.current=null),p.current===s&&l(null)}},[r,t,n,o]),resetRequest:(0,a.useCallback)(()=>{var e;null===(e=h.current)||void 0===e||e.abort(),h.current=null,p.current+=1,l(null),c(null),d(null)},[])}}({token:n.token,userId:null!==(t=n.userId)&&void 0!==t?t:0,timeZone:o}),S=(0,a.useRef)(null),D=(0,a.useRef)(!1),R=(0,a.useRef)(null),[M,O]=(0,a.useState)(!1),N=eu({isTransitioning:h,resultStarsSignId:d});(0,a.useEffect)(()=>{null==i||i("selection"!==N)},[N,i]),(0,a.useEffect)(()=>()=>{null==i||i(!1)},[i]);let F=null!=d?d:p,A=(0,a.useCallback)(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]),_=(0,a.useCallback)(()=>{A(),D.current=!1,O(!1),x(),E()},[A,x,E]),H=(0,a.useCallback)(async()=>{_(),sessionStorage.removeItem(v);try{await c.replace({pathname:c.pathname,query:ed(c.query)},void 0,{shallow:!0})}catch(e){console.error("[ERROR] reset fortune route",e)}},[_,c]),X=(0,a.useCallback)(async()=>
1{if("result"===N&&p){c.back();return}await H()},[H,c,p,N]);(0,a.useEffect)(()=>{if(s){if("selection"===N){s(null);return}return s(X),()=>{s(null)}}},[X,s,N]);let{isRestoreCompleted:B}=function(e){let{isLoggedIn:t,starFromQuery:n,onRestoreSelection:o,onReset:r}=e,[i,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(i)return;let e=sessionStorage.getItem(v);if(L(n)){if(!t){r().finally(()=>l(!0));return}sessionStorage.removeItem(v),l(!0);return}L(e)&&(o(e),sessionStorage.removeItem(v)),l(!0)},[i,n,t,r,o]),{isRestoreCompleted:i}}({isLoggedIn:n.isLoggedIn,starFromQuery:u,onRestoreSelection:b,onReset:H});(0,a.useEffect)(()=>{let e=R.current;R.current=d,e&&!d&&(h||_())},[h,_,d]);let P=(0,a.useCallback)(e=>{if(!n.isLoggedIn){sessionStorage.setItem(v,e),r();return}A(),sessionStorage.removeItem(v),D.current=!1,O(!1),E(),f(e),S.current=setTimeout(()=>{O(!0)},4e3)},[n.isLoggedIn,A,r,E,f]);!function(e){let{isRestoreCompleted:t,isLoggedIn:n,showAdult:o,isTransitioning:r,selectedStarsSignIdFromState:i,resultStarsSignId:l,fetchedStarsSignId:s,loadingStarsSignId:c,fetchResult:u,handleReset:d}=e,p=(0,y.useThrowToBoundary)();(0,a.useEffect)(()=>{let e=ea({isRestoreCompleted:t,isLoggedIn:n,isTransitioning:r,selectedStarsSignIdFromState:i,resultStarsSignId:l,fetchedStarsSignId:s,loadingStarsSignId:c});e&&u(e,o).then(e=>{if("business-error"===e)return d()}).catch(e=>{p(e)})},[s,u,d,n,t,r,c,l,i,o,p])}({isRestoreCompleted:B,isLoggedIn:n.isLoggedIn,showAdult:n.showAdult,isTransitioning:h,selectedStarsSignIdFromState:p,resultStarsSignId:d,fetchedStarsSignId:j,loadingStarsSignId:k,fetchResult:T,handleReset:H}),function(e){let{router:t,fetchedStarsSignId:n,finishTransition:o,fortuneResult:r,handleReset:i,isCompletingTransitionRef:l,isMinimumLoadingCompleted:s,isTransitioning:c,selectedStarsSignIdFromState:u,setIsMinimumLoadingCompleted:d}=e;(0,a.useEffect)(()=>{let e=el({isTransitioning:c,selectedStarsSignIdFromState:u,isMinimumLoadingCompleted:s,fetchedStarsSignId:n,fortuneResult:r,isCompletingTransition:l.current});if(!e)return;l.current=!0;let a={...t.query,[C]:e};t.push({pathname:t.pathname,query:a},void 0,{shallow:!0}).then(e=>{if(l.current){if(!e){i();return}o(),d(!1)}}).catch(e=>{l.current&&(console.error("[ERROR] navigate fortune result",e),i())}).finally(()=>{l.current=!1})},[n,o,r,i,l,s,c,t,u,d])}({router:c,fetchedStarsSignId:j,finishTransition:m,fortuneResult:I,handleReset:H,isCompletingTransitionRef:D,isMinimumLoadingCompleted:M,isTransitioning:h,selectedStarsSignIdFromState:p,setIsMinimumLoadingCompleted:O}),(0,a.useEffect)(()=>()=>{A(),E()},[A,E]);let z="result"===N&&(w||!I);return{isRestoreCompleted:B,step:N,selectedStarsSignId:F,isResultLoading:z,fortuneResult:I,handleSelectFortuneSign:g,handleSubmitFortuneSelection:P,handleReset:H}}({auth:t,timeZone:r,onLogin:u,onShowHeader:p,onBackHandlerChange:h});return g?(0,i.jsxs)(os,{useBottomPadding:"selection"===f,children:["selection"===f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ey,{isDesktop:o}),(0,i.jsx)(eD,{activeType:n,onChangeType:s}),(0,i.jsx)(eK,{selectedStarsSignId:m,isDesktop:o,onSelectFortuneSign:w,onClickFortuneResult:k})]}),"loading"===f&&(0,i.jsx)(eH,{}),"result"===f&&m&&(0,i.jsx)(or,{isResultLoading:b,fortuneResult:x,token:t.token,nickName:t.nickName,isDesktop:o,timeZone:r,onAppDownload:c,onNavigateToDetail:d})]}):null}let os=s.default.div.withConfig({componentId:"sc-ba69cc80-0"})(["width:100%;padding-bottom:","px;background-color:",";","{padding-bottom:","px;}"],e=>{let{useBottomPadding:t}=e;return t?80:0},ef,e=>{let{theme:t}=e;return t.breakpoints.mobile},e=>{let{useBottomPadding:t}=e;return(t?80:0)+em}),oc=["past","present","future"],ou=[{id:0,nameKey:"theFool"},{id:1,nameKey:"theMagician"},{id:2,nameKey:"theHighPriestess"},{id:3,nameKey:"theEmpress"},{id:4,nameKey:"theEmperor"},{id:5,nameKey:"theHierophant"},{id:6,nameKey:"theLovers"},{id:7,nameKey:"theChariot"},{id:8,nameKey:"strength"},{id:9,nameKey:"theHermit"},{id:10,nameKey:"wheelOfFortune"},{id:11,nameKey:"justice"},{id:12,nameKey:"theHangedMan"},{id:13,nameKey:"death"},{id:14,nameKey:"temperance"},{id:15,nameKey:"theDevil"},{id:16,nameKey:"theTower"},{id:17,nameKey:"theStar"},{id:18,nameKey:"theMoon"},{id:19,nameKey:"theSun"},{id:20,nameKey:"judgement"},{id:21,nameKey:"theWorld"}],od=ou.length,op="selection_id",oh=e=>{var t;return K(E.I.FORTUNE,{token:null!==(t=e.token)&&void 0!==t?t:void 0,balconyId:T.V.platform,timeZone:e.timeZone,platformName:q.bQ.platformName})},og=async(e,t)=>oh(e).get(G.fortuneTarotUsageDaily,{params:{userId:t}}),of=async(e,t,n,o)=>oh(e).post(G.fortuneTarotSelections,{userId:t,includeAdult:n},{signal:o}),om=async(e,t,n)=>oh(e).post("".concat(G.fortuneTarotSelections,"/").concat(encodeURIComponent(t),"/result"),void 0,{signal:n}),ob=async(e,t)=>{let{result:n}=await oh(e).post("".concat(G.fortuneTarotRecommendations,"/").concat(encodeURIComponent(t),"/click"));return!!n},ox=async(e,t)=>{let{result:n}=await oh(e).post("".concat(G.fortuneTarotRecommendations,"/").concat(encodeURIComponent(t),"/impression"));return!!n},ow={BOMTOON_COM:{intro:{buttonActiveLabel:"타로로 보는 오늘의 운세",buttonDisabledLabel:"내일 다시 이용해주세요!",description:"※ 타로는 하루 3번 ë³¼ 수 있어요!",remainCountFormat:"{count}회"},selection:{title:"현재, 과거, 미래의 카드를 선택해 보세요.",resultButton:"ê²°ê³¼ 보기"},slots:{past:"과거",present:"현재",future:"미래"},cardNames:{0:"The Fool",1:"The Magician",2:"The High Priestess",3:"The Empress",4:"The Emperor",5:"The Hierophant",6:"The Lovers",7:"The Chariot",8:"Strength",9:"The Hermit",10:"Wheel of Fortune",11:"Justice",12:"The Hanged Man",13:"Death",14:"Temperance",15:"The Devil",16:"The Tower",17:"The Star",18:"The Moon",19:"The Sun",20:"Judgement",21:"The World"},result:{resultTitle:"{nickName} 님의</br>오늘 운세~!",upright:"정방향",reversed:"역방향",summaryTitle:"총평 및 조언",retryButton:"타로 운세 다시 뽑기"},error:{loadFailed:"운세를 읽어들이는 데 실패했습니다. 다시 시도해 주세요.",unknown:"알수 없는 오류가 발생하였습니다."}},BOOMTOON_COM:{intro:{buttonActiveLabel:"จำนวนในการทำนายวันนี้",buttonDisabledLabel:"พรุ่งนี้ลองใหม่นะ!",description:"※ ไพ่ทาà¹
1‚รต์สามารถทำนายได้วันละ 3 ครั้ง!",remainCountFormat:"{count} ครั้ง"},selection:{title:"ลองเลือกไพ่เพื่อทำนาย\nอดีต, ปัจจุบัน, อนาคตดูสิ",resultButton:"ทำนาย"},slots:{past:"อดีต",present:"ปัจจุบัน",future:"อนาคต"},cardNames:{0:"The Fool",1:"The Magician",2:"The High Priestess",3:"The Empress",4:"The Emperor",5:"The Hierophant",6:"The Lovers",7:"The Chariot",8:"Strength",9:"The Hermit",10:"Wheel of Fortune",11:"Justice",12:"The Hanged Man",13:"Death",14:"Temperance",15:"The Devil",16:"The Tower",17:"The Star",18:"The Moon",19:"The Sun",20:"Judgement",21:"The World"},result:{resultTitle:"ดวงวันนี้ของ {nickName}",upright:"ไพ่ตั้งตรง",reversed:"ไพ่กลับหัว",summaryTitle:"สรุปภาพรวมและคำแนะนำ",retryButton:"เลือกไพ่ใหม่อีกครั้ง"},error:{loadFailed:"การทำนายดวงล้มเหลว กรุณาลองใหม่อีกครั้ง",unknown:"ระบบขัดข้องโดยไม่ทราบสาเหตุ"}},LEZHINDE_COM:{intro:{buttonActiveLabel:"Dein Tageshoroskop mit Tarot",buttonDisabledLabel:"Versuch's morgen wieder!",description:"※ Du kannst das Tarot bis zu 3 mal pro Tag nutzen!",remainCountFormat:"{count} Mal"},selection:{title:"W\xe4hle Karten f\xfcr Vergangenheit, Gegenwart und Zukunft aus.",resultButton:"Ergebnis ansehen"},slots:{past:"Vergangen\xadheit",present:"Gegenwart",future:"Zukunft"},cardNames:{0:"Der Narr",1:"Der Magier",2:"Die Hohepriesterin",3:"Die Herrscherin",4:"Der Herrscher",5:"Der Hierophant",6:"Die Liebenden",7:"Der Wagen",8:"Die St\xe4rke",9:"Der Eremit",10:"Das Rad des Schicksals ",11:"Die Gerechtigkeit",12:"Der Geh\xe4ngte",13:"Der Tod",14:"Die M\xe4\xdfigkeit",15:"Der Teufel",16:"Der Turm",17:"Der Stern",18:"Der Mond",19:"Die Sonne",20:"Das Gericht",21:"Die Welt"},result:{resultTitle:"Heutiges Horoskop f\xfcr</br>{nickName}",upright:"Aufrecht",reversed:"Umgekehrt",summaryTitle:"Gesamtdeutung & Rat",retryButton:"Neu ziehen"},error:{loadFailed:"Das Horoskop konnte nicht geladen werden. Bitte versuche es erneut.",unknown:"Unbekannter Fehler"}},LEZHINFR_COM:{intro:{buttonActiveLabel:"Votre horoscope du jour au Tarot",buttonDisabledLabel:"\xc0 demain !",description:"※ Vous pouvez consulter le tarot jusqu'\xe0 trois fois par jour !",remainCountFormat:"{count} fois"},selection:{title:"Tirez des cartes pour le pass\xe9, le pr\xe9sent et l’avenir.",resultButton:"Voir le tirage"},slots:{past:"Pass\xe9",present:"Pr\xe9sent",future:"Avenir"},cardNames:{0:"Le Mat",1:"Le Bateleur",2:"La Papesse",3:"L'Imp\xe9ratrice",4:"L'Empereur",5:"Le Pape",6:"L'Amoureux",7:"Le Chariot",8:"La Force",9:"L'Ermite",10:"La Roue de Fortune",11:"La Justice",12:"Le Pendu",13:"La Mort",14:"La Temp\xe9rance",15:"Le Diable",16:"La Maison Dieu",17:"L'\xc9toile",18:"La Lune",19:"Le Soleil",20:"Le Jugement",21:"Le Monde"},result:{resultTitle:"L’horoscope du jour pour</br>{nickName}",upright:"\xc0 l'endroit",reversed:"\xc0 l'envers",summaryTitle:"Lecture globale et conseils",retryButton:"Nouveau tirage"},error:{loadFailed:"Impossible de charger l’horoscope. Veuillez r\xe9essayer.",unknown:"Erreur inconnue"}},LEZHIN_ES:{intro:{buttonActiveLabel:"Tu hor\xf3scopo de hoy con el tarot",buttonDisabledLabel:"\xa1Int\xe9ntalo de nuevo ma\xf1ana!",description:"※ \xa1El tarot se puede consultar hasta 3 veces al d\xeda!",remainCountFormat:"({count}/3)"},selection:{title:"Elige una carta para el presente, el pasado y el futuro.",resultButton:"Ver resultado"},slots:{past:"Pasado",present:"Presente",future:"Futuro"},cardNames:{0:"El Loco",1:"El Mago",2:"La Sacerdotisa",3:"La Emperatriz",4:"El Emperador",5:"El Papa",6:"Los Enamorados",7:"El Carro",8:"La Fuerza",9:"El Ermita\xf1o",10:"La Rueda de la Fortuna",11:"La Justicia",12:"El Colgado",13:"La Muerte",14:"La Templanza",15:"El Diablo",16:"La Torre",17:"La Estrella",18:"La Luna",19:"El Sol",20:"El Juicio",21:"El Mundo"},result:{resultTitle:"Hor\xf3scopo de hoy de</br>{nickName}",upright:"Al derecho",reversed:"Invertida",summaryTitle:"Resumen y consejo",retryButton:"Volver a sacar las cartas"},error:{loadFailed:"Se produjo un error al cargar el hor\xf3scopo. Int\xe9ntalo de nuevo.",unknown:"Ha ocurrido un error desconocido."}}};function oy(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.V.platform;return null!==(e=ow[t])&&void 0!==e?e:ow.BOMTOON_COM}let ok=oy().error,ov=e=>"object"==typeof e&&null!==e&&"code"in e&&"ABORT"===e.code,oC=e=>{if("object"!=typeof e||null===e||!("cause"in e))return!1;let{cause:t}=e;return"object"==typeof t&&null!==t&&"statusCode"in t&&429===t.statusCode},oj=oy().error,oI=e=>{let{isLoggedIn:t,selectionIdFromQuery:n,fetchedSelectionId:o,loadingSelectionId:r}=e;return n&&t&&o!==n&&r!==n?n:null},oL=e=>{let{currentSelectionId:t,fetchedSelectionId:n,isMinimumLoadingCompleted:o,isTransitioning:r,tarotResult:i,isCompletingTransition:a}=e;return r&&t&&o&&n===t&&i&&!a?t:null},oT=e=>"string"==typeof e?e:null,oE=e=>{let{isTransitioning:t,selectionIdFromQuery:n,baseStep:o}=e;return t?"loading":n?"result":o},oS=e=>{let t={...e};return delete t[op],t},oD="".concat(eg,"tarot/"),oR=oy().intro,oM="".concat(oD,"img-intro-card.png");function oO(e){let{onStart:t,isDesktop:n,remainingCount:o,isStartDisabled:r}=e,a=n?400:240;return(0,i.jsxs)(oN,{px:"5XL",children:[(0,i.jsxs)(oF,{mb:"10XL",children:[(0,i.jsx)(eh(),{src:oM,width:a,height:a,alt:"",unoptimized:!0}),(0,i.jsx)(oA,{variant:"labelL",weight:"400",align:"center",children:oR.description})]}),(0,i.jsxs)(o_,{type:"button",disabled:r,$isDisabled:r,onClick:t,children:[(0,i.jsx)(oH,{variant:"buttonL",weight:"700",children:r?oR.buttonDisabledLabel:oR.buttonActiveLabel}),null!==o&&(0,i.jsx)(oX,{variant:"body",weight:"500",$isDisabled:r,children:oR.remainCountFormat.replace("{count}",o.toString())})]})]})}let oN=(0,s.default)(eC.x).withConfig({componentId:"sc-2ddd00e4-0"})(["display:flex;flex-direction:column;align-items:center;"]),oF=(0,s.default)(eC.x).withConfig({componentId:"sc-2ddd00e4-1"})(["display:flex;flex-direction:column;align-items:center;gap:16px;"]),oA=(0,s.default)(w.x).withConfig({componentId:"sc-2ddd00e4-2"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.strong}),o_=s.default.button.withConfig({componentId:"sc-2ddd00e4-3"})(["appearance:none;display:flex;justify-content:center;align-items:center;gap:8px;width:calc(100% - 40px);margin:0;border:0;border-radius:999px;padding:12px 24px;background-color:",";text-align:center;cursor:",";"],e=>{let{$isDisabled:t,theme:n}=e;return t?n.color.fg.neutral.weak:n.color.fg.secondary.normal},e=>{let{$isDisabled:t}=e;return t?"not-allowed":"pointer"}),oH=(0,s.default)(w.x).withConfig({componentId:"sc-2ddd00e4-4"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),oX=(0,s.default)(w.x).withConfig({componentId:"sc-2ddd00e4-5"})(["flex:0 0 auto;display:flex;justify-content:center;padding:0 5px;background-color:",";color:",";border-radius:99px;"],e=>{let{$isDisabled:t,theme:n}=e;return t?n.color.fg.neutral.neutralDisabled:n.color.bg.neutral.normal},e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function oB(e){var t;return null!==(t=oc.find(t=>void 0===e[t]))&&void 0!==t?t:null}function oP(e,t,n){return Math.ceil(t+1.15*e+e+n)}function oz(e,t,n,o){let r=.46*e,i=Math.min(2*Math.atan(1.15*t/r),80*Math.PI/180);return{pad:n,angleTotal:2*i*(180/Math.PI),pivotOffset:r/Math.sin(i),rowHeight:oP(t,n,o)}}function oJ(e,t,n){return Array.from({length:e},(o,r)=>{let i=1===e?.5:r/(e-1);return{angle:-n.angleTotal/2+i*n.angleTotal,topOffset:t+n.pad,pivotOffset:n.pivotOffset,zIndex:r}})}let oU="".concat(oD,"card-back.png");function oZ(){return(0,i.jsx)(eh(),{src:oU,alt:"",fill:!0,sizes:"".concat(82,"px"),style:{objectFit:"cover"},unoptimized:!0})}let oW=(0,a.memo)(function(e){let{id:t,width:n,height:o,angle:r,topOffset:l,pivotOffset:s,zIndex:c,isDisabled:u,isDimmed:d,onPick:p}=e,h=(0,a.useMemo)(()=>({width:"".concat(n,"px"),height:"".concat(o,"px"),top:"".concat(l,"px"),left:"50%",margin:"0 0 0 ".concat(-n/2,"px"),transformOrigin:"50% ".concat(s,"px"),transform:"rotate(".concat(r,"deg)"),zIndex:c}),[n,o,r,l,s,c]);return(0,i.jsx)(oK,{$isDisabled:u,style:h,onClick:u?void 0:()=>p(t),children:(0,i.jsx)(oG,{children:(0,i.jsx)(oq,{$isDimmed:d,children:(0,i.jsx)(oZ,{})})})})});function oV(){return(0,i.jsx)(o$,{children:(0,i.jsx)(oY,{children:(0,i.jsx)(oZ,{})})})}let oK=s.default.div.withConfig({componentId:"sc-c33f5df5-0"})(["position:absolute;cursor:",";pointer-events:",";transition:transform 0.55s cubic-bezier(0.22,0.61,0.36,1);&:active > div{transform:scale(0.94);transition:transform 0.1s ease;}@media (hover:hover) and (pointer:fine){&:hover{","}&:hover > div{","}}"],e=>{let{$isDisabled:t}=e;return t?"default":"pointer"},e=>{let{$isDisabled:t}=e;return t?"none":"auto"},e=>{let{$isDisabled:t}=e;return!t&&"\n        z-index: 30 !important;\n        filter: brightness(1.12);\n      "},e=>{let{$isDisabled:t}=e;return!t&&"\n        transform: translateY(-14px) scale(1.06);\n      "}),oG=s.default.div.withConfig({componentId:"sc-c33f5df5-1"})(["position:relative;width:100%;height:100%;transition:transform 0.5s cubic-bezier(0.22,0.61,0.36,1);"]),oq=s.default.div.withConfig({componentId:"sc-c33f5df5-2"})(["position:absolute;inset:0;border-radius:8px;overflow:hidden;opacity:",";box-shadow:0 6px 14px rgba(0,0,0,0.35);transition:opacity 0.4s ease;"],e=>{let{$isDimmed:t}=e;return t?.28:1}
1),oQ=(0,s.keyframes)(["0%{transform:rotateY(180deg) scale(0.8);opacity:0;}100%{transform:rotateY(0deg) scale(1);opacity:1;}"]),o$=s.default.div.withConfig({componentId:"sc-c33f5df5-3"})(["width:100%;height:100%;perspective:600px;"]),oY=s.default.div.withConfig({componentId:"sc-c33f5df5-4"})(["position:relative;width:100%;height:100%;border-radius:8px;overflow:hidden;animation:"," 0.6s cubic-bezier(0.22,0.61,0.36,1) forwards;"],oQ),o0=(0,n(87717).O)("plus",[["path",{d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4V11.25H20C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H12.75V20C12.75 20.4142 12.4142 20.75 12 20.75C11.5858 20.75 11.25 20.4142 11.25 20V12.75H4C3.58579 12.75 3.25 12.4142 3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H11.25V4C11.25 3.58579 11.5858 3.25 12 3.25Z",fill:"currentColor",key:"path0"}]]);function o1(e){let{selections:t,currentSlot:n,slotLabels:o,onUnpick:r}=e;return(0,i.jsx)(o2,{py:"7XL",children:oc.map(e=>{let a=void 0!==t[e],l=e===n;return(0,i.jsxs)(o4,{children:[(0,i.jsxs)(o5,{borderRadius:"M",$isFilled:a,onClick:a?()=>r(e):void 0,children:[a&&(0,i.jsx)(oV,{}),l&&(0,i.jsx)(o0,{size:16,color:"fg.neutral.strong"})]}),(0,i.jsx)(o8,{variant:"body",weight:"700",children:o[e]})]},e)})})}let o2=(0,s.default)(eC.x).withConfig({componentId:"sc-7dba25a-0"})(["display:flex;justify-content:center;gap:12px;","{gap:8px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),o4=s.default.div.withConfig({componentId:"sc-7dba25a-1"})(["width:","px;display:flex;flex-direction:column;align-items:center;gap:8px;"],86),o5=(0,s.default)(eC.x).withConfig({componentId:"sc-7dba25a-2"})(["width:","px;height:","px;border:1px solid transparent;display:flex;align-items:center;justify-content:center;transition:all 0.4s ease;overflow:hidden;cursor:",";",""],82,118,e=>{let{$isFilled:t}=e;return t?"pointer":"default"},e=>{let{$isFilled:t,theme:n}=e;return t?(0,s.css)(["background:linear-gradient(rgba(255,255,255,0.02),rgba(255,255,255,0.02)) padding-box,linear-gradient(",",",") padding-box,"," border-box;box-shadow:0 0 18px rgba(173,101,255,0.35);"],ef,ef,"linear-gradient(90deg, #ad65ff 0%, #4955ff 100%)"):(0,s.css)(["border-style:dashed;border-color:",";background-color:",";"],n.color.bg.neutral.normal,n.color.bg.layer.overlay60)}),o8=(0,s.default)(w.x).withConfig({componentId:"sc-7dba25a-3"})(["width:100%;text-align:center;color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.weak}),o6=oy(),o3=o6.selection;function o7(e){let{isDesktop:t,isResultRequesting:n,onResult:o}=e,{selections:r,currentSlot:l,isComplete:s,pickCard:c,unpickSlot:u,pickedCardIds:d}=function(){let[e,t]=(0,a.useState)({}),n=(0,a.useMemo)(()=>oB(e),[e]),o=(0,a.useMemo)(()=>oc.flatMap(t=>{let n=e[t];return void 0===n?[]:[n]}),[e]);return{selections:e,currentSlot:n,isComplete:null===n,pickCard:(0,a.useCallback)(e=>{t(t=>{if(oc.some(n=>t[n]===e))return t;let n=oB(t);return n?{...t,[n]:e}:t})},[]),unpickSlot:(0,a.useCallback)(e=>{t(t=>{if(void 0===t[e])return t;let n={...t};return delete n[e],n})},[]),pickedCardIds:o}}(),{stageRef:p,stageHeight:h,positions:g,cardWidth:f,cardHeight:m}=function(e){let t=(0,a.useRef)(null),[n,o]=(0,a.useState)([]),r=(0,a.useCallback)(()=>{let n=t.current;if(!n)return;let r=n.offsetWidth;if(e){o(oJ(od,0,oz(r,118,18,18)));return}let i=Math.ceil(od/2),a=oz(r,83,8,6);o([...oJ(i,0,a),...oJ(od-i,a.rowHeight+2,a)])},[e]);return(0,a.useLayoutEffect)(()=>{let e;function t(){clearTimeout(e),e=setTimeout(r,60)}return r(),window.addEventListener("resize",t),()=>{clearTimeout(e),window.removeEventListener("resize",t)}},[r]),{stageRef:t,positions:n,stageHeight:e?oP(118,18,18):2*oP(83,8,6)+2,cardWidth:e?82:58,cardHeight:e?118:83}}(t),{ref:b,height:x}=function(){let e=(0,a.useRef)(null),[t,n]=(0,a.useState)(null);return(0,a.useLayoutEffect)(()=>{let t;let o=()=>{let t=e.current;if(!t)return;let o=t.getBoundingClientRect().top;n(Math.max(window.innerHeight-o,0))};function r(){clearTimeout(t),t=setTimeout(o,60)}return o(),window.addEventListener("resize",r),()=>{clearTimeout(t),window.removeEventListener("resize",r)}},[]),{ref:e,height:t}}(),[w,y]=(0,a.useState)(!1),k=(0,a.useRef)(null),v=(0,a.useCallback)(e=>{c(e),k.current&&clearTimeout(k.current),y(!0),k.current=setTimeout(()=>{y(!1),k.current=null},250)},[c]);(0,a.useEffect)(()=>()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]);let C=w||s,j=!s||n;return(0,i.jsxs)(o9,{ref:b,py:"6XL",px:"5XL",style:null===x?void 0:{minHeight:x},children:[(0,i.jsx)(re,{variant:"headlineM",weight:"700",whiteSpace:"pre-wrap",children:o3.title}),(0,i.jsx)(o1,{selections:r,currentSlot:l,slotLabels:o6.slots,onUnpick:u}),(0,i.jsx)(rt,{p:"XL",children:(0,i.jsx)(rn,{ref:p,style:{height:h},children:ou.map((e,t)=>{let n=g[t];return!n||d.includes(e.id)?null:(0,i.jsx)(oW,{id:e.id,width:f,height:m,angle:n.angle,topOffset:n.topOffset,pivotOffset:n.pivotOffset,zIndex:n.zIndex,isDisabled:C,isDimmed:w,onPick:v},e.id)})})}),(0,i.jsx)(ro,{type:"button",onClick:o,disabled:j,"aria-busy":n,$isDisabled:j,children:(0,i.jsx)(rr,{variant:"buttonL",weight:"700",children:o3.resultButton})})]})}let o9=(0,s.default)(eC.x).withConfig({componentId:"sc-7b425283-0"})(["display:flex;flex-direction:column;width:100%;text-align:center;> *:first-child{margin-top:auto;}> *:last-child{margin-bottom:auto;}","{padding-top:","px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile},72),re=(0,s.default)(w.x).withConfig({componentId:"sc-7b425283-1"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),rt=(0,s.default)(eC.x).withConfig({componentId:"sc-7b425283-2"})(["position:relative;overflow:hidden;"]),rn=s.default.div.withConfig({componentId:"sc-7b425283-3"})(["position:relative;width:100%;"]),ro=s.default.button.withConfig({componentId:"sc-7b425283-4"})(["appearance:none;display:flex;align-items:center;justify-content:center;width:100%;height:48px;margin:0;padding:0 24px;background:",";border:none;border-radius:999px;cursor:",";-webkit-tap-highlight-color:transparent;"],e=>{let{$isDisabled:t,theme:n}=e;return t?n.color.bg.neutral.sub:n.color.fg.secondary.normal},e=>{let{$isDisabled:t}=e;return t?"not-allowed":"pointer"}),rr=(0,s.default)(w.x).withConfig({componentId:"sc-7b425283-5"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),ri=oy().result;
1function ra(e){let{nickName:t,timeZone:n}=e,{today:o}=tD(n);return(0,i.jsx)(rl,{px:"6XL",pt:"7XL",pb:"3XL",children:(0,i.jsx)(rs,{children:(0,i.jsxs)(rc,{children:[(0,i.jsx)(ru,{variant:"buttonM",weight:"500",children:o}),(0,i.jsx)(rd,{variant:"headlineL",weight:"700",html:ri.resultTitle.replace("{nickName}",null!=t?t:"")})]})})})}let rl=(0,s.default)(eC.x).withConfig({componentId:"sc-3dcac92d-0"})(["width:100%;"]),rs=(0,s.default)(eC.x).withConfig({componentId:"sc-3dcac92d-1"})(["display:flex;flex-direction:column;"]),rc=s.default.div.withConfig({componentId:"sc-3dcac92d-2"})(["display:flex;flex-direction:column;gap:8px;","{gap:4px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),ru=(0,s.default)(w.x).withConfig({componentId:"sc-3dcac92d-3"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[200]}),rd=(0,s.default)(tL).withConfig({componentId:"sc-3dcac92d-4"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function rp(e,t){return e.find(e=>e.position===t)}let rh=oy();function rg(e){let{cards:t}=e;return(0,i.jsx)(rf,{px:"6XL",py:"3XL",children:oc.map(e=>{var n;let o=rp(t,e);if(!o)return null;let r=null!==(n=rh.cardNames[o.cardNumber])&&void 0!==n?n:"",a="reversed"===o.orientation,l=a?rh.result.reversed:rh.result.upright;return(0,i.jsxs)(rm,{children:[(0,i.jsx)(rb,{variant:"body",weight:"500",children:rh.slots[e]}),(0,i.jsx)(rx,{pt:"L",pb:"XL",children:o.imageUrl&&(0,i.jsx)(rw,{src:o.imageUrl,alt:r,width:216,height:308,$isReversed:a,style:{width:"100%",height:"auto"},unoptimized:!0})}),(0,i.jsxs)(ry,{children:[(0,i.jsx)(rk,{variant:"buttonL",weight:"600",children:r}),(0,i.jsx)(rv,{variant:"labelL",weight:"400",children:l})]})]},e)})})}let rf=(0,s.default)(eC.x).withConfig({componentId:"sc-c4e6057-0"})(["display:flex;justify-content:center;gap:12px;text-align:center;","{gap:8px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),rm=s.default.div.withConfig({componentId:"sc-c4e6057-1"})(["display:flex;flex-direction:column;align-items:center;flex:1 1 0;min-width:0;max-width:","px;","{max-width:none;}"],216,e=>{let{theme:t}=e;return t.breakpoints.mobile}),rb=(0,s.default)(w.x).withConfig({componentId:"sc-c4e6057-2"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]}),rx=(0,s.default)(eC.x).withConfig({componentId:"sc-c4e6057-3"})(["width:100%;overflow:hidden;"]),rw=(0,s.default)(eh()).withConfig({componentId:"sc-c4e6057-4"})(["vertical-align:top;transform:",";"],e=>{let{$isReversed:t}=e;return t?"rotate(180deg)":"none"}),ry=s.default.div.withConfig({componentId:"sc-c4e6057-5"})(["display:flex;flex-direction:column;gap:4px;","{gap:2px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile}),rk=(0,s.default)(w.x).withConfig({componentId:"sc-c4e6057-6"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),rv=(0,s.default)(w.x).withConfig({componentId:"sc-c4e6057-7"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.soft}),rC=oy(),rj="".concat(oD,"img-sparkle.png");function rI(e){let{cards:t}=e;return(0,i.jsx)(rL,{px:"6XL",pt:"3XL",children:(0,i.jsx)(rT,{children:oc.map(e=>{var n;let o=rp(t,e);if(!o)return null;let r=null!==(n=rC.cardNames[o.cardNumber])&&void 0!==n?n:"",a="reversed"===o.orientation?rC.result.reversed:rC.result.upright;return(0,i.jsxs)(rE,{p:"5XL",borderRadius:"L",children:[(0,i.jsxs)(rS,{mb:"XL",children:[(0,i.jsxs)(rD,{children:[(0,i.jsx)(eh(),{src:rj,width:12,height:12,alt:"",unoptimized:!0}),(0,i.jsx)(rR,{variant:"headlineM",weight:"700",children:rC.slots[e]})]}),(0,i.jsxs)(rM,{variant:"buttonL",weight:"600",children:[r," \xb7 ",a]})]}),(0,i.jsx)(rO,{variant:"body",weight:"400",children:o.meaning})]},e)})})})}let rL=(0,s.default)(eC.x).withConfig({componentId:"sc-3866a75f-0"})(["display:flex;flex-direction:column;"]),rT=(0,s.default)(eC.x).withConfig({componentId:"sc-3866a75f-1"})(["display:flex;flex-direction:column;"]),rE=(0,s.default)(eC.x).withConfig({componentId:"sc-3866a75f-2"})(["position:relative;display:flex;flex-direction:column;background-color:rgba(57,0,88,0.6);overflow:hidden;&::before{content:'';position:absolute;top:0;right:0;left:0;display:block;width:100%;height:8px;margin:auto;background-color:",";}+ div{&::before{content:'';position:absolute;top:0;right:0;left:0;display:block;width:100%;height:1px;margin:auto;background-color:",";}}&:first-child{border-top-left-radius:0;border-top-right-radius:0;}"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[600]},e=>{let{theme:t}=e;return t.tokens.colors.lavender[800]}),rS=(0,s.default)(eC.x).withConfig({componentId:"sc-3866a75f-3"})(["display:flex;flex-direction:column;"]),rD=s.default.div.withConfig({componentId:"sc-3866a75f-4"})(["display:flex;align-items:center;gap:6px;"]),rR=(0,s.default)(w.x).withConfig({componentId:"sc-3866a75f-5"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert}),rM=(0,s.default)(w.x).withConfig({componentId:"sc-3866a75f-6"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]}),rO=(0,s.default)(w.x).withConfig({componentId:"sc-3866a75f-7"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normalBtnDisabled}),rN=oy();function rF(e){let{summary:t}=e;return(0,i.jsx)(rA,{px:"6XL",pb:"11XL",children:(0,i.jsxs)(r_,{pt:"5XL",pb:"6XL",px:"5XL",children:[(0,i.jsx)(rH,{variant:"buttonL",weight:"700",children:rN.result.summaryTitle}),(0,i.jsx)(rX,{variant:"body",weight:"400",children:t.overall}),(0,i.jsx)(rX,{variant:"body",weight:"400",children:t.advice})]})})}let rA=(0,s.default)(eC.x).withConfig({componentId:"sc-faedf39d-0"})(["display:flex;flex-direction:column;"]),r_=(0,s.default)(eC.x).withConfig({componentId:"sc-faedf39d-1"})(["display:flex;flex-direction:column;gap:12px;width:100%;margin:0 auto;background:",";border-top-right-radius:12px;border-top-left-radius:12px;","{gap:8px;}"],e=>{let{theme:t}=e;return t.color.bg.layer.overlay60},e=>{let{theme:t}=e;return t.breakpoints.mobile}),rH=(0,s.default)(w.x).withConfig({componentId:"sc-faedf39d-2"})(["color:",";"],e=>{let{theme:t}=e;return t.tokens.colors.lavender[400]}),rX=(0,s.default)(w.x).withConfig({componentId:"sc-faedf39d-3"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.normalBtnDisabled});function rB(e){let{recommendations:t,recommendationMessage:n,token:o,timeZone:r,onNavigateToDetail:l}=e,s=(0,a.useCallback)(e=>{ox({token:o,timeZone:r}
1,e).catch(e=>{console.error("[ERROR] postTarotRecommendationsImpression",e)})},[o,r]);if(0===t.length)return null;let c=async e=>{try{await ob({token:o,timeZone:r},e.trackingId)}catch(e){console.error("[ERROR] postTarotRecommendationsClick",e)}await l(e.alias)};return(0,i.jsx)(nO,{items:t,description:n,onClickContent:c,onImpression:s})}let rP=oy().result;function rz(e){let{onRetry:t}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(rJ,{pt:"6XL",pb:"11XL",onClick:t,children:[(0,i.jsx)(rU,{variant:"buttonL",weight:"700",children:rP.retryButton}),(0,i.jsx)(e6,{})]})})}let rJ=(0,s.default)(eC.x).attrs({as:"button",type:"button"}).withConfig({componentId:"sc-67c38b91-0"})(["display:flex;justify-content:center;gap:12px;width:100%;height:100%;color:",";background-color:",";border:none;cursor:pointer;","{gap:8px;}"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert},e=>{let{theme:t}=e;return t.color.fg.secondary.normal},e=>{let{theme:t}=e;return t.breakpoints.mobile}),rU=(0,s.default)(w.x).withConfig({componentId:"sc-67c38b91-1"})(["color:",";"],e=>{let{theme:t}=e;return t.color.fg.neutral.invert});function rZ(e){let{isResultLoading:t,tarotResult:n,token:o,timeZone:r,nickName:a,isDesktop:l,onNavigateToDetail:s,onRetry:c}=e;return(0,i.jsx)(rW,{children:!t&&n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ra,{timeZone:r,nickName:a}),(0,i.jsx)(rg,{cards:n.cards}),(0,i.jsx)(rI,{cards:n.cards}),(0,i.jsx)(rF,{summary:n.summary}),(0,i.jsx)(rB,{recommendations:n.recommendations,recommendationMessage:n.recommendationMessage,token:o,timeZone:r,onNavigateToDetail:s}),(0,i.jsx)(tk,{fortuneType:"tarot",isDesktop:l}),(0,i.jsx)(rz,{onRetry:c})]})})}let rW=s.default.div.withConfig({componentId:"sc-f905ad4f-0"})(["display:flex;flex-direction:column;","{padding-top:","px;}"],e=>{let{theme:t}=e;return t.breakpoints.mobile},52);function rV(e){let{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:s,onLogin:c,onNavigateToDetail:u,onShowHeader:d,onBackHandlerChange:p}=e,{isRestoreCompleted:h,isResultLoading:g,isResultRequesting:f,remainingCount:m,isStartDisabled:b,step:x,tarotResult:w,handleStart:k,handleResult:v,handleBackToIntro:C}=function(e){var t;let{auth:n,timeZone:o,onLogin:r,onShowHeader:i,onBackHandlerChange:s}=e,c=(0,l.useRouter)(),u=(0,y.useThrowToBoundary)(),d=oT(c.query[op]),[p,h]=(0,a.useState)("intro"),[g,f]=(0,a.useState)(!1),[m,b]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1),[k,v]=(0,a.useState)(null),C=(0,a.useRef)(null),j=(0,a.useRef)(!1),I=(0,a.useRef)(!1),{isResultLoading:L,loadingSelectionId:T,fetchedSelectionId:E,tarotResult:S,startSelection:D,fetchResult:R,resetRequest:M}=function(e){let{token:t,userId:n,timeZone:o}=e,r=(0,y.useReportError)(),[i,l]=(0,a.useState)(null),[s,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),p=(0,a.useRef)(0),h=(0,a.useRef)(null);return{isResultLoading:null!==i,loadingSelectionId:i,fetchedSelectionId:s,tarotResult:u,startSelection:(0,a.useCallback)(async e=>{var i;null===(i=h.current)||void 0===i||i.abort();let a=new AbortController;h.current=a;try{let{result:i,error:l}=await of({token:t,timeZone:o},n,e,a.signal);if(l)return r(l,"Tarot selection API error"),alert(ok.loadFailed),null;if(!(null==i?void 0:i.selectionId))throw Error("[ERROR] postTarotSelections returned empty result");return i.selectionId}catch(t){if(ov(t))return null;if(oC(t))return r(t,"Tarot selection API error"),alert(ok.loadFailed),null;let e=t instanceof Error?t:Error(String(t));throw e.message="Tarot selection API error: ".concat(e.message),e}finally{h.current===a&&(h.current=null)}},[r,t,n,o]),fetchResult:(0,a.useCallback)(async e=>{var n;let i=p.current+1;p.current=i,null===(n=h.current)||void 0===n||n.abort();let a=new AbortController;h.current=a,l(e);try{let{result:n,error:l}=await om({token:null!=t?t:void 0,timeZone:o},e,a.signal);if(p.current!==i)return"stale";if(l)return r(l,"Tarot result API error"),alert(ok.loadFailed),"business-error";if(!n)throw Error("[ERROR] postTarotSelectionsResult returned empty result");return d(n),c(e),"success"}catch(t){if(ov(t))return"aborted";if(p.current!==i)return"stale";console.error("[ERROR] postTarotSelectionsResult",t);let e=t instanceof Error?t:Error(String(t));throw e.message="Tarot result API error: ".concat(e.message),e}finally{h.current===a&&(h.current=null),p.current===i&&l(null)}},[r,t,o]),resetRequest:(0,a.useCallback)(()=>{var e;null===(e=h.current)||void 0===e||e.abort(),h.current=null,p.current+=1,l(null),c(null),d(null)},[])}}({token:n.token,userId:null!==(t=n.userId)&&void 0!==t?t:0,timeZone:o}),O=oE({isTransitioning:g,selectionIdFromQuery:d,baseStep:p});(0,a.useEffect)(()=>{null==i||i("intro"!==O)},[O,i]),(0,a.useEffect)(()=>()=>{null==i||i(!1)},[i]);let{remainingCount:N,isStartDisabled:F}=function(e){let{auth:t,timeZone:n,enabled:o}=e,r=(0,y.useReportError)(),i=(0,y.useThrowToBoundary)(),[l,s]=(0,a.useState)(null),[c,u]=(0,a.useState)(!1),d=(0,a.useRef)(0),p=(0,a.useCallback)(async()=>
1{if(!t.isLoggedIn){d.current+=1,s(null),u(!1);return}let e=d.current+1;d.current=e,u(!0);try{var o;let{error:i,result:a}=await og({token:t.token,timeZone:n},null!==(o=t.userId)&&void 0!==o?o:0);if(d.current!==e)return;if(i){s(null),r(i,"Tarot usage daily API error"),alert(oj.unknown);return}if(!a)throw Error("[ERROR] getTarotUsageDaily returned empty result");s(a.remainingCount)}catch(n){if(d.current!==e)return;s(null),console.error("[ERROR] getTarotUsageDaily",n);let t=n instanceof Error?n:Error(String(n));t.message="Tarot usage daily API error: ".concat(t.message),i(t)}finally{d.current===e&&u(!1)}},[t.isLoggedIn,t.token,t.userId,r,i,n]);(0,a.useEffect)(()=>{o&&p()},[o,p]);let h=(0,a.useMemo)(()=>t.isLoggedIn&&(c||null===l||0===l),[t.isLoggedIn,c,l]);return{remainingCount:l,isStartDisabled:h}}({auth:n,timeZone:o,enabled:"intro"===O}),A=(0,a.useCallback)(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),_=(0,a.useCallback)(e=>{I.current=e,w(e)},[]),H=(0,a.useCallback)(()=>{A(),j.current=!1,_(!1),f(!1),b(!1),v(null),M()},[A,M,_]),X=(0,a.useCallback)(async()=>{H(),h("intro");try{await c.replace({pathname:c.pathname,query:oS(c.query)},void 0,{shallow:!0})}catch(e){console.error("[ERROR] reset tarot route",e)}},[H,c]),B=(0,a.useCallback)(async()=>{if("result"===O&&k){c.back();return}await X()},[k,X,c,O]);(0,a.useEffect)(()=>{if(s){if("intro"===O){s(null);return}return s(B),()=>{s(null)}}},[B,s,O]);let{isRestoreCompleted:P}=function(e){let{isLoggedIn:t,selectionIdFromQuery:n,onReset:o}=e,[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!r){if(n&&!t){o().finally(()=>i(!0));return}i(!0)}},[r,n,t,o]),{isRestoreCompleted:r}}({isLoggedIn:n.isLoggedIn,selectionIdFromQuery:d,onReset:X});!function(e){let{isLoggedIn:t,selectionIdFromQuery:n,fetchedSelectionId:o,loadingSelectionId:r,fetchResult:i,handleRestoreReset:l}=e,s=(0,y.useThrowToBoundary)();(0,a.useEffect)(()=>{let e=oI({isLoggedIn:t,selectionIdFromQuery:n,fetchedSelectionId:o,loadingSelectionId:r});e&&i(e).then(e=>{if("business-error"===e)return l()}).catch(e=>{s(e)})},[o,i,l,t,r,n,s])}({isLoggedIn:n.isLoggedIn,selectionIdFromQuery:d,fetchedSelectionId:E,loadingSelectionId:T,fetchResult:R,handleRestoreReset:X});let z=(0,a.useCallback)(()=>{if(!n.isLoggedIn){r();return}F||(window.scrollTo(0,0),h("selection"))},[n.isLoggedIn,F,r]),J=(0,a.useCallback)(()=>{I.current||(_(!0),A(),j.current=!1,b(!1),v(null),M(),D(n.showAdult).then(e=>{if(!e){h("intro");return}return v(e),f(!0),C.current=setTimeout(()=>{b(!0)},4e3),R(e).then(e=>{"business-error"===e&&(H(),h("selection"))})}).catch(e=>{u(e)}).finally(()=>{_(!1)}))},[n.showAdult,A,R,M,H,D,u,_]);return!function(e){let{router:t,currentSelectionId:n,fetchedSelectionId:o,isMinimumLoadingCompleted:r,isTransitioning:i,tarotResult:l,isCompletingTransitionRef:s,onComplete:c,onFail:u}=e;(0,a.useEffect)(()=>{let e=oL({currentSelectionId:n,fetchedSelectionId:o,isMinimumLoadingCompleted:r,isTransitioning:i,tarotResult:l,isCompletingTransition:s.current});if(!e)return;s.current=!0;let a={...t.query,[op]:e};t.push({pathname:t.pathname,query:a},void 0,{shallow:!0}).then(e=>{if(s.current){if(!e){u();return}c()}}).catch(e=>{s.current&&(console.error("[ERROR] navigate tarot result",e),u())}).finally(()=>{s.current=!1})},[n,o,s,r,i,c,u,t,l])}({router:c,currentSelectionId:k,fetchedSelectionId:E,isMinimumLoadingCompleted:m,isTransitioning:g,tarotResult:S,isCompletingTransitionRef:j,onComplete:(0,a.useCallback)(()=>{f(!1),b(!1),h("intro")},[]),onFail:(0,a.useCallback)(()=>{H(),h("selection")},[H])}),(0,a.useEffect)(()=>{d||g||!k||(v(null),M())},[k,g,M,d]),(0,a.useEffect)(()=>()=>{A(),M()},[A,M]),{isRestoreCompleted:P,isResultLoading:"result"===O&&(L||E!==d||!S),isResultRequesting:x,remainingCount:N,isStartDisabled:F,step:O,tarotResult:S,handleStart:z,handleResult:J,handleBackToIntro:B}}({auth:t,timeZone:r,onLogin:c,onShowHeader:d,onBackHandlerChange:p});if(!h)return null;let j="selection"===x&&o;return(0,i.jsxs)(rK,{$isFillViewport:j,useBottomPadding:"result"!==x,children:["intro"===x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ey,{isDesktop:o}),(0,i.jsx)(eD,{activeType:n,onChangeType:s}),(0,i.jsx)(oO,{onStart:k,isDesktop:o,remainingCount:m,isStartDisabled:b})]}),"selection"===x&&(0,i.jsx)(o7,{isDesktop:o,isResultRequesting:f,onResult:v}),"loading"===x&&(0,i.jsx)(eH,{}),"result"===x&&(0,i.jsx)(rZ,{isResultLoading:g,tarotResult:w,token:t.token,timeZone:r,nickName:t.nickName,isDesktop:o,onNavigateToDetail:u,onRetry:C})]})}let rK=s.default.div.withConfig({componentId:"sc-3fb1106f-0"})(["width:100%;min-height:",";padding-bottom:",";background-color:",";","{padding-bottom:","px;}"],e=>{let{$isFillViewport:t}=e;return t?"0":"100vh"},e=>{let{$isFillViewport:t,useBottomPadding:n}=e;return t||!n?"0":"80px"},ef,e=>{let{theme:t}=e;return t.breakpoints.mobile},e=>{let{useBottomPadding:t}=e;return(t?80:0)+em});function rG(e){let{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:a,onAppDownload:l,onLogin:s,onNavigateToDetail:c,onShowHeader:u,onBackHandlerChange:d}=e;return(0,i.jsxs)(i.Fragment,{children:["stars"===n&&(0,i.jsx)(ol,{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:a,onAppDownload:l,onLogin:s,onNavigateToDetail:c,onShowHeader:u,onBackHandlerChange:d}),"tarot"===n&&(0,i.jsx)(rV,{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:a,onLogin:s,onNavigateToDetail:c,onShowHeader:u,onBackHandlerChange:d})]})}function rq(e){let{auth:t,activeType:n,isDesktop:o,timeZone:r,headerSlot:a,onChangeType:l,onAppDownload:s,onLogin:c,onNavigateToDetail:u,onShowHeader:d,onBackHandlerChange:p}=e;return(0,i.jsxs)(rQ,{children:[a,(0,i.jsx)(rG,{auth:t,activeType:n,isDesktop:o,timeZone:r,onChangeType:l,onAppDownload:s,onLogin:c,onNavigateToDetail:u,onShowHeader:d,onBackHandlerChange:p})]})}let rQ=s.default.div.withConfig({componentId:"sc-bc7d7ece-0"})(["position:relative;width:100%;"]);var r$=n(258),rY=()=>{var e;let t=(0,l.useRouter)(),{accessToken:n,user:o,isLogin:r,isIosGuest:s,showAdult:w,moveToLogin:v}
1=(0,f.Z)(),{userDetail:C}=(0,m.Z)(),{isDesktop:j}=(0,g.pY)(),I=(0,b.s0)(),L=r&&!s,T="tarot"===t.query.type?"tarot":"stars",[E,S]=(0,a.useState)(!1),D=(0,a.useRef)(null),{headerTitle:R}=null!==(e=k[r$.default.PLATFORM])&&void 0!==e?e:k["bom-kr"],M=(0,a.useCallback)(async()=>{let e=u.Xi.get();e&&-1==e.indexOf("/callback/")&&"/"!=e&&e!=t.asPath?t.back():await t.push("/")},[t]),O=(0,a.useCallback)(e=>{t.push({pathname:t.pathname,query:{type:e}},void 0,{shallow:!0})},[t]),N=(0,a.useCallback)((e,t)=>{(0,x.pI)("download",e,t)},[]),F=(0,a.useCallback)(async e=>{await I("detail",{path:"/".concat(e)})},[I]),A=(0,a.useCallback)(()=>{v(t.asPath)},[v,t.asPath]),_=(0,a.useCallback)(()=>{if(D.current){D.current();return}t.back()},[t]),H=(0,a.useCallback)(e=>{D.current=e},[]),X=E?(0,i.jsx)(r0,{children:(0,i.jsxs)(r1,{children:[(0,i.jsx)(r2,{children:(0,i.jsx)(h.Z,{onPressed:_,useWhiteArrow:!j})}),(0,i.jsx)(r4,{variant:"subtitle",weight:"400",children:R[T]}),(0,i.jsx)(r5,{})]})}):null;return(0,i.jsx)(d.Z,{type:r$.default.PLATFORM,gnbKey:"play",snbKey:"playFortune",layoutType:"play",navigationBottomSlot:j?X:null,navigationBottomSlotHeight:52,children:(0,i.jsx)(p._,{children:(0,i.jsx)(y.Boundary,{name:"play-fortune",resetKeys:[t.asPath],fallback:(0,i.jsx)(c.o,{isDesktop:j,onMain:()=>t.push("/"),onBack:M}),children:(0,i.jsx)(rq,{auth:{isLoggedIn:L,userId:L?null==o?void 0:o.id:void 0,token:L?null==n?void 0:n.token:void 0,showAdult:w,nickName:L?null==C?void 0:C.nickname:void 0},activeType:T,isDesktop:j,timeZone:r$.default.TIME_ZONE,headerSlot:j?null:X,onChangeType:O,onAppDownload:N,onLogin:A,onNavigateToDetail:F,onShowHeader:S,onBackHandlerChange:H})})})})};let r0=s.default.div.withConfig({componentId:"sc-69e8e6e9-0"})(["position:relative;width:100%;height:","px;background-color:",";","{position:absolute;top:0;left:0;background-color:transparent;border-bottom:0;z-index:1;}"],52,e=>{let{theme:t}=e;return t.color.bg.layer.color},e=>{let{theme:t}=e;return t.breakpoints.mobile}),r1=s.default.div.withConfig({componentId:"sc-69e8e6e9-1"})(["display:grid;grid-template-columns:1fr auto 1fr;align-items:center;width:100%;max-width:","px;height:100%;margin:0 auto;","{padding:0 16px;}"],e=>{let{theme:t}=e;return t.dimens.maxWidth},e=>{let{theme:t}=e;return t.breakpoints.mobile}),r2=s.default.div.withConfig({componentId:"sc-69e8e6e9-2"})(["display:flex;justify-content:flex-start;min-width:0;"]),r4=(0,s.default)(w.x).withConfig({componentId:"sc-69e8e6e9-3"})(["min-width:0;color:",";text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;","{display:none;}"],e=>{let{theme:t}=e;return t.color.fg.neutral.normal},e=>{let{theme:t}=e;return t.breakpoints.mobile}),r5=s.default.div.withConfig({componentId:"sc-69e8e6e9-4"})(["min-width:0;"])},98606:function(e,t,n){"use strict";n.d(t,{En:function(){return u},Kx:function(){return s},RL:function(){return c},jG:function(){return h},k0:function(){return p},pI:function(){return l},zk:function(){return d}});var o=n(26764),r=n(74854),i=n(85631);let a=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=JSON.stringify({type:e,title:r,message:n,img:i,link:t});try{o.lX.is_android?(console.error("android : jsComicShare",a),window.android.jsComicShare(a)):(console.error("ios : jsComicShare",a),webkit.messageHandlers.jsComicShare.postMessage(a))}catch(e){console.error("[ERROR] ",e)}},l=(e,t,n)=>{let r=JSON.stringify({type:e,url:t,message:n});try{o.lX.is_android?(console.error("android : jsShareExtention",r),window.android.jsShareExtention(r)):(console.error("ios : jsShareExtention",r),webkit.messageHandlers.jsShareExtention.postMessage(r))}catch(e){console.error("[ERROR] ",e)}},s=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=e+"\n"+t+"\n";if(s.length+n.length>180&&(s=s.substring(0,180-n.length)+"…"),o.lX.is_app)i?l("twitter",r,s+n):a("twitter",n,s);else{let e="https://twitter.com/intent/tweet?text="+encodeURIComponent(s)+"&url="+encodeURIComponent(n);window.open(e,"_blank","toolbar=0, status=0, width=500, height=400")||(document.location.href=e)}},c=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=e+"\n"+t;if(o.lX.is_app)i?l("facebook",n,s):a("facebook",n,s);else{let e="http://www.facebook.com/dialog/share?app_id=".concat("491075645319614","&href=")+encodeURIComponent(n),t=window.open(e,"facebook","toolbar=0, status=0, width=500, height=400");t&&t.focus()}},u=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o.lX.is_app)i?l("kakao",n,t):a("kakao",n,t,e,r);else{let o=window.Kakao;o&&(o.isInitialized()||o.init("01d2530b05cef252f9b8d1b38cb9db88"),o.Link.sendDefault({objectType:"feed",content:{title:e,description:t,imageUrl:r,link:{mobileWebUrl:n,webUrl:n}},fail:function(){alert("오류가 발생하였습니다.")}}))}},d=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=encodeURIComponent(n),c=encodeURIComponent(e);
1if(o.lX.is_app)i?l("facebook",n,t):a("line",n,t,e,r);else{let e=window.open("https://social-plugins.line.me/lineit/share?url="+s+"&text="+c,"line","toolbar=0, status=0, width=500, height=400");e&&e.focus()}},p=(e,t,n)=>{let o=e+"\n"+t+"\n";o.length+n.length>180&&(o=o.substring(0,180-n.length)+"…");try{let e="https://wa.me/?text="+encodeURIComponent(o)+" "+encodeURIComponent(n);window.open(e,"_blank","toolbar=0, status=0, width=900, height=900")||(document.location.href=e)}catch(e){console.error("[ERROR] ",e)}},h=function(e,t,n,s){let c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(o.lX.is_app)c?l("url",s,t):a("url",n,t);else{var d;null===(d=navigator)||void 0===d||d.clipboard.writeText(n).then(function(){if(u){(0,i.Y)(r.default.detail.share.urlSuccess);return}alert(r.default.detail.share.urlSuccess)}).catch(function(){alert("[".concat(e,"]").concat(r.default.detail.share.urlFail))})}}},85631:function(e,t,n){"use strict";n.d(t,{Y:function(){return d},y:function(){return p}});var o=n(26764),r=n(20711),i=n(71607),a=n.n(i),l=n(258);let s=(e,t,n,o,r)=>{if("beltoon-jp"===e)t?window.android.jsShowToast(o):n&&webkit.messageHandlers.jsShowToast.postMessage(o);else{let e=JSON.stringify({duration:r,message:o});t?window.android.jsShowTimerToast(e):n&&webkit.messageHandlers.jsShowTimerToast.postMessage(e)}},c=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={autoClose:t,onClose:n};return null!==o&&(i={...i,style:{width:o}}),(0,r.Am)(e,i)},u=(e,t,n)=>{try{let r=l.default.PLATFORM,i=o.lX.is_android,a=o.lX.is_ios;s(r,i,a,e,t),n()}catch(o){console.error(o),c(e,t,n)}},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1500,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return o.lX.is_app&&!("beltoon-jp"===l.default.PLATFORM&&o.lX.is_ios)?(u(e,n,t),"appToast"):c(e,n,t,r)},p=()=>r.Am.dismiss()},77767:function(e,t,n){"use strict";var o=n(52983);t.Z=e=>{let[t,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)(0),a=(0,o.useRef)(null),l=(0,o.useRef)(e);l.current=e;let s=e.disable;return(0,o.useEffect)(()=>{if(s)return;let e=new IntersectionObserver(e=>{let[t]=e;n(t.isIntersecting),i(t.intersectionRatio)},{...l.current}),t=a.current;if(t)return e.observe(t),()=>{e.unobserve(t)}},[s]),[t,r,a]}},48467:function(e,t,n){"use strict";n.d(t,{bQ:function(){return s}});var o,r=n(79935);let i={web:"WEB",mobileWebIos:"MOBILE_IOS",mobileWebAos:"MOBILE_AND",androidPlaystore:"AND_PLAY",iosAppstore:"IOS_APP",androidOnestore:"AND_ONE",androidPlus:"AND_PLUS"},a=["balcony_and_play","balcony_ios_app","balcony_and_one","balcony_and_plus"],l={isInit:!1,isApp:!1,isPlusApp:!1,isAndroid:!1,isIos:!1,platformName:i.web,isIosGuest:!1,isViewerApp:!1,isViewerAndroid:!1,isViewerIos:!1,deviceId:null,deviceModel:null,isNonAdultApp:!1},s={...l};(!s.isInit||o)&&Object.assign(s,function(e){var t;let n={...l},o=null!=e?e:"undefined"!=typeof navigator?navigator.userAgent:"";return o&&(n.isApp=a.some(e=>o.includes(e)),(o.includes("balcony_viewer_and_play")||o.includes("balcony_viewer_ios_app"))&&(n.isViewerApp=!0,o.includes("balcony_viewer_and_play")&&(n.isViewerAndroid=!0,n.platformName=i.androidPlaystore),o.includes("balcony_viewer_ios_app")&&(n.isViewerIos=!0,n.platformName=i.iosAppstore)),!function(e,t){let n=(0,r.detect)(e);e.includes("balcony_and_play")?(t.isAndroid=!0,t.platformName=i.androidPlaystore,t.isNonAdultApp=!0):e.includes("balcony_ios_app")?(t.isIos=!0,t.platformName=i.iosAppstore,t.isNonAdultApp=!0):e.includes("balcony_and_one")?(t.isAndroid=!0,t.isPlusApp=!0,t.platformName=i.androidOnestore):e.includes("balcony_and_plus")?(t.isAndroid=!0,t.isPlusApp=!0,t.platformName=i.androidPlus):(null==n?void 0:n.os)==="iOS"?t.platformName=i.mobileWebIos:(null==n?void 0:n.os)==="Android OS"&&(t.platformName=i.mobileWebAos)}(o,n),null===(t=o.split(" "))||void 0===t||t.forEach(e=>{if(e.includes("deviceId")&&e.includes("deviceModel")){var t;null===(t=e.replace("[","").replace("]","").split(","))||void 0===t||t.forEach(e
1=>{let t=e.split(":");(null==t?void 0:t.length)<=1||(n[t[0]]=t[1])})}})),n.isInit=!0,n}(o))}},function(e){e.O(0,[4752,53418,92888,49774,40179],function(){return e(e.s=5879)}),_N_E=e.O()}]);
2//# sourceMappingURL=fortune-b127ece3f2a91bdb.js.map

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.