@ihabdevteam/core 0.116.0 → 0.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  \uC2E0\uB8B0\uB97C \uC313\uACE0
3
3
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},u1={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},p1={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},h1={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},m1={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},b1={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},g1={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},f1={ariaLabel:"\uC120\uD0DD \uD0ED"},v1={ariaLabel:"\uD0ED"},x1={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},_1={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},C1={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},y1={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},w1={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},k1={manage:{unit:"\uAC74"}},A1={cancelLabel:"\uCDE8\uC18C"},S1={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},B1={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},N1={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},D1={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},j1={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},E1={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},T1={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},L1={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},M1={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},$1={common:Ng,calendar:Dg,passCard:jg,searchField:Eg,rating:Tg,colorPicker:Lg,dropdown:Mg,accordion:$g,header:Rg,nav:Pg,settings:zg,usage:Ig,account:Og,help:Fg,training:Hg,trainingSettings:Wg,customers:Vg,payment:Gg,coupons:Ug,visits:Yg,company:qg,trainingType:Kg,myWordTraining:Zg,myWordTable:Xg,keyWords:Jg,wordTable:Qg,wordSearch:e1,wordPrint:t1,topic:a1,accessLinkManager:o1,login:r1,trainingPlanRun:n1,device:i1,manager:s1,wordPairs:l1,game:c1,footer:d1,landing:u1,date:p1,trainingSetPage:h1,wordTrainingPreview:m1,wordData:b1,textField:g1,segmentedControl:f1,tabs:v1,fileUpload:x1,avatar:_1,myHomework:C1,trainingStatus:y1,store:w1,homework:k1,inquiry:A1,progress:S1,trainingMiss:B1,table:N1,wordScore:D1,topBanner:j1,datePicker:E1,report:T1,tooltip:L1,phonemeProfile:M1},R1={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}}},P1={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},z1={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},I1={clearAriaLabel:"Clear search"},O1={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},F1={selected:"selected"},H1={placeholder:"Select"},W1={collapse:"Collapse",expand:"Expand"},V1={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},G1={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu"},U1={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},Y1={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},q1={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password"},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},K1={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Z1={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",diffPhonemeCount:"Total differing phonemes",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseLevelTitle:"Noise Level",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},X1={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},J1={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"}},Q1={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},e0={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},t0={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},a0={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},o0={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},r0={comingSoon:"Word training is coming soon."},n0={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"}},i0={title:"Key Words",empty:"No key words available."},s0={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},l0={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},c0={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},d0={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},u0={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},p0={passwordPlaceholder:"Enter password"},h0={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},m0={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},b0={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},g0={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},f0={lead:`IHAB builds trust
4
4
  through sound
5
- and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},v0={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},x0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},C0={answer:"Answer",distractor:"Distractor"},y0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},w0={clearAriaLabel:"Clear input"},k0={ariaLabel:"Select tab"},A0={ariaLabel:"Tabs"},S0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},B0={ariaLabel:"User avatar"},N0={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},D0={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},j0={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},E0={manage:{unit:"item(s)"}},T0={cancelLabel:"Cancel"},L0={subtitle:"Select a topic to start listening practice."},M0={steps:"Step {{current}} of {{total}}"},$0={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},R0={resetColumns:"Reset column widths"},P0={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},z0={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},I0={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},O0={previewRegion:"Report preview \u2014 scrollable sideways"},F0={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},H0={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},W0={common:R1,calendar:P1,passCard:z1,searchField:I1,rating:O1,colorPicker:F1,dropdown:H1,accordion:W1,header:V1,nav:G1,settings:U1,usage:Y1,account:q1,help:K1,training:Z1,trainingSettings:X1,customers:J1,payment:Q1,coupons:e0,visits:t0,company:a0,trainingType:o0,myWordTraining:r0,myWordTable:n0,keyWords:i0,wordTable:s0,wordSearch:l0,wordPrint:c0,topic:d0,accessLinkManager:u0,login:p0,device:h0,manager:m0,wordPairs:b0,game:g0,footer:f0,landing:v0,date:x0,trainingSetPage:_0,wordTrainingPreview:C0,wordData:y0,textField:w0,segmentedControl:k0,tabs:A0,fileUpload:S0,avatar:B0,myHomework:N0,trainingStatus:D0,store:j0,homework:E0,inquiry:T0,trainingPlanRun:L0,progress:M0,trainingMiss:$0,table:R0,wordScore:P0,topBanner:z0,datePicker:I0,report:O0,tooltip:F0,phonemeProfile:H0};const jr="0.116.0",Lo=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],co="ko",Vn="ihab_display_language";function qc(){try{const e=localStorage.getItem(Vn);if(e&&Lo.some(t=>t.code===e))return e}catch{}return co}function V0(e){try{localStorage.setItem(Vn,e)}catch{}}function Kc(e){try{document.documentElement.lang=e}catch{}}Ca.on("languageChanged",Kc),Kc(qc()),Ca.use(me.initReactI18next).init({resources:{ko:{translation:$1},en:{translation:W0}},lng:qc(),fallbackLng:co,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Zc=l.createContext({locale:co,supportedLocales:Lo});function G0(){return l.useContext(Zc)}function U0({locale:e=co,children:t}){return l.useEffect(()=>{const a=Lo.find(r=>r.code===e)?e:co;Ca.language!==a&&Ca.changeLanguage(a)},[e]),o.jsx(Zc.Provider,{value:{locale:e,supportedLocales:Lo},children:t})}function _e(...e){return e.filter(Boolean).join(" ")}var Y0=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__emoji{font-size:40px;line-height:1}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);height:40px;width:40px}.ihabdevteam-core-scope .empty-state__title{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__message{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__hint{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}.ihabdevteam-core-scope .empty-state--compact{padding:var(--spacing-page) var(--spacing-m);padding-block:56px}";ae(Y0);const Xc=new Set,Jc=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Gn(e,...t){!Jc||Xc.has(e)||(Xc.add(e),console.warn(...t))}/**
5
+ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},v0={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},x0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},C0={answer:"Answer",distractor:"Distractor"},y0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},w0={clearAriaLabel:"Clear input"},k0={ariaLabel:"Select tab"},A0={ariaLabel:"Tabs"},S0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},B0={ariaLabel:"User avatar"},N0={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},D0={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},j0={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},E0={manage:{unit:"item(s)"}},T0={cancelLabel:"Cancel"},L0={subtitle:"Select a topic to start listening practice."},M0={steps:"Step {{current}} of {{total}}"},$0={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},R0={resetColumns:"Reset column widths"},P0={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},z0={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},I0={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},O0={previewRegion:"Report preview \u2014 scrollable sideways"},F0={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},H0={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},W0={common:R1,calendar:P1,passCard:z1,searchField:I1,rating:O1,colorPicker:F1,dropdown:H1,accordion:W1,header:V1,nav:G1,settings:U1,usage:Y1,account:q1,help:K1,training:Z1,trainingSettings:X1,customers:J1,payment:Q1,coupons:e0,visits:t0,company:a0,trainingType:o0,myWordTraining:r0,myWordTable:n0,keyWords:i0,wordTable:s0,wordSearch:l0,wordPrint:c0,topic:d0,accessLinkManager:u0,login:p0,device:h0,manager:m0,wordPairs:b0,game:g0,footer:f0,landing:v0,date:x0,trainingSetPage:_0,wordTrainingPreview:C0,wordData:y0,textField:w0,segmentedControl:k0,tabs:A0,fileUpload:S0,avatar:B0,myHomework:N0,trainingStatus:D0,store:j0,homework:E0,inquiry:T0,trainingPlanRun:L0,progress:M0,trainingMiss:$0,table:R0,wordScore:P0,topBanner:z0,datePicker:I0,report:O0,tooltip:F0,phonemeProfile:H0};const jr="0.117.0",Lo=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],co="ko",Vn="ihab_display_language";function qc(){try{const e=localStorage.getItem(Vn);if(e&&Lo.some(t=>t.code===e))return e}catch{}return co}function V0(e){try{localStorage.setItem(Vn,e)}catch{}}function Kc(e){try{document.documentElement.lang=e}catch{}}Ca.on("languageChanged",Kc),Kc(qc()),Ca.use(me.initReactI18next).init({resources:{ko:{translation:$1},en:{translation:W0}},lng:qc(),fallbackLng:co,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Zc=l.createContext({locale:co,supportedLocales:Lo});function G0(){return l.useContext(Zc)}function U0({locale:e=co,children:t}){return l.useEffect(()=>{const a=Lo.find(r=>r.code===e)?e:co;Ca.language!==a&&Ca.changeLanguage(a)},[e]),o.jsx(Zc.Provider,{value:{locale:e,supportedLocales:Lo},children:t})}function _e(...e){return e.filter(Boolean).join(" ")}var Y0=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__emoji{font-size:40px;line-height:1}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);height:40px;width:40px}.ihabdevteam-core-scope .empty-state__title{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__message{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__hint{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}.ihabdevteam-core-scope .empty-state--compact{padding:var(--spacing-page) var(--spacing-m);padding-block:56px}";ae(Y0);const Xc=new Set,Jc=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Gn(e,...t){!Jc||Xc.has(e)||(Xc.add(e),console.warn(...t))}/**
6
6
  * @license lucide-react v1.38.0 - ISC
7
7
  *
8
8
  * This source code is licensed under the ISC license.
@@ -32,7 +32,7 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const Z0=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},X0=l.createContext({}),J0=()=>l.useContext(X0),Q0=l.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:n="",children:i,iconNode:s,...c},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,color:p="currentColor",className:g=""}=J0()??{},f=r??h?Number(a??m)*24/Number(t??u):a??m;return l.createElement("svg",{ref:d,...Un,width:t??u??Un.width,height:t??u??Un.height,stroke:e??p,strokeWidth:f,className:Qc("lucide",g,n),...!i&&!Z0(c)&&{"aria-hidden":"true"},...c},[...s.map(([b,v])=>l.createElement(b,v)),...Array.isArray(i)?i:[i]])});/**
35
+ */const Z0=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},X0=l.createContext({}),J0=()=>l.useContext(X0),Q0=l.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:n="",children:i,iconNode:s,...c},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:h="currentColor",className:g=""}=J0()??{},f=r??p?Number(a??m)*24/Number(t??u):a??m;return l.createElement("svg",{ref:d,...Un,width:t??u??Un.width,height:t??u??Un.height,stroke:e??h,strokeWidth:f,className:Qc("lucide",g,n),...!i&&!Z0(c)&&{"aria-hidden":"true"},...c},[...s.map(([b,x])=>l.createElement(b,x)),...Array.isArray(i)?i:[i]])});/**
36
36
  * @license lucide-react v1.38.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
@@ -808,8 +808,8 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
808
808
  * This source code is licensed under the ISC license.
809
809
  * See the LICENSE file in the root directory of this source tree.
810
810
  */const CC=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],yC=K("thumbs-up",CC),gd={"alert-triangle":td,"align-start-vertical":af,anchor:$_,armchair:P_,"arrow-down":rf,"arrow-left":sf,"arrow-right":cf,"arrow-right-left":uf,"arrow-up-a-z":I_,"audio-lines":hf,baby:bf,ban:ff,"bar-chart-2":F_,bell:xf,"book-marked":Cf,"book-open":wf,"bow-arrow":Af,braces:Bf,bug:Df,calendar:hd,"calendar-check":Ef,"calendar-days":Lf,camera:$f,car:V_,"chart-column":Pf,"chart-line":If,"chart-pie":Ff,check:ad,"chevron-down":md,"chevron-left":od,"chevron-right":rd,"chevron-up":bd,circle:mC,"clipboard-list":Uf,coffee:U_,combine:qf,copy:Zf,"chevrons-left-right-ellipsis":Jf,"credit-card":ev,database:nd,diff:ov,download:id,ear:iv,edit:lv,"edit-2":dv,"edit-3":pv,ellipsis:sd,eraser:bv,"external-link":fv,eye:xv,"file-text":Cv,"flip-horizontal":wv,"folder-open":Av,"folder-plus":Bv,gamepad:Dv,"gamepad-2":q_,gavel:Ev,"git-merge":ld,globe:Mv,headphones:Rv,heart:zv,home:Ov,inbox:Z_,info:Hv,"key-round":Vv,landmark:Uv,layers:qv,"layout-dashboard":Zv,leaf:Jv,lightbulb:ex,link:ax,"link-2":rx,"link-2-off":ix,list:lx,"list-checks":dx,"list-ordered":px,"list-tree":J_,loader:mx,lock:gx,"log-out":vx,mail:_x,"map-pin":yx,menu:vC,"message-circle":kx,"message-circle-question-mark":Sx,"message-square":Nx,"message-square-more":eC,"message-square-text":jx,minus:aC,"minus-circle":Tx,moon:_C,"more-horizontal":sd,package:Mx,palette:Rx,"party-popper":zx,pause:Ox,pencil:Hx,phone:Vx,play:Ux,"play-circle":qx,plus:Zx,printer:Jx,"refresh-cw":e2,repeat:a2,replace:r2,rocket:i2,"rotate-ccw":l2,"rotate-cw":d2,salad:p2,"scan-search":m2,search:v2,"circle-alert":cd,"alert-circle":cd,"check-circle":dd,scissors:_2,"search-x":y2,send:k2,settings:S2,"share-2":rC,"shield-check":N2,"shopping-cart":j2,shuffle:T2,"skip-back":M2,"skip-forward":R2,sparkles:iC,square:z2,star:O2,store:H2,"sun-medium":V2,table:U2,"table-2":q2,tag:Z2,terminal:J2,"text-cursor-input":e_,"text-initial":a_,"thumbs-up":yC,ticket:r_,trash:l_,triangle:gC,"trash-2":i_,"trending-up":d_,"triangle-alert":td,trophy:p_,type:lC,unlink:m_,upload:g_,user:Yn,"user-plus":x_,"user-round":C_,"user-round-check":w_,users:A_,"users-round":B_,volume:dC,"volume-2":ud,wrench:j_,x:pd,zap:L_};function wC(e){return gd[e]??null}const fd=new Set;function kC(e){return Jc&&!(e in gd)&&!fd.has(e)&&(fd.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const AC=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function SC(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?AC(a):null}const vd=new Map;function BC(e){const t=typeof e=="string"?SC(e):null,a=t?wC(t)??vd.get(t)??null:null,[r,n]=l.useState(null);return l.useEffect(()=>{if(!t||a)return;let i=!1;return kC(t).then(s=>{vd.set(t,s),i||n(s)}),()=>{i=!0}},[t,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function NC(e){if(Array.isArray(e))return e}function DC(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,n,i,s,c=[],d=!0,u=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(d=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){u=!0,n=m}finally{try{if(!d&&a.return!=null&&(s=a.return(),Object(s)!==s))return}finally{if(u)throw n}}return c}}function jC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
811
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EC(e,t){return NC(e)||DC(e,t)||TC(e,t)||jC()}function TC(e,t){if(e){if(typeof e=="string")return xd(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?xd(e,t):void 0}}const _d=Object.entries,Cd=Object.setPrototypeOf,LC=Object.isFrozen,MC=Object.getPrototypeOf,$C=Object.getOwnPropertyDescriptor;let bt=Object.freeze,vt=Object.seal,uo=Object.create,yd=typeof Reflect<"u"&&Reflect,qn=yd.apply,Kn=yd.construct;bt||(bt=function(t){return t}),vt||(vt=function(t){return t}),qn||(qn=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),Kn||(Kn=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const qa=pt(Array.prototype.forEach),RC=pt(Array.prototype.lastIndexOf),wd=pt(Array.prototype.pop),Mo=pt(Array.prototype.push),PC=pt(Array.prototype.splice),po=Array.isArray,$o=pt(String.prototype.toLowerCase),Zn=pt(String.prototype.toString),kd=pt(String.prototype.match),Ro=pt(String.prototype.replace),Ad=pt(String.prototype.indexOf),zC=pt(String.prototype.trim),IC=pt(Number.prototype.toString),OC=pt(Boolean.prototype.toString),Sd=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),Bd=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),Po=pt(Object.prototype.toString),kt=pt(RegExp.prototype.test),Ka=FC(TypeError);function pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return qn(e,t,r)}}function FC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Kn(e,a)}}function Ye(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$o;if(Cd&&Cd(e,null),!po(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(LC(t)||(t[r]=i),n=i)}e[n]=!0}return e}function HC(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function It(e){const t=uo(null);for(const r of _d(e)){var a=EC(r,2);const n=a[0],i=a[1];Rt(e,n)&&(po(i)?t[n]=HC(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=It(i):t[n]=i)}return t}function WC(e){switch(typeof e){case"string":return e;case"number":return IC(e);case"boolean":return OC(e);case"bigint":return Sd?Sd(e):"0";case"symbol":return Bd?Bd(e):"Symbol()";case"undefined":return Po(e);case"function":case"object":{if(e===null)return Po(e);const t=e,a=qt(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Po(r)}return Po(e)}default:return Po(e)}}function qt(e,t){for(;e!==null;){const r=$C(e,t);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=MC(e)}function a(){return null}return a}function VC(e){try{return kt(e,""),!0}catch{return!1}}const Nd=bt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xn=bt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Jn=bt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),GC=bt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qn=bt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UC=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dd=bt(["#text"]),jd=bt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ei=bt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ed=bt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Er=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YC=vt(/{{[\w\W]*|^[\w\W]*}}/g),qC=vt(/<%[\w\W]*|^[\w\W]*%>/g),KC=vt(/\${[\w\W]*/g),ZC=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),XC=vt(/^aria-[\-\w]+$/),Td=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JC=vt(/^(?:\w+script|data):/i),QC=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ey=vt(/^html$/i),ty=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ld=vt(/<[/\w!]/g),Md=vt(/<[/\w]/g),ay=vt(/<\/no(script|embed|frames)/i),oy=vt(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$d=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ry=bt(Ye({},$d)),ny=(function(){const e={};return qa($d,t=>{e[t]=vt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),iy=function(){return typeof window>"u"?null:window},sy=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Rd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},La=function(t,a,r,n){return Rt(t,a)&&po(t[a])?Ye(n.base?It(n.base):{},t[a],n.transform):r},ti=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?It(n):r()};function Pd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iy();const t=he=>Pd(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,h=e.trustedTypes,p=c.prototype,g=qt(p,"cloneNode"),f=qt(p,"remove"),b=qt(p,"nextSibling"),v=qt(p,"childNodes"),x=qt(p,"parentNode"),y=qt(p,"shadowRoot"),C=qt(p,"attributes"),_=s&&s.prototype?qt(s.prototype,"nodeType"):null,k=s&&s.prototype?qt(s.prototype,"nodeName"):null,w=s&&s.prototype?qt(s.prototype,"ownerDocument"):null,A=function(j){return _?_(j):j.nodeType},T=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let S,D="",F,R=!1,E=0;const $=function(){if(E>0)throw Ka('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},B=function(j){$(),E++;try{return S.createHTML(j)}finally{E--}},G=function(j){$(),E++;try{return S.createScriptURL(j)}finally{E--}},Q=function(){return R||(F=sy(h,n),R=!0),F},ee=a,oe=ee.implementation,N=ee.createNodeIterator,L=ee.createDocumentFragment,P=ee.getElementsByTagName,H=r.importNode;let W=Rd();t.isSupported=typeof _d=="function"&&typeof x=="function"&&oe&&oe.createHTMLDocument!==void 0;const te=YC,I=qC,q=KC,O=ZC,ie=XC,pe=JC,ve=QC,xe=ty;let be=Td,M=null;const U=Ye({},[...Nd,...Xn,...Jn,...Qn,...Dd]);let re=null;const ge=Ye({},[...jd,...ei,...Ed,...Er]);let ce=Object.seal(uo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,X=null;const Z=Object.seal(uo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let fe=!0,Ne=!0,Ie=!1,Me=!0,Ee=!1,je=!0,Ae=!1,Fe=!1,Xe=null,we=null,He=!1,Te=!1,Ue=!1,et=!1,Ke=!0,Oe=!1;const dt="user-content-";let xt=!0,Ze=!1,st={},Le=null;const Pe=Ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let rt=null;const nt=Ye({},["audio","video","img","source","image","track"]);let tt=null;const lt=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",aa="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let Lt=at,Pt=!1,Wt=null;const Ea=Ye({},[yt,aa,at],Zn),oa=bt(["mi","mo","mn","ms","mtext"]);let va=Ye({},oa);const Ta=bt(["annotation-xml"]);let jt=Ye({},Ta);const Ua=Ye({},["title","style","font","a","script"]);let Et=null;const xa=["application/xhtml+xml","text/html"],Ya="text/html";let Je=null,zt=null;const wt=a.createElement("form"),_a=function(j){return j instanceof RegExp||j instanceof Function},ra=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(zt&&zt===j)return;(!j||typeof j!="object")&&(j={}),j=It(j),Et=xa.indexOf(j.PARSER_MEDIA_TYPE)===-1?Ya:j.PARSER_MEDIA_TYPE,Je=Et==="application/xhtml+xml"?Zn:$o,M=La(j,"ALLOWED_TAGS",U,{transform:Je}),re=La(j,"ALLOWED_ATTR",ge,{transform:Je}),Wt=La(j,"ALLOWED_NAMESPACES",Ea,{transform:Zn}),tt=La(j,"ADD_URI_SAFE_ATTR",lt,{transform:Je,base:lt}),rt=La(j,"ADD_DATA_URI_TAGS",nt,{transform:Je,base:nt}),Le=La(j,"FORBID_CONTENTS",Pe,{transform:Je}),z=La(j,"FORBID_TAGS",It({}),{transform:Je}),X=La(j,"FORBID_ATTR",It({}),{transform:Je}),st=Rt(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?It(j.USE_PROFILES):j.USE_PROFILES:!1,fe=j.ALLOW_ARIA_ATTR!==!1,Ne=j.ALLOW_DATA_ATTR!==!1,Ie=j.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=j.SAFE_FOR_TEMPLATES||!1,je=j.SAFE_FOR_XML!==!1,Ae=j.WHOLE_DOCUMENT||!1,Te=j.RETURN_DOM||!1,Ue=j.RETURN_DOM_FRAGMENT||!1,et=j.RETURN_TRUSTED_TYPE||!1,He=j.FORCE_BODY||!1,Ke=j.SANITIZE_DOM!==!1,Oe=j.SANITIZE_NAMED_PROPS||!1,xt=j.KEEP_CONTENT!==!1,Ze=j.IN_PLACE||!1,be=VC(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Td,Lt=typeof j.NAMESPACE=="string"?j.NAMESPACE:at,va=ti(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ye({},oa)),jt=ti(j,"HTML_INTEGRATION_POINTS",()=>Ye({},Ta));const Y=ti(j,"CUSTOM_ELEMENT_HANDLING",()=>uo(null));if(ce=uo(null),Rt(Y,"tagNameCheck")&&_a(Y.tagNameCheck)&&(ce.tagNameCheck=Y.tagNameCheck),Rt(Y,"attributeNameCheck")&&_a(Y.attributeNameCheck)&&(ce.attributeNameCheck=Y.attributeNameCheck),Rt(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),vt(ce),Ee&&(Ne=!1),Ue&&(Te=!0),st&&(M=Ye({},Dd),re=uo(null),st.html===!0&&(Ye(M,Nd),Ye(re,jd)),st.svg===!0&&(Ye(M,Xn),Ye(re,ei),Ye(re,Er)),st.svgFilters===!0&&(Ye(M,Jn),Ye(re,ei),Ye(re,Er)),st.mathMl===!0&&(Ye(M,Qn),Ye(re,Ed),Ye(re,Er))),Z.tagCheck=null,Z.attributeCheck=null,Rt(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Z.tagCheck=j.ADD_TAGS:po(j.ADD_TAGS)&&(M===U&&(M=It(M)),Ye(M,j.ADD_TAGS,Je))),Rt(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Z.attributeCheck=j.ADD_ATTR:po(j.ADD_ATTR)&&(re===ge&&(re=It(re)),Ye(re,j.ADD_ATTR,Je))),Rt(j,"ADD_FORBID_CONTENTS")&&po(j.ADD_FORBID_CONTENTS)&&(Le===Pe&&(Le=It(Le)),Ye(Le,j.ADD_FORBID_CONTENTS,Je)),xt&&(M["#text"]=!0),Ae&&Ye(M,["html","head","body"]),M.table&&(Ye(M,["tbody"]),delete z.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ka('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ka('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const se=S;S=j.TRUSTED_TYPES_POLICY;try{D=B("")}catch(ke){throw S=se,ke}}else j.TRUSTED_TYPES_POLICY===null?(S=void 0,D=""):(S===void 0&&(S=Q()),S&&typeof D=="string"&&(D=B("")));bt&&bt(j),zt=j},na=Ye({},[...Xn,...Jn,...GC]),ia=Ye({},[...Qn,...UC]),le=function(j,Y,se){return Y.namespaceURI===at?j==="svg":Y.namespaceURI===yt?j==="svg"&&(se==="annotation-xml"||va[se]):!!na[j]},V=function(j,Y,se){return Y.namespaceURI===at?j==="math":Y.namespaceURI===aa?j==="math"&&jt[se]:!!ia[j]},J=function(j,Y,se){return Y.namespaceURI===aa&&!jt[se]||Y.namespaceURI===yt&&!va[se]?!1:!ia[j]&&(Ua[j]||!na[j])},de=function(j){let Y=x(j);(!Y||!Y.tagName)&&(Y={namespaceURI:Lt,tagName:"template"});const se=$o(j.tagName),ke=$o(Y.tagName);return Wt[j.namespaceURI]?j.namespaceURI===aa?le(se,Y,ke):j.namespaceURI===yt?V(se,Y,ke):j.namespaceURI===at?J(se,Y,ke):!!(Et==="application/xhtml+xml"&&Wt[j.namespaceURI]):!1},Ce=function(j){Mo(t.removed,{element:j});try{x(j).removeChild(j)}catch{if(f(j),!x(j))throw Ka("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ye=function(j,Y,se){try{j.removeAttributeNode(Y)}catch{try{j.removeAttribute(se)}catch{}}},De=function(j){ue(j);const Y=v(j);if(Y){const ke=[];qa(Y,Be=>{Mo(ke,Be)}),qa(ke,Be=>{try{f(Be)}catch{}})}const se=C(j);if(se)for(let ke=se.length-1;ke>=0;--ke){const Be=se[ke],Re=Be&&Be.name;typeof Re=="string"&&ye(j,Be,Re)}},ze=function(j,Y,se){if(!se)try{se=Y.getAttributeNode(j)}catch{se=null}Mo(t.removed,{attribute:se||null,from:Y});try{se?Y.removeAttributeNode(se):Y.removeAttribute(j)}catch{try{Y.removeAttribute(j)}catch{}}if(j==="is")if(Te||Ue)try{Ce(Y)}catch{}else try{Y.setAttribute(j,"")}catch{}},ut=function(j){const Y=C(j);if(Y)for(let se=Y.length-1;se>=0;--se){const ke=Y[se],Be=ke&&ke.name;typeof Be!="string"||re[Je(Be)]||ye(j,ke,Be)}},ue=function(j){const Y=[j];for(;Y.length>0;){const se=Y.pop();A(se)===Ot.element&&ut(se);const Be=v(se);if(Be)for(let Re=Be.length-1;Re>=0;--Re)Y.push(Be[Re])}},Se=function(j,Y){return je?j==="patchsrc"?!0:j==="for"&&Y!=="label"&&Y!=="output":!1},Ge=function(j){if(!je)return;const Y=[j];for(;Y.length>0;){const se=Y.pop(),ke=A(se);if(ke===Ot.processingInstruction||ke===Ot.comment&&kt(Md,se.data)){try{f(se)}catch{}continue}if(ke===Ot.element){const Re=se,Qe=Je(T(se));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&Se("for",Qe)&&Re.removeAttribute("for")}catch{}}const Be=v(se);if(Be)for(let Re=Be.length-1;Re>=0;--Re)Y.push(Be[Re])}},mt=function(j){let Y=null,se=null;if(He)j="<remove></remove>"+j;else{const Re=kd(j,/^[\r\n\t ]+/);se=Re&&Re[0]}Et==="application/xhtml+xml"&&Lt===at&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const ke=S?B(j):j;if(Lt===at)try{Y=new m().parseFromString(ke,Et)}catch{}if(!Y||!Y.documentElement){Y=oe.createDocument(Lt,"template",null);try{Y.documentElement.innerHTML=Pt?D:ke}catch{}}const Be=Y.body||Y.documentElement;return j&&se&&Be.insertBefore(a.createTextNode(se),Be.childNodes[0]||null),Lt===at?P.call(Y,Ae?"html":"body")[0]:Ae?Y.documentElement:Be},_t=function(j){const Y=w?w(j):j.ownerDocument;return N.call(Y||j,j,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Yt=function(j){return j=Ro(j,te," "),j=Ro(j,I," "),j=Ro(j,q," "),j},Eo=function(j){var Y;j.normalize();const se=w?w(j):j.ownerDocument,ke=N.call(se||j,j,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Be=ke.nextNode();for(;Be;)Be.data=Yt(Be.data),Be=ke.nextNode();const Re=(Y=j.querySelectorAll)===null||Y===void 0?void 0:Y.call(j,"template");Re&&qa(Re,Qe=>{lo(Qe.content)&&Eo(Qe.content)})},Br=function(j){const Y=k?k(j):null;return typeof Y!="string"||Je(Y)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==C(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==_(j)||j.childNodes!==v(j)},lo=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return _(j)===Ot.documentFragment}catch{return!1}},To=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return typeof _(j)=="number"}catch{return!1}};function sa(he,j,Y){he.length!==0&&qa(he,se=>{se.call(t,j,Y,zt)})}const yg=function(j,Y){return!!(je&&j.hasChildNodes()&&!To(j.firstElementChild)&&kt(Ld,j.textContent)&&kt(Ld,j.innerHTML)||je&&j.namespaceURI===at&&ry[Y]&&(To(j.firstElementChild)||typeof j.textContent=="string"&&kt(ny[Y],j.textContent))||j.nodeType===Ot.processingInstruction||je&&j.nodeType===Ot.comment&&kt(Md,j.data))},Nr=function(j,Y){if(j instanceof RegExp)return kt(j,Y);if(j instanceof Function){for(var se=arguments.length,ke=new Array(se>2?se-2:0),Be=2;Be<se;Be++)ke[Be-2]=arguments[Be];return!!j(Y,...ke)}return!1},wg=function(j,Y,se){if(!z[Y]&&Uc(Y)&&Nr(ce.tagNameCheck,Y))return!1;if(xt&&!Le[Y]){const ke=x(j),Be=v(j);if(Be&&ke){const Re=Be.length;for(let Qe=Re-1;Qe>=0;--Qe){const ot=j===se?g(Be[Qe],!0):Be[Qe];ke.insertBefore(ot,b(j))}}}return Ce(j),!0},Hc=function(j,Y,se,ke){return j.length===0?Y:Y===se||Y===ke?It(Y):Y},Wc=function(j,Y){return j===Y||x(j)!==null?!1:(Ze&&ue(j),!0)},Vc=function(j,Y){if(sa(W.beforeSanitizeElements,j,null),Wc(j,Y))return!0;if(Br(j))return Ce(j),!0;const se=Je(T(j));if(M=Hc(W.uponSanitizeElement,M,U,Xe),sa(W.uponSanitizeElement,j,{tagName:se,allowedTags:M}),Wc(j,Y))return!0;if(yg(j,se))return Ce(j),!0;if(z[se]||!(Z.tagCheck instanceof Function&&Z.tagCheck(se))&&!M[se]){const Be=wg(j,se,Y);return Be===!1&&sa(W.afterSanitizeElements,j,null),Be}if(A(j)===Ot.element&&!de(j)||(se==="noscript"||se==="noembed"||se==="noframes")&&kt(ay,j.innerHTML))return Ce(j),!0;if(Ee&&j.nodeType===Ot.text){const Be=Yt(j.textContent);j.textContent!==Be&&(Mo(t.removed,{element:j.cloneNode()}),j.textContent=Be)}return sa(W.afterSanitizeElements,j,null),!1},Gc=function(j,Y,se){if(X[Y]||Se(Y,j)||Ke&&(Y==="id"||Y==="name")&&(se in a||se in wt))return!1;const ke=re[Y]||Z.attributeCheck instanceof Function&&Z.attributeCheck(Y,j);return Ne&&kt(O,Y)||fe&&kt(ie,Y)?!0:ke?tt[Y]||kt(be,Ro(se,ve,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&j!=="script"&&Ad(se,"data:")===0&&rt[j]||Ie&&!kt(pe,Ro(se,ve,""))?!0:!se:Uc(j)&&Nr(ce.tagNameCheck,j)&&Nr(ce.attributeNameCheck,Y,j)||Y==="is"&&ce.allowCustomizedBuiltInElements&&Nr(ce.tagNameCheck,se)},kg=Ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Uc=function(j){return!kg[$o(j)]&&kt(xe,j)},Ag=function(j,Y,se,ke){if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!se)switch(h.getAttributeType(j,Y)){case"TrustedHTML":return B(ke);case"TrustedScriptURL":return G(ke)}return ke},Sg=function(j,Y,se,ke){try{se?j.setAttributeNS(se,Y,ke):j.setAttribute(Y,ke),Br(j)?Ce(j):wd(t.removed)}catch{ze(Y,j)}},Yc=function(j){sa(W.beforeSanitizeAttributes,j,null);const Y=j.attributes;if(!Y||Br(j))return;re=Hc(W.uponSanitizeAttribute,re,ge,we);const se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re,forceKeepAttr:void 0};let ke=Y.length;const Be=Je(j.nodeName);for(;ke--;){const Re=Y[ke],Qe=Re.name,ot=Re.namespaceURI,Mt=Re.value,$t=Je(Qe),Wn=Mt;let Tt=Qe==="value"?Wn:zC(Wn);if(se.attrName=$t,se.attrValue=Tt,se.keepAttr=!0,se.forceKeepAttr=void 0,sa(W.uponSanitizeAttribute,j,se),Tt=se.attrValue,Oe&&($t==="id"||$t==="name")&&Ad(Tt,dt)!==0&&(ze(Qe,j,Re),Tt=dt+Tt),je&&kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Tt)){ze(Qe,j,Re);continue}if($t==="attributename"&&kd(Tt,"href")){ze(Qe,j,Re);continue}if(!se.forceKeepAttr){if(!se.keepAttr){ze(Qe,j,Re);continue}if(!Me&&kt(oy,Tt)){ze(Qe,j,Re);continue}if(Ee&&(Tt=Yt(Tt)),!Gc(Be,$t,Tt)){ze(Qe,j,Re);continue}Tt=Ag(Be,$t,ot,Tt),Tt!==Wn&&Sg(j,Qe,ot,Tt)}}sa(W.afterSanitizeAttributes,j,null)},Dr=function(j){let Y=null;const se=_t(j);for(sa(W.beforeSanitizeShadowDOM,j,null);Y=se.nextNode();)if(sa(W.uponSanitizeShadowNode,Y,null),Vc(Y,j),Yc(Y),lo(Y.content)&&Dr(Y.content),A(Y)===Ot.element){const ke=y(Y);lo(ke)&&(Hn(ke),Dr(ke))}sa(W.afterSanitizeShadowDOM,j,null)},Hn=function(j){const Y=[{node:j,shadow:null}];for(;Y.length>0;){const se=Y.pop();if(se.shadow){Dr(se.shadow);continue}const ke=se.node,Re=A(ke)===Ot.element,Qe=v(ke);if(Qe)for(let ot=Qe.length-1;ot>=0;--ot)Y.push({node:Qe[ot],shadow:null});if(Re){const ot=k?k(ke):null;if(typeof ot=="string"&&Je(ot)==="template"){const Mt=ke.content;lo(Mt)&&Y.push({node:Mt,shadow:null})}}if(Re){const ot=y(ke);lo(ot)&&Y.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return t.sanitize=function(he){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,se=null,ke=null,Be=null;if(Pt=!he,Pt&&(he="<!-->"),typeof he!="string"&&!To(he)&&(he=WC(he),typeof he!="string"))throw Ka("dirty is not a string, aborting");if(!t.isSupported)return he;Fe?(M=Xe,re=we):ra(j),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&(M=It(M)),W.uponSanitizeAttribute.length>0&&(re=It(re)),t.removed=[];const Re=Ze&&typeof he!="string"&&To(he);if(Re){Ge(he);const Mt=T(he);if(typeof Mt=="string"){const $t=Je(Mt);if(!M[$t]||z[$t])throw De(he),Ka("root node is forbidden and cannot be sanitized in-place")}if(Br(he))throw De(he),Ka("root node is clobbered and cannot be sanitized in-place");try{Hn(he)}catch($t){throw De(he),$t}}else if(To(he))Y=mt("<!---->"),se=Y.ownerDocument.importNode(he,!0),se.nodeType===Ot.element&&se.nodeName==="BODY"||se.nodeName==="HTML"?Y=se:Y.appendChild(se),Hn(se);else{if(!Te&&!Ee&&!Ae&&he.indexOf("<")===-1)return S&&et?B(he):he;if(Y=mt(he),!Y)return Te?null:et?D:""}Y&&He&&Ce(Y.firstChild);const Qe=Re?he:Y;try{const Mt=_t(Qe);for(;ke=Mt.nextNode();)Vc(ke,Qe),Yc(ke),lo(ke.content)&&Dr(ke.content)}catch(Mt){throw Re&&(De(he),qa(t.removed,$t=>{$t.element&&ue($t.element)})),Mt}if(Re)return qa(t.removed,Mt=>{Mt.element&&ue(Mt.element)}),Ee&&Eo(he),he;if(Te){if(Ee&&Eo(Y),Ue)for(Be=L.call(Y.ownerDocument);Y.firstChild;)Be.appendChild(Y.firstChild);else Be=Y;return(re.shadowroot||re.shadowrootmode)&&(Be=H.call(r,Be,!0)),Be}let ot=Ae?Y.outerHTML:Y.innerHTML;return Ae&&M["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&kt(ey,Y.ownerDocument.doctype.name)&&(ot="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
812
- `+ot),Ee&&(ot=Yt(ot)),S&&et?B(ot):ot},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ra(he),Fe=!0,Xe=M,we=re},t.clearConfig=function(){zt=null,Fe=!1,Xe=null,we=null,S=F,D=""},t.isValidAttribute=function(he,j,Y){zt||ra({});const se=Je(he),ke=Je(j);return Gc(se,ke,Y)},t.addHook=function(he,j){typeof j=="function"&&Rt(W,he)&&Mo(W[he],j)},t.removeHook=function(he,j){if(Rt(W,he)){if(j!==void 0){const Y=RC(W[he],j);return Y===-1?void 0:PC(W[he],Y,1)[0]}return wd(W[he])}},t.removeHooks=function(he){Rt(W,he)&&(W[he]=[])},t.removeAllHooks=function(){W=Rd()},t}var ly=Pd();function zd(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis,n=()=>{r.cancel();const i=new SpeechSynthesisUtterance(e),s=r.getVoices().find(c=>c.lang.startsWith("ko"));s&&(i.voice=s),i.rate=a,i.onend=t?function(c){try{t()}catch{}}:null,r.speak(i)};r.getVoices().length>0?n():r.addEventListener("voiceschanged",n,{once:!0})}function Id(){typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const cy=/^(?:[a-z]+:)?\/\//i;let Od="";function dy(e){const t=String(e||"").trim();return t?t.replace(/\/+$/,""):""}function Fd(e){Od=dy(e)}function ai(){return Od}function zo(e){const t=String(e||"").trim();if(!t)return"";if(cy.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=ai();return r?`${r}${a}`:a}const Hd="__ihab_core_storage_resolvers__";function Io(){return globalThis[Hd]??null}function uy(e){globalThis[Hd]=e}let oi=class extends Error{constructor(t){super(`
811
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EC(e,t){return NC(e)||DC(e,t)||TC(e,t)||jC()}function TC(e,t){if(e){if(typeof e=="string")return xd(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?xd(e,t):void 0}}const _d=Object.entries,Cd=Object.setPrototypeOf,LC=Object.isFrozen,MC=Object.getPrototypeOf,$C=Object.getOwnPropertyDescriptor;let bt=Object.freeze,vt=Object.seal,uo=Object.create,yd=typeof Reflect<"u"&&Reflect,qn=yd.apply,Kn=yd.construct;bt||(bt=function(t){return t}),vt||(vt=function(t){return t}),qn||(qn=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),Kn||(Kn=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const qa=pt(Array.prototype.forEach),RC=pt(Array.prototype.lastIndexOf),wd=pt(Array.prototype.pop),Mo=pt(Array.prototype.push),PC=pt(Array.prototype.splice),po=Array.isArray,$o=pt(String.prototype.toLowerCase),Zn=pt(String.prototype.toString),kd=pt(String.prototype.match),Ro=pt(String.prototype.replace),Ad=pt(String.prototype.indexOf),zC=pt(String.prototype.trim),IC=pt(Number.prototype.toString),OC=pt(Boolean.prototype.toString),Sd=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),Bd=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),Po=pt(Object.prototype.toString),kt=pt(RegExp.prototype.test),Ka=FC(TypeError);function pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return qn(e,t,r)}}function FC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Kn(e,a)}}function Ye(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$o;if(Cd&&Cd(e,null),!po(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(LC(t)||(t[r]=i),n=i)}e[n]=!0}return e}function HC(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function It(e){const t=uo(null);for(const r of _d(e)){var a=EC(r,2);const n=a[0],i=a[1];Rt(e,n)&&(po(i)?t[n]=HC(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=It(i):t[n]=i)}return t}function WC(e){switch(typeof e){case"string":return e;case"number":return IC(e);case"boolean":return OC(e);case"bigint":return Sd?Sd(e):"0";case"symbol":return Bd?Bd(e):"Symbol()";case"undefined":return Po(e);case"function":case"object":{if(e===null)return Po(e);const t=e,a=qt(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Po(r)}return Po(e)}default:return Po(e)}}function qt(e,t){for(;e!==null;){const r=$C(e,t);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=MC(e)}function a(){return null}return a}function VC(e){try{return kt(e,""),!0}catch{return!1}}const Nd=bt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xn=bt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Jn=bt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),GC=bt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qn=bt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UC=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dd=bt(["#text"]),jd=bt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ei=bt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ed=bt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Er=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YC=vt(/{{[\w\W]*|^[\w\W]*}}/g),qC=vt(/<%[\w\W]*|^[\w\W]*%>/g),KC=vt(/\${[\w\W]*/g),ZC=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),XC=vt(/^aria-[\-\w]+$/),Td=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JC=vt(/^(?:\w+script|data):/i),QC=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ey=vt(/^html$/i),ty=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ld=vt(/<[/\w!]/g),Md=vt(/<[/\w]/g),ay=vt(/<\/no(script|embed|frames)/i),oy=vt(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$d=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ry=bt(Ye({},$d)),ny=(function(){const e={};return qa($d,t=>{e[t]=vt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),iy=function(){return typeof window>"u"?null:window},sy=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Rd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},La=function(t,a,r,n){return Rt(t,a)&&po(t[a])?Ye(n.base?It(n.base):{},t[a],n.transform):r},ti=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?It(n):r()};function Pd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iy();const t=he=>Pd(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,h=c.prototype,g=qt(h,"cloneNode"),f=qt(h,"remove"),b=qt(h,"nextSibling"),x=qt(h,"childNodes"),v=qt(h,"parentNode"),C=qt(h,"shadowRoot"),w=qt(h,"attributes"),_=s&&s.prototype?qt(s.prototype,"nodeType"):null,k=s&&s.prototype?qt(s.prototype,"nodeName"):null,y=s&&s.prototype?qt(s.prototype,"ownerDocument"):null,A=function(j){return _?_(j):j.nodeType},T=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let S,N="",F,R=!1,E=0;const M=function(){if(E>0)throw Ka('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},B=function(j){M(),E++;try{return S.createHTML(j)}finally{E--}},G=function(j){M(),E++;try{return S.createScriptURL(j)}finally{E--}},Q=function(){return R||(F=sy(p,n),R=!0),F},ee=a,oe=ee.implementation,D=ee.createNodeIterator,L=ee.createDocumentFragment,P=ee.getElementsByTagName,H=r.importNode;let W=Rd();t.isSupported=typeof _d=="function"&&typeof v=="function"&&oe&&oe.createHTMLDocument!==void 0;const te=YC,I=qC,q=KC,O=ZC,ie=XC,pe=JC,ve=QC,xe=ty;let be=Td,$=null;const U=Ye({},[...Nd,...Xn,...Jn,...Qn,...Dd]);let re=null;const ge=Ye({},[...jd,...ei,...Ed,...Er]);let ce=Object.seal(uo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,X=null;const Z=Object.seal(uo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let fe=!0,Ne=!0,Ie=!1,Me=!0,Ee=!1,je=!0,Ae=!1,Fe=!1,Xe=null,we=null,He=!1,Te=!1,Ue=!1,et=!1,Ke=!0,Oe=!1;const dt="user-content-";let xt=!0,Ze=!1,st={},Le=null;const Pe=Ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let rt=null;const nt=Ye({},["audio","video","img","source","image","track"]);let tt=null;const lt=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",aa="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml";let Lt=at,Pt=!1,Wt=null;const Ea=Ye({},[yt,aa,at],Zn),oa=bt(["mi","mo","mn","ms","mtext"]);let va=Ye({},oa);const Ta=bt(["annotation-xml"]);let jt=Ye({},Ta);const Ua=Ye({},["title","style","font","a","script"]);let Et=null;const xa=["application/xhtml+xml","text/html"],Ya="text/html";let Je=null,zt=null;const wt=a.createElement("form"),_a=function(j){return j instanceof RegExp||j instanceof Function},ra=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(zt&&zt===j)return;(!j||typeof j!="object")&&(j={}),j=It(j),Et=xa.indexOf(j.PARSER_MEDIA_TYPE)===-1?Ya:j.PARSER_MEDIA_TYPE,Je=Et==="application/xhtml+xml"?Zn:$o,$=La(j,"ALLOWED_TAGS",U,{transform:Je}),re=La(j,"ALLOWED_ATTR",ge,{transform:Je}),Wt=La(j,"ALLOWED_NAMESPACES",Ea,{transform:Zn}),tt=La(j,"ADD_URI_SAFE_ATTR",lt,{transform:Je,base:lt}),rt=La(j,"ADD_DATA_URI_TAGS",nt,{transform:Je,base:nt}),Le=La(j,"FORBID_CONTENTS",Pe,{transform:Je}),z=La(j,"FORBID_TAGS",It({}),{transform:Je}),X=La(j,"FORBID_ATTR",It({}),{transform:Je}),st=Rt(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?It(j.USE_PROFILES):j.USE_PROFILES:!1,fe=j.ALLOW_ARIA_ATTR!==!1,Ne=j.ALLOW_DATA_ATTR!==!1,Ie=j.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=j.SAFE_FOR_TEMPLATES||!1,je=j.SAFE_FOR_XML!==!1,Ae=j.WHOLE_DOCUMENT||!1,Te=j.RETURN_DOM||!1,Ue=j.RETURN_DOM_FRAGMENT||!1,et=j.RETURN_TRUSTED_TYPE||!1,He=j.FORCE_BODY||!1,Ke=j.SANITIZE_DOM!==!1,Oe=j.SANITIZE_NAMED_PROPS||!1,xt=j.KEEP_CONTENT!==!1,Ze=j.IN_PLACE||!1,be=VC(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Td,Lt=typeof j.NAMESPACE=="string"?j.NAMESPACE:at,va=ti(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ye({},oa)),jt=ti(j,"HTML_INTEGRATION_POINTS",()=>Ye({},Ta));const Y=ti(j,"CUSTOM_ELEMENT_HANDLING",()=>uo(null));if(ce=uo(null),Rt(Y,"tagNameCheck")&&_a(Y.tagNameCheck)&&(ce.tagNameCheck=Y.tagNameCheck),Rt(Y,"attributeNameCheck")&&_a(Y.attributeNameCheck)&&(ce.attributeNameCheck=Y.attributeNameCheck),Rt(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),vt(ce),Ee&&(Ne=!1),Ue&&(Te=!0),st&&($=Ye({},Dd),re=uo(null),st.html===!0&&(Ye($,Nd),Ye(re,jd)),st.svg===!0&&(Ye($,Xn),Ye(re,ei),Ye(re,Er)),st.svgFilters===!0&&(Ye($,Jn),Ye(re,ei),Ye(re,Er)),st.mathMl===!0&&(Ye($,Qn),Ye(re,Ed),Ye(re,Er))),Z.tagCheck=null,Z.attributeCheck=null,Rt(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Z.tagCheck=j.ADD_TAGS:po(j.ADD_TAGS)&&($===U&&($=It($)),Ye($,j.ADD_TAGS,Je))),Rt(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Z.attributeCheck=j.ADD_ATTR:po(j.ADD_ATTR)&&(re===ge&&(re=It(re)),Ye(re,j.ADD_ATTR,Je))),Rt(j,"ADD_FORBID_CONTENTS")&&po(j.ADD_FORBID_CONTENTS)&&(Le===Pe&&(Le=It(Le)),Ye(Le,j.ADD_FORBID_CONTENTS,Je)),xt&&($["#text"]=!0),Ae&&Ye($,["html","head","body"]),$.table&&(Ye($,["tbody"]),delete z.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ka('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ka('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const se=S;S=j.TRUSTED_TYPES_POLICY;try{N=B("")}catch(ke){throw S=se,ke}}else j.TRUSTED_TYPES_POLICY===null?(S=void 0,N=""):(S===void 0&&(S=Q()),S&&typeof N=="string"&&(N=B("")));bt&&bt(j),zt=j},na=Ye({},[...Xn,...Jn,...GC]),ia=Ye({},[...Qn,...UC]),le=function(j,Y,se){return Y.namespaceURI===at?j==="svg":Y.namespaceURI===yt?j==="svg"&&(se==="annotation-xml"||va[se]):!!na[j]},V=function(j,Y,se){return Y.namespaceURI===at?j==="math":Y.namespaceURI===aa?j==="math"&&jt[se]:!!ia[j]},J=function(j,Y,se){return Y.namespaceURI===aa&&!jt[se]||Y.namespaceURI===yt&&!va[se]?!1:!ia[j]&&(Ua[j]||!na[j])},de=function(j){let Y=v(j);(!Y||!Y.tagName)&&(Y={namespaceURI:Lt,tagName:"template"});const se=$o(j.tagName),ke=$o(Y.tagName);return Wt[j.namespaceURI]?j.namespaceURI===aa?le(se,Y,ke):j.namespaceURI===yt?V(se,Y,ke):j.namespaceURI===at?J(se,Y,ke):!!(Et==="application/xhtml+xml"&&Wt[j.namespaceURI]):!1},Ce=function(j){Mo(t.removed,{element:j});try{v(j).removeChild(j)}catch{if(f(j),!v(j))throw Ka("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ye=function(j,Y,se){try{j.removeAttributeNode(Y)}catch{try{j.removeAttribute(se)}catch{}}},De=function(j){ue(j);const Y=x(j);if(Y){const ke=[];qa(Y,Be=>{Mo(ke,Be)}),qa(ke,Be=>{try{f(Be)}catch{}})}const se=w(j);if(se)for(let ke=se.length-1;ke>=0;--ke){const Be=se[ke],Re=Be&&Be.name;typeof Re=="string"&&ye(j,Be,Re)}},ze=function(j,Y,se){if(!se)try{se=Y.getAttributeNode(j)}catch{se=null}Mo(t.removed,{attribute:se||null,from:Y});try{se?Y.removeAttributeNode(se):Y.removeAttribute(j)}catch{try{Y.removeAttribute(j)}catch{}}if(j==="is")if(Te||Ue)try{Ce(Y)}catch{}else try{Y.setAttribute(j,"")}catch{}},ut=function(j){const Y=w(j);if(Y)for(let se=Y.length-1;se>=0;--se){const ke=Y[se],Be=ke&&ke.name;typeof Be!="string"||re[Je(Be)]||ye(j,ke,Be)}},ue=function(j){const Y=[j];for(;Y.length>0;){const se=Y.pop();A(se)===Ot.element&&ut(se);const Be=x(se);if(Be)for(let Re=Be.length-1;Re>=0;--Re)Y.push(Be[Re])}},Se=function(j,Y){return je?j==="patchsrc"?!0:j==="for"&&Y!=="label"&&Y!=="output":!1},Ge=function(j){if(!je)return;const Y=[j];for(;Y.length>0;){const se=Y.pop(),ke=A(se);if(ke===Ot.processingInstruction||ke===Ot.comment&&kt(Md,se.data)){try{f(se)}catch{}continue}if(ke===Ot.element){const Re=se,Qe=Je(T(se));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&Se("for",Qe)&&Re.removeAttribute("for")}catch{}}const Be=x(se);if(Be)for(let Re=Be.length-1;Re>=0;--Re)Y.push(Be[Re])}},mt=function(j){let Y=null,se=null;if(He)j="<remove></remove>"+j;else{const Re=kd(j,/^[\r\n\t ]+/);se=Re&&Re[0]}Et==="application/xhtml+xml"&&Lt===at&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const ke=S?B(j):j;if(Lt===at)try{Y=new m().parseFromString(ke,Et)}catch{}if(!Y||!Y.documentElement){Y=oe.createDocument(Lt,"template",null);try{Y.documentElement.innerHTML=Pt?N:ke}catch{}}const Be=Y.body||Y.documentElement;return j&&se&&Be.insertBefore(a.createTextNode(se),Be.childNodes[0]||null),Lt===at?P.call(Y,Ae?"html":"body")[0]:Ae?Y.documentElement:Be},_t=function(j){const Y=y?y(j):j.ownerDocument;return D.call(Y||j,j,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Yt=function(j){return j=Ro(j,te," "),j=Ro(j,I," "),j=Ro(j,q," "),j},Eo=function(j){var Y;j.normalize();const se=y?y(j):j.ownerDocument,ke=D.call(se||j,j,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Be=ke.nextNode();for(;Be;)Be.data=Yt(Be.data),Be=ke.nextNode();const Re=(Y=j.querySelectorAll)===null||Y===void 0?void 0:Y.call(j,"template");Re&&qa(Re,Qe=>{lo(Qe.content)&&Eo(Qe.content)})},Br=function(j){const Y=k?k(j):null;return typeof Y!="string"||Je(Y)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==w(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==_(j)||j.childNodes!==x(j)},lo=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return _(j)===Ot.documentFragment}catch{return!1}},To=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return typeof _(j)=="number"}catch{return!1}};function sa(he,j,Y){he.length!==0&&qa(he,se=>{se.call(t,j,Y,zt)})}const yg=function(j,Y){return!!(je&&j.hasChildNodes()&&!To(j.firstElementChild)&&kt(Ld,j.textContent)&&kt(Ld,j.innerHTML)||je&&j.namespaceURI===at&&ry[Y]&&(To(j.firstElementChild)||typeof j.textContent=="string"&&kt(ny[Y],j.textContent))||j.nodeType===Ot.processingInstruction||je&&j.nodeType===Ot.comment&&kt(Md,j.data))},Nr=function(j,Y){if(j instanceof RegExp)return kt(j,Y);if(j instanceof Function){for(var se=arguments.length,ke=new Array(se>2?se-2:0),Be=2;Be<se;Be++)ke[Be-2]=arguments[Be];return!!j(Y,...ke)}return!1},wg=function(j,Y,se){if(!z[Y]&&Uc(Y)&&Nr(ce.tagNameCheck,Y))return!1;if(xt&&!Le[Y]){const ke=v(j),Be=x(j);if(Be&&ke){const Re=Be.length;for(let Qe=Re-1;Qe>=0;--Qe){const ot=j===se?g(Be[Qe],!0):Be[Qe];ke.insertBefore(ot,b(j))}}}return Ce(j),!0},Hc=function(j,Y,se,ke){return j.length===0?Y:Y===se||Y===ke?It(Y):Y},Wc=function(j,Y){return j===Y||v(j)!==null?!1:(Ze&&ue(j),!0)},Vc=function(j,Y){if(sa(W.beforeSanitizeElements,j,null),Wc(j,Y))return!0;if(Br(j))return Ce(j),!0;const se=Je(T(j));if($=Hc(W.uponSanitizeElement,$,U,Xe),sa(W.uponSanitizeElement,j,{tagName:se,allowedTags:$}),Wc(j,Y))return!0;if(yg(j,se))return Ce(j),!0;if(z[se]||!(Z.tagCheck instanceof Function&&Z.tagCheck(se))&&!$[se]){const Be=wg(j,se,Y);return Be===!1&&sa(W.afterSanitizeElements,j,null),Be}if(A(j)===Ot.element&&!de(j)||(se==="noscript"||se==="noembed"||se==="noframes")&&kt(ay,j.innerHTML))return Ce(j),!0;if(Ee&&j.nodeType===Ot.text){const Be=Yt(j.textContent);j.textContent!==Be&&(Mo(t.removed,{element:j.cloneNode()}),j.textContent=Be)}return sa(W.afterSanitizeElements,j,null),!1},Gc=function(j,Y,se){if(X[Y]||Se(Y,j)||Ke&&(Y==="id"||Y==="name")&&(se in a||se in wt))return!1;const ke=re[Y]||Z.attributeCheck instanceof Function&&Z.attributeCheck(Y,j);return Ne&&kt(O,Y)||fe&&kt(ie,Y)?!0:ke?tt[Y]||kt(be,Ro(se,ve,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&j!=="script"&&Ad(se,"data:")===0&&rt[j]||Ie&&!kt(pe,Ro(se,ve,""))?!0:!se:Uc(j)&&Nr(ce.tagNameCheck,j)&&Nr(ce.attributeNameCheck,Y,j)||Y==="is"&&ce.allowCustomizedBuiltInElements&&Nr(ce.tagNameCheck,se)},kg=Ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Uc=function(j){return!kg[$o(j)]&&kt(xe,j)},Ag=function(j,Y,se,ke){if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!se)switch(p.getAttributeType(j,Y)){case"TrustedHTML":return B(ke);case"TrustedScriptURL":return G(ke)}return ke},Sg=function(j,Y,se,ke){try{se?j.setAttributeNS(se,Y,ke):j.setAttribute(Y,ke),Br(j)?Ce(j):wd(t.removed)}catch{ze(Y,j)}},Yc=function(j){sa(W.beforeSanitizeAttributes,j,null);const Y=j.attributes;if(!Y||Br(j))return;re=Hc(W.uponSanitizeAttribute,re,ge,we);const se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re,forceKeepAttr:void 0};let ke=Y.length;const Be=Je(j.nodeName);for(;ke--;){const Re=Y[ke],Qe=Re.name,ot=Re.namespaceURI,Mt=Re.value,$t=Je(Qe),Wn=Mt;let Tt=Qe==="value"?Wn:zC(Wn);if(se.attrName=$t,se.attrValue=Tt,se.keepAttr=!0,se.forceKeepAttr=void 0,sa(W.uponSanitizeAttribute,j,se),Tt=se.attrValue,Oe&&($t==="id"||$t==="name")&&Ad(Tt,dt)!==0&&(ze(Qe,j,Re),Tt=dt+Tt),je&&kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Tt)){ze(Qe,j,Re);continue}if($t==="attributename"&&kd(Tt,"href")){ze(Qe,j,Re);continue}if(!se.forceKeepAttr){if(!se.keepAttr){ze(Qe,j,Re);continue}if(!Me&&kt(oy,Tt)){ze(Qe,j,Re);continue}if(Ee&&(Tt=Yt(Tt)),!Gc(Be,$t,Tt)){ze(Qe,j,Re);continue}Tt=Ag(Be,$t,ot,Tt),Tt!==Wn&&Sg(j,Qe,ot,Tt)}}sa(W.afterSanitizeAttributes,j,null)},Dr=function(j){let Y=null;const se=_t(j);for(sa(W.beforeSanitizeShadowDOM,j,null);Y=se.nextNode();)if(sa(W.uponSanitizeShadowNode,Y,null),Vc(Y,j),Yc(Y),lo(Y.content)&&Dr(Y.content),A(Y)===Ot.element){const ke=C(Y);lo(ke)&&(Hn(ke),Dr(ke))}sa(W.afterSanitizeShadowDOM,j,null)},Hn=function(j){const Y=[{node:j,shadow:null}];for(;Y.length>0;){const se=Y.pop();if(se.shadow){Dr(se.shadow);continue}const ke=se.node,Re=A(ke)===Ot.element,Qe=x(ke);if(Qe)for(let ot=Qe.length-1;ot>=0;--ot)Y.push({node:Qe[ot],shadow:null});if(Re){const ot=k?k(ke):null;if(typeof ot=="string"&&Je(ot)==="template"){const Mt=ke.content;lo(Mt)&&Y.push({node:Mt,shadow:null})}}if(Re){const ot=C(ke);lo(ot)&&Y.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return t.sanitize=function(he){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,se=null,ke=null,Be=null;if(Pt=!he,Pt&&(he="<!-->"),typeof he!="string"&&!To(he)&&(he=WC(he),typeof he!="string"))throw Ka("dirty is not a string, aborting");if(!t.isSupported)return he;Fe?($=Xe,re=we):ra(j),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&($=It($)),W.uponSanitizeAttribute.length>0&&(re=It(re)),t.removed=[];const Re=Ze&&typeof he!="string"&&To(he);if(Re){Ge(he);const Mt=T(he);if(typeof Mt=="string"){const $t=Je(Mt);if(!$[$t]||z[$t])throw De(he),Ka("root node is forbidden and cannot be sanitized in-place")}if(Br(he))throw De(he),Ka("root node is clobbered and cannot be sanitized in-place");try{Hn(he)}catch($t){throw De(he),$t}}else if(To(he))Y=mt("<!---->"),se=Y.ownerDocument.importNode(he,!0),se.nodeType===Ot.element&&se.nodeName==="BODY"||se.nodeName==="HTML"?Y=se:Y.appendChild(se),Hn(se);else{if(!Te&&!Ee&&!Ae&&he.indexOf("<")===-1)return S&&et?B(he):he;if(Y=mt(he),!Y)return Te?null:et?N:""}Y&&He&&Ce(Y.firstChild);const Qe=Re?he:Y;try{const Mt=_t(Qe);for(;ke=Mt.nextNode();)Vc(ke,Qe),Yc(ke),lo(ke.content)&&Dr(ke.content)}catch(Mt){throw Re&&(De(he),qa(t.removed,$t=>{$t.element&&ue($t.element)})),Mt}if(Re)return qa(t.removed,Mt=>{Mt.element&&ue(Mt.element)}),Ee&&Eo(he),he;if(Te){if(Ee&&Eo(Y),Ue)for(Be=L.call(Y.ownerDocument);Y.firstChild;)Be.appendChild(Y.firstChild);else Be=Y;return(re.shadowroot||re.shadowrootmode)&&(Be=H.call(r,Be,!0)),Be}let ot=Ae?Y.outerHTML:Y.innerHTML;return Ae&&$["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&kt(ey,Y.ownerDocument.doctype.name)&&(ot="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
812
+ `+ot),Ee&&(ot=Yt(ot)),S&&et?B(ot):ot},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ra(he),Fe=!0,Xe=$,we=re},t.clearConfig=function(){zt=null,Fe=!1,Xe=null,we=null,S=F,N=""},t.isValidAttribute=function(he,j,Y){zt||ra({});const se=Je(he),ke=Je(j);return Gc(se,ke,Y)},t.addHook=function(he,j){typeof j=="function"&&Rt(W,he)&&Mo(W[he],j)},t.removeHook=function(he,j){if(Rt(W,he)){if(j!==void 0){const Y=RC(W[he],j);return Y===-1?void 0:PC(W[he],Y,1)[0]}return wd(W[he])}},t.removeHooks=function(he){Rt(W,he)&&(W[he]=[])},t.removeAllHooks=function(){W=Rd()},t}var ly=Pd();function zd(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis,n=()=>{r.cancel();const i=new SpeechSynthesisUtterance(e),s=r.getVoices().find(c=>c.lang.startsWith("ko"));s&&(i.voice=s),i.rate=a,i.onend=t?function(c){try{t()}catch{}}:null,r.speak(i)};r.getVoices().length>0?n():r.addEventListener("voiceschanged",n,{once:!0})}function Id(){typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const cy=/^(?:[a-z]+:)?\/\//i;let Od="";function dy(e){const t=String(e||"").trim();return t?t.replace(/\/+$/,""):""}function Fd(e){Od=dy(e)}function ai(){return Od}function zo(e){const t=String(e||"").trim();if(!t)return"";if(cy.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=ai();return r?`${r}${a}`:a}const Hd="__ihab_core_storage_resolvers__";function Io(){return globalThis[Hd]??null}function uy(e){globalThis[Hd]=e}let oi=class extends Error{constructor(t){super(`
813
813
  [ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
814
814
 
815
815
  \uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
@@ -828,23 +828,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
828
828
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
829
829
  npm install @supabase/supabase-js
830
830
  pnpm add @supabase/supabase-js
831
- `),this.name="StorageNotConfiguredError"}};function ri(e){uy(e)}function Tr(e,t){if(!e)return null;const a=Io();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ni(e){if(!e)return!1;const t=Io();if(!t)throw new oi("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=Io();if(!t)throw new oi("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Lr(e){const t=Io();if(!t)throw new oi("downloadSound");return t.download(e)}function ii(){return Io()?.noiseBaseUrl??"/sounds/noise"}const si="__ihab_core_tts_config__";function Wd(e){globalThis[si]=e}function Fo(){return globalThis[si]?.urlResolver??null}function li(){return globalThis[si]?.fallbackUrlResolver??null}const py=new Map;function Vd(){py.clear()}const Gd="__ihab_core_pronunciation_resolver__";function Ud(e){globalThis[Gd]=e}function ci(){return globalThis[Gd]??null}let Ho=null;const Yd=new WeakMap;function hy(){if(Ho)return Ho;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Ho=new e,Ho):null}catch{return null}}function Wo(){try{Ho?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Yd.get(e);if(t)return t;const a=hy();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Yd.set(e,n),n}catch{return null}}function di(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Kd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let la=null;const Mr=new Map;function Uo(){if(la)return la;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;la=e?JSON.parse(e):{}}catch{la={}}return la}let ui=null;function my(){ui||(ui=setTimeout(()=>{ui=null;try{typeof localStorage<"u"&&la&&localStorage.setItem(Go,JSON.stringify(la))}catch{}},200))}function $r(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=Uo(),r=$r(e,t);if(r in a)return a[r];if(Mr.has(r))return Mr.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,my(),Mr.delete(r),c));return Mr.set(r,s),s}function pi(e,t){const a=Uo(),r=$r(e,t);return r in a?a[r]:void 0}async function Zd(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=Uo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!($r(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,h=s[m],p=$r(h);if(!a&&p in i){c++,n?.(c,s.length);continue}try{await Yo(h)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&la&&localStorage.setItem(Go,JSON.stringify(la))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Rr(){const e=Uo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Xd(e){const t=Uo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function hi(){la={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const qe=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ct=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function $e(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function mi(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>$e(r)),e.set(t,a)),a}}function ca(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function bi(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=$e(e[n]),s=$e(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function gi(e){const t=$e(e[0]||"");return t?qe[t.cho]:""}function fi(e){return[...e].map(t=>{const a=$e(t);return a?qe[a.cho]:t}).join("")}function vi(e){return!!e&&[...e].every(t=>qe.includes(t))}function Jd(e,t){return t?vi(t)?fi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>qe.includes(c),n=c=>ct.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":$e(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],h=i[u];if(h==="cho"){if(gi(m)!==a[u]){d=!1;break}}else if(h==="jung"){const p=$e(m);if(!p||ct[p.jung]!==a[u]){d=!1;break}}else{const p=$e(a[u]);if(p&&p.jong===0){const g=$e(m);if(!g||g.cho!==p.cho||g.jung!==p.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const mo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},Qd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function by(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r){if(qe[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&qe[r.cho]===t)return!0}return!1}function tu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&ct[r.jung]===t)return!0}return!1}function au(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)$e(a)&&t++;return t}function xi(e){if(!e)return!1;let t=!1;for(const a of e){const r=$e(a);if(r&&(t=!0,r.jong>0))return!1}return t}function gy(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function _i(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=$e(r[i]);if(!s||t.cho&&!t.cho.includes(qe[s.cho])||t.jung&&!t.jung.includes(ct[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!gy(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function Ci(e){return e.includes(",")||e.includes("_")}function ou(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Qd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>$e(t)?{kind:"syllable",ch:t}:qe.includes(t)?{kind:"cho",jamo:t}:ct.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function fy(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=$e(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=$e(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=$e(e);return!!a&&qe[a.cho]===t.jamo}case"jung":{const a=$e(e);return!!a&&ct[a.jung]===t.jamo}case"template":{const a=$e(e);return!(!a||t.cho!=="_"&&qe[a.cho]!==t.cho||t.jung!=="_"&&ct[a.jung]!==t.jung||t.jong!=="_"&&gt[a.jong]!==t.jong)}case"invalid":return!1}}function yi(e,t){const a=t.split(",").flatMap(n=>ou(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>fy(r[n+s],i)))return!0;return!1}function ru(e){const t=e.split(",").flatMap(i=>ou(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=$e(i.ch);s&&(a.add(qe[s.cho]),r.add(ct[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function vy(e){return!!$e(e)||qe.includes(e)||ct.includes(e)}function nu(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||qe.includes(i),u=s===void 0||s==="_"||ct.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Qd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(vy))return{ok:!1}}}return{ok:!0}}const xy={cho:qe.length,jung:ct.length,jong:gt.length};function _y(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(h=>$e(h));if(i.some(h=>!h))return[];const s=i,c=s.length;if(a>c)return[];const d=xy[t],u=new Set,m=[];(function h(p,g){if(g.length===a){m.push([...g]);return}for(let f=p;f<c;f++)g.push(f),h(f+1,g),g.pop()})(0,[]);for(const h of m)if((function p(g,f){if(u.size>=n)return;if(g===h.length){const x=f.map(y=>ca(y.cho,y.jung,y.jong)).join("");x!==e&&r.has(x)&&u.add(x);return}const b=h[g],v=s[b][t];for(let x=0;x<d;x++){if(x===v)continue;const y=f.slice();if(y[b]={...f[b],[t]:x},p(g+1,y),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Cy(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=$e(e[r]),i=$e(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function iu(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(Ci(a))return e.filter(s=>yi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const wi="word_pair_index_v2",ki="word_pair_index_sig_v2";let da=null,qo=null;function su(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(wi),t=localStorage.getItem(ki);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function yy(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(wi,JSON.stringify(e)),localStorage.setItem(ki,t)}catch{}}function wy(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function ky(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,h=Array.from(m).map($e);h.some(p=>p===null)||h.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:h}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let h=0;h<m;h++)for(const p of d){const g=new Map;for(const f of u){let b="";for(let x=0;x<m;x++){x>0&&(b+="~");const y=f.syls[x];x===h?p==="cho"?b+=`*:${y.jung}:${y.jong}`:p==="jung"?b+=`${y.cho}:*:${y.jong}`:b+=`${y.cho}:${y.jung}:*`:b+=`${y.cho}:${y.jung}:${y.jong}`}let v=g.get(b);v||(v=[],g.set(b,v)),v.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const v=f[b];for(let x=b+1;x<f.length;x++){const y=f[x];v.syls[h][p]!==y.syls[h][p]&&(n[v.word]||(n[v.word]={cho:[],jung:[],jong:[]}),n[y.word]||(n[y.word]={cho:[],jung:[],jong:[]}),n[v.word][p].push(y.word),n[y.word][p].push(v.word))}}}c+=u.length,t?.(c,i),await new Promise(h=>setTimeout(h,0))}return i>0&&t?.(i,i),n}async function lu(e,t={}){const a=wy(e);if(!t.force){if(da&&qo===a)return da;const n=su();if(n&&n.sig===a)return da=n.index,qo=a,da}const r=await ky(e,t.onProgress);return da=r,qo=a,yy(r,a),r}function Za(){if(da)return da;const e=su();return e?(da=e.index,qo=e.sig,da):null}function Ai(){da=null,qo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(wi),localStorage.removeItem(ki))}catch{}}const Si={cho:qe,jung:ct,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&qe[r.cho]==="\u3147"!=(qe[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function Bi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Pr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return Bi(e,n,a)}function Ni(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(p=>ft(e[p])),d={};for(const p of c){const g=e[p];d[p]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const p of t){const g=a(i(p));if(g.some(x=>!x))continue;let f=g;if(!u&&(f=a(p),f.length!==g.length||f.some(x=>!x)))continue;const b=g.length,v=m.get(b);v?v.push({w:p,dPron:g,dPos:f}):m.set(b,[{w:p,dPron:g,dPos:f}])}const h=new Map;for(const[p,g]of m){const f=new Map,b=(v,x)=>{const y=v.dPos[x];return y!=null&&c.every(C=>d[C].has(Si[C][y[C]]))};for(const v of g){let x;if(s==="head")x=b(v,0)?0:-1;else if(s==="tail")x=b(v,p-1)?p-1:-1;else if(s==="mid"){x=-1;for(let C=1;C<p-1;C++)if(b(v,C)){x=C;break}}else x=v.dPos.findIndex(C=>C!=null&&c.every(_=>d[_].has(Si[_][C[_]])));if(x<0)continue;const y=f.get(x);y?y.push(v):f.set(x,[v])}for(const[v,x]of f){const y=new Set(c.map(k=>v+":"+k)),C=k=>{let w="";for(let A=0;A<p;A++){const T=k[A];for(const S of["cho","jung","jong"])w+=(y.has(A+":"+S)?"*":T[S])+"."}return w},_=new Map;for(const k of g){const w=C(k.dPron),A=_.get(w);A?A.push(k):_.set(w,[k])}for(const k of x){const w=_.get(C(k.dPron))??[],A=[];for(const T of w){if(T.w===k.w)continue;let S=!0;for(const D of c){const F=k.dPron[v][D],R=T.dPron[v][D];if(R===F){S=!1;break}if(u&&d[D].has(Si[D][R])){S=!1;break}}S&&(r&&Ko(k.dPron,T.dPron)||A.push(T.w))}h.set(k.w,A)}}}return h}const zr=0,cu=1,Xa=2,Di=3,Ay=4,Ir=5,ji=6,Or=7,Sy=8,du=9,Zo=10,By=11,Xo=12,Ny=13,Jo=14,Fr=15,Hr=16,Qo=17,Dy=18,ua=0,ya=1,jy=3,Ja=4,Ei=5,Ti=6,pa=7,At=8,uu=9,pu=10,Wr=11,hu=12,Li=13,Vr=15,Gr=16,wa=17,mu=18,Mi=21,bu=27,Ey=20,Ty={1:zr,2:cu,4:Xa,7:Di,8:Ir,16:ji,17:Or,19:du,20:Zo,22:Xo,23:Jo,24:Fr,25:Hr,26:Qo},Ly={[jy]:[ya,Zo],[Ei]:[Ja,Xo],[uu]:[At,zr],[pu]:[At,ji],[Wr]:[At,Or],[hu]:[At,Zo],[Li]:[At,Hr],14:[At,Qo],[mu]:[wa,Zo]},My={[Ti]:Xa,[Vr]:Ir},$i={2:ya,24:ya,3:ya,9:ya,5:Ja,6:Ja,19:pa,20:pa,22:pa,23:pa,25:pa,27:pa,11:At,12:At,13:At,15:At,10:Gr,14:wa,18:wa,26:wa},gu={[zr]:Fr,[Di]:Hr,[Or]:Qo,[Xo]:Jo},fu={[zr]:cu,[Di]:Ay,[Or]:Sy,[du]:Zo,[Xo]:Ny},$y=new Set([Ei,pu,Wr,hu,Li,Vr,mu]),Ry=new Set(["\uBC1F"]);function vu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map($e);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=$i[s.jong]??s.jong;break}if(s.jong===ua)continue;if(c.cho===By){if(c.jung===Ey){if(s.jong===pa){s.jong=ua,c.cho=Xo;continue}if(s.jong===25){s.jong=ua,c.cho=Jo;continue}if(s.jong===Li){s.jong=At,c.cho=Jo;continue}}if(s.jong===bu){s.jong=ua;continue}const m=My[s.jong];if(m!==void 0){s.jong=ua,c.cho=m;continue}const h=Ly[s.jong];if(h){s.jong=h[0],c.cho=h[1];continue}const p=Ty[s.jong];p!==void 0&&(s.jong=ua,c.cho=p);continue}if((s.jong===bu||s.jong===Ti||s.jong===Vr)&&gu[c.cho]!==void 0){c.cho=gu[c.cho],s.jong=s.jong===Ti?Ja:s.jong===Vr?At:ua;continue}if(c.cho===Dy){if(s.jong===Ei){s.jong=Ja,c.cho=Jo;continue}if(s.jong===uu){s.jong=At,c.cho=Fr;continue}if(s.jong===Wr){s.jong=At,c.cho=Qo;continue}const m=$i[s.jong]??s.jong;if(m===ya){s.jong=ua,c.cho=Fr;continue}if(m===pa){s.jong=ua,c.cho=Hr;continue}if(m===wa){s.jong=ua,c.cho=Qo;continue}}let u=$i[s.jong]??s.jong;d===Wr&&Ry.has(a[i])&&(u=wa),s.jong=u,fu[c.cho]!==void 0&&(u===ya||u===pa||u===wa||$y.has(d))&&(c.cho=fu[c.cho]),(c.cho===Xa||c.cho===ji)&&(s.jong===ya?s.jong=Mi:s.jong===pa?s.jong=Ja:s.jong===wa&&(s.jong=Gr)),c.cho===Ir?s.jong===Ja?s.jong=At:s.jong===Gr||s.jong===Mi?c.cho=Xa:s.jong===ya?(s.jong=Mi,c.cho=Xa):s.jong===wa&&(s.jong=Gr,c.cho=Xa):s.jong===At&&c.cho===Xa&&(c.cho=Ir)}return n.map(i=>ca(i.cho,i.jung,i.jong)).join("")}const Py={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},zy={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Ur(e){return Py[e]??e}const go=/[ㄱ-ㅎ]/,Iy=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Iy.test(a))return a}return null}function Ri(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function Pi(e){return`${e}${Ri(e)}`}function zi(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Ii(e){return`${e}${zi(e)}`}function Oi(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function xu(e){return`${e}${Oi(e)}`}function Fi(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function _u(e){return`${e}${Fi(e)}`}function Hi(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function Cu(e){return`${e}${Hi(e)}`}function Wi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ve(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Kt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ve(e,a):Ve(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Oy(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const Fy=qe.indexOf("\u3147"),Yr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Fy},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Hy=new Set([]);function yu(e){return e in Yr}function wu(e,t){const a=Yr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=$e(r[0]);return!!n&&a.syllable(n)}function ku(e){return Hy.has(e)}function Wy(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function Vi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function Au(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function Su(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Bu={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Nu(e){if([...e].length!==1)return[e];const t=$e(e);if(!t)return[e];const a=[qe[t.cho],ct[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Gi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Bu[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Wy(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${Vi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Vy(e,t){return Gi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Gy(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${Vi(a)} "${n}"${Au(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${Vi(r)} "${n}"${Au(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Uy(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${Su(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${Su(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Du(e,t,a){switch(Oy(e)){case"synthesis":return Vy(e,a);case"substitution":return Gy(e,t);case"deletion":return Uy(e,t);default:return""}}function ju(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Bu[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Yy=e=>e==null?[]:Array.isArray(e)?e:[e];function Ui(e){if([...e].length!==1)return"";const t=$e(e);if(!t)return"";const a=Ur(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ca(t.cho,t.jung,r<0?0:r)}function qr(e,t){return t.get(e)||Ui(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function $a(e,t){const a=(r,n)=>!ft(r)||Yy(r).includes(n);return a(t.cho,qe[e.cho])&&a(t.jung,ct[e.jung])&&a(t.jong,gt[e.jong])}function Qa(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>$e(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>$e(i)):n.map(i=>$e(i))}function eo(e,t,a,r,n){const i=t==="cho"?qe:t==="jung"?ct:gt,s=e[t],c=[],d=new Set([qr(a,n)]),u=Ve(i.map((m,h)=>h).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const h=t==="cho"?ca(m,e.jung,e.jong):t==="jung"?ca(e.cho,m,e.jong):ca(e.cho,e.jung,m),p=qr(h,n);d.has(p)||(d.add(p),c.push(h))}return c}function Yi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(h=>$e(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t);let m=u&&t?d.map((h,p)=>$a(h,t)?p:-1).filter(h=>h>=0):[0,1];if(i!=null&&(m=m.filter(h=>h!==i)),!m.length)return null;for(const h of Ve(m)){const p=s[h];if(!n.has(p))continue;const g=eo(c[h],u??"cho",p,40,a),f=[];for(const b of g)if(b!==p&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[p,...f]}}return null}function qi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(h=>$e(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t),m=u&&t?d.map((h,p)=>$a(h,t)?p:-1).filter(h=>h>=0):[0,1,2];if(!m.length)return null;for(const h of Ve(m))for(const p of Ve([0,1,2].filter(g=>g!==h&&(i==null||g===i)))){const g=[0,1,2].filter(y=>y!==p),f=g.map(y=>s[y]).join("");if(!n.has(f))continue;const b=g.indexOf(h),v=eo(c[h],u??"cho",s[h],40,a),x=[];for(const y of v){const C=g.map(k=>s[k]);C[b]=y;const _=C.join("");if(_!==f&&n.has(_)&&!x.includes(_)&&x.push(_),x.length>=2)break}if(!(x.length<2))return{question:e,distractors:[f,...x]}}return null}function Ki(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:h,droppedEnd:p}of Ve(d)){if(i!=null&&p!==i||m===e||!n.has(m)||!n.has(h))continue;const g=[...m],f=g.map(x=>$e(x));if(f.some(x=>!x))continue;const b=Qa(m,a,r);if(b.some(x=>!x))continue;const v=u&&t?b.map((x,y)=>$a(x,t)?y:-1).filter(x=>x>=0):g.map((x,y)=>y);if(v.length)for(const x of Ve(v)){const y=eo(f[x],u??"cho",g[x],40,a),C=[];for(const _ of y){const k=[...g];k[x]=_;const w=k.join("");if(w!==m&&n.has(w)&&!C.includes(w)&&C.push(w),C.length>=2)break}if(C.length>=2)return{question:e,distractors:[m,...C]}}}return null}function Zi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong===0)return null;const c=ca(s.cho,s.jung,0),d=eo({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const Xi=qe.indexOf("\u3147");function Ji(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong!==0||s.cho===Xi)return null;const c=ca(Xi,s.jung,0),d=eo({cho:Xi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function Qi(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function es(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(y=>$e(y));if(m.some(y=>!y))return null;const h=Qa(e,a,r);if(h.some(y=>!y))return null;const p=y=>a.get(y)??y,g=p(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),v=y=>{let C=u+"|"+y+"|";for(let _=0;_<u;_++)C+=_===y?"*":d[_];return C};let x;if(i!=null){if(i>=u||f&&!$a(h[i],t))return null;x=[i]}else f?x=h.map((y,C)=>$a(y,t)?C:-1).filter(y=>y>=0):x=Array.from({length:u},(y,C)=>C);for(const y of Ve(x)){const C=n.get(v(y))??[],_=[],k=[];for(const D of C){if(D===e)continue;const F=[...D].map(B=>$e(B)),R=m[y],E=F[y];if(!R||!E)continue;let $=0;if(R.cho!==E.cho&&$++,R.jung!==E.jung&&$++,R.jong!==E.jong&&$++,!($<c||p(D)===g))if(b){const B=Qa(D,a,r)[y];B&&$a(B,s)?_.push(D):k.push(D)}else _.push(D)}if(!_.length)continue;const w=Ve(_)[0],A=[],T=new Set([g,p(w)]),S=b?k:_.filter(D=>D!==w);for(const D of Ve(S)){const F=p(D);if(!T.has(F)&&(T.add(F),A.push(D),A.length>=2))break}if(!b&&A.length<2)for(const D of Ve(C)){if(D===e||D===w)continue;const F=p(D);if(!T.has(F)&&(T.add(F),A.push(D),A.length>=2))break}if(!(A.length<2))return{question:e,distractors:[w,...A]}}return null}function Kr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const ts="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function as(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Eu(e){return as(e)?ts:e}function Tu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Lu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function Mu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function $u(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Ru="__ihab_core_word_pool__";function qy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Ru]=r,qy()}function vo(){return globalThis[Ru]??null}const xo=globalThis;function os(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function zu(e){xo.__ihabTrainingTimeLogger=e}function rs(e){os("time",()=>xo.__ihabTrainingTimeLogger?.(e))}function Iu(e){xo.__ihabTrainingCompletionLogger=e}function ns(e){os("completion",()=>xo.__ihabTrainingCompletionLogger?.(e))}function Ou(e){xo.__ihabCrosswordLogger=e}function Fu(e){os("crossword",()=>xo.__ihabCrosswordLogger?.(e))}function Zt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function is(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function ss(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Zt(r.contextCode)??Zt(r.itemId)??Zt(r.itemCode)??Zt(r.id),question:Zt(r.question)??Zt(r.sentence)??Zt(r.word)??Zt(r.targetSyllable),answer:Zt(r.answer),selected:Zt(r.selectedText)??Zt(r.selected),correct:is(r)}}):[]}function Hu(e){return e.filter(t=>t.correct===!1)}let Wu=null,Vu=null,Gu=null;function Uu(e){Wu=e}function Yu(e){Vu=e}function qu(e){Gu=e}async function Ku(e,t){try{return await Wu?.(e,t)??null}catch{return null}}async function Zu(){try{return await Vu?.()??null}catch{return null}}async function Xu(e,t){try{return await Gu?.(e,t)??null}catch{return null}}const Zr=globalThis;function Ju(e){Zr.__ihabNoiseSettingsStore=e}async function ls(){try{return await Zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function cs(e){const t=a=>{};try{const a=Zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){try{Zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function or(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Qu=or;function ep(e,t){return`${e}/${or(t)}.mp3`}function tp(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??or;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await ni(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function ds(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const _o="Asia/Seoul";function ap(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:_o,year:"numeric",month:"short",day:"numeric"})}function op(e){return new Date(e).toLocaleString("ko-KR",{timeZone:_o,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:_o,year:"numeric",month:"short",day:"numeric"})}function np(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:_o,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ip(e){return new Date(e).toLocaleString("ko-KR",{timeZone:_o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function sp(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:_o,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Xr(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Jr(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function Qr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),h=r?u:String(Number(u));return`${c}${a}${m}${a}${h}${n?".":""}`}function lp(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function cp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function dp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function rr(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function en(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function nr(e){return(e??0).toLocaleString("ko-KR")}const Ky=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Zy=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let us=null;function up(e){us=e}function tn(){return us?.topicTypes??Ky}function ps(){return us?.trainingTypes??Zy}const pp="ihab_theme",Xy="light";function hs(){try{const e=localStorage.getItem(pp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Xy}function ms(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(pp,e)}catch{}}function hp(){ms(hs())}const mp="ihab_font_scale",Jy="medium",Qy=["medium","large1","large2","large3"];function bs(){try{const e=localStorage.getItem(mp);if(Qy.includes(e))return e}catch{}return Jy}function gs(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(mp,e)}catch{}}function bp(){gs(bs())}const Ra=[],Pa=[],za=[],Ia=[],ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},sr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},e4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let fs=null,gp=null,Oa=null;function vs({counts:e,forceRefresh:t}={}){const a=Object.assign({},e4,e||{}),r=Xr(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&gp===r&&fs===i&&Oa)return Object.assign(ir,Oa.today),Object.assign(sr,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:ir,yesterday:sr};const s={LISTEN_IN_NOISE:Kt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Kt(Pa,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Kt(za,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Kt(Ia,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&fs===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Kt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Kt(Pa,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Kt(za,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Kt(Ia,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(ir,s),Object.assign(sr,c),gp=r,fs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:ir,yesterday:sr}}function fp(){return{today:ir,yesterday:sr}}function xs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:Pa,LONG_STORY:za,ORDERING_SENTENCE:Ia}}let _s=!1,lr=null;async function t4(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Cs(){if(!_s)return lr||(lr=(async()=>{const e=await t4();if(!e){lr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?Pa.push(d):i==="LONG_STORY"?za.push(d):i==="ORDERING_SENTENCE"&&Ia.push(d)}}}catch{lr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{vs()}catch{}_s=!0})(),lr)}function vp(){return _s}async function ys(e=3e3){const t=Cs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const an=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],xp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],ws={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function a4(e){return an.map(t=>{const a=ws[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let on=null,_p=null,Cp=null;function o4(){const e=vo();if(e&&e.entries.length>0){const t=Za();if(on&&_p===e&&Cp===t)return on;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return on=r,_p=e,Cp=t,on}return[]}const Xt=new Proxy([],{get(e,t){const a=o4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function rn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Jt(e,t){if(t>=e.length)return Ve(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let ks=null,yp=null;function to(){const e=vo();if(ks&&yp===e)return ks;const t=new Map;for(const a of Xt)a.w&&t.set(a.w,a.pron);return ks=t,yp=e,t}function Ft(e){return to().get(e)||e}function As(e,t,a=new Set){const r=[];for(const n of Ve(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let r4=0;function St(e){return`${e}-rt-${++r4}`}function cr(e){const t=Rr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)pi(r)===!0&&a.add(r);return a}const nn=new Map;let wp=null,kp=null;function dr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Ap(e){const t=dr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${dr(a.cho)}/${dr(a.jung)}/${dr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=dr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Ht(e){const t=vo(),a=Za();(t!==wp||a!==kp)&&(nn.clear(),wp=t,kp=a);const r=Ap(e);return nn.has(r)||nn.set(r,i4(e)),nn.get(r)}function n4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>xi(s):s=>_i(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function i4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",h=m&&u>=2,p=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[n4(r),f?N=>f.has(bo(N)):null].filter(N=>N!=null):[],v=t==="random"||t===null,x=v||p,y=v||h||p;let C=Xt.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:y?!0:Array.isArray(N.p)&&N.p.length>0);g&&(C=C.filter(N=>{for(const L of g)if(by(N.w,L))return!0;return!1})),b.length>0&&(C=C.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(P=>P(L))})),n&&(C=C.filter(N=>N.w[0]===n));let _;if(i){const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const P of L.p)N.add(P);if(x)for(const L of Xt)L.w&&N.add(L.w);_=cr(N)}else{const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const P of L.p)N.add(P);if(x)for(const L of Xt)L.w&&N.add(L.w);_=N}let k=null;if(h){const N=new Set;for(const L of Xt)L.w&&N.add(L.w);k=i?cr(N):N}const w=C.filter(N=>_.has(N.w)),A=600,T=Array.from(_),S=T.length>A?Jt(T,A):T,D=p&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),F=2500,R=new Map;if(p&&!D&&u>=2){for(const N of T){const L=bo(N),P=R.get(L);P?P.push(N):R.set(L,[N])}for(const[N,L]of R)L.length>F&&R.set(N,Jt(L,F))}const E=mi(),$=D?Ni(r,T,E,c,d,Ft):null,B=500,G=1500,Q=e.fullCount?w:t==="random"?w.length>B?Jt(w,B):w:w.length>G?Jt(w,G):w,ee=Za(),oe=[];for(const N of Q){let L;const P=Ft(N.w);if(h)L=_y(N.w,t,u,k,24).filter(H=>Ft(H)!==P);else if(p)D?L=($.get(N.w)??[]).filter(H=>Ft(H)!==P):u<=1?L=Pr(N.w,ee,{okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}):L=(R.get(bo(N.w))??[]).filter(H=>{if(H===N.w||Ft(H)===P)return!1;const W=Cy(N.w,H);return u>=5?W>=5:W===u});else if(v)L=S.filter(H=>H!==N.w&&H.length===N.w.length&&Ft(H)!==P);else{const H=t;L=Pr(N.w,ee,{kind:H,okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}),L.length===0&&(L=(S.length>30?Jt(S,30):S).filter(W=>W!==N.w&&bi(N.w,W)===t&&Ft(W)!==P))}if(c&&L.length>0&&(m||p&&!D)){const H=E(Ft(N.w));L=L.filter(W=>!Ko(H,E(Ft(W))))}L.length!==0&&oe.push({word:N,usable:L})}return oe}async function Sp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Ht(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ve(i)){if(s.length>=r)break;const d=As(c.usable,n);if(d.length<n)continue;const u=Ve([c.word.w,...d]);s.push({id:St(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function s4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ve([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=rn(u);if(!m)continue;const h=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(h.length<r)continue;const p=As(h.map(f=>f.word.w),r);if(p.length<r)continue;const g=Ve([d,...p]);i.push({id:St("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function l4(e){const{count:t=10}=e,a=(await Ht(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=rn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=rn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:St("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function c4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(p=>p.word.w),s=new Map(n.map(p=>[p.word.w,p.word.pron])),c=p=>(s.get(p)||p)[0]??"",d={};for(const p of n){const g=c(p.word.w);g&&(d[g]||(d[g]=[]),d[g].push(p.word.w))}const u=Object.entries(d).filter(([,p])=>p.length>=2).map(([p])=>p);if(u.length===0)return[];const m=[],h=Ve([...u]);for(let p=0;m.length<a&&p<a*4;p++){const g=h[p%h.length],f=d[g];if(f.length<2)continue;const b=Ve([...f]),v=b[0],x=b[1];if(!v||!x||v===x||(s.get(v)||v)===(s.get(x)||x))continue;const y=s.get(x)||x,C=i.filter(w=>c(w)!==g&&w!==v&&w!==x&&w.length===x.length&&(s.get(w)||w)!==y);if(C.length<r)continue;const _=As(C,r);if(_.length<r)continue;const k=Ve([x,..._]);m.push({id:St("SWS-item"),index:m.length+1,sourceWord:v,targetSyllable:g,word:x,choices:k,answerIndex:k.indexOf(x)})}return m}function Bp(e,t,a){return Jt(e,t).map((r,n)=>{const i=rn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,h)=>m!==c[h]),u=Ve(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:St(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Np(e,t,a){const{count:r=10}=t,n=to(),i=Xt.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?cr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,d=new Set(c.map(g=>g.w)),u=Qi(d),m=t.phonemeView??"char",h=t.composition??null,p=[];for(const g of Ve(c)){if(p.length>=r)break;const f=es(g.w,h,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],v=[...g.w],x=[...b],y=v.findIndex((C,_)=>C!==x[_]);p.push({id:St(a),index:p.length+1,word:g.w,original:g.w,changed:b,changedFrom:y>=0?v[y]:"",changedTo:y>=0?x[y]:"",distractors:f.distractors.slice(1)})}return p}async function d4(e){return Np(2,e,"CS2-item")}async function u4(e){return Np(3,e,"CS3-item")}async function p4(e){const t=(await Ht({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Bp(t,e.count??10,"CP1-item")}async function h4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Ht({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Bp(a,e.count??10,"CP2-item")}async function m4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===2);return Jt(a,t).map((r,n)=>({id:St("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function b4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===3);return Jt(a,t).map((r,n)=>({id:St("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function g4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===2),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=Yi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w],p=h[0]===u?h[1]:h[0];s.push({id:St("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function f4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===3),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=qi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w];let p="";for(let g=0;g<h.length;g++)if(h.filter((f,b)=>b!==g).join("")===u){p=h[g];break}s.push({id:St("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function v4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s>=2),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=Ki(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=c.word.w,p=h.startsWith(u)?h.slice(u.length):h.endsWith(u)?h.slice(0,h.length-u.length):"";s.push({id:St("DPC-item"),index:s.length+1,original:h,word:h,dropped:p,missingResult:u,distractors:m})}return s}async function x4(e){const{count:t=10}=e,a=(await Ht({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=Jt(a,3);return{id:St("LRO-item"),index:n+1,sequence:i,choices:Ve(i)}})}function sn(e,t,a){const r=Xt.filter(s=>s.w&&s.s===e),n=t?cr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=$e(s.w);if(!c||!a(c))continue}i.push(s)}return i}function _4(e){const t=sn(1,e.excludeNoImage??!1,a=>a.jong===0);return Jt(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:St("M2P-item"),index:r+1,parts:[qe[n.cho],ct[n.jung]],answer:a.w,word:a.w}})}function C4(e){const t=sn(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return Jt(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:St("M3P-item"),index:r+1,parts:[qe[n.cho],ct[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function y4(e){const t=Yr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=sn(t.syllables,e.excludeNoImage??!1,t.syllable),r=to(),n=[];for(const i of Ve(a)){if(n.length>=(e.count??10))break;const s=Zi(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:St("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function w4(e){const t=Yr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=sn(t.syllables,e.excludeNoImage??!1,t.syllable),r=to(),n=[];for(const i of Ve(a)){if(n.length>=(e.count??10))break;const s=Ji(i.w,null,r);if(!s)continue;const c=$e(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:St("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:qe[c.cho],remaining:d,distractors:u})}return n}const ln=new Map;let Dp=null,jp=null;async function Ep(e,t={}){const a=vo(),r=Za();(a!==Dp||r!==jp)&&(ln.clear(),Dp=a,jp=r);const n=`${e}:${Ap(t)}`;if(ln.has(n))return ln.get(n);const i=await A4(e,t);return ln.set(n,i),i}const k4={SAME_SOUND_PICK:e=>Sp("SSP",e),HEAR_AND_PICK_SAME:e=>Sp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>s4(e),SAME_OR_DIFF:e=>l4(e),STARTS_WITH_SAME_SOUND:e=>c4(e),LISTEN_AND_REMEMBER_ORDER:e=>x4(e),MERGE_2_SYLLABLES:e=>m4(e),MERGE_3_SYLLABLES:e=>b4(e),MERGE_2_PHONEMES:e=>_4(e),MERGE_3_PHONEMES:e=>C4(e),DROP_1_FROM_2SYLL:e=>g4(e),DROP_1_FROM_3SYLL:e=>f4(e),DROP_PART_FROM_COMPOUND:e=>v4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>y4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>w4(e),CHANGE_1_SYLL_IN_2SYLL:e=>d4(e),CHANGE_1_SYLL_IN_3SYLL:e=>u4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>p4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>h4(e)};async function A4(e,t={}){const a=k4[e];return a?await a(t):[]}async function S4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Ep(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function B4(e){return(await Ht({...e,fullCount:!0})).length}async function N4(e={}){const t=[];for(const c of Xt)c.w&&t.push(c.w);const a=e.excludeNoImage?cr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const d of c){const u=$e(d);if(u&&(qe[u.cho]!=="\u3147"&&r.add(qe[u.cho]),n.add(ct[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(h=>i.add(h))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Tp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Lp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Mp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function $p(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Rp=5,Pp=5;function zp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Ip={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"};var D4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:qe,CORE_VERSION:jr,JONGSEONG:gt,JUNGSEONG:ct,LONG_STORIES:za,NETWORK_ERROR_MESSAGE:ts,NOISE_DATAS:Ra,ORDER_SETS:Ia,PLAN_FEATURES:Tp,PLAN_LIMITS:Mp,SHORT_STORIES:Pa,TIER_RANK:Lp,TOPIC_TYPES:xp,TRAINING_TYPES:an,TRAINING_TYPE_I18N_KEY:ws,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:Ip,WORD_SUGGESTION_WEEKLY_QUOTA:Rp,applyFontScale:gs,applyTheme:ms,buildChangeWholeSyllableProblem:es,buildDropCompoundProblem:Ki,buildDropContrast3Problem:qi,buildDropContrastProblem:Yi,buildDropFinalConsonantProblem:Zi,buildMultiPartPosContrast:Ni,buildPairIndex:lu,buildRemoveConsonantProblem:Ji,buildSyllableMaskIndex:Qi,bulkSetImageExistence:Xd,cardQuestionTitle:Du,checkImageExists:Yo,classifyPairDifficulty:bi,clearAudioExistsCache:Vd,clearImageExistenceCache:hi,clearPairIndexCache:Ai,composeSyllable:ca,computeDailySelection:vs,configureImageResolver:Kd,configureNoiseSettingsStore:Ju,configurePronunciationResolver:Ud,configureStorage:ri,configureTTS:Wd,configureTrainingCategories:up,copyText:ds,createDecompCache:mi,createTTSUrlResolver:tp,dateToDb:dp,downloadCsvText:$u,downloadSound:Lr,ensureTrainingDataLoaded:ys,escapeCsvField:Mu,fileExists:ni,filterContrastCandidates:Bi,finalToPhoneme:Ur,firstChoseongOf:gi,formatCount:nr,formatDateKo:ap,formatDateLocale:rp,formatDateLongKo:op,formatDateLongLocale:np,formatDatetimeKo:ip,formatPhone:lp,formatRelativeTime:Jr,formatTimeHM:en,formatYmd:Qr,getAssetBaseUrl:ai,getDailySelection:fp,getElementAnalyser:Vo,getErrorMessage:Kr,getImageExistenceStats:Rr,getImageExistsCached:pi,getImageResolver:Ma,getNoiseBaseUrl:ii,getPairIndex:Za,getPlanTier:$p,getPronunciationResolver:ci,getSavedFontScale:bs,getSavedTheme:hs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:li,getTTSUrlResolver:Fo,getTodayKst:Xr,getTopicTypes:tn,getTrainingPools:xs,getTrainingTypes:ps,getWordPool:vo,hasQuestionWordConstraint:yu,hasSel:ft,hasStructureContrast:Ko,initFontScale:bp,initTheme:hp,isAllChoseong:vi,isManualOnlyType:ku,isNetworkErrorMessage:as,isSyllablePattern:Ci,isThisWeekPick:zp,isTrainingDataLoaded:vp,isValidQuestionWord:wu,itemCorrectness:is,jamoToNamesForSpeech:ju,loadGameLeaderboard:Xu,loadMyGameRanks:Zu,loadNoiseSettings:ls,loadTrainingData:Cs,logCrossword:Fu,logTrainingCompletion:ns,logTrainingTime:rs,matchSyllables:Qa,matchesChoseongSearch:Jd,matchesSyllablePattern:yi,matchesWordQuery:ho,mergeQuestionText:Gi,minimalPairDistractors:Pr,normalizeDate:cp,officialSoundPath:ep,parseSortValue:Lu,parseSyllable:$e,patternToComposition:ru,phonemePartsOf:Nu,pickEuRo:Hi,pickEulReul:zi,pickEunNeun:Oi,pickIga:Ri,pickWaGwa:Fi,prewarmImageCache:Zd,primarySelPart:tr,readLevel:di,reorderArray:Wi,reportAppliedNoiseSettings:ar,resolveAssetUrl:zo,resolveSoundPath:Tr,resumeAudioMeter:Wo,sample:Kt,saveNoiseSettings:cs,searchAndRankWords:iu,setAssetBaseUrl:Fd,setCrosswordLogger:Ou,setGameLeaderboardLoader:qu,setGameRanksLoader:Yu,setGameScoreSubmitter:Uu,setTrainingCompletionLogger:Iu,setTrainingTimeLogger:zu,setWordPool:Pu,shuffle:Ve,sortToValue:Tu,soundOf:qr,speak:zd,stopSpeaking:Id,submitGameScore:Ku,syllMatchesComp:$a,syllableContrasts:eo,syllableLength:bo,syllablePron:Ui,toBase64UrlSafe:Qu,toChoseong:fi,toItemResults:ss,toKstHm:sp,toKstYmd:ka,toStandardPronunciation:vu,toStorageName:or,toUserErrorMessage:Eu,validateSyllableSearchInput:nu,withEuRo:Cu,withEulReul:Ii,withEunNeun:xu,withIga:Pi,withWaGwa:_u,wordContainsChoseong:eu,wordContainsJongseong:au,wordContainsJungseong:tu,wordHasNoCoda:xi,wordHasSyllableMatching:_i,wrongItems:Hu});function j4(e){return typeof window>"u"?"":ly.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function E4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=zo(e):/^(Logo|Symbol)/i.test(u)?m=zo(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let h=await fetch(t);h.ok||(h=await fetch(t));const p=h.headers.get("content-type")||"";if(u)return;if(p.includes("svg")){n("mask");return}if(p.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=j4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{u||(m=URL.createObjectURL(h),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function We(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",p=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=BC(g),{iconToUse:b,mode:v,svgText:x,blobUrl:y}=E4(g),C=(A,T={})=>o.jsx("span",{className:u,style:c,...T,children:A}),_=(A,T={})=>o.jsx("img",{src:A,alt:typeof a=="string"?a:a?String(a):"",className:m,...T});if(!t)return null;if(typeof t!="string")return C(t);if(t==="none")return C(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return C(l.createElement(f,{className:p,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(v==="mask"){const A={"--icon-url":y?`url(${y})`:`url(${b})`};return C(o.jsx("span",{className:h,style:A}),{"aria-hidden":"true"})}return v==="img"?C(_(b,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?C(o.jsx("span",{className:p,dangerouslySetInnerHTML:x?{__html:x}:void 0}),{"aria-hidden":"true"}):C(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return _(zo(t),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return C(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Op({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(We,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(We,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var T4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ae(T4);function Fp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=me.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(We,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(We,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var L4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ae(L4);function Hp({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(We,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(We,{icon:"arrow-right",size:18})})]})]})})}function Wp({as:e="div",className:t="",children:a,storage:r,...n}){r&&ri({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var M4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ae(M4);function Vp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const h=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:h,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,v)=>o.jsx("span",{className:"notice-box__line body-3",children:b},v))}):g.children??null})]},f))});const p=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:h,role:"note",children:[p,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var $4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ae($4);var R4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ae(R4);function Ss(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(ur)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const ur='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Aa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:h=!1,isMobilePopup:p=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[v,x]=l.useState({position:"fixed",left:0,top:-9999}),[y,C]=l.useState(!1),[_,k]=l.useState("bottom"),[w,A]=l.useState(!1),[T,S]=l.useState(!1),D=!t&&!a,F=l.useCallback((B=!1)=>{if(T&&p)return;const G=a?a.getBoundingClientRect():t;if(!G||!b.current)return;const Q=b.current,{offsetWidth:ee,offsetHeight:oe}=Q,N=window.innerWidth,L=window.innerHeight,P=N-G.right,H=G.left,W=G.top,te=L-G.bottom;let I=0,q=0,O="top";if(W>=oe+r)O="top",q=G.top-r-oe,I=G.left+G.width/2-ee/2;else if(te>=oe+r)O="bottom",q=G.bottom+r,I=G.left+G.width/2-ee/2;else if(P>=ee+r)O="right",I=G.right+r,q=G.top+G.height/2-oe/2;else if(H>=ee+r)O="left",I=G.left-r-ee,q=G.top+G.height/2-oe/2;else{const xe=Math.max(W,te,P,H);xe===W?(O="top",q=G.top-r-oe,I=G.left+G.width/2-ee/2):xe===te?(O="bottom",q=G.bottom+r,I=G.left+G.width/2-ee/2):xe===P?(O="right",I=G.right+r,q=G.top+G.height/2-oe/2):(O="left",I=G.left-r-ee,q=G.top+G.height/2-oe/2)}const ie=Number(n)||8;I=Math.min(Math.max(I,ie),N-ee-ie),q=Math.min(Math.max(q,ie),L-oe-ie);const pe=Math.round(I),ve=Math.round(q);B&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${ve}px`,b.current.dataset.placement=O):(k(O||_),x({position:"fixed",left:pe,top:ve}),A(!0))},[T,p,a,t,r,n,_]);l.useLayoutEffect(()=>{if(D)return;if(T&&p){x({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}F();const B=requestAnimationFrame(()=>F());return()=>cancelAnimationFrame(B)},[t,a,r,m,n,D,T,p,F]),l.useEffect(()=>{if(D||T&&p||!b.current||typeof ResizeObserver>"u")return;const B=new ResizeObserver(()=>{t&&F()});return B.observe(b.current),()=>B.disconnect()},[t,m,n,D,T,p,F]),l.useEffect(()=>{if(D||T&&p)return;const B=()=>F(!0);return window.addEventListener("resize",B),document.addEventListener("scroll",B,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",B),document.removeEventListener("scroll",B,{capture:!0})}},[t,r,m,n,D,T,p,F]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(max-width: 768px)"),G=()=>S(!!B.matches);G();try{B.addEventListener?B.addEventListener("change",G):B.addListener(G)}catch{try{B.addListener(G)}catch{}}return()=>{try{B.removeEventListener?B.removeEventListener("change",G):B.removeListener(G)}catch{}}},[]);const R=l.useRef(!1),E=l.useCallback((B=!1)=>{if(!(y||R.current)){if(R.current=!0,B){C(!0);try{i&&i()}catch{}return}C(!0),setTimeout(()=>{i&&i()},200)}},[y,i,C]);l.useEffect(()=>{const B=ee=>{const oe=b.current;if(!oe)return;const N=ee.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},G=ee=>{const oe=b.current;if(!oe)return;const N=ee.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},Q=ee=>{if(ee.key==="Escape"){ee.stopPropagation(),E();return}if(ee.key==="Tab"){const oe=b.current;if(!oe)return;const N=oe.querySelectorAll(ur);if(!N||N.length===0)return;const L=N[0],P=N[N.length-1],H=document.activeElement;ee.shiftKey?H===L&&(ee.preventDefault(),P.focus()):H===P&&(ee.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",B,!0),document.addEventListener("click",G,!0),document.addEventListener("keydown",Q),()=>{document.removeEventListener("pointerdown",B,!0),document.removeEventListener("click",G,!0),document.removeEventListener("keydown",Q)}},[i,s,E]),l.useEffect(()=>{const B=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",B),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",B)}},[E]);const $=o.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${y?"is-closing":""} ${c} ${T&&p?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:D?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":_,"data-left":D?"":v.left,"data-top":D?"":v.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),m]});if(D||typeof document>"u")return $;if(h||T&&p){const B=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&E(!0)}}),$]});return Vt.createPortal(B,document.body)}return Vt.createPortal($,document.body)}var P4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ae(P4);function ha(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Aa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var z4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__dot{border-radius:50%;flex-shrink:0;height:8px;margin-top:6px;width:8px}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ae(z4);function Fa(e){const{t}=me.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},m=(Array.isArray(n)?n:n?[n]:[]).map(h=>typeof h=="string"?{text:h}:h);return!m.length&&!r?null:o.jsx(Aa,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:m.map((h,p)=>o.jsxs("li",{className:`tooltip-description__item body-3${p===i?" tooltip-description__item--active":""}`,children:[s&&m.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[p+1,"."]}),h.color&&o.jsx("span",{className:"tooltip-description__dot",style:{background:h.color},"aria-hidden":"true"}),o.jsx("span",{children:h.text})]},p))})]})})}function ne(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:h,children:p,ariaLabel:g,variant:f="default",align:b="center",selected:v,toggleable:x=!1,disabled:y=!1,useLabel:C=!0,useBorder:_=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:A=!1,width:T,minWidth:S,onClick:D,onDisabledClick:F,showTooltipInfo:R=!1,tooltipInfoText:E=null,tooltipDescription:$=null,iconSize:B="medium",iconColor:G,shape:Q="rounded",color:ee,className:oe,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),P=L.match(/^\d+$/)?`button${L}`:`button-${L}`,H=Number(t),W=!isNaN(H)&&H<40?"button-2":"button-1",te=u??p,I=y||!!N.disabled,q=I?w?"disabled-covered":A?"disabled-invisibled":"disabled":f,O=q?`button--variant-${q}`:"",ie=b?`button--align-${b}`:"",pe=Q?`button--shape-${Q}`:"",ve=typeof G=="string"&&G.startsWith("--")?`var(${G})`:G,xe={...T?{width:typeof T=="number"?`${T}px`:T}:{},...S?{minWidth:typeof S=="number"?`${S}px`:S}:{},..._?{}:{"--button-border":I?"0":"1px solid transparent"},...ve?{"--button-icon-color":ve}:{},...ee?{"--color-main":ee}:{}},be=C===!1?"":te,M=Array.isArray(be)?be.length>0:!!be,U=!!d,re=a??(M||c||U?"bar":"dot"),ge=`${P}--${re}`,ce=l.useRef(null),z=l.useRef(I),[X,Z]=l.useState(!!v),[fe,Ne]=l.useState(!1),[Ie,Me]=l.useState(null),Ee=l.useCallback(()=>Ne(!1),[]);l.useEffect(()=>{typeof v=="boolean"&&Z(v)},[v]),l.useEffect(()=>{if(z.current&&!I&&ce.current){const Pe=ce.current;Pe.blur(),Pe.style.pointerEvents="none";const rt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ce.current&&(ce.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(rt)}z.current=I},[I]);const je=typeof v=="boolean"?!!v:X,Ae=x||typeof v=="boolean"?je?"true":"false":void 0,Fe=_e("button",P,ge,O,ie,pe,je?"is-selected":null,k?null:"button--no-bg",oe),Xe=`button__icon button__icon--${B}`,we=Array.isArray(h)?h:h!==void 0?[h]:[],He=()=>{if(Array.isArray(be))return be.map((rt,nt)=>{const tt=we[nt];return o.jsxs("span",{className:`button__label-text${tt!==void 0?" button__label-text--has-sub":""}`,children:[rt,tt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:tt})]},nt)});const Pe=h!==void 0;return o.jsxs("span",{className:`button__label-text${Pe?" button__label-text--has-sub":""}`,children:[be,m!=null&&o.jsx("span",{className:"button__count",children:m}),Pe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Te=Pe=>{I||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(Pe),typeof v!="boolean"&&Z(!1),Pe.currentTarget.blur())},Ue=Pe=>{if(I){F?.(Pe);return}typeof v!="boolean"&&x&&Z(rt=>!rt),D?.(Pe)},et=l.useCallback(()=>{(R||$)&&(Ne(!0),Me(ce.current?.getBoundingClientRect()??null))},[R,$]),Ke=l.useCallback(()=>{(R||$)&&(Ne(!1),Me(null))},[R,$]),Oe={...N};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onFocus,delete Oe.onBlur,I&&(Object.keys(Oe).forEach(Pe=>{/^on[A-Z]/.test(Pe)&&typeof Oe[Pe]=="function"&&delete Oe[Pe]}),Oe["aria-disabled"]="true");const dt=(typeof R=="string"?R:null)??(typeof E=="string"?E:null)??(typeof g=="string"?g:null)??(typeof te=="string"?te:null)??void 0,xt=typeof g=="string"?g:typeof te=="string"?te:dt,Ze=(Pe,rt)=>o.jsx(We,{icon:Pe,label:rt??xt,className:Xe,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),st=()=>re==="dot"?o.jsxs(o.Fragment,{children:[Ze(c),M&&o.jsx("span",{className:`button__label ${W}`,children:He()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:Ze(c)}),M&&o.jsx("span",{className:`button__label ${W}`,children:He()})]}),U&&o.jsx("span",{className:"button__right",children:Ze(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Ze(c,g??te)}),M&&o.jsx("span",{className:`button__label ${W}`,children:He()}),U&&o.jsx("span",{className:"button__right",children:Ze(d)})]}),Le=!!n&&!I;return o.jsxs(o.Fragment,{children:[o.jsx(Le?"a":"button",{...Oe,ref:ce,...Le?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!F},className:Fe,"aria-pressed":Ae,"aria-label":xt,"aria-disabled":Le&&I?!0:void 0,style:xe,onClick:Ue,onMouseLeave:Te,onPointerEnter:Pe=>{et(),!I&&typeof N.onPointerEnter=="function"&&N.onPointerEnter(Pe)},onPointerLeave:Pe=>{Ke(),!I&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(Pe)},onFocus:Pe=>{et(),!I&&typeof N.onFocus=="function"&&N.onFocus(Pe)},onBlur:Pe=>{Te(Pe),Ke(),!I&&typeof N.onBlur=="function"&&N.onBlur(Pe)},children:st()}),fe&&$?o.jsx(Fa,{anchorRect:Ie,title:$.title,items:$.items,onClose:Ee}):fe&&dt?o.jsx(ha,{anchorRect:Ie,text:dt,onClose:Ee}):null]})}function it(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var I4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ae(I4);var O4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ae(O4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Bs=new WeakMap;function Ns(e){if(e)return Bs.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),Bs.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),Bs.delete(e))}const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function js(){const e=it(Ds,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var F4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ae(F4);const Es={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ts(){const e=it(Es,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var H4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ae(H4);const Ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ms(){const e=it(Ls,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var W4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ae(W4);const $s={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Rs(){const e=it($s,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var V4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ae(V4);const Ps={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function zs(){const e=it(Ps,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ae(G4);const Is={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Os(){const e=it(Is,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ae(U4);const Fs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Hs(){const e=it(Fs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ae(Y4);const Ws={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Vs(){const e=it(Ws,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ae(q4);const Gs={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Us(){const e=it(Gs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ae(K4);const Ys={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=it(Ys,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var Z4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ae(Z4);const Ks={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Zs(){const e=it(Ks,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var X4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ae(X4);const Xs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Js(){const e=it(Xs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var J4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ae(J4);const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function el(){const e=it(Qs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var Q4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ae(Q4);const tl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function al(){const e=it(tl,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Gp=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],ol={main:js,soft:Ts,sub:Ms,deep:Rs,softSub:zs,warm:Os,dark:Hs,radial:Vs,diagonal:Us,dots:qs,outline:Zs,success:Js,naver:el,instagram:al};function cn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=l.useState(()=>{try{const v=localStorage.getItem(e),x=v?Number(v):1;return Number.isFinite(x)?x:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?x=>s(v(x)):s(v))},m=()=>u(v=>+(v+n).toFixed(6)),h=()=>u(v=>+(v-n).toFixed(6)),p=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}}const dn=l.createContext(null);function ew(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Qt(e){const t=l.useContext(dn),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&ew(e)?t.mobile:r}function rl(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function pr(e,t){const a=rl(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const nl=" \xB7 ",Up=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(nl)?e.split(nl).pop()??e:e})(),il=l.createContext(!1);function sl(e){const t=l.useContext(il);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Up?`${e}${nl}${Up}`:e,()=>{document.title=a}},[e,t])}function Yp(){const{t:e}=me.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const ll=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function cl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Kp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Zp(e){const{t}=me.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const p={};ll.forEach(g=>{p[g.id]=cl([...g.keys])}),r(p),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const h=l.useCallback(async p=>{i(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?Ai():p==="imageCache"&&hi(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:h}}function Xp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Za();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Rr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Jp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const h=l.useRef(null);l.useEffect(()=>{if(m.current)return;const x=h.current;x!==null&&x.length===t.length&&x.every((y,C)=>y===t[C])||(h.current=t,r(t))},[t]);const p=l.useCallback(x=>{i(x),c(!1),u({...x})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((x,y)=>{r(x),i(y),c(!1)},[]),v=l.useCallback(x=>{r(y=>y.filter(C=>C!==x)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:p,startEditing:g,cancelEditing:f,commitEdit:b,remove:v}}const yo=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},tw={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Jp(tw,e),{year:h,month:p,day:g}=yo(),[f,b]=l.useState({year:h,month:p,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:v=>x=>b(y=>({...y,[v]:x})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:v=>{a(_=>[f,..._]);const{year:x,month:y,day:C}=yo();b({year:x,month:y,day:C,hour:"09",minute:"00",memo:""}),v?.()},handleVisitEditSave:()=>{m(v=>v.map(x=>x===r?c:x),c)},addVisit:v=>{a(x=>[v,...x])},removeVisit:v=>{a(x=>x.filter(y=>y!==v))},revertVisitEdit:(v,x)=>{a(y=>y.map(C=>C===x?v:C)),n(y=>y===x?v:y)}}}const eh=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,un=e=>[...e].sort((t,a)=>{const r=eh(t),n=eh(a);return r<n?-1:r>n?1:0}),aw={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function th(e,t=[]){const a=l.useMemo(()=>un(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:h,commitEdit:p,remove:g}=Jp(aw,a),[f,b]=l.useState([]),{year:v,month:x,day:y}=yo(),[C,_]=l.useState({year:v,month:x,day:y,hour:"09",minute:"00",memo:""}),k=$=>B=>_(G=>({...G,[$]:B})),w=$=>{n(ee=>un([...ee,C]));const{year:B,month:G,day:Q}=yo();_({year:B,month:G,day:Q,hour:"09",minute:"00",memo:""}),$?.()},A=()=>{p($=>un($.map(B=>B===i?u:B)),u)},T=l.useCallback($=>{g($)},[g]),S=l.useCallback($=>{e({year:$.year,month:$.month,day:$.day,hour:$.hour,minute:$.minute,memo:$.memo}),g($)},[e,g]),D=l.useCallback($=>{n(B=>B.filter(G=>G!==$)),b(B=>[$,...B]),s(null)},[n,s]),F=l.useCallback($=>{n(B=>un([...B,$]))},[n]),R=l.useCallback($=>{n(B=>B.filter(G=>G!==$))},[n]),E=l.useCallback(($,B)=>{n(G=>G.map(Q=>Q===B?$:Q)),s(G=>G===B?$:G)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:F,removeSchedule:R,revertScheduleEdit:E,scheduleForm:C,setScheduleForm:_,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:h,handleScheduleSave:w,handleScheduleEditSave:A,handleScheduleDelete:T,handleScheduleToVisit:S,handleScheduleNoVisit:D}}const pn=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function ah(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),h=Math.min(c,m),p=l.useMemo(()=>u.slice((h-1)*Number(r),h*Number(r)),[u,h,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:h,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:p}}function dl(e,t,a){const{t:r}=me.useTranslation(),[n,i]=l.useState(()=>{const f=a?.initialPageSize;return f&&pn.some(b=>b.value===f)?f:"25"}),[s,c]=l.useState(1),[d,u]=l.useState(t);d!==t&&(u(t),s!==1&&c(1));const m=l.useMemo(()=>pn.map(f=>({...f,label:r("visits.showN",{n:f.value})})),[r]),h=l.useCallback(f=>{i(f),c(1)},[]),p=Math.max(1,Math.ceil(e.length/Number(n))),g=Math.min(s,p);return{pageRows:l.useMemo(()=>e.slice((g-1)*Number(n),g*Number(n)),[e,g,n]),pageSizeProps:{options:m,value:n,onChange:h},paginationProps:{page:g,total:p,onChange:c},setPage:c}}function ul(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function oh(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,h]=l.useState("\uC88C"),p=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),c(v=>({...v,[b]:[f,...v[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:h,handleDeviceSubmit:p,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function pl(){const{t:e}=me.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function hl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function ml(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function bl(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function rh(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function nh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function ih(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:h,labelAction:p}=t;return{label:a,...h?{groupLabel:h}:{},...p?{labelAction:p}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function sh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(zy).map(([e,{nucleus:t}])=>[e,t]));const ow={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},rw={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},nw={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:rw,typeMap:ow};function iw(e,t,a=nw){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const sw={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},lw={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},cw={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function lh(e,t){if("place"in t)return sw[t.place](e);const a=lw[t.vowel](e);return t.glide?`${a} \xB7 ${cw[t.glide](e)}`:a}const dw=(e,{defaultValue:t})=>t,ch=(e,t)=>({jamos:e,phonetic:t,tooltip:lh(dw,t)}),Sa=(e,t)=>t.map(a=>ch([a],{place:e})),Ct=(e,t,a)=>ch([...e],a?{vowel:t,glide:a}:{vowel:t}),gl={cho:[Sa("labial",["\u3142","\u3143","\u314D","\u3141"]),Sa("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Sa("alveolar",["\u3145","\u3146"]),Sa("palatal",["\u3148","\u3149","\u314A"]),Sa("velar",["\u3131","\u3132","\u314B"]),Sa("glottal",["\u314E"])],jung:[[Ct("\u3163","frontHigh"),Ct("\u315F","frontHigh","w"),Ct("\u3162","frontHigh","velar")],[Ct("\u3161","backHighUnrounded")],[Ct("\u315C","backHighRounded"),Ct("\u3160","backHighRounded","j")],[Ct("\u3154\u3150","frontMid"),Ct("\u3156\u3152","frontMid","j"),Ct("\u3159\u315A\u315E","frontMid","w")],[Ct("\u3153","backMidUnrounded"),Ct("\u3155","backMidUnrounded","j"),Ct("\u315D","backMidUnrounded","w")],[Ct("\u3157","backMidRounded"),Ct("\u315B","backMidRounded","j")],[Ct("\u314F","low"),Ct("\u3151","low","j"),Ct("\u3158","low","w")]],jong:[Sa("labial",["\u3142","\u3141"]),Sa("alveolar",["\u3137","\u3134","\u3139"]),Sa("velar",["\u3131","\u3147"])]},uw=[...qe],pw=[...ct],hw=gt.filter(e=>e!==""),ma=e=>e===ea?[]:Array.from(e),ea="__NO_CODA__",dh=[1,2,3,4],ta=5,mw=12,uh="SYL_",fl=e=>`${uh}${e}`,bw=e=>Number(e.slice(uh.length));function hn(e){return e>=ta?Array.from({length:mw-ta+1},(t,a)=>ta+a):[e]}const ph={cho:uw,jung:pw,jong:hw},vl=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:n})=>({v:a.join(""),phonetic:r,tooltip:n}))),xl={cho:vl(gl.cho),jung:vl(gl.jung),jong:vl(gl.jong)},hh={};xl.jung.flat().forEach(({v:e})=>{for(const t of ma(e))hh[t]=e});const gw=new Set(xl.cho.flat().map(e=>e.v));function _l(e,t){return e==="cho"?gw.has(t)?t:null:e==="jung"?hh[t]??t:Ur(t)}function Cl(e,t,a){if(e==="jung"){const r=ma(t);return a&&r.includes(a)?a:r[0]??t}return t}function yl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ea?ea:t==="pron"?_l(n,i):Cl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const mn={cho:null,jung:null,jong:null,syllable:null},fw="wt_filter",mh=e=>`wt_filter_${e}`;function bh(e){try{const t=localStorage.getItem(mh(e))??localStorage.getItem(fw);if(t)return JSON.parse(t)}catch{}return null}function vw(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...mn,cho:t.choseong}:mn}function gh(e,t,a){const{t:r,i18n:n}=me.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:bh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,h]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[p,g]=l.useState(()=>vw(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ea,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ea:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(z=>z.cho||z.jung||z.syllable!=null||z.jong?z:f())},[]);const b=l.useMemo(()=>ft(p.cho)||ft(p.jung)||ft(p.jong)?"count":"random",[p.cho,p.jung,p.jong]),v=l.useRef(m==="char"?p.jung:null);l.useEffect(()=>{m==="char"&&(v.current=p.jung)},[m,p.jung]);const[x,y]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[C,_]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[A,T]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[S,D]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),F=l.useRef(a?.resetKey);l.useEffect(()=>{F.current!==a?.resetKey&&(F.current=a?.resetKey,g(f()),y(!1),_(!1),w([]),T([]),D([]),u(1))},[a?.resetKey]);const R=pl(),[E,$]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[B,G]=l.useState(!1),[Q,ee]=l.useState(null),oe=1,N=Math.max(1,[p.cho,p.jung,p.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,P]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const z=bh(e),X=typeof z?.contrastCount=="number"&&Number.isFinite(z.contrastCount)?z.contrastCount:1;u(Math.min(5,Math.max(1,X))),g(z?.composition??f()),y(z?.excludeNoImage??!0),_(z?.sameStructureOnly??!0),h(z?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(z?.gradeFilter)?z.gradeFilter:[]),T(Array.isArray(z?.posFilter)?z.posFilter:[]),D(Array.isArray(z?.wordTypeFilter)?z.wordTypeFilter:[])}P(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(mh(e),JSON.stringify({contrastCount:d,composition:p,excludeNoImage:x,sameStructureOnly:C,phonemeView:m,gradeFilter:k,posFilter:A,wordTypeFilter:S}))}catch{}},[a?.resetOnMount,e,L,d,p,x,C,m,k,A,S]);const[H,W]=l.useState(0);pr("wordpool:update",()=>W(z=>z+1));const te=l.useRef(n.language);l.useEffect(()=>{te.current!==n.language&&(te.current=n.language,W(z=>z+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let z=!1;return N4({difficulty:b,excludeNoImage:x}).then(X=>{z||($(X),X.cho.size+X.jung.size+X.jong.size>0&&G(!0))}).catch(()=>{z||$({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{z=!0}},[t.choseong,b,x,H]),l.useEffect(()=>{let z=!1;const X=p,Z=X.cho?ma(X.cho):null,fe=X.jung?ma(X.jung):null,Ne=X.jong===ea,Ie=Ne?null:X.jong?ma(X.jong):null,Me=X.syllable!=null?hn(X.syllable):null,Ee=!!(Z||fe||Ie||Ne||Me);return B4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Ee?{cho:Z,jung:fe,jong:Ie,jongNone:Ne,syllable:Me}:null,excludeNoImage:x,sameStructureOnly:C,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(je=>{z||ee(je)}).catch(()=>{z||ee(null)}),()=>{z=!0}},[t.choseong,t.difficulty,b,d,p,m,x,C,H,k]),l.useEffect(()=>{B&&g(z=>{const X={...z};let Z=!1;return["cho","jung","jong"].forEach(fe=>{const Ne=z[fe];!Ne||Ne===ea||ma(Ne).some(Ie=>E[fe].has(Ie))||(X[fe]=null,Z=!0)}),z.syllable!=null&&t.fixedSyllable==null&&(z.syllable>=ta?[...E.syllable].some(fe=>fe>=ta)||(X.syllable=null,Z=!0):(!E.syllable.has(z.syllable)||z.syllable<oe)&&(X.syllable=null,Z=!0)),Z?X:z})},[E,B,oe,t.fixedSyllable]);const I=l.useMemo(()=>{const z=X=>{const Z=new Set;for(const fe of ph[X])E[X].has(fe)&&Z.add(fe);return Z};return{cho:z("cho"),jung:z("jung"),jong:z("jong")}},[E]),q=l.useMemo(()=>({exact:new Set(dh.filter(z=>E.syllable.has(z))),min:[...E.syllable].some(z=>z>=ta)}),[E]),O=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ie=l.useMemo(()=>({[O.trainOnset]:"cho",[O.trainVowel]:"jung",[O.trainCoda]:"jong"}),[O]),pe=l.useCallback((z,X)=>({title:X,items:z}),[]),ve=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),xe=l.useMemo(()=>{const z=[];if(t.choseong){const X={value:ea,displayLabel:O.codaExclude},Z=t.fixedNoCoda===!0,fe=(Ne,Ie)=>{const Me=Z&&Ne==="jong",Ee={label:Ie,groupLabel:O.phonemeGroup,allOption:!t.requireSyllable,allLabel:O.noLimit,allOptionDisabled:Me};if(m==="pron"){const Ae=xl[Ne].map(Fe=>Fe.map(({v:Xe,phonetic:we})=>{const He=ma(Xe),Te=lh(r,we),Ue=Me||!He.some(et=>E[Ne].has(et));return He.length>1?{value:Xe,labels:He,tooltip:Te,disabled:Ue}:{value:Xe,tooltip:Te,disabled:Ue}}));return Ne==="jong"&&!t.requireCoda&&Ae.unshift([X]),{...Ee,groups:Ae}}const je=ph[Ne].map(Ae=>!Me&&I[Ne].has(Ae)?Ae:{value:Ae,disabled:!0});return{...Ee,items:Ne==="jong"&&!t.requireCoda?[X,...je]:je}};z.push(fe("cho",O.trainOnset)),z.push(fe("jung",O.trainVowel)),z.push(fe("jong",O.trainCoda))}if(z.push({...hl(r,R,{labelInfo:pe([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:O.gradeLabel}),t.partOfSpeech&&z.push(ml(R)),t.wordType&&z.push(bl(R)),t.choseong||t.fixedSyllable!=null){const X=t.fixedSyllable;z.push({label:O.syllableCount,items:[...dh.map(Z=>({value:fl(Z),displayLabel:r("wordPairs.syllableN",{n:Z,defaultValue:"{{n}}\uC74C\uC808"}),disabled:X!=null?Z!==X:!q.exact.has(Z)||Z<oe})),{value:fl(ta),displayLabel:r("wordPairs.syllableNPlus",{n:ta,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:X!=null?ta!==X:!q.min}],allOption:!0,allOptionDisabled:X!=null})}return t.choseong?z.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage,O.sameStructure],labelInfo:pe(ve)}):z.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage],labelInfo:pe([ve[0]])}),z},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,oe,I,E,m,q,O,r,pe,ve,R]),be={...t.difficulty?{[O.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&p.syllable!=null?{[O.syllableCount]:fl(p.syllable)}:{},...t.choseong&&p.cho?{[O.trainOnset]:p.cho}:{},...t.choseong&&p.jung?{[O.trainVowel]:p.jung}:{},...t.choseong&&p.jong?{[O.trainCoda]:p.jong}:{},[O.exclude]:[...x?[O.excludeImage]:[],...C?[O.sameStructure]:[]],[O.gradeLabel]:k.map(z=>r("wordSearch.filter.grade",{n:Number(z),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},M=l.useCallback((z,X)=>{if(X===O.diffPhonemeCount){const Z=Number(z);Z>=1&&u(Z)}else if(X===O.exclude)z===O.excludeImage?y(Z=>!Z):z===O.sameStructure&&_(Z=>!Z);else if(X===O.syllableCount)g(Z=>{if(!z||z===Dt)return{...Z,syllable:null};const fe=bw(z);return{...Z,syllable:Z.syllable===fe?null:fe}});else if(X===O.gradeLabel){if(!z||z===Dt){w([]);return}const Z=z.replace(/\D/g,"");w(fe=>fe.includes(Z)?fe.filter(Ne=>Ne!==Z):[...fe,Z])}else if(X===R.partOfSpeech){if(!z||z===Dt){T([]);return}T(Z=>Z.includes(z)?Z.filter(fe=>fe!==z):[...Z,z])}else if(X===R.wordType){if(!z||z===Dt){D([]);return}D(Z=>Z.includes(z)?Z.filter(fe=>fe!==z):[...Z,z])}else{const Z=ie[X];if(!Z)return;g(fe=>t.requireSyllable?z&&z!==Dt?{...fe,[Z]:z}:fe:!z||z===Dt||fe[Z]===z?{...fe,[Z]:null}:{...fe,[Z]:z})}},[O,ie,R,t.requireSyllable]),U=l.useCallback(z=>!t.partOfSpeech&&!t.wordType?!0:iw(z,{...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},R),[t.partOfSpeech,t.wordType,A,S,R]),re=l.useCallback(z=>{z!==m&&(z!=="direct"&&m!=="direct"&&g(X=>yl(X,z,v.current)),h(z))},[m]),ge=l.useCallback(()=>({composition:p,contrastCount:d,excludeNoImage:x,sameStructureOnly:C,phonemeView:m,gradeFilter:k}),[p,d,x,C,m,k]),ce=l.useCallback(z=>{g(z.composition),u(z.contrastCount),y(z.excludeNoImage),_(z.sameStructureOnly??!0),h(z.phonemeView),w(Array.isArray(z.gradeFilter)?z.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:p,choseong:p.cho,excludeNoImage:x,sameStructureOnly:C,gradeFilter:k,posFilter:A,wordTypeFilter:S,matchesWordAttributes:U,poolVersion:H,filterSections:xe,filterSelected:be,handleFilterSelect:M,phonemeView:m,setPhonemeView:re,phonemeGroupLabel:O.phonemeGroup,wordCount:Q,getFilterSnapshot:ge,restoreFilterSnapshot:ce}}function xw(e){const t=c=>c?ma(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ea,i=n?null:t(e.jong),s=e.syllable!=null?hn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function fh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[h,p]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:v=null}=r??{},x=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&S4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let y=!1;return p(!0),(async()=>{const C=xw({cho:g,jung:f,jong:b,syllable:v}),_=`${g??""}_${f??""}_${b??""}_${v??""}_${x}`,k={};await Promise.all(e.map(async w=>{const A=fo[w.key];try{const T=await Ep(w.key,{difficulty:A.difficulty?t:null,contrastCount:A.difficulty?a:1,composition:A.choseong?C:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});T&&T.length>0?k[w.key]={id:`wt-${w.key}-${t}-${_}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:T,itemCount:T.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),y||(m(k),p(!1))})(),()=>{y=!0}},[t,a,g,f,b,v,n,s,c,i,x]),{perTypeData:u,generating:h}}function _w(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function Cw(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const bn=Kt;function wl(e,t){const a=t?Cw(_w(t)):Math.random;return{LISTEN_IN_NOISE:bn(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:bn(Pa,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:bn(za,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:bn(Ia,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function vh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const yw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function xh(e=!1,t=yw,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||Pa.length>0||za.length>0||Ia.length>0?{today:wl(t,i),yesterday:wl(t,s)}:{today:wl(t,i),yesterday:null}}function _h(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let p=!1,g,f=0;const b=40,v=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let x=!1;try{const _=new URLSearchParams(window.location.search),k=_.get("forceRefresh")||_.get("force");x=k==="1"||k==="true"}catch{}const y=_=>{t.current=_.today,a.current=_.yesterday,n(!0),m(!0),d(k=>k+1),p=!0,v()},C=async()=>{if(p)return;if(!x){const k=xh(!1,void 0,e);if(vh(k.today)){y(k);return}}try{await ys(3e3)}catch{}if(p)return;const _=xh(x,void 0,e);if(vh(_.today)){y(_);return}++f>=b&&(n(!0),m(!1),p=!0,v())};return C(),g=setInterval(C,250),()=>{p=!0,v()}},[e]);const h=l.useCallback(p=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[p]?.length?g[p]:f?.[p]?.length?f[p]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:h}}const wo=[];let gn=!1;function Ch(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function kl(e){return wo.push(e),!gn&&typeof document<"u"&&(document.addEventListener("keydown",Ch),gn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&gn&&typeof document<"u"&&(document.removeEventListener("keydown",Ch),gn=!1)}}function Al(e,t=!0){const a=rl(e);l.useEffect(()=>{if(t)return kl(()=>{a.current?.()})},[t,a])}const fn=(e,t)=>`${e}:${t??1}`,Sl=new Map;function yh(e,t){const[a,r]=l.useState(0),n=e.map(i=>fn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!Sl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&Sl.set(fn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=Sl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function wh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function kh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function vn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((h,p)=>{n(p),a(h),s(g=>g+1)},[]),d=l.useCallback(h=>c(h,"warning"),[c]),u=l.useCallback(h=>c(h,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const hr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},mr=hr.blue,xn=hr.green,br=hr.amber,_n=hr.purple,ww=hr.pink,kw=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:mr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:mr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:mr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:mr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:mr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:xn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:xn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:xn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:xn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:br,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:br,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:br,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:br,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:br,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:_n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:_n,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:_n,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:_n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:ww,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ah(){const{t:e}=me.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(a4(e).map(r=>[r.key,r.label])),a={...t};return kw.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=x=>{const y=x.target;r&&y.closest?.(r)||d.current?.contains(y)||u.current?.contains(y)||i(!1)};document.addEventListener("mousedown",g);const f=x=>{u.current?.contains(x.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const v=x=>{x.key==="Escape"&&i(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",v)}},[n,m,t,a,r]);const h=l.useCallback(()=>i(g=>!g),[]),p=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:h,close:p,style:s,triggerRef:d,menuRef:u}}function Bl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[h,p]=l.useState("idle"),[g,f]=l.useState(null),[b,v]=l.useState([]),[x,y]=l.useState(null),[C,_]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,_(k.current)},[]),A=l.useRef(r),T=l.useRef(n);l.useEffect(()=>{A.current=r,T.current=n},[r,n]);const S=l.useRef([]),D=()=>{S.current.forEach(clearTimeout),S.current=[]},F=(N,L)=>{S.current.push(setTimeout(L,N))};l.useEffect(()=>()=>D(),[]);const R=c[u]?.id??null,E=l.useCallback(()=>{D(),p("playing"),v([]),y(null),w(0);let N=0;e.forEach((L,P)=>{F(N,()=>{m(P),f(L.id),A.current?.(L)}),F(N+1e3,()=>{f(null),v(H=>[...H,L.id])}),N+=1300}),F(N,()=>{p("done"),T.current?.({score:0,total:e.length})})},[e,w]),$=l.useCallback((N,L)=>{if(L>=N.length){p("done"),T.current?.({score:k.current,total:N.length});return}m(L),y(null),p("playing"),f(N[L].id),A.current?.(N[L]),F(i,()=>{f(null),p("waiting")})},[i]),B=l.useCallback(()=>{D();const N=Ve(e);d(N),w(0),v([]),$(N,0)},[e,$,w]),G=l.useCallback(()=>{t==="playback"?(d(e),E()):B()},[t,e,E,B]),Q=l.useCallback(()=>{D(),p("idle"),f(null),v([]),y(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?G():Q()},[t,e.length,a]);const ee=l.useCallback(N=>{h!=="waiting"||t==="playback"||(y(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(p("playing"),F(400,()=>$(c,u+1))):(p("feedback"),F(s,()=>$(c,u+1))))},[h,t,c,u,$,s,w]),oe=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:x,answerId:R,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:ee},index:u,total:oe,score:C,phase:h,done:h==="done",start:G,reset:Q}}var Aw=Object.freeze({__proto__:null,CACHE_GROUPS:ll,CORE_VERSION:jr,DocumentTitleSuppressContext:il,EMPTY_COMPOSITION:mn,MediaQueryOverrideContext:dn,NO_CODA:ea,SYLLABLE_MIN:ta,VAP_PAGE_SIZE_OPTIONS:pn,buildGradeSection:hl,buildPartOfSpeechSection:ml,buildPositionSection:ih,buildSelectSection:nh,buildSyllableSection:rh,buildWordTypeSection:bl,charToPronValue:_l,convertComposition:yl,fmtBytes:Kp,lsBytes:cl,meaningKey:fn,pronToCharValue:Cl,syllableToFilter:hn,today:yo,toggleAttributeFilter:sh,useAnchoredMenu:ao,useCacheManagement:Zp,useDailyTrainingSelection:_h,useDelayedHoverAnchor:wh,useDeviceManagement:oh,useDocumentTitle:sl,useEscToClose:Al,useFontScale:cn,useHoverAnchor:ko,useMediaQuery:Qt,usePagedList:kh,usePasswordChange:qp,useRelativeDay:Yp,useSoundCompassExam:Bl,useTablePaging:dl,useTableSort:ul,useToastState:vn,useTrainingTypeLabels:Ah,useVisitAllPanel:ah,useVisitHistory:Qp,useVisitSchedule:th,useWindowEvent:pr,useWordAttributeFilterKeys:pl,useWordDataStats:Xp,useWordMeanings:yh,useWordTrainingDataGeneration:fh,useWordTrainingFilter:gh,valueToJamos:ma}),Sw=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ae(Sw);function Sh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const h=n??i??"main",p=l.useRef(null),[g,f]=l.useState("main"),b=Qt("(max-width: 767px)");l.useLayoutEffect(()=>{const y=p.current;y&&(d!==void 0&&y.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&y.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const y=p.current;if(!y)return;const C=Ns(y);f(C?.actionVariant??"main")},[h]);const v=_e("promo-banner",`promo-banner--${s}`,m),x=ol[h];return o.jsxs("div",{ref:p,className:v,role:"note",children:[o.jsx(x,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(ne,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var Bw='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ae(Bw);function Bh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=me.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[h,p]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||h)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,h]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var Nw=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ae(Nw);function Dw({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=me.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const h=Array.from(m.querySelectorAll("[data-accordion-header]")),p=h.indexOf(u.currentTarget);(u.key==="ArrowDown"?h[p+1]:h[p-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(We,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Nh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(Dw,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var jw=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(jw);var Ew=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ae(Ew);function Tw(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Lw(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Mw(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:C,number:_,position:k="top-right",onClick:w,animate:A=!1}=e,T=_!==void 0?"number":C??"check",S=typeof a=="number"?a:32,D=_e("circle-badge",`circle-badge--${T}`,`circle-badge--${k}`,`circle-badge--${S}`,A?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),F=_!==void 0?`${_}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[C??"check"];return o.jsxs("span",{className:D,onClick:w,onKeyDown:w?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":n??F,role:w?"button":void 0,tabIndex:w?0:void 0,children:[_!==void 0&&_,_===void 0&&C==="check"&&o.jsx(Tw,{}),_===void 0&&C==="remove"&&o.jsx(Lw,{}),_===void 0&&C==="minus"&&o.jsx(Mw,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:h,color:p}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,v=_e("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),x=p?.startsWith("--")?`var(${p})`:p,y=u!==void 0||x?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...x?{"--badge-color":x}:{}}:void 0;return o.jsxs("span",{className:v,style:y,children:[m&&o.jsx(We,{icon:m,size:b,className:"badge__icon"}),i??s,h&&o.jsx(We,{icon:h,size:b,className:"badge__icon"})]})}var $w=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ae($w);function gr({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=me.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),v=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:v,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),h=l.useRef(null),p=s.length;l.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const v=()=>{const x=m.current?.querySelector("button:not([disabled])");if(x&&x.offsetParent){x.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(v))};return f=requestAnimationFrame(v),()=>cancelAnimationFrame(f)},[p]),l.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ne,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((v,x)=>o.jsx(ne,{className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},x))})]},b))})]})}const Rw=52,Dh=10;function Nl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[h,p]=l.useState(0),g=e.length;l.useEffect(()=>{const B=m.current;if(!B||(p(B.clientWidth),typeof ResizeObserver>"u"))return;const G=new ResizeObserver(Q=>p(Q[0].contentRect.width));return G.observe(B),()=>G.disconnect()},[]);const f=h>0?Math.floor((h+Dh)/(Rw+Dh)):g,b=h>0&&f<g,v=b?f:g,x=e.slice(0,v),y=e.slice(v),C=b||i.length>0,_=l.useCallback(B=>({position:"fixed",bottom:window.innerHeight-B.top+8,right:window.innerWidth-B.right,zIndex:1e4}),[]),k=l.useId(),{open:w,toggle:A,close:T,style:S,triggerRef:D,menuRef:F}=ao({computeStyle:_,onScroll:"ignore",onResize:"ignore"}),R=l.useCallback(()=>n?.(c),[n,c]),E=l.useMemo(()=>y.find(B=>B.key===t)??i.find(B=>B.selected||B.key&&B.key===t),[y,t,i]),$=l.useMemo(()=>[{items:[...y.map(B=>({label:B.label,icon:B.icon,selected:B.key===t,closeOnSelect:!0,onClick:()=>{B.key&&a&&a(B.key),T()}})),...i.map(B=>({label:B.label,icon:B.icon,badgeCount:B.badgeCount,selected:B.selected??(!!B.key&&B.key===t),closeOnSelect:!0,onClick:()=>{B.onClick?.(),T()}}))]}],[y,i,t,a,T]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(ne,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:R})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:x.map(B=>o.jsx(ne,{size:52,type:"dot",icon:B.icon,ariaLabel:B.label,selected:B.key===t,disabled:B.state==="disabled",className:"bottom-nav-item",onClick:()=>B.key&&a?.(B.key)},B.key))}),C&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:D,children:[o.jsx(ne,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:A,"aria-expanded":w,"aria-controls":w?k:void 0}),w&&Vt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:S,ref:F,children:o.jsx(gr,{columns:$,onClose:T})}),document.body)]})})]})]})}var Pw=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ae(Pw);function zw(e){const{t}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function jh(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",h=t?.label??r??"",p=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(We,{icon:p,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",v=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,x=l.useCallback(y=>{if(!b){try{y.currentTarget.blur()}catch{}s?.(m,y.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:v,onClick:x,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:h}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Dl(e){const{t}=me.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}=e||{},g=l.useCallback(()=>p?.(h==="malgwi"?"manager":"malgwi"),[p,h]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(jh,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,x)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{x?.blur()}catch{}return}n?.(f.key);try{const C=document.querySelector(".content-area");C?C.scrollTop=0:window.scrollTo({top:0})}catch{}try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const y=document.querySelector(".header");if(y&&!(typeof y.matches=="function"&&y.matches(":hover"))){y.classList.add("header--force-collapsed");const C=()=>{y.classList.remove("header--force-collapsed"),y.removeEventListener("mouseenter",C)};y.addEventListener("mouseenter",C)}}})]},f.key??`side-nav__item-${b}`)),p&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),p&&o.jsx(jh,{item:{key:"__mode-switch__",label:h==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(zw,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var jl='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',El='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Iw='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Ow='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ae(Ow);function Tl({appMode:e}){const{t}=me.useTranslation(),a=e==="manager",r=a?El:jl,n=Iw,i=Qt("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Ll({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}){const{t:g}=me.useTranslation(),f=Qt("(max-width: 767px)"),b=l.useMemo(()=>{const S=[];return s&&S.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&S.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&S.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&S.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&S.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),S},[g,s,c,u,m,d,i]),v=l.useCallback(S=>({position:"fixed",top:S.bottom+8,right:Math.max(8,window.innerWidth-S.right),zIndex:1e4}),[]),x=l.useId(),{open:y,toggle:C,close:_,style:k,triggerRef:w,menuRef:A}=ao({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),T=l.useMemo(()=>[{items:b.map(S=>({label:S.label,icon:S.icon,badgeCount:S.badgeCount,selected:S.selected??(!!S.key&&S.key===e),closeOnSelect:!0,onClick:()=>{S.onClick?.(),_()}}))}],[b,e,_]);return o.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Tl,{appMode:h}),o.jsxs("div",{className:"header__menu-button",ref:w,children:[o.jsx(ne,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:C,"aria-expanded":y,"aria-controls":y?x:void 0}),y&&Vt.createPortal(o.jsx("div",{id:x,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:A,children:o.jsx(gr,{columns:T,onClose:_})}),document.body)]})]}),o.jsx(Dl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}),f&&o.jsx(Nl,{items:a,activeKey:e??void 0,onChange:t,appMode:h,onAppModeChange:p})]})}const Eh=Ll;var Fw='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ae(Fw);function Th(e){if(!(e==null||e===""))return rr(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function Hw(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function Ww(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function Vw(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Ml(e){return{type:e.type??Hw(e),plan:Ww(e),label:e.label,price:Th(e.price),originalPrice:Th(e.originalPrice),discountLabel:e.discountLabel}}var Gw='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ae(Gw);var Uw='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Yw='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',qw='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Kw='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Zw='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Xw='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Jw=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ae(Jw);var Qw=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ae(Qw);var Lh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ha={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},$l=new WeakMap;function e5(e){if(e)return $l.get(e)}function ba(e,t){e&&(e.style.setProperty(Ha.text,t.text),e.style.setProperty(Ha.sub,t.sub),t.copyrightColor&&e.style.setProperty(Ha.copyright,t.copyrightColor),$l.set(e,t))}function ga(e){e&&(e.style.removeProperty(Ha.text),e.style.removeProperty(Ha.sub),e.style.removeProperty(Ha.copyright),$l.delete(e))}const Rl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Pl(e={}){const t=it(Rl,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Lh}")`}})]})}const Mh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var t5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(t5);var fr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const a5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},o5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function $h(e={}){const t=it(a5,ba,ga),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:o5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Mh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var r5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(r5);const n5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},i5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function s5(e={}){const t=it(n5,ba,ga),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:i5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Mh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Lh}")`}})]})}var l5=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ae(l5);const c5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function d5(e={}){const t=it(c5,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}const u5={Logo_speechear_kr:{"":jl,_white:Uw,_textWhite:Yw,_black:qw},Logo_speechearManager_kr:{"":El,_white:Kw,_textWhite:Zw,_black:Xw}};function p5(e,t){if(e)return u5[e]?.[t??""]??void 0}const h5={speechear:jl,manager:El},m5={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Rh=10;function b5(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function g5(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(d5,{}):n?o.jsx(s5,{}):o.jsx($h,{})}return o.jsx(Pl,{})}function zl({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:h,logoSrc:p,label:g,price:f,originalPrice:b,discountLabel:v,onUse:x,onRefund:y,onDelete:C}){const{t:_}=me.useTranslation(),k=e?Ml(e):void 0,w=r??k?.type??"speechear",A=a??k?.plan??"\uC774\uC6A9\uAD8C",T=g??k?.label,S=f??(t?k?.price:void 0),D=b??(t?k?.originalPrice:void 0),F=v??k?.discountLabel,R=l.useMemo(()=>{if(S)return null;const M=e?.durationDays??Vw(e?.code);if(!M||M<=0)return null;const U=M*86400;let re;if(i!=null)re=i;else if((s==="active"||s==="expired")&&n){const ce=new Date(n).getTime();if(Number.isNaN(ce))return null;const z=new Date;z.setHours(0,0,0,0);const X=new Date(ce);X.setHours(0,0,0,0);const Z=Math.round((X.getTime()-z.getTime())/864e5);re=Math.max(0,Z)*86400}else s==="expired"?re=0:re=U;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(re,U)/U*100)));return s==="pending"&&ge>=100?null:{percent:ge,remainingLabel:b5(re,_)}},[S,s,n,i,e?.durationDays,e?.code,_]),E=l.useRef(null),[$,B]=l.useState({}),[G,Q]=l.useState(null),ee=!!(x||y||C),oe=l.useRef(!1),N=l.useRef(void 0),[L,P]=l.useState(p);l.useLayoutEffect(()=>{P(p)},[p]),l.useLayoutEffect(()=>{const M=E.current;M&&(u!==void 0&&M.style.setProperty("--pass-card-text",u),m!==void 0&&M.style.setProperty("--pass-card-sub",m),h!==void 0&&M.style.setProperty("--pass-card-copyright",h))},[u,m,h]),l.useLayoutEffect(()=>{const M=E.current;if(!M)return;const U=e5(M);if(!p){const re=m5[w],ge=s==="expired"?"_black":U?.logoColor??"",ce=p5(re,ge);P(ce)}},[c,p,w,s]);const H=M=>{const U=E.current;if(!U)return null;const{left:re,top:ge,width:ce,height:z}=U.getBoundingClientRect(),X=(M.clientX-re)/ce-.5;return{rotateX:-((M.clientY-ge)/z-.5)*Rh,rotateY:X*Rh}},W=(M,U)=>{const re=U*-.7,ge=M*.7+10,ce=20+(Math.abs(M)+Math.abs(U))*.4;return`${re}px ${ge}px ${ce}px rgba(0, 0, 0, 0.18)`},te=l.useCallback(M=>{oe.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{oe.current=!1},200);const U=H(M);U&&B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=l.useCallback(M=>{const U=H(M);if(!U)return;const re=oe.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:re})},[]),q=l.useCallback(()=>{clearTimeout(N.current),oe.current=!1,B({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(()=>Q(null),[]),ie=l.useMemo(()=>{const M=A.replace("\uC774\uC6A9\uAD8C","").trim(),U=M.match(/^(.*?)(일|년)$/);return U?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:U[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:U[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:M})},[A,_]),pe=l.useMemo(()=>{const M=rr(S);if(!M)return null;const U=M.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return o.jsx("span",{className:"h1",children:M});const[,re,ge,ce]=U;return o.jsxs(o.Fragment,{children:[re&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:re}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),ce.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:ce.trim()})]})},[S]),ve=l.useCallback(()=>{ee&&Q(M=>{if(M)return null;const U=E.current?.getBoundingClientRect();if(!U)return null;const re=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+re,top:U.top+re,bottom:U.bottom+re}})},[ee]),xe=l.useCallback(M=>{ee&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),ve())},[ee,ve]),be=[{items:[...x?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{x(),Q(null)},closeOnSelect:!0}]:[],...y?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{y(),Q(null)},closeOnSelect:!0}]:[],...C?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{C(),Q(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:E,className:`pass-card pass-card--${s}${ee?" pass-card--clickable":""}`,style:$,onMouseEnter:te,onMouseMove:I,onMouseLeave:q,onClick:ve,onKeyDown:ee?xe:void 0,role:ee?"button":void 0,tabIndex:ee?0:void 0,children:[c??g5(w,A,T),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:L??h5[w],className:"pass-card__logo",alt:w==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ie}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:T?_("passCard.labeledPlan",{label:T}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?o.jsxs("div",{className:"pass-card__price-area",children:[F&&o.jsx("span",{className:"pass-card__discount body-3",children:F}),o.jsxs("div",{className:"pass-card__price",children:[D&&o.jsx("span",{className:"pass-card__price-original body-3",children:rr(D)}),pe]})]}):R?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:R.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:R.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),G&&o.jsx(Aa,{anchorRect:G,onClose:O,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:o.jsx(gr,{columns:be,onClose:O,size:"small"})})]})}var f5=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(f5);const v5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function x5(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=it(v5,ba,ga);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var _5=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ae(_5);const C5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function y5(e={}){const t=it(C5,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}function w5(e,t){if(e){if(t==="manager_pro")return o.jsx(y5,{});if(t==="manager_standard")return o.jsx(x5,{});if(t==="manager_lite")return o.jsx($h,{})}}function k5(e){const t=rr(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Ph(e){const{t}=me.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=C=>!!C&&!!c?.includes(C),u=(n.tiers||[]).some(C=>/오픈\s*특가/.test(C.label??"")&&d(C.code)),m=C=>{const _=C.prices?C.prices[s]:C.price;return _?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===_):!1},h=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=C=>C.prices?C.prices[s]:C.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const _=f(C);return _==="\uBB34\uB8CC"||_===p||_==="0\uC6D0"}),v=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const _=f(C);return _==="\uBB38\uC758"||_===g}),x=n.group==="org",y=x?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((C,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),C]},_))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((C,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),C]},_))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:v?o.jsx(ne,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(C=>{const _=C.label||a,k=/오픈\s*특가/.test(_),w=k||C.openPromo===!0,A=_.replace(/^오픈\s*특가\s*/,"")||a,T=C.prices?C.prices[s]:C.price,S=C.badge?w?`${r}
832
- ${C.badge}`:C.badge:void 0;if(k&&d(C.code))return null;if(!C.badge&&!u)return m(C)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${C.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:C.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:k5(T)})})]},C.id);const D=n.tier??(x?n.title:void 0),F=o.jsx(zl,{showPrice:!0,product:{type:y,code:C.code,name:A,label:D,price:T,originalPrice:C.originals?.[s]??void 0,discountLabel:S},bg:w5(x,n.id)}),R=()=>i?.({...C,productId:n.id,productTitle:n.title,preview:F});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},C.id)})})})})]})}function zh({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var A5=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";ae(A5);var Il='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ol={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Ih(){const e=it(Ol,ba,ga);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Il}")`}})})}var S5=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";ae(S5);const Fl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Oh(e={}){const t=it(Fl,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var B5=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";ae(B5);function Hl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:_e("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var N5=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";ae(N5);const vr=(e,t,a)=>e+(t-e)*a;function Fh({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:h=!1,onSelectSpeaker:p,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:v,centerDisabled:x=!1,centerAttention:y=!1,shortcutAnchor:C="top-right",shortcutScale:_,scaleShortcut:k=!1}){const w=Math.max(0,Math.min(1,a)),A=t/2,T=110/300,S=.18,D=M=>t*(T+(M-1)*S),F=M=>{const U=D(M.row??1),re=M.angleDeg*Math.PI/180;return{x:A+U*Math.cos(re),y:A+U*Math.sin(re)}},R=Math.max(...e.map(M=>M.row??1),1),E=t*.08,$=t*.1,B=t*.24,G=t-2*E,Q=t-$-B,ee=t-B/2,oe=l.useMemo(()=>[...new Set(e.map(M=>M.deg))].sort((M,U)=>M-U),[e]),N=oe.length,L=Math.max(68,N>1?G/(N-1):0),P=l.useMemo(()=>new Map(oe.map((M,U)=>[M,U])),[oe]),H=M=>{const U=P.get(M.deg)??0,re=A+(U-(N-1)/2)*L,ge=R>1?Math.min(68,Q/(R-1)):0,ce=ge*(R-1),z=$+(Q-ce)/2,X=R===1?$+Q*.4:z+(R-(M.row??1))*ge;return{x:re,y:X}},W=M=>{const U=F(M),re=H(M);return{x:vr(U.x,re.x,w),y:vr(U.y,re.y,w)}},te={x:A,y:vr(A,ee,w)},I=Math.round(g*1.2),q=Math.round(Math.max(16,Math.min(80,g*.7))),O=[],ie=new Map;for(const M of e){const U=M.row??1;ie.has(U)||ie.set(U,[]),ie.get(U).push(M)}for(const[M,U]of ie.entries()){if(U.length<2)continue;const re=[...U].sort((Ae,Fe)=>Ae.deg-Fe.deg),ge=re.map(Ae=>W(Ae)),ce=re.map(Ae=>Ae.deg),z=ce[ce.length-1]-ce[0],X=z/(ce.length-1),Z=360-z,fe=re.length>=3&&X>0&&Z<=X*1.5,Ne=Math.round(D(M)*1e3)/1e3,Ie=(Ae,Fe,Xe,we)=>{const He=(Fe.angleDeg-Ae.angleDeg+540)%360-180;if(He===0)return`L ${we.x} ${we.y}`;if(w===0)return`A ${Ne} ${Ne} 0 0 ${He>0?1:0} ${we.x} ${we.y}`;const Te=(Ae.angleDeg+He/2)*Math.PI/180,Ue={x:A+Ne*Math.cos(Te),y:A+Ne*Math.sin(Te)},et={x:(Xe.x+we.x)/2,y:(Xe.y+we.y)/2},Ke={x:vr(Ue.x,et.x,w),y:vr(Ue.y,et.y,w)},Oe={x:2*Ke.x-et.x,y:2*Ke.y-et.y};return`Q ${Oe.x} ${Oe.y} ${we.x} ${we.y}`},Me=fe?[...re,re[0]]:re,Ee=fe?[...ge,ge[0]]:ge;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ie(Me[Ae-1],Me[Ae],Ee[Ae-1],Ee[Ae]);O.push({key:`arc-${M}`,d:je})}const pe=l.useMemo(()=>new Set(n??[]),[n]),ve=M=>{if(r===M.id)return"active";if(c){if(M.id===s)return"correct";if(M.id===i&&i!==s)return"wrong"}return pe.has(M.id)?"played":"idle"},xe=M=>r===M.id?"loop":c?M.id===s?"loop":null:d&&M.id===i?"once":null,be=(M,U)=>{switch(M){case"played":case"correct":return o.jsx(ad,{size:U});case"wrong":return o.jsx(pd,{size:U});default:return o.jsx(ud,{size:U})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(M=>{const{x:U,y:re}=W(M);return o.jsx("line",{x1:te.x,y1:te.y,x2:U,y2:re,stroke:"#dde3ec",strokeWidth:"1"},M.id)}),O.map(M=>o.jsx("path",{d:M.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},M.key))]}),y&&!x&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:te.x-I/2,top:te.y-I/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${x?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:te.x,top:te.y},"aria-label":v,"aria-disabled":x||void 0,tabIndex:x?-1:0,onClick:x?void 0:b,children:o.jsx(Yn,{size:q,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:te.x,top:te.y},children:o.jsx(Yn,{size:q,color:"currentColor",strokeWidth:1.5})}),e.map((M,U)=>{const{x:re,y:ge}=W(M),ce=ve(M),z=xe(M),X={..._!==void 0||k?{"--shortcut-badge-scale":String(_??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:ce!=="idle"?10:1},Z=g,fe=Math.round(Math.max(10,Math.min(56,Z*.38))),Ne=Math.round(Math.max(7,Math.min(18,Z*.2))),Ie=Math.round(Math.max(10,Math.min(56,Z*.4))),Me=f==="answered"&&(ce==="played"||ce==="correct"||ce==="wrong"),Ee=f===!0||Me,je=!Me;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...X,left:re-Z/2,top:ge-Z/2},children:[z&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ce}`+(z==="once"?" sound-compass__pulse--once":""),style:{width:Z,height:Z,...z==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>p?.(M.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ce}`,style:{width:Z,height:Z},"aria-label":M.label,children:[Ee&&be(ce,fe),je&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?Ne:Ie},children:U+1})]}),M.shortcut&&o.jsx(Hl,{keys:M.shortcut,anchor:C,className:"sound-compass__speaker-shortcut"})]},M.id)})]})})}function Hh({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:_e("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var D5=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";ae(D5);function Wh({orientation:e="horizontal",label:t,className:a=""}){const r=_e("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var j5='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';ae(j5);function Wl({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var E5=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";ae(E5);function Vh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(Wl,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var T5=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";ae(T5);const L5={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Gh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const h=_e("alert",`alert--${e}`,s),p=!!t,g=!!(a||r);return o.jsxs("div",{className:h,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(We,{icon:L5[e],size:20,className:"alert__icon"}),p&&o.jsx("span",{className:"alert__title body-2",children:t}),!p&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),p&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var M5=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";ae(M5);const $5={ready:"search",guide:"info",error:"circle-alert"};function R5(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function Uh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??$5[e],c=_e("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?R5(d,r):d;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(We,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Ao({title:e,items:t}){const{t:a}=me.useTranslation(),{anchorRect:r,openAt:n,close:i}=ko();return o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(Fa,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var P5=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";ae(P5);function Yh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=me.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,f=u())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},h=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=u(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(b-1,f):g.key==="Home"?m(0,f):m(f.length-1,f)},p=e.find(g=>g.key===d);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${i}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:h,children:g.label},g.key))}),p&&o.jsx("div",{id:`tabs__panel-${i}-${p.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${p.key}`,tabIndex:0,className:"tabs__panel",children:p.panel},p.key)]})}var z5=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";ae(z5);const I5={xs:12,sm:16,md:20,lg:28,xl:36};function O5(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function qh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=me.useTranslation(),[s,c]=l.useState(!1),d=t?O5(t):"",u=!!e&&!s,m=!u&&!!d,h=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":h,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(We,{icon:"user-round",size:I5[a],className:"avatar__icon"})]})}var F5=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";ae(F5);function H5(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function Kh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=me.useTranslation(),u=l.useRef(null),[m,h]=l.useState(!1),[p,g]=l.useState([]),f=i??p,b=w=>{if(!w||w.length===0)return;const A=Array.from(w).filter(S=>H5(S,t));if(A.length===0)return;const T=a?A:A.slice(0,1);if(i===void 0){const S=a?[...f,...T]:T;g(S),e?.(S)}else e?.(T)},v=w=>{w.preventDefault(),!r&&h(!0)},x=w=>{w.preventDefault(),h(!1)},y=w=>{w.preventDefault(),h(!1),!r&&b(w.dataTransfer.files)},C=w=>{b(w.target.files),w.target.value=""},_=()=>{r||u.current?.click()},k=w=>{if(s){s(w);return}if(i===void 0){const A=f.filter((T,S)=>S!==w);g(A),e?.(A)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:_e("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:_,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),_())},onDragOver:v,onDragLeave:x,onDrop:y,children:[o.jsx(We,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),_()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:C,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((w,A)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:w.name}),onClick:()=>k(A),children:o.jsx(We,{icon:"x",size:14})})]},`${w.name}-${A}`))})]})}var W5=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";ae(W5);function Zh({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(We,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var V5=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer;min-height:24px;min-width:24px}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";ae(V5);const G5={small:14,medium:20,large:28};function Xh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=me.useTranslation(),d=r||!t,[u,m]=l.useState(null),h=u??e,p=G5[n],g=_=>{d||t?.(_)},f=_=>{d||m(_)},b=l.useRef(null),v=_=>{const k=Math.min(a,Math.max(1,_));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(k))?.focus()},x=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}_.preventDefault()}},y=e>=1&&e<=a?Math.round(e):1,C=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:x,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:C,children:Array.from({length:a},(_,k)=>{const w=k+1,A=Math.max(0,Math.min(1,h-k)),T=A>0&&A<1,S=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(We,{icon:"star",size:p,className:"rating__star rating__star--empty"}),A>0&&o.jsx("span",{className:`rating__star-fill${T?" rating__star-fill--half":""}`,children:o.jsx(We,{icon:"star",size:p,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:S},w):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===y?0:-1,onClick:()=>g(w),onMouseEnter:()=>f(w),children:S},w)})})}var U5=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";ae(U5);const Y5=20,q5=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Jh({value:e,onChange:t,palette:a=q5,size:r=40,className:n=""}){const{t:i}=me.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(We,{icon:"check",size:Y5,className:"color-picker__check"})},s)})})}var K5=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";ae(K5);function Qh({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=_e("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(We,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var Z5=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";ae(Z5);function X5(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function em({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:h}=me.useTranslation(),p=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:v}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=v,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return kl(f)},[e,c,f]),Ss(g,e),!e||typeof document>"u"?null:Vt.createPortal(o.jsx("div",{className:_e("dialog",u),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?p:void 0,tabIndex:-1,className:_e("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:p,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(X5,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var J5=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";ae(J5);function tm({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:_e("board",d),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(m=>o.jsx("th",{scope:"col",className:_e("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,h)=>o.jsx("tr",{className:"board__row",children:e.map(p=>o.jsx("td",{className:_e("board__td",`board__cell--${p.align??"left"}`),children:p.render(m,h)},p.key))},a(m,h)))})]})]})}var Q5=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";ae(Q5);function am({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:_e("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var e3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";ae(e3);function om({groups:e,className:t=""}){return o.jsx("div",{className:_e("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var t3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";ae(t3);function rm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:_e("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var a3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";ae(a3);function nm({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=rl(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var o3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';ae(o3);function im({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:_e("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var r3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";ae(r3);function sm({items:e,className:t=""}){return o.jsx("ul",{className:_e("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Vl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(v=>v.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const h=l.useCallback(b=>{t?.(b),s(!1)},[t]),p=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(v=>Math.min(m.length-1,v+1))):b.key==="ArrowUp"?(b.preventDefault(),d(v=>Math.max(-1,v-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&h(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,h]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:p,handleBlur:g,handleKeyDown:f,handleSelect:h}}var n3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";ae(n3);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:h=!1,readOnly:p=!1,error:g,helperText:f,maxLength:b,size:v=48,variant:x="input",fullWidth:y=!1,newline:C=!1,multiline:_=!1,rows:k=3,leftIcon:w,rightIcon:A,clearable:T=!1,list:S,showCount:D=!0,className:F="",onFocus:R,onBlur:E,onKeyDown:$,onEnter:B,inputMode:G,autoComplete:Q,autoFocus:ee,suggestions:oe,openOnFocus:N=!1}=e,{t:L}=me.useTranslation(),P=l.useId();!s&&!c&&Gn(`TextField:unnamed:${P}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const H=`tf-${P}`,W=`tf-helper-${P}`,te=l.useRef(null),I=Vl({value:t??"",onChange:i,suggestions:oe??[],openOnFocus:N}),q=!!oe&&I.open&&I.filtered.length>0,O=l.useCallback(X=>{te.current=X,typeof n=="function"?n(X):n&&(n.current=X)},[n]),ie=t!==void 0,pe=ie&&m==="password",ve=(t??"").length;l.useEffect(()=>{const X=te.current;if(!pe||!X)return;const Z=t??"";X.value!==Z&&(X.value=Z)},[pe,t]),l.useEffect(()=>{if(!C||!te.current)return;const X=te.current;X.style.height="",X.scrollHeight>X.clientHeight&&(X.style.height=`${X.scrollHeight}px`)},[t,C]);const xe=b!=null&&ve>b,be=v===32?16:20,M=_e("text-field",`text-field--s${v}`,x==="display"?"text-field--display":"",y?"text-field--full-width":"",h?"text-field--disabled":"",p?"text-field--readonly":"",g?"text-field--error":"",w?"text-field--has-left-icon":"",A||T?"text-field--has-right-icon":"",F),U={id:H,...pe?{}:ie?{value:t}:{defaultValue:a},ref:O,placeholder:u,name:r,disabled:h,readOnly:p,autoFocus:ee,tabIndex:p?-1:void 0,maxLength:b,list:S,inputMode:G,autoComplete:Q,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":f||g?W:void 0,role:oe?"combobox":void 0,"aria-autocomplete":oe?"list":void 0,"aria-haspopup":oe?"listbox":void 0,"aria-expanded":oe?I.open:void 0,"aria-controls":q?I.listId:void 0,"aria-activedescendant":q&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:X=>i?.(X.target.value),onFocus:(X=>{R?.(X),oe&&I.handleFocus()}),onBlur:(X=>{E?.(X),oe&&I.handleBlur()}),onKeyDown:(X=>{B&&X.key==="Enter"&&!X.nativeEvent.isComposing&&(X.preventDefault(),B()),$?.(X),oe&&I.handleKeyDown(X)})},re=T&&!h&&!p&&ve>0,ge=()=>C?o.jsx("textarea",{...U,className:"text-field__input text-field__input--auto body-2",rows:1}):_?o.jsx("textarea",{...U,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...U,type:m,className:"text-field__input body-2"}),ce=x==="display"&&!C&&!_&&!!u,z=()=>o.jsxs(o.Fragment,{children:[ge(),ce&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:M,children:[s&&o.jsxs("label",{htmlFor:H,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[w&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(We,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),z(),b!=null&&D&&o.jsxs("span",{className:`text-field__count caption-2${xe?" text-field__count--over":""}`,children:[ve,"/",b]}),re&&o.jsx(ne,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:X=>{X.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),A&&!re&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(We,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),oe&&I.open&&I.filtered.length>0&&o.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((X,Z)=>o.jsx("li",{id:`${I.listId}-option-${Z}`,role:"option","aria-selected":Z===I.activeIdx,className:`text-field__suggestion body-2${Z===I.activeIdx?" is-active":""}`,onMouseDown:fe=>fe.preventDefault(),onClick:()=>{I.handleSelect(X),te.current?.focus()},children:X},`${X}-${Z}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:W,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var i3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";ae(i3);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=me.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),p=l.useId(),g=l.useRef(null),f=l.useCallback(E=>{const $=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...$?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:v,toggle:x,style:y,triggerRef:C,menuRef:_}=ao({computeStyle:f}),[k,w]=l.useState(-1),A=l.useCallback(()=>w(-1),[]),T=e.find(E=>E.value===t);l.useEffect(()=>{if(b){const E=e.findIndex($=>$.value===t);w(E>=0?E:0),requestAnimationFrame(()=>{const $=_.current;if(!$)return;const B=$.querySelectorAll(".dropdown__option")[E];B&&($.scrollTop=Math.max(0,B.offsetTop-$.clientHeight/2+B.clientHeight/2))})}},[b,e,t,_]);const S=l.useCallback(()=>{n||x()},[n,x]),D=l.useCallback(E=>{E.disabled||(a?.(E.value),v(!1))},[a,v]),F=l.useCallback(E=>{if(!n){if(!b){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),v(!0));return}if(E.key==="Escape"){E.preventDefault(),v(!1);return}E.key==="ArrowDown"?(E.preventDefault(),w($=>{let B=$+1;for(;B<e.length&&e[B].disabled;)B++;return B<e.length?B:$})):E.key==="ArrowUp"?(E.preventDefault(),w($=>{let B=$-1;for(;B>=0&&e[B].disabled;)B--;return B>=0?B:$})):E.key==="Enter"&&k>=0&&(E.preventDefault(),D(e[k]))}},[n,b,e,k,D,v]),R=b?o.jsx("div",{ref:_,id:p,className:"dropdown__menu",role:"listbox",style:y,onMouseLeave:A,children:e.map((E,$)=>o.jsxs("button",{id:`${p}-option-${$}`,type:"button",role:"option","aria-selected":E.value===t,className:_e("dropdown__option body-2",E.value===t?"dropdown__option--active":"",$===k?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:B=>B.preventDefault(),onClick:()=>D(E),onMouseEnter:()=>w($),disabled:E.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:E.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return o.jsxs("div",{ref:g,className:_e("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:F,children:[o.jsxs("button",{ref:C,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?p:void 0,"aria-activedescendant":b&&k>=0?`${p}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:S,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${T?"":" dropdown__trigger-label--placeholder"}`,children:T?T.label:h}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Vt.createPortal(R,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var s3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";ae(s3);function xr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=me.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:_e("pagination",i),children:[o.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var l3=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";ae(l3);function Va(e){const{t}=me.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=v=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},h=l.useRef(null),p=a.filter(v=>!v.disabled),g=v=>{if(!p.length)return;const x=Math.max(0,p.findIndex(C=>C.key===r)),y=v==="first"?p[0]:v==="last"?p[p.length-1]:p[(x+v+p.length)%p.length];y&&(n(y.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(C=>C.dataset.segkey===y.key)?.focus())},f=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}v.preventDefault()},b=p.some(v=>v.key===r)?r:p[0]?.key;return o.jsx("div",{ref:h,onKeyDown:f,className:_e("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>o.jsx(ne,{role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===b?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||n(v.key)},size:s,shape:c,useBorder:!1,useBG:!1},v.key))})}var c3=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";ae(c3);function Cn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=me.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:_e("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((h,p)=>o.jsx(Va,{size:40,...h},h.ariaLabel??p))]}),m&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(Wa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,p)=>o.jsx(Ut,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},p)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(xr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var d3=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";ae(d3);function lm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(lm).join(""):""}function u3(e){let t=e.replace(/\r\n/g,`
831
+ `),this.name="StorageNotConfiguredError"}};function ri(e){uy(e)}function Tr(e,t){if(!e)return null;const a=Io();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ni(e){if(!e)return!1;const t=Io();if(!t)throw new oi("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=Io();if(!t)throw new oi("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Lr(e){const t=Io();if(!t)throw new oi("downloadSound");return t.download(e)}function ii(){return Io()?.noiseBaseUrl??"/sounds/noise"}const si="__ihab_core_tts_config__";function Wd(e){globalThis[si]=e}function Fo(){return globalThis[si]?.urlResolver??null}function li(){return globalThis[si]?.fallbackUrlResolver??null}const py=new Map;function Vd(){py.clear()}const Gd="__ihab_core_pronunciation_resolver__";function Ud(e){globalThis[Gd]=e}function ci(){return globalThis[Gd]??null}let Ho=null;const Yd=new WeakMap;function hy(){if(Ho)return Ho;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Ho=new e,Ho):null}catch{return null}}function Wo(){try{Ho?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Yd.get(e);if(t)return t;const a=hy();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Yd.set(e,n),n}catch{return null}}function di(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Kd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let la=null;const Mr=new Map;function Uo(){if(la)return la;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;la=e?JSON.parse(e):{}}catch{la={}}return la}let ui=null;function my(){ui||(ui=setTimeout(()=>{ui=null;try{typeof localStorage<"u"&&la&&localStorage.setItem(Go,JSON.stringify(la))}catch{}},200))}function $r(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=Uo(),r=$r(e,t);if(r in a)return a[r];if(Mr.has(r))return Mr.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,my(),Mr.delete(r),c));return Mr.set(r,s),s}function pi(e,t){const a=Uo(),r=$r(e,t);return r in a?a[r]:void 0}async function Zd(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=Uo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!($r(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,p=s[m],h=$r(p);if(!a&&h in i){c++,n?.(c,s.length);continue}try{await Yo(p)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&la&&localStorage.setItem(Go,JSON.stringify(la))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Rr(){const e=Uo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Xd(e){const t=Uo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function hi(){la={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const qe=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ct=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function $e(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function mi(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>$e(r)),e.set(t,a)),a}}function ca(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function bi(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=$e(e[n]),s=$e(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function gi(e){const t=$e(e[0]||"");return t?qe[t.cho]:""}function fi(e){return[...e].map(t=>{const a=$e(t);return a?qe[a.cho]:t}).join("")}function vi(e){return!!e&&[...e].every(t=>qe.includes(t))}function Jd(e,t){return t?vi(t)?fi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>qe.includes(c),n=c=>ct.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":$e(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],p=i[u];if(p==="cho"){if(gi(m)!==a[u]){d=!1;break}}else if(p==="jung"){const h=$e(m);if(!h||ct[h.jung]!==a[u]){d=!1;break}}else{const h=$e(a[u]);if(h&&h.jong===0){const g=$e(m);if(!g||g.cho!==h.cho||g.jung!==h.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const mo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},Qd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function by(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r){if(qe[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&qe[r.cho]===t)return!0}return!1}function tu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&ct[r.jung]===t)return!0}return!1}function au(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)$e(a)&&t++;return t}function xi(e){if(!e)return!1;let t=!1;for(const a of e){const r=$e(a);if(r&&(t=!0,r.jong>0))return!1}return t}function gy(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function _i(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=$e(r[i]);if(!s||t.cho&&!t.cho.includes(qe[s.cho])||t.jung&&!t.jung.includes(ct[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!gy(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function Ci(e){return e.includes(",")||e.includes("_")}function ou(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Qd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>$e(t)?{kind:"syllable",ch:t}:qe.includes(t)?{kind:"cho",jamo:t}:ct.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function fy(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=$e(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=$e(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=$e(e);return!!a&&qe[a.cho]===t.jamo}case"jung":{const a=$e(e);return!!a&&ct[a.jung]===t.jamo}case"template":{const a=$e(e);return!(!a||t.cho!=="_"&&qe[a.cho]!==t.cho||t.jung!=="_"&&ct[a.jung]!==t.jung||t.jong!=="_"&&gt[a.jong]!==t.jong)}case"invalid":return!1}}function yi(e,t){const a=t.split(",").flatMap(n=>ou(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>fy(r[n+s],i)))return!0;return!1}function ru(e){const t=e.split(",").flatMap(i=>ou(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=$e(i.ch);s&&(a.add(qe[s.cho]),r.add(ct[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function vy(e){return!!$e(e)||qe.includes(e)||ct.includes(e)}function nu(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||qe.includes(i),u=s===void 0||s==="_"||ct.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Qd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(vy))return{ok:!1}}}return{ok:!0}}const xy={cho:qe.length,jung:ct.length,jong:gt.length};function _y(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(p=>$e(p));if(i.some(p=>!p))return[];const s=i,c=s.length;if(a>c)return[];const d=xy[t],u=new Set,m=[];(function p(h,g){if(g.length===a){m.push([...g]);return}for(let f=h;f<c;f++)g.push(f),p(f+1,g),g.pop()})(0,[]);for(const p of m)if((function h(g,f){if(u.size>=n)return;if(g===p.length){const v=f.map(C=>ca(C.cho,C.jung,C.jong)).join("");v!==e&&r.has(v)&&u.add(v);return}const b=p[g],x=s[b][t];for(let v=0;v<d;v++){if(v===x)continue;const C=f.slice();if(C[b]={...f[b],[t]:v},h(g+1,C),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Cy(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=$e(e[r]),i=$e(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function iu(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(Ci(a))return e.filter(s=>yi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const wi="word_pair_index_v2",ki="word_pair_index_sig_v2";let da=null,qo=null;function su(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(wi),t=localStorage.getItem(ki);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function yy(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(wi,JSON.stringify(e)),localStorage.setItem(ki,t)}catch{}}function wy(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function ky(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,p=Array.from(m).map($e);p.some(h=>h===null)||p.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:p}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let p=0;p<m;p++)for(const h of d){const g=new Map;for(const f of u){let b="";for(let v=0;v<m;v++){v>0&&(b+="~");const C=f.syls[v];v===p?h==="cho"?b+=`*:${C.jung}:${C.jong}`:h==="jung"?b+=`${C.cho}:*:${C.jong}`:b+=`${C.cho}:${C.jung}:*`:b+=`${C.cho}:${C.jung}:${C.jong}`}let x=g.get(b);x||(x=[],g.set(b,x)),x.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const x=f[b];for(let v=b+1;v<f.length;v++){const C=f[v];x.syls[p][h]!==C.syls[p][h]&&(n[x.word]||(n[x.word]={cho:[],jung:[],jong:[]}),n[C.word]||(n[C.word]={cho:[],jung:[],jong:[]}),n[x.word][h].push(C.word),n[C.word][h].push(x.word))}}}c+=u.length,t?.(c,i),await new Promise(p=>setTimeout(p,0))}return i>0&&t?.(i,i),n}async function lu(e,t={}){const a=wy(e);if(!t.force){if(da&&qo===a)return da;const n=su();if(n&&n.sig===a)return da=n.index,qo=a,da}const r=await ky(e,t.onProgress);return da=r,qo=a,yy(r,a),r}function Za(){if(da)return da;const e=su();return e?(da=e.index,qo=e.sig,da):null}function Ai(){da=null,qo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(wi),localStorage.removeItem(ki))}catch{}}const Si={cho:qe,jung:ct,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&qe[r.cho]==="\u3147"!=(qe[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function Bi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Pr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return Bi(e,n,a)}function Ni(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(h=>ft(e[h])),d={};for(const h of c){const g=e[h];d[h]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const h of t){const g=a(i(h));if(g.some(v=>!v))continue;let f=g;if(!u&&(f=a(h),f.length!==g.length||f.some(v=>!v)))continue;const b=g.length,x=m.get(b);x?x.push({w:h,dPron:g,dPos:f}):m.set(b,[{w:h,dPron:g,dPos:f}])}const p=new Map;for(const[h,g]of m){const f=new Map,b=(x,v)=>{const C=x.dPos[v];return C!=null&&c.every(w=>d[w].has(Si[w][C[w]]))};for(const x of g){let v;if(s==="head")v=b(x,0)?0:-1;else if(s==="tail")v=b(x,h-1)?h-1:-1;else if(s==="mid"){v=-1;for(let w=1;w<h-1;w++)if(b(x,w)){v=w;break}}else v=x.dPos.findIndex(w=>w!=null&&c.every(_=>d[_].has(Si[_][w[_]])));if(v<0)continue;const C=f.get(v);C?C.push(x):f.set(v,[x])}for(const[x,v]of f){const C=new Set(c.map(k=>x+":"+k)),w=k=>{let y="";for(let A=0;A<h;A++){const T=k[A];for(const S of["cho","jung","jong"])y+=(C.has(A+":"+S)?"*":T[S])+"."}return y},_=new Map;for(const k of g){const y=w(k.dPron),A=_.get(y);A?A.push(k):_.set(y,[k])}for(const k of v){const y=_.get(w(k.dPron))??[],A=[];for(const T of y){if(T.w===k.w)continue;let S=!0;for(const N of c){const F=k.dPron[x][N],R=T.dPron[x][N];if(R===F){S=!1;break}if(u&&d[N].has(Si[N][R])){S=!1;break}}S&&(r&&Ko(k.dPron,T.dPron)||A.push(T.w))}p.set(k.w,A)}}}return p}const zr=0,cu=1,Xa=2,Di=3,Ay=4,Ir=5,ji=6,Or=7,Sy=8,du=9,Zo=10,By=11,Xo=12,Ny=13,Jo=14,Fr=15,Hr=16,Qo=17,Dy=18,ua=0,ya=1,jy=3,Ja=4,Ei=5,Ti=6,pa=7,At=8,uu=9,pu=10,Wr=11,hu=12,Li=13,Vr=15,Gr=16,wa=17,mu=18,Mi=21,bu=27,Ey=20,Ty={1:zr,2:cu,4:Xa,7:Di,8:Ir,16:ji,17:Or,19:du,20:Zo,22:Xo,23:Jo,24:Fr,25:Hr,26:Qo},Ly={[jy]:[ya,Zo],[Ei]:[Ja,Xo],[uu]:[At,zr],[pu]:[At,ji],[Wr]:[At,Or],[hu]:[At,Zo],[Li]:[At,Hr],14:[At,Qo],[mu]:[wa,Zo]},My={[Ti]:Xa,[Vr]:Ir},$i={2:ya,24:ya,3:ya,9:ya,5:Ja,6:Ja,19:pa,20:pa,22:pa,23:pa,25:pa,27:pa,11:At,12:At,13:At,15:At,10:Gr,14:wa,18:wa,26:wa},gu={[zr]:Fr,[Di]:Hr,[Or]:Qo,[Xo]:Jo},fu={[zr]:cu,[Di]:Ay,[Or]:Sy,[du]:Zo,[Xo]:Ny},$y=new Set([Ei,pu,Wr,hu,Li,Vr,mu]),Ry=new Set(["\uBC1F"]);function vu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map($e);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=$i[s.jong]??s.jong;break}if(s.jong===ua)continue;if(c.cho===By){if(c.jung===Ey){if(s.jong===pa){s.jong=ua,c.cho=Xo;continue}if(s.jong===25){s.jong=ua,c.cho=Jo;continue}if(s.jong===Li){s.jong=At,c.cho=Jo;continue}}if(s.jong===bu){s.jong=ua;continue}const m=My[s.jong];if(m!==void 0){s.jong=ua,c.cho=m;continue}const p=Ly[s.jong];if(p){s.jong=p[0],c.cho=p[1];continue}const h=Ty[s.jong];h!==void 0&&(s.jong=ua,c.cho=h);continue}if((s.jong===bu||s.jong===Ti||s.jong===Vr)&&gu[c.cho]!==void 0){c.cho=gu[c.cho],s.jong=s.jong===Ti?Ja:s.jong===Vr?At:ua;continue}if(c.cho===Dy){if(s.jong===Ei){s.jong=Ja,c.cho=Jo;continue}if(s.jong===uu){s.jong=At,c.cho=Fr;continue}if(s.jong===Wr){s.jong=At,c.cho=Qo;continue}const m=$i[s.jong]??s.jong;if(m===ya){s.jong=ua,c.cho=Fr;continue}if(m===pa){s.jong=ua,c.cho=Hr;continue}if(m===wa){s.jong=ua,c.cho=Qo;continue}}let u=$i[s.jong]??s.jong;d===Wr&&Ry.has(a[i])&&(u=wa),s.jong=u,fu[c.cho]!==void 0&&(u===ya||u===pa||u===wa||$y.has(d))&&(c.cho=fu[c.cho]),(c.cho===Xa||c.cho===ji)&&(s.jong===ya?s.jong=Mi:s.jong===pa?s.jong=Ja:s.jong===wa&&(s.jong=Gr)),c.cho===Ir?s.jong===Ja?s.jong=At:s.jong===Gr||s.jong===Mi?c.cho=Xa:s.jong===ya?(s.jong=Mi,c.cho=Xa):s.jong===wa&&(s.jong=Gr,c.cho=Xa):s.jong===At&&c.cho===Xa&&(c.cho=Ir)}return n.map(i=>ca(i.cho,i.jung,i.jong)).join("")}const Py={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},zy={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Ur(e){return Py[e]??e}const go=/[ㄱ-ㅎ]/,Iy=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Iy.test(a))return a}return null}function Ri(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function Pi(e){return`${e}${Ri(e)}`}function zi(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Ii(e){return`${e}${zi(e)}`}function Oi(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function xu(e){return`${e}${Oi(e)}`}function Fi(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function _u(e){return`${e}${Fi(e)}`}function Hi(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function Cu(e){return`${e}${Hi(e)}`}function Wi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ve(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Kt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ve(e,a):Ve(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Oy(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const Fy=qe.indexOf("\u3147"),Yr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Fy},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Hy=new Set([]);function yu(e){return e in Yr}function wu(e,t){const a=Yr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=$e(r[0]);return!!n&&a.syllable(n)}function ku(e){return Hy.has(e)}function Wy(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function Vi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function Au(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function Su(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Bu={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Nu(e){if([...e].length!==1)return[e];const t=$e(e);if(!t)return[e];const a=[qe[t.cho],ct[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Gi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Bu[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Wy(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${Vi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Vy(e,t){return Gi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Gy(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${Vi(a)} "${n}"${Au(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${Vi(r)} "${n}"${Au(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Uy(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${Su(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${Su(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Du(e,t,a){switch(Oy(e)){case"synthesis":return Vy(e,a);case"substitution":return Gy(e,t);case"deletion":return Uy(e,t);default:return""}}function ju(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Bu[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Yy=e=>e==null?[]:Array.isArray(e)?e:[e];function Ui(e){if([...e].length!==1)return"";const t=$e(e);if(!t)return"";const a=Ur(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ca(t.cho,t.jung,r<0?0:r)}function qr(e,t){return t.get(e)||Ui(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function $a(e,t){const a=(r,n)=>!ft(r)||Yy(r).includes(n);return a(t.cho,qe[e.cho])&&a(t.jung,ct[e.jung])&&a(t.jong,gt[e.jong])}function Qa(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>$e(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>$e(i)):n.map(i=>$e(i))}function eo(e,t,a,r,n){const i=t==="cho"?qe:t==="jung"?ct:gt,s=e[t],c=[],d=new Set([qr(a,n)]),u=Ve(i.map((m,p)=>p).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const p=t==="cho"?ca(m,e.jung,e.jong):t==="jung"?ca(e.cho,m,e.jong):ca(e.cho,e.jung,m),h=qr(p,n);d.has(h)||(d.add(h),c.push(p))}return c}function Yi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=Qa(e,a,r);if(d.some(p=>!p))return null;const u=tr(t);let m=u&&t?d.map((p,h)=>$a(p,t)?h:-1).filter(p=>p>=0):[0,1];if(i!=null&&(m=m.filter(p=>p!==i)),!m.length)return null;for(const p of Ve(m)){const h=s[p];if(!n.has(h))continue;const g=eo(c[p],u??"cho",h,40,a),f=[];for(const b of g)if(b!==h&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[h,...f]}}return null}function qi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=Qa(e,a,r);if(d.some(p=>!p))return null;const u=tr(t),m=u&&t?d.map((p,h)=>$a(p,t)?h:-1).filter(p=>p>=0):[0,1,2];if(!m.length)return null;for(const p of Ve(m))for(const h of Ve([0,1,2].filter(g=>g!==p&&(i==null||g===i)))){const g=[0,1,2].filter(C=>C!==h),f=g.map(C=>s[C]).join("");if(!n.has(f))continue;const b=g.indexOf(p),x=eo(c[p],u??"cho",s[p],40,a),v=[];for(const C of x){const w=g.map(k=>s[k]);w[b]=C;const _=w.join("");if(_!==f&&n.has(_)&&!v.includes(_)&&v.push(_),v.length>=2)break}if(!(v.length<2))return{question:e,distractors:[f,...v]}}return null}function Ki(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:p,droppedEnd:h}of Ve(d)){if(i!=null&&h!==i||m===e||!n.has(m)||!n.has(p))continue;const g=[...m],f=g.map(v=>$e(v));if(f.some(v=>!v))continue;const b=Qa(m,a,r);if(b.some(v=>!v))continue;const x=u&&t?b.map((v,C)=>$a(v,t)?C:-1).filter(v=>v>=0):g.map((v,C)=>C);if(x.length)for(const v of Ve(x)){const C=eo(f[v],u??"cho",g[v],40,a),w=[];for(const _ of C){const k=[...g];k[v]=_;const y=k.join("");if(y!==m&&n.has(y)&&!w.includes(y)&&w.push(y),w.length>=2)break}if(w.length>=2)return{question:e,distractors:[m,...w]}}}return null}function Zi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong===0)return null;const c=ca(s.cho,s.jung,0),d=eo({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const Xi=qe.indexOf("\u3147");function Ji(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong!==0||s.cho===Xi)return null;const c=ca(Xi,s.jung,0),d=eo({cho:Xi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function Qi(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function es(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(C=>$e(C));if(m.some(C=>!C))return null;const p=Qa(e,a,r);if(p.some(C=>!C))return null;const h=C=>a.get(C)??C,g=h(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),x=C=>{let w=u+"|"+C+"|";for(let _=0;_<u;_++)w+=_===C?"*":d[_];return w};let v;if(i!=null){if(i>=u||f&&!$a(p[i],t))return null;v=[i]}else f?v=p.map((C,w)=>$a(C,t)?w:-1).filter(C=>C>=0):v=Array.from({length:u},(C,w)=>w);for(const C of Ve(v)){const w=n.get(x(C))??[],_=[],k=[];for(const N of w){if(N===e)continue;const F=[...N].map(B=>$e(B)),R=m[C],E=F[C];if(!R||!E)continue;let M=0;if(R.cho!==E.cho&&M++,R.jung!==E.jung&&M++,R.jong!==E.jong&&M++,!(M<c||h(N)===g))if(b){const B=Qa(N,a,r)[C];B&&$a(B,s)?_.push(N):k.push(N)}else _.push(N)}if(!_.length)continue;const y=Ve(_)[0],A=[],T=new Set([g,h(y)]),S=b?k:_.filter(N=>N!==y);for(const N of Ve(S)){const F=h(N);if(!T.has(F)&&(T.add(F),A.push(N),A.length>=2))break}if(!b&&A.length<2)for(const N of Ve(w)){if(N===e||N===y)continue;const F=h(N);if(!T.has(F)&&(T.add(F),A.push(N),A.length>=2))break}if(!(A.length<2))return{question:e,distractors:[y,...A]}}return null}function Kr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const ts="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function as(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Eu(e){return as(e)?ts:e}function Tu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Lu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function Mu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function $u(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Ru="__ihab_core_word_pool__";function qy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Ru]=r,qy()}function vo(){return globalThis[Ru]??null}const xo=globalThis;function os(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function zu(e){xo.__ihabTrainingTimeLogger=e}function rs(e){os("time",()=>xo.__ihabTrainingTimeLogger?.(e))}function Iu(e){xo.__ihabTrainingCompletionLogger=e}function ns(e){os("completion",()=>xo.__ihabTrainingCompletionLogger?.(e))}function Ou(e){xo.__ihabCrosswordLogger=e}function Fu(e){os("crossword",()=>xo.__ihabCrosswordLogger?.(e))}function Zt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function is(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function ss(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Zt(r.contextCode)??Zt(r.itemId)??Zt(r.itemCode)??Zt(r.id),question:Zt(r.question)??Zt(r.sentence)??Zt(r.word)??Zt(r.targetSyllable),answer:Zt(r.answer),selected:Zt(r.selectedText)??Zt(r.selected),correct:is(r)}}):[]}function Hu(e){return e.filter(t=>t.correct===!1)}let Wu=null,Vu=null,Gu=null;function Uu(e){Wu=e}function Yu(e){Vu=e}function qu(e){Gu=e}async function Ku(e,t){try{return await Wu?.(e,t)??null}catch{return null}}async function Zu(){try{return await Vu?.()??null}catch{return null}}async function Xu(e,t){try{return await Gu?.(e,t)??null}catch{return null}}const Zr=globalThis;function Ju(e){Zr.__ihabNoiseSettingsStore=e}async function ls(){try{return await Zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function cs(e){const t=a=>{};try{const a=Zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){try{Zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function or(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Qu=or;function ep(e,t){return`${e}/${or(t)}.mp3`}function tp(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??or;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await ni(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function ds(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const _o="Asia/Seoul";function ap(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:_o,year:"numeric",month:"short",day:"numeric"})}function op(e){return new Date(e).toLocaleString("ko-KR",{timeZone:_o,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:_o,year:"numeric",month:"short",day:"numeric"})}function np(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:_o,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ip(e){return new Date(e).toLocaleString("ko-KR",{timeZone:_o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function sp(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:_o,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Xr(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Jr(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function Qr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),p=r?u:String(Number(u));return`${c}${a}${m}${a}${p}${n?".":""}`}function lp(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function cp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function dp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function rr(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function en(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function nr(e){return(e??0).toLocaleString("ko-KR")}const Ky=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Zy=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let us=null;function up(e){us=e}function tn(){return us?.topicTypes??Ky}function ps(){return us?.trainingTypes??Zy}const pp="ihab_theme",Xy="light";function hs(){try{const e=localStorage.getItem(pp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Xy}function ms(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(pp,e)}catch{}}function hp(){ms(hs())}const mp="ihab_font_scale",Jy="medium",Qy=["medium","large1","large2","large3"];function bs(){try{const e=localStorage.getItem(mp);if(Qy.includes(e))return e}catch{}return Jy}function gs(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(mp,e)}catch{}}function bp(){gs(bs())}const Ra=[],Pa=[],za=[],Ia=[],ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},sr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},e4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let fs=null,gp=null,Oa=null;function vs({counts:e,forceRefresh:t}={}){const a=Object.assign({},e4,e||{}),r=Xr(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&gp===r&&fs===i&&Oa)return Object.assign(ir,Oa.today),Object.assign(sr,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:ir,yesterday:sr};const s={LISTEN_IN_NOISE:Kt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Kt(Pa,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Kt(za,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Kt(Ia,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&fs===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Kt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Kt(Pa,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Kt(za,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Kt(Ia,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(ir,s),Object.assign(sr,c),gp=r,fs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:ir,yesterday:sr}}function fp(){return{today:ir,yesterday:sr}}function xs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:Pa,LONG_STORY:za,ORDERING_SENTENCE:Ia}}let _s=!1,lr=null;async function t4(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Cs(){if(!_s)return lr||(lr=(async()=>{const e=await t4();if(!e){lr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?Pa.push(d):i==="LONG_STORY"?za.push(d):i==="ORDERING_SENTENCE"&&Ia.push(d)}}}catch{lr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{vs()}catch{}_s=!0})(),lr)}function vp(){return _s}async function ys(e=3e3){const t=Cs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const an=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],xp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],ws={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function a4(e){return an.map(t=>{const a=ws[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let on=null,_p=null,Cp=null;function o4(){const e=vo();if(e&&e.entries.length>0){const t=Za();if(on&&_p===e&&Cp===t)return on;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return on=r,_p=e,Cp=t,on}return[]}const Xt=new Proxy([],{get(e,t){const a=o4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function rn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Jt(e,t){if(t>=e.length)return Ve(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let ks=null,yp=null;function to(){const e=vo();if(ks&&yp===e)return ks;const t=new Map;for(const a of Xt)a.w&&t.set(a.w,a.pron);return ks=t,yp=e,t}function Ft(e){return to().get(e)||e}function As(e,t,a=new Set){const r=[];for(const n of Ve(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let r4=0;function St(e){return`${e}-rt-${++r4}`}function cr(e){const t=Rr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)pi(r)===!0&&a.add(r);return a}const nn=new Map;let wp=null,kp=null;function dr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Ap(e){const t=dr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${dr(a.cho)}/${dr(a.jung)}/${dr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=dr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Ht(e){const t=vo(),a=Za();(t!==wp||a!==kp)&&(nn.clear(),wp=t,kp=a);const r=Ap(e);return nn.has(r)||nn.set(r,i4(e)),nn.get(r)}function n4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>xi(s):s=>_i(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function i4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",p=m&&u>=2,h=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[n4(r),f?D=>f.has(bo(D)):null].filter(D=>D!=null):[],x=t==="random"||t===null,v=x||h,C=x||p||h;let w=Xt.filter(D=>!D.w||s&&(!D.grade||!s.has(D.grade))?!1:C?!0:Array.isArray(D.p)&&D.p.length>0);g&&(w=w.filter(D=>{for(const L of g)if(by(D.w,L))return!0;return!1})),b.length>0&&(w=w.filter(D=>{const L=d==="pron"?Ft(D.w):D.w;return b.every(P=>P(L))})),n&&(w=w.filter(D=>D.w[0]===n));let _;if(i){const D=new Set;for(const L of w)if(D.add(L.w),Array.isArray(L.p))for(const P of L.p)D.add(P);if(v)for(const L of Xt)L.w&&D.add(L.w);_=cr(D)}else{const D=new Set;for(const L of w)if(D.add(L.w),Array.isArray(L.p))for(const P of L.p)D.add(P);if(v)for(const L of Xt)L.w&&D.add(L.w);_=D}let k=null;if(p){const D=new Set;for(const L of Xt)L.w&&D.add(L.w);k=i?cr(D):D}const y=w.filter(D=>_.has(D.w)),A=600,T=Array.from(_),S=T.length>A?Jt(T,A):T,N=h&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),F=2500,R=new Map;if(h&&!N&&u>=2){for(const D of T){const L=bo(D),P=R.get(L);P?P.push(D):R.set(L,[D])}for(const[D,L]of R)L.length>F&&R.set(D,Jt(L,F))}const E=mi(),M=N?Ni(r,T,E,c,d,Ft):null,B=500,G=1500,Q=e.fullCount?y:t==="random"?y.length>B?Jt(y,B):y:y.length>G?Jt(y,G):y,ee=Za(),oe=[];for(const D of Q){let L;const P=Ft(D.w);if(p)L=_y(D.w,t,u,k,24).filter(H=>Ft(H)!==P);else if(h)N?L=(M.get(D.w)??[]).filter(H=>Ft(H)!==P):u<=1?L=Pr(D.w,ee,{okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}):L=(R.get(bo(D.w))??[]).filter(H=>{if(H===D.w||Ft(H)===P)return!1;const W=Cy(D.w,H);return u>=5?W>=5:W===u});else if(x)L=S.filter(H=>H!==D.w&&H.length===D.w.length&&Ft(H)!==P);else{const H=t;L=Pr(D.w,ee,{kind:H,okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}),L.length===0&&(L=(S.length>30?Jt(S,30):S).filter(W=>W!==D.w&&bi(D.w,W)===t&&Ft(W)!==P))}if(c&&L.length>0&&(m||h&&!N)){const H=E(Ft(D.w));L=L.filter(W=>!Ko(H,E(Ft(W))))}L.length!==0&&oe.push({word:D,usable:L})}return oe}async function Sp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Ht(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ve(i)){if(s.length>=r)break;const d=As(c.usable,n);if(d.length<n)continue;const u=Ve([c.word.w,...d]);s.push({id:St(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function s4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ve([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=rn(u);if(!m)continue;const p=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(p.length<r)continue;const h=As(p.map(f=>f.word.w),r);if(h.length<r)continue;const g=Ve([d,...h]);i.push({id:St("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function l4(e){const{count:t=10}=e,a=(await Ht(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=rn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=rn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:St("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function c4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(h=>h.word.w),s=new Map(n.map(h=>[h.word.w,h.word.pron])),c=h=>(s.get(h)||h)[0]??"",d={};for(const h of n){const g=c(h.word.w);g&&(d[g]||(d[g]=[]),d[g].push(h.word.w))}const u=Object.entries(d).filter(([,h])=>h.length>=2).map(([h])=>h);if(u.length===0)return[];const m=[],p=Ve([...u]);for(let h=0;m.length<a&&h<a*4;h++){const g=p[h%p.length],f=d[g];if(f.length<2)continue;const b=Ve([...f]),x=b[0],v=b[1];if(!x||!v||x===v||(s.get(x)||x)===(s.get(v)||v))continue;const C=s.get(v)||v,w=i.filter(y=>c(y)!==g&&y!==x&&y!==v&&y.length===v.length&&(s.get(y)||y)!==C);if(w.length<r)continue;const _=As(w,r);if(_.length<r)continue;const k=Ve([v,..._]);m.push({id:St("SWS-item"),index:m.length+1,sourceWord:x,targetSyllable:g,word:v,choices:k,answerIndex:k.indexOf(v)})}return m}function Bp(e,t,a){return Jt(e,t).map((r,n)=>{const i=rn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,p)=>m!==c[p]),u=Ve(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:St(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Np(e,t,a){const{count:r=10}=t,n=to(),i=Xt.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?cr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,d=new Set(c.map(g=>g.w)),u=Qi(d),m=t.phonemeView??"char",p=t.composition??null,h=[];for(const g of Ve(c)){if(h.length>=r)break;const f=es(g.w,p,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],x=[...g.w],v=[...b],C=x.findIndex((w,_)=>w!==v[_]);h.push({id:St(a),index:h.length+1,word:g.w,original:g.w,changed:b,changedFrom:C>=0?x[C]:"",changedTo:C>=0?v[C]:"",distractors:f.distractors.slice(1)})}return h}async function d4(e){return Np(2,e,"CS2-item")}async function u4(e){return Np(3,e,"CS3-item")}async function p4(e){const t=(await Ht({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Bp(t,e.count??10,"CP1-item")}async function h4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Ht({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Bp(a,e.count??10,"CP2-item")}async function m4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===2);return Jt(a,t).map((r,n)=>({id:St("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function b4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===3);return Jt(a,t).map((r,n)=>({id:St("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function g4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===2),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=Yi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w],h=p[0]===u?p[1]:p[0];s.push({id:St("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function f4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===3),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=qi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w];let h="";for(let g=0;g<p.length;g++)if(p.filter((f,b)=>b!==g).join("")===u){h=p[g];break}s.push({id:St("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function v4(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s>=2),r=to(),n=new Set(Xt.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ve(a)){if(s.length>=t)break;const d=Ki(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=c.word.w,h=p.startsWith(u)?p.slice(u.length):p.endsWith(u)?p.slice(0,p.length-u.length):"";s.push({id:St("DPC-item"),index:s.length+1,original:p,word:p,dropped:h,missingResult:u,distractors:m})}return s}async function x4(e){const{count:t=10}=e,a=(await Ht({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=Jt(a,3);return{id:St("LRO-item"),index:n+1,sequence:i,choices:Ve(i)}})}function sn(e,t,a){const r=Xt.filter(s=>s.w&&s.s===e),n=t?cr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=$e(s.w);if(!c||!a(c))continue}i.push(s)}return i}function _4(e){const t=sn(1,e.excludeNoImage??!1,a=>a.jong===0);return Jt(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:St("M2P-item"),index:r+1,parts:[qe[n.cho],ct[n.jung]],answer:a.w,word:a.w}})}function C4(e){const t=sn(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return Jt(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:St("M3P-item"),index:r+1,parts:[qe[n.cho],ct[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function y4(e){const t=Yr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=sn(t.syllables,e.excludeNoImage??!1,t.syllable),r=to(),n=[];for(const i of Ve(a)){if(n.length>=(e.count??10))break;const s=Zi(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:St("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function w4(e){const t=Yr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=sn(t.syllables,e.excludeNoImage??!1,t.syllable),r=to(),n=[];for(const i of Ve(a)){if(n.length>=(e.count??10))break;const s=Ji(i.w,null,r);if(!s)continue;const c=$e(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:St("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:qe[c.cho],remaining:d,distractors:u})}return n}const ln=new Map;let Dp=null,jp=null;async function Ep(e,t={}){const a=vo(),r=Za();(a!==Dp||r!==jp)&&(ln.clear(),Dp=a,jp=r);const n=`${e}:${Ap(t)}`;if(ln.has(n))return ln.get(n);const i=await A4(e,t);return ln.set(n,i),i}const k4={SAME_SOUND_PICK:e=>Sp("SSP",e),HEAR_AND_PICK_SAME:e=>Sp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>s4(e),SAME_OR_DIFF:e=>l4(e),STARTS_WITH_SAME_SOUND:e=>c4(e),LISTEN_AND_REMEMBER_ORDER:e=>x4(e),MERGE_2_SYLLABLES:e=>m4(e),MERGE_3_SYLLABLES:e=>b4(e),MERGE_2_PHONEMES:e=>_4(e),MERGE_3_PHONEMES:e=>C4(e),DROP_1_FROM_2SYLL:e=>g4(e),DROP_1_FROM_3SYLL:e=>f4(e),DROP_PART_FROM_COMPOUND:e=>v4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>y4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>w4(e),CHANGE_1_SYLL_IN_2SYLL:e=>d4(e),CHANGE_1_SYLL_IN_3SYLL:e=>u4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>p4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>h4(e)};async function A4(e,t={}){const a=k4[e];return a?await a(t):[]}async function S4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Ep(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function B4(e){return(await Ht({...e,fullCount:!0})).length}async function N4(e={}){const t=[];for(const c of Xt)c.w&&t.push(c.w);const a=e.excludeNoImage?cr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const d of c){const u=$e(d);if(u&&(qe[u.cho]!=="\u3147"&&r.add(qe[u.cho]),n.add(ct[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(p=>i.add(p))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Tp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Lp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Mp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function $p(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Rp=5,Pp=5;function zp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Ip={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"};var D4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:qe,CORE_VERSION:jr,JONGSEONG:gt,JUNGSEONG:ct,LONG_STORIES:za,NETWORK_ERROR_MESSAGE:ts,NOISE_DATAS:Ra,ORDER_SETS:Ia,PLAN_FEATURES:Tp,PLAN_LIMITS:Mp,SHORT_STORIES:Pa,TIER_RANK:Lp,TOPIC_TYPES:xp,TRAINING_TYPES:an,TRAINING_TYPE_I18N_KEY:ws,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:Ip,WORD_SUGGESTION_WEEKLY_QUOTA:Rp,applyFontScale:gs,applyTheme:ms,buildChangeWholeSyllableProblem:es,buildDropCompoundProblem:Ki,buildDropContrast3Problem:qi,buildDropContrastProblem:Yi,buildDropFinalConsonantProblem:Zi,buildMultiPartPosContrast:Ni,buildPairIndex:lu,buildRemoveConsonantProblem:Ji,buildSyllableMaskIndex:Qi,bulkSetImageExistence:Xd,cardQuestionTitle:Du,checkImageExists:Yo,classifyPairDifficulty:bi,clearAudioExistsCache:Vd,clearImageExistenceCache:hi,clearPairIndexCache:Ai,composeSyllable:ca,computeDailySelection:vs,configureImageResolver:Kd,configureNoiseSettingsStore:Ju,configurePronunciationResolver:Ud,configureStorage:ri,configureTTS:Wd,configureTrainingCategories:up,copyText:ds,createDecompCache:mi,createTTSUrlResolver:tp,dateToDb:dp,downloadCsvText:$u,downloadSound:Lr,ensureTrainingDataLoaded:ys,escapeCsvField:Mu,fileExists:ni,filterContrastCandidates:Bi,finalToPhoneme:Ur,firstChoseongOf:gi,formatCount:nr,formatDateKo:ap,formatDateLocale:rp,formatDateLongKo:op,formatDateLongLocale:np,formatDatetimeKo:ip,formatPhone:lp,formatRelativeTime:Jr,formatTimeHM:en,formatYmd:Qr,getAssetBaseUrl:ai,getDailySelection:fp,getElementAnalyser:Vo,getErrorMessage:Kr,getImageExistenceStats:Rr,getImageExistsCached:pi,getImageResolver:Ma,getNoiseBaseUrl:ii,getPairIndex:Za,getPlanTier:$p,getPronunciationResolver:ci,getSavedFontScale:bs,getSavedTheme:hs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:li,getTTSUrlResolver:Fo,getTodayKst:Xr,getTopicTypes:tn,getTrainingPools:xs,getTrainingTypes:ps,getWordPool:vo,hasQuestionWordConstraint:yu,hasSel:ft,hasStructureContrast:Ko,initFontScale:bp,initTheme:hp,isAllChoseong:vi,isManualOnlyType:ku,isNetworkErrorMessage:as,isSyllablePattern:Ci,isThisWeekPick:zp,isTrainingDataLoaded:vp,isValidQuestionWord:wu,itemCorrectness:is,jamoToNamesForSpeech:ju,loadGameLeaderboard:Xu,loadMyGameRanks:Zu,loadNoiseSettings:ls,loadTrainingData:Cs,logCrossword:Fu,logTrainingCompletion:ns,logTrainingTime:rs,matchSyllables:Qa,matchesChoseongSearch:Jd,matchesSyllablePattern:yi,matchesWordQuery:ho,mergeQuestionText:Gi,minimalPairDistractors:Pr,normalizeDate:cp,officialSoundPath:ep,parseSortValue:Lu,parseSyllable:$e,patternToComposition:ru,phonemePartsOf:Nu,pickEuRo:Hi,pickEulReul:zi,pickEunNeun:Oi,pickIga:Ri,pickWaGwa:Fi,prewarmImageCache:Zd,primarySelPart:tr,readLevel:di,reorderArray:Wi,reportAppliedNoiseSettings:ar,resolveAssetUrl:zo,resolveSoundPath:Tr,resumeAudioMeter:Wo,sample:Kt,saveNoiseSettings:cs,searchAndRankWords:iu,setAssetBaseUrl:Fd,setCrosswordLogger:Ou,setGameLeaderboardLoader:qu,setGameRanksLoader:Yu,setGameScoreSubmitter:Uu,setTrainingCompletionLogger:Iu,setTrainingTimeLogger:zu,setWordPool:Pu,shuffle:Ve,sortToValue:Tu,soundOf:qr,speak:zd,stopSpeaking:Id,submitGameScore:Ku,syllMatchesComp:$a,syllableContrasts:eo,syllableLength:bo,syllablePron:Ui,toBase64UrlSafe:Qu,toChoseong:fi,toItemResults:ss,toKstHm:sp,toKstYmd:ka,toStandardPronunciation:vu,toStorageName:or,toUserErrorMessage:Eu,validateSyllableSearchInput:nu,withEuRo:Cu,withEulReul:Ii,withEunNeun:xu,withIga:Pi,withWaGwa:_u,wordContainsChoseong:eu,wordContainsJongseong:au,wordContainsJungseong:tu,wordHasNoCoda:xi,wordHasSyllableMatching:_i,wrongItems:Hu});function j4(e){return typeof window>"u"?"":ly.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function E4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=zo(e):/^(Logo|Symbol)/i.test(u)?m=zo(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const h=p.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){n("mask");return}if(h.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=j4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{u||(m=URL.createObjectURL(p),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function We(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",h=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=BC(g),{iconToUse:b,mode:x,svgText:v,blobUrl:C}=E4(g),w=(A,T={})=>o.jsx("span",{className:u,style:c,...T,children:A}),_=(A,T={})=>o.jsx("img",{src:A,alt:typeof a=="string"?a:a?String(a):"",className:m,...T});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return w(l.createElement(f,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(x==="mask"){const A={"--icon-url":C?`url(${C})`:`url(${b})`};return w(o.jsx("span",{className:p,style:A}),{"aria-hidden":"true"})}return x==="img"?w(_(b,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):x==="inline"?w(o.jsx("span",{className:h,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return _(zo(t),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,y=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:y}}),{"aria-hidden":"true"})}function Op({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(We,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(We,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var T4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ae(T4);function Fp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=me.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(We,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(We,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var L4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ae(L4);function Hp({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(We,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(We,{icon:"arrow-right",size:18})})]})]})})}function Wp({as:e="div",className:t="",children:a,storage:r,...n}){r&&ri({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var M4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ae(M4);function Vp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const p=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:p,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,x)=>o.jsx("span",{className:"notice-box__line body-3",children:b},x))}):g.children??null})]},f))});const h=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:p,role:"note",children:[h,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var $4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ae($4);var R4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ae(R4);function Ss(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(ur)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const ur='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Aa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:p=!1,isMobilePopup:h=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[x,v]=l.useState({position:"fixed",left:0,top:-9999}),[C,w]=l.useState(!1),[_,k]=l.useState("bottom"),[y,A]=l.useState(!1),[T,S]=l.useState(!1),N=!t&&!a,F=l.useCallback((B=!1)=>{if(T&&h)return;const G=a?a.getBoundingClientRect():t;if(!G||!b.current)return;const Q=b.current,{offsetWidth:ee,offsetHeight:oe}=Q,D=window.innerWidth,L=window.innerHeight,P=D-G.right,H=G.left,W=G.top,te=L-G.bottom;let I=0,q=0,O="top";if(W>=oe+r)O="top",q=G.top-r-oe,I=G.left+G.width/2-ee/2;else if(te>=oe+r)O="bottom",q=G.bottom+r,I=G.left+G.width/2-ee/2;else if(P>=ee+r)O="right",I=G.right+r,q=G.top+G.height/2-oe/2;else if(H>=ee+r)O="left",I=G.left-r-ee,q=G.top+G.height/2-oe/2;else{const xe=Math.max(W,te,P,H);xe===W?(O="top",q=G.top-r-oe,I=G.left+G.width/2-ee/2):xe===te?(O="bottom",q=G.bottom+r,I=G.left+G.width/2-ee/2):xe===P?(O="right",I=G.right+r,q=G.top+G.height/2-oe/2):(O="left",I=G.left-r-ee,q=G.top+G.height/2-oe/2)}const ie=Number(n)||8;I=Math.min(Math.max(I,ie),D-ee-ie),q=Math.min(Math.max(q,ie),L-oe-ie);const pe=Math.round(I),ve=Math.round(q);B&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${ve}px`,b.current.dataset.placement=O):(k(O||_),v({position:"fixed",left:pe,top:ve}),A(!0))},[T,h,a,t,r,n,_]);l.useLayoutEffect(()=>{if(N)return;if(T&&h){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}F();const B=requestAnimationFrame(()=>F());return()=>cancelAnimationFrame(B)},[t,a,r,m,n,N,T,h,F]),l.useEffect(()=>{if(N||T&&h||!b.current||typeof ResizeObserver>"u")return;const B=new ResizeObserver(()=>{t&&F()});return B.observe(b.current),()=>B.disconnect()},[t,m,n,N,T,h,F]),l.useEffect(()=>{if(N||T&&h)return;const B=()=>F(!0);return window.addEventListener("resize",B),document.addEventListener("scroll",B,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",B),document.removeEventListener("scroll",B,{capture:!0})}},[t,r,m,n,N,T,h,F]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(max-width: 768px)"),G=()=>S(!!B.matches);G();try{B.addEventListener?B.addEventListener("change",G):B.addListener(G)}catch{try{B.addListener(G)}catch{}}return()=>{try{B.removeEventListener?B.removeEventListener("change",G):B.removeListener(G)}catch{}}},[]);const R=l.useRef(!1),E=l.useCallback((B=!1)=>{if(!(C||R.current)){if(R.current=!0,B){w(!0);try{i&&i()}catch{}return}w(!0),setTimeout(()=>{i&&i()},200)}},[C,i,w]);l.useEffect(()=>{const B=ee=>{const oe=b.current;if(!oe)return;const D=ee.target;if(D&&!oe.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},G=ee=>{const oe=b.current;if(!oe)return;const D=ee.target;if(D&&!oe.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},Q=ee=>{if(ee.key==="Escape"){ee.stopPropagation(),E();return}if(ee.key==="Tab"){const oe=b.current;if(!oe)return;const D=oe.querySelectorAll(ur);if(!D||D.length===0)return;const L=D[0],P=D[D.length-1],H=document.activeElement;ee.shiftKey?H===L&&(ee.preventDefault(),P.focus()):H===P&&(ee.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",B,!0),document.addEventListener("click",G,!0),document.addEventListener("keydown",Q),()=>{document.removeEventListener("pointerdown",B,!0),document.removeEventListener("click",G,!0),document.removeEventListener("keydown",Q)}},[i,s,E]),l.useEffect(()=>{const B=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",B),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",B)}},[E]);const M=o.jsxs("div",{ref:b,className:`tooltip-content ${N?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${C?"is-closing":""} ${c} ${T&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:N?{}:{...x,visibility:y?"visible":"hidden"},tabIndex:-1,"data-placement":_,"data-left":N?"":x.left,"data-top":N?"":x.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),m]});if(N||typeof document>"u")return M;if(p||T&&h){const B=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&E(!0)}}),M]});return Vt.createPortal(B,document.body)}return Vt.createPortal(M,document.body)}var P4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ae(P4);function ha(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Aa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var z4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__dot{border-radius:50%;flex-shrink:0;height:8px;margin-top:6px;width:8px}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ae(z4);function Fa(e){const{t}=me.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},m=(Array.isArray(n)?n:n?[n]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:o.jsx(Aa,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:m.map((p,h)=>o.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[s&&m.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),p.color&&o.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),o.jsx("span",{children:p.text})]},h))})]})})}function ne(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:p,children:h,ariaLabel:g,variant:f="default",align:b="center",selected:x,toggleable:v=!1,disabled:C=!1,useLabel:w=!0,useBorder:_=!0,useBG:k=!0,useDisabledCovered:y=!1,useDisabledInvisible:A=!1,width:T,minWidth:S,onClick:N,onDisabledClick:F,showTooltipInfo:R=!1,tooltipInfoText:E=null,tooltipDescription:M=null,iconSize:B="medium",iconColor:G,shape:Q="rounded",color:ee,className:oe,...D}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),P=L.match(/^\d+$/)?`button${L}`:`button-${L}`,H=Number(t),W=!isNaN(H)&&H<40?"button-2":"button-1",te=u??h,I=C||!!D.disabled,q=I?y?"disabled-covered":A?"disabled-invisibled":"disabled":f,O=q?`button--variant-${q}`:"",ie=b?`button--align-${b}`:"",pe=Q?`button--shape-${Q}`:"",ve=typeof G=="string"&&G.startsWith("--")?`var(${G})`:G,xe={...T?{width:typeof T=="number"?`${T}px`:T}:{},...S?{minWidth:typeof S=="number"?`${S}px`:S}:{},..._?{}:{"--button-border":I?"0":"1px solid transparent"},...ve?{"--button-icon-color":ve}:{},...ee?{"--color-main":ee}:{}},be=w===!1?"":te,$=Array.isArray(be)?be.length>0:!!be,U=!!d,re=a??($||c||U?"bar":"dot"),ge=`${P}--${re}`,ce=l.useRef(null),z=l.useRef(I),[X,Z]=l.useState(!!x),[fe,Ne]=l.useState(!1),[Ie,Me]=l.useState(null),Ee=l.useCallback(()=>Ne(!1),[]);l.useEffect(()=>{typeof x=="boolean"&&Z(x)},[x]),l.useEffect(()=>{if(z.current&&!I&&ce.current){const Pe=ce.current;Pe.blur(),Pe.style.pointerEvents="none";const rt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ce.current&&(ce.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(rt)}z.current=I},[I]);const je=typeof x=="boolean"?!!x:X,Ae=v||typeof x=="boolean"?je?"true":"false":void 0,Fe=_e("button",P,ge,O,ie,pe,je?"is-selected":null,k?null:"button--no-bg",oe),Xe=`button__icon button__icon--${B}`,we=Array.isArray(p)?p:p!==void 0?[p]:[],He=()=>{if(Array.isArray(be))return be.map((rt,nt)=>{const tt=we[nt];return o.jsxs("span",{className:`button__label-text${tt!==void 0?" button__label-text--has-sub":""}`,children:[rt,tt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:tt})]},nt)});const Pe=p!==void 0;return o.jsxs("span",{className:`button__label-text${Pe?" button__label-text--has-sub":""}`,children:[be,m!=null&&o.jsx("span",{className:"button__count",children:m}),Pe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:p})]})},Te=Pe=>{I||(typeof D.onMouseLeave=="function"&&D.onMouseLeave(Pe),typeof x!="boolean"&&Z(!1),Pe.currentTarget.blur())},Ue=Pe=>{if(I){F?.(Pe);return}typeof x!="boolean"&&v&&Z(rt=>!rt),N?.(Pe)},et=l.useCallback(()=>{(R||M)&&(Ne(!0),Me(ce.current?.getBoundingClientRect()??null))},[R,M]),Ke=l.useCallback(()=>{(R||M)&&(Ne(!1),Me(null))},[R,M]),Oe={...D};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onFocus,delete Oe.onBlur,I&&(Object.keys(Oe).forEach(Pe=>{/^on[A-Z]/.test(Pe)&&typeof Oe[Pe]=="function"&&delete Oe[Pe]}),Oe["aria-disabled"]="true");const dt=(typeof R=="string"?R:null)??(typeof E=="string"?E:null)??(typeof g=="string"?g:null)??(typeof te=="string"?te:null)??void 0,xt=typeof g=="string"?g:typeof te=="string"?te:dt,Ze=(Pe,rt)=>o.jsx(We,{icon:Pe,label:rt??xt,className:Xe,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),st=()=>re==="dot"?o.jsxs(o.Fragment,{children:[Ze(c),$&&o.jsx("span",{className:`button__label ${W}`,children:He()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:Ze(c)}),$&&o.jsx("span",{className:`button__label ${W}`,children:He()})]}),U&&o.jsx("span",{className:"button__right",children:Ze(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Ze(c,g??te)}),$&&o.jsx("span",{className:`button__label ${W}`,children:He()}),U&&o.jsx("span",{className:"button__right",children:Ze(d)})]}),Le=!!n&&!I;return o.jsxs(o.Fragment,{children:[o.jsx(Le?"a":"button",{...Oe,ref:ce,...Le?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!F},className:Fe,"aria-pressed":Ae,"aria-label":xt,"aria-disabled":Le&&I?!0:void 0,style:xe,onClick:Ue,onMouseLeave:Te,onPointerEnter:Pe=>{et(),!I&&typeof D.onPointerEnter=="function"&&D.onPointerEnter(Pe)},onPointerLeave:Pe=>{Ke(),!I&&typeof D.onPointerLeave=="function"&&D.onPointerLeave(Pe)},onFocus:Pe=>{et(),!I&&typeof D.onFocus=="function"&&D.onFocus(Pe)},onBlur:Pe=>{Te(Pe),Ke(),!I&&typeof D.onBlur=="function"&&D.onBlur(Pe)},children:st()}),fe&&M?o.jsx(Fa,{anchorRect:Ie,title:M.title,items:M.items,onClose:Ee}):fe&&dt?o.jsx(ha,{anchorRect:Ie,text:dt,onClose:Ee}):null]})}function it(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var I4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ae(I4);var O4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ae(O4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Bs=new WeakMap;function Ns(e){if(e)return Bs.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),Bs.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),Bs.delete(e))}const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function js(){const e=it(Ds,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var F4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ae(F4);const Es={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ts(){const e=it(Es,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var H4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ae(H4);const Ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ms(){const e=it(Ls,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var W4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ae(W4);const $s={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Rs(){const e=it($s,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var V4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ae(V4);const Ps={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function zs(){const e=it(Ps,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ae(G4);const Is={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Os(){const e=it(Is,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ae(U4);const Fs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Hs(){const e=it(Fs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ae(Y4);const Ws={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Vs(){const e=it(Ws,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ae(q4);const Gs={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Us(){const e=it(Gs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ae(K4);const Ys={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=it(Ys,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var Z4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ae(Z4);const Ks={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Zs(){const e=it(Ks,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var X4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ae(X4);const Xs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Js(){const e=it(Xs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var J4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ae(J4);const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function el(){const e=it(Qs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var Q4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ae(Q4);const tl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function al(){const e=it(tl,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Gp=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],ol={main:js,soft:Ts,sub:Ms,deep:Rs,softSub:zs,warm:Os,dark:Hs,radial:Vs,diagonal:Us,dots:qs,outline:Zs,success:Js,naver:el,instagram:al};function cn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=x=>Math.max(a,Math.min(r,Number(x))),[c,d]=l.useState(()=>{try{const x=localStorage.getItem(e),v=x?Number(x):1;return Number.isFinite(v)?v:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=x=>{d(typeof x=="function"?v=>s(x(v)):s(x))},m=()=>u(x=>+(x+n).toFixed(6)),p=()=>u(x=>+(x-n).toFixed(6)),h=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:p,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}}const dn=l.createContext(null);function ew(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Qt(e){const t=l.useContext(dn),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&ew(e)?t.mobile:r}function rl(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function pr(e,t){const a=rl(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const nl=" \xB7 ",Up=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(nl)?e.split(nl).pop()??e:e})(),il=l.createContext(!1);function sl(e){const t=l.useContext(il);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Up?`${e}${nl}${Up}`:e,()=>{document.title=a}},[e,t])}function Yp(){const{t:e}=me.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const ll=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function cl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Kp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Zp(e){const{t}=me.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const h={};ll.forEach(g=>{h[g.id]=cl([...g.keys])}),r(h),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const p=l.useCallback(async h=>{i(h);try{h==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):h==="pairIndex"?Ai():h==="imageCache"&&hi(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:p}}function Xp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Za();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Rr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Jp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const p=l.useRef(null);l.useEffect(()=>{if(m.current)return;const v=p.current;v!==null&&v.length===t.length&&v.every((C,w)=>C===t[w])||(p.current=t,r(t))},[t]);const h=l.useCallback(v=>{i(v),c(!1),u({...v})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((v,C)=>{r(v),i(C),c(!1)},[]),x=l.useCallback(v=>{r(C=>C.filter(w=>w!==v)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:h,startEditing:g,cancelEditing:f,commitEdit:b,remove:x}}const yo=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},tw={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Jp(tw,e),{year:p,month:h,day:g}=yo(),[f,b]=l.useState({year:p,month:h,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:x=>v=>b(C=>({...C,[x]:v})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:x=>{a(_=>[f,..._]);const{year:v,month:C,day:w}=yo();b({year:v,month:C,day:w,hour:"09",minute:"00",memo:""}),x?.()},handleVisitEditSave:()=>{m(x=>x.map(v=>v===r?c:v),c)},addVisit:x=>{a(v=>[x,...v])},removeVisit:x=>{a(v=>v.filter(C=>C!==x))},revertVisitEdit:(x,v)=>{a(C=>C.map(w=>w===v?x:w)),n(C=>C===v?x:C)}}}const eh=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,un=e=>[...e].sort((t,a)=>{const r=eh(t),n=eh(a);return r<n?-1:r>n?1:0}),aw={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function th(e,t=[]){const a=l.useMemo(()=>un(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:p,commitEdit:h,remove:g}=Jp(aw,a),[f,b]=l.useState([]),{year:x,month:v,day:C}=yo(),[w,_]=l.useState({year:x,month:v,day:C,hour:"09",minute:"00",memo:""}),k=M=>B=>_(G=>({...G,[M]:B})),y=M=>{n(ee=>un([...ee,w]));const{year:B,month:G,day:Q}=yo();_({year:B,month:G,day:Q,hour:"09",minute:"00",memo:""}),M?.()},A=()=>{h(M=>un(M.map(B=>B===i?u:B)),u)},T=l.useCallback(M=>{g(M)},[g]),S=l.useCallback(M=>{e({year:M.year,month:M.month,day:M.day,hour:M.hour,minute:M.minute,memo:M.memo}),g(M)},[e,g]),N=l.useCallback(M=>{n(B=>B.filter(G=>G!==M)),b(B=>[M,...B]),s(null)},[n,s]),F=l.useCallback(M=>{n(B=>un([...B,M]))},[n]),R=l.useCallback(M=>{n(B=>B.filter(G=>G!==M))},[n]),E=l.useCallback((M,B)=>{n(G=>G.map(Q=>Q===B?M:Q)),s(G=>G===B?M:G)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:F,removeSchedule:R,revertScheduleEdit:E,scheduleForm:w,setScheduleForm:_,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:p,handleScheduleSave:y,handleScheduleEditSave:A,handleScheduleDelete:T,handleScheduleToVisit:S,handleScheduleNoVisit:N}}const pn=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function ah(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),p=Math.min(c,m),h=l.useMemo(()=>u.slice((p-1)*Number(r),p*Number(r)),[u,p,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:p,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:h}}function dl(e,t,a){const{t:r}=me.useTranslation(),[n,i]=l.useState(()=>{const f=a?.initialPageSize;return f&&pn.some(b=>b.value===f)?f:"25"}),[s,c]=l.useState(1),[d,u]=l.useState(t);d!==t&&(u(t),s!==1&&c(1));const m=l.useMemo(()=>pn.map(f=>({...f,label:r("visits.showN",{n:f.value})})),[r]),p=l.useCallback(f=>{i(f),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(n))),g=Math.min(s,h);return{pageRows:l.useMemo(()=>e.slice((g-1)*Number(n),g*Number(n)),[e,g,n]),pageSizeProps:{options:m,value:n,onChange:p},paginationProps:{page:g,total:h,onChange:c},setPage:c}}function ul(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function oh(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,p]=l.useState("\uC88C"),h=l.useCallback(f=>{const b=f.direction;i(x=>({...x,[b]:f})),c(x=>({...x,[b]:[f,...x[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(x=>({...x,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:p,handleDeviceSubmit:h,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function pl(){const{t:e}=me.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function hl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function ml(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function bl(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function rh(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function nh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function ih(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:p,labelAction:h}=t;return{label:a,...p?{groupLabel:p}:{},...h?{labelAction:h}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function sh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(zy).map(([e,{nucleus:t}])=>[e,t]));const ow={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},rw={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},nw={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:rw,typeMap:ow};function iw(e,t,a=nw){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const sw={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},lw={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},cw={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function lh(e,t){if("place"in t)return sw[t.place](e);const a=lw[t.vowel](e);return t.glide?`${a} \xB7 ${cw[t.glide](e)}`:a}const dw=(e,{defaultValue:t})=>t,ch=(e,t)=>({jamos:e,phonetic:t,tooltip:lh(dw,t)}),Sa=(e,t)=>t.map(a=>ch([a],{place:e})),Ct=(e,t,a)=>ch([...e],a?{vowel:t,glide:a}:{vowel:t}),gl={cho:[Sa("labial",["\u3142","\u3143","\u314D","\u3141"]),Sa("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Sa("alveolar",["\u3145","\u3146"]),Sa("palatal",["\u3148","\u3149","\u314A"]),Sa("velar",["\u3131","\u3132","\u314B"]),Sa("glottal",["\u314E"])],jung:[[Ct("\u3163","frontHigh"),Ct("\u315F","frontHigh","w"),Ct("\u3162","frontHigh","velar")],[Ct("\u3161","backHighUnrounded")],[Ct("\u315C","backHighRounded"),Ct("\u3160","backHighRounded","j")],[Ct("\u3154\u3150","frontMid"),Ct("\u3156\u3152","frontMid","j"),Ct("\u3159\u315A\u315E","frontMid","w")],[Ct("\u3153","backMidUnrounded"),Ct("\u3155","backMidUnrounded","j"),Ct("\u315D","backMidUnrounded","w")],[Ct("\u3157","backMidRounded"),Ct("\u315B","backMidRounded","j")],[Ct("\u314F","low"),Ct("\u3151","low","j"),Ct("\u3158","low","w")]],jong:[Sa("labial",["\u3142","\u3141"]),Sa("alveolar",["\u3137","\u3134","\u3139"]),Sa("velar",["\u3131","\u3147"])]},uw=[...qe],pw=[...ct],hw=gt.filter(e=>e!==""),ma=e=>e===ea?[]:Array.from(e),ea="__NO_CODA__",dh=[1,2,3,4],ta=5,mw=12,uh="SYL_",fl=e=>`${uh}${e}`,bw=e=>Number(e.slice(uh.length));function hn(e){return e>=ta?Array.from({length:mw-ta+1},(t,a)=>ta+a):[e]}const ph={cho:uw,jung:pw,jong:hw},vl=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:n})=>({v:a.join(""),phonetic:r,tooltip:n}))),xl={cho:vl(gl.cho),jung:vl(gl.jung),jong:vl(gl.jong)},hh={};xl.jung.flat().forEach(({v:e})=>{for(const t of ma(e))hh[t]=e});const gw=new Set(xl.cho.flat().map(e=>e.v));function _l(e,t){return e==="cho"?gw.has(t)?t:null:e==="jung"?hh[t]??t:Ur(t)}function Cl(e,t,a){if(e==="jung"){const r=ma(t);return a&&r.includes(a)?a:r[0]??t}return t}function yl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ea?ea:t==="pron"?_l(n,i):Cl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const mn={cho:null,jung:null,jong:null,syllable:null},fw="wt_filter",mh=e=>`wt_filter_${e}`;function bh(e){try{const t=localStorage.getItem(mh(e))??localStorage.getItem(fw);if(t)return JSON.parse(t)}catch{}return null}function vw(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...mn,cho:t.choseong}:mn}function gh(e,t,a){const{t:r,i18n:n}=me.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:bh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,p]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[h,g]=l.useState(()=>vw(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ea,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ea:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(z=>z.cho||z.jung||z.syllable!=null||z.jong?z:f())},[]);const b=l.useMemo(()=>ft(h.cho)||ft(h.jung)||ft(h.jong)?"count":"random",[h.cho,h.jung,h.jong]),x=l.useRef(m==="char"?h.jung:null);l.useEffect(()=>{m==="char"&&(x.current=h.jung)},[m,h.jung]);const[v,C]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[w,_]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,y]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[A,T]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[S,N]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),F=l.useRef(a?.resetKey);l.useEffect(()=>{F.current!==a?.resetKey&&(F.current=a?.resetKey,g(f()),C(!1),_(!1),y([]),T([]),N([]),u(1))},[a?.resetKey]);const R=pl(),[E,M]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[B,G]=l.useState(!1),[Q,ee]=l.useState(null),oe=1,D=Math.max(1,[h.cho,h.jung,h.jong].filter(Boolean).length);l.useEffect(()=>{d<D&&u(D)},[D,d]);const[L,P]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const z=bh(e),X=typeof z?.contrastCount=="number"&&Number.isFinite(z.contrastCount)?z.contrastCount:1;u(Math.min(5,Math.max(1,X))),g(z?.composition??f()),C(z?.excludeNoImage??!0),_(z?.sameStructureOnly??!0),p(z?.phonemeView==="pron"?"pron":"char"),y(Array.isArray(z?.gradeFilter)?z.gradeFilter:[]),T(Array.isArray(z?.posFilter)?z.posFilter:[]),N(Array.isArray(z?.wordTypeFilter)?z.wordTypeFilter:[])}P(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(mh(e),JSON.stringify({contrastCount:d,composition:h,excludeNoImage:v,sameStructureOnly:w,phonemeView:m,gradeFilter:k,posFilter:A,wordTypeFilter:S}))}catch{}},[a?.resetOnMount,e,L,d,h,v,w,m,k,A,S]);const[H,W]=l.useState(0);pr("wordpool:update",()=>W(z=>z+1));const te=l.useRef(n.language);l.useEffect(()=>{te.current!==n.language&&(te.current=n.language,W(z=>z+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let z=!1;return N4({difficulty:b,excludeNoImage:v}).then(X=>{z||(M(X),X.cho.size+X.jung.size+X.jong.size>0&&G(!0))}).catch(()=>{z||M({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{z=!0}},[t.choseong,b,v,H]),l.useEffect(()=>{let z=!1;const X=h,Z=X.cho?ma(X.cho):null,fe=X.jung?ma(X.jung):null,Ne=X.jong===ea,Ie=Ne?null:X.jong?ma(X.jong):null,Me=X.syllable!=null?hn(X.syllable):null,Ee=!!(Z||fe||Ie||Ne||Me);return B4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Ee?{cho:Z,jung:fe,jong:Ie,jongNone:Ne,syllable:Me}:null,excludeNoImage:v,sameStructureOnly:w,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(je=>{z||ee(je)}).catch(()=>{z||ee(null)}),()=>{z=!0}},[t.choseong,t.difficulty,b,d,h,m,v,w,H,k]),l.useEffect(()=>{B&&g(z=>{const X={...z};let Z=!1;return["cho","jung","jong"].forEach(fe=>{const Ne=z[fe];!Ne||Ne===ea||ma(Ne).some(Ie=>E[fe].has(Ie))||(X[fe]=null,Z=!0)}),z.syllable!=null&&t.fixedSyllable==null&&(z.syllable>=ta?[...E.syllable].some(fe=>fe>=ta)||(X.syllable=null,Z=!0):(!E.syllable.has(z.syllable)||z.syllable<oe)&&(X.syllable=null,Z=!0)),Z?X:z})},[E,B,oe,t.fixedSyllable]);const I=l.useMemo(()=>{const z=X=>{const Z=new Set;for(const fe of ph[X])E[X].has(fe)&&Z.add(fe);return Z};return{cho:z("cho"),jung:z("jung"),jong:z("jong")}},[E]),q=l.useMemo(()=>({exact:new Set(dh.filter(z=>E.syllable.has(z))),min:[...E.syllable].some(z=>z>=ta)}),[E]),O=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ie=l.useMemo(()=>({[O.trainOnset]:"cho",[O.trainVowel]:"jung",[O.trainCoda]:"jong"}),[O]),pe=l.useCallback((z,X)=>({title:X,items:z}),[]),ve=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),xe=l.useMemo(()=>{const z=[];if(t.choseong){const X={value:ea,displayLabel:O.codaExclude},Z=t.fixedNoCoda===!0,fe=(Ne,Ie)=>{const Me=Z&&Ne==="jong",Ee={label:Ie,groupLabel:O.phonemeGroup,allOption:!t.requireSyllable,allLabel:O.noLimit,allOptionDisabled:Me};if(m==="pron"){const Ae=xl[Ne].map(Fe=>Fe.map(({v:Xe,phonetic:we})=>{const He=ma(Xe),Te=lh(r,we),Ue=Me||!He.some(et=>E[Ne].has(et));return He.length>1?{value:Xe,labels:He,tooltip:Te,disabled:Ue}:{value:Xe,tooltip:Te,disabled:Ue}}));return Ne==="jong"&&!t.requireCoda&&Ae.unshift([X]),{...Ee,groups:Ae}}const je=ph[Ne].map(Ae=>!Me&&I[Ne].has(Ae)?Ae:{value:Ae,disabled:!0});return{...Ee,items:Ne==="jong"&&!t.requireCoda?[X,...je]:je}};z.push(fe("cho",O.trainOnset)),z.push(fe("jung",O.trainVowel)),z.push(fe("jong",O.trainCoda))}if(z.push({...hl(r,R,{labelInfo:pe([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:O.gradeLabel}),t.partOfSpeech&&z.push(ml(R)),t.wordType&&z.push(bl(R)),t.choseong||t.fixedSyllable!=null){const X=t.fixedSyllable;z.push({label:O.syllableCount,items:[...dh.map(Z=>({value:fl(Z),displayLabel:r("wordPairs.syllableN",{n:Z,defaultValue:"{{n}}\uC74C\uC808"}),disabled:X!=null?Z!==X:!q.exact.has(Z)||Z<oe})),{value:fl(ta),displayLabel:r("wordPairs.syllableNPlus",{n:ta,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:X!=null?ta!==X:!q.min}],allOption:!0,allOptionDisabled:X!=null})}return t.choseong?z.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage,O.sameStructure],labelInfo:pe(ve)}):z.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage],labelInfo:pe([ve[0]])}),z},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,oe,I,E,m,q,O,r,pe,ve,R]),be={...t.difficulty?{[O.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&h.syllable!=null?{[O.syllableCount]:fl(h.syllable)}:{},...t.choseong&&h.cho?{[O.trainOnset]:h.cho}:{},...t.choseong&&h.jung?{[O.trainVowel]:h.jung}:{},...t.choseong&&h.jong?{[O.trainCoda]:h.jong}:{},[O.exclude]:[...v?[O.excludeImage]:[],...w?[O.sameStructure]:[]],[O.gradeLabel]:k.map(z=>r("wordSearch.filter.grade",{n:Number(z),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},$=l.useCallback((z,X)=>{if(X===O.diffPhonemeCount){const Z=Number(z);Z>=1&&u(Z)}else if(X===O.exclude)z===O.excludeImage?C(Z=>!Z):z===O.sameStructure&&_(Z=>!Z);else if(X===O.syllableCount)g(Z=>{if(!z||z===Dt)return{...Z,syllable:null};const fe=bw(z);return{...Z,syllable:Z.syllable===fe?null:fe}});else if(X===O.gradeLabel){if(!z||z===Dt){y([]);return}const Z=z.replace(/\D/g,"");y(fe=>fe.includes(Z)?fe.filter(Ne=>Ne!==Z):[...fe,Z])}else if(X===R.partOfSpeech){if(!z||z===Dt){T([]);return}T(Z=>Z.includes(z)?Z.filter(fe=>fe!==z):[...Z,z])}else if(X===R.wordType){if(!z||z===Dt){N([]);return}N(Z=>Z.includes(z)?Z.filter(fe=>fe!==z):[...Z,z])}else{const Z=ie[X];if(!Z)return;g(fe=>t.requireSyllable?z&&z!==Dt?{...fe,[Z]:z}:fe:!z||z===Dt||fe[Z]===z?{...fe,[Z]:null}:{...fe,[Z]:z})}},[O,ie,R,t.requireSyllable]),U=l.useCallback(z=>!t.partOfSpeech&&!t.wordType?!0:iw(z,{...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},R),[t.partOfSpeech,t.wordType,A,S,R]),re=l.useCallback(z=>{z!==m&&(z!=="direct"&&m!=="direct"&&g(X=>yl(X,z,x.current)),p(z))},[m]),ge=l.useCallback(()=>({composition:h,contrastCount:d,excludeNoImage:v,sameStructureOnly:w,phonemeView:m,gradeFilter:k}),[h,d,v,w,m,k]),ce=l.useCallback(z=>{g(z.composition),u(z.contrastCount),C(z.excludeNoImage),_(z.sameStructureOnly??!0),p(z.phonemeView),y(Array.isArray(z.gradeFilter)?z.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:h,choseong:h.cho,excludeNoImage:v,sameStructureOnly:w,gradeFilter:k,posFilter:A,wordTypeFilter:S,matchesWordAttributes:U,poolVersion:H,filterSections:xe,filterSelected:be,handleFilterSelect:$,phonemeView:m,setPhonemeView:re,phonemeGroupLabel:O.phonemeGroup,wordCount:Q,getFilterSnapshot:ge,restoreFilterSnapshot:ce}}function xw(e){const t=c=>c?ma(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ea,i=n?null:t(e.jong),s=e.syllable!=null?hn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function fh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[p,h]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:x=null}=r??{},v=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&S4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let C=!1;return h(!0),(async()=>{const w=xw({cho:g,jung:f,jong:b,syllable:x}),_=`${g??""}_${f??""}_${b??""}_${x??""}_${v}`,k={};await Promise.all(e.map(async y=>{const A=fo[y.key];try{const T=await Ep(y.key,{difficulty:A.difficulty?t:null,contrastCount:A.difficulty?a:1,composition:A.choseong?w:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});T&&T.length>0?k[y.key]={id:`wt-${y.key}-${t}-${_}-${Date.now()}`,name:y.label,training_type:y.key,category_main_code:"WORD",iconColor:y.color,subTitle:y.subTitle,items:T,itemCount:T.length}:k[y.key]={id:`wt-${y.key}-empty`,name:y.label,training_type:y.key,category_main_code:"WORD",iconColor:y.color,subTitle:y.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[y.key]=null}})),C||(m(k),h(!1))})(),()=>{C=!0}},[t,a,g,f,b,x,n,s,c,i,v]),{perTypeData:u,generating:p}}function _w(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function Cw(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const bn=Kt;function wl(e,t){const a=t?Cw(_w(t)):Math.random;return{LISTEN_IN_NOISE:bn(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:bn(Pa,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:bn(za,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:bn(Ia,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function vh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const yw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function xh(e=!1,t=yw,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||Pa.length>0||za.length>0||Ia.length>0?{today:wl(t,i),yesterday:wl(t,s)}:{today:wl(t,i),yesterday:null}}function _h(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let h=!1,g,f=0;const b=40,x=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let v=!1;try{const _=new URLSearchParams(window.location.search),k=_.get("forceRefresh")||_.get("force");v=k==="1"||k==="true"}catch{}const C=_=>{t.current=_.today,a.current=_.yesterday,n(!0),m(!0),d(k=>k+1),h=!0,x()},w=async()=>{if(h)return;if(!v){const k=xh(!1,void 0,e);if(vh(k.today)){C(k);return}}try{await ys(3e3)}catch{}if(h)return;const _=xh(v,void 0,e);if(vh(_.today)){C(_);return}++f>=b&&(n(!0),m(!1),h=!0,x())};return w(),g=setInterval(w,250),()=>{h=!0,x()}},[e]);const p=l.useCallback(h=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[h]?.length?g[h]:f?.[h]?.length?f[h]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:p}}const wo=[];let gn=!1;function Ch(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function kl(e){return wo.push(e),!gn&&typeof document<"u"&&(document.addEventListener("keydown",Ch),gn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&gn&&typeof document<"u"&&(document.removeEventListener("keydown",Ch),gn=!1)}}function Al(e,t=!0){const a=rl(e);l.useEffect(()=>{if(t)return kl(()=>{a.current?.()})},[t,a])}const fn=(e,t)=>`${e}:${t??1}`,Sl=new Map;function yh(e,t){const[a,r]=l.useState(0),n=e.map(i=>fn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!Sl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&Sl.set(fn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=Sl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function wh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function kh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function vn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((p,h)=>{n(h),a(p),s(g=>g+1)},[]),d=l.useCallback(p=>c(p,"warning"),[c]),u=l.useCallback(p=>c(p,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const hr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},mr=hr.blue,xn=hr.green,br=hr.amber,_n=hr.purple,ww=hr.pink,kw=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:mr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:mr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:mr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:mr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:mr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:xn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:xn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:xn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:xn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:br,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:br,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:br,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:br,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:br,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:_n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:_n,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:_n,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:_n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:ww,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ah(){const{t:e}=me.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(a4(e).map(r=>[r.key,r.label])),a={...t};return kw.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=v=>{const C=v.target;r&&C.closest?.(r)||d.current?.contains(C)||u.current?.contains(C)||i(!1)};document.addEventListener("mousedown",g);const f=v=>{u.current?.contains(v.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const x=v=>{v.key==="Escape"&&i(!1)};return document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",x)}},[n,m,t,a,r]);const p=l.useCallback(()=>i(g=>!g),[]),h=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:p,close:h,style:s,triggerRef:d,menuRef:u}}function Bl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[p,h]=l.useState("idle"),[g,f]=l.useState(null),[b,x]=l.useState([]),[v,C]=l.useState(null),[w,_]=l.useState(0),k=l.useRef(0),y=l.useCallback(D=>{k.current=typeof D=="function"?D(k.current):D,_(k.current)},[]),A=l.useRef(r),T=l.useRef(n);l.useEffect(()=>{A.current=r,T.current=n},[r,n]);const S=l.useRef([]),N=()=>{S.current.forEach(clearTimeout),S.current=[]},F=(D,L)=>{S.current.push(setTimeout(L,D))};l.useEffect(()=>()=>N(),[]);const R=c[u]?.id??null,E=l.useCallback(()=>{N(),h("playing"),x([]),C(null),y(0);let D=0;e.forEach((L,P)=>{F(D,()=>{m(P),f(L.id),A.current?.(L)}),F(D+1e3,()=>{f(null),x(H=>[...H,L.id])}),D+=1300}),F(D,()=>{h("done"),T.current?.({score:0,total:e.length})})},[e,y]),M=l.useCallback((D,L)=>{if(L>=D.length){h("done"),T.current?.({score:k.current,total:D.length});return}m(L),C(null),h("playing"),f(D[L].id),A.current?.(D[L]),F(i,()=>{f(null),h("waiting")})},[i]),B=l.useCallback(()=>{N();const D=Ve(e);d(D),y(0),x([]),M(D,0)},[e,M,y]),G=l.useCallback(()=>{t==="playback"?(d(e),E()):B()},[t,e,E,B]),Q=l.useCallback(()=>{N(),h("idle"),f(null),x([]),C(null),m(0),y(0),d([])},[y]);l.useEffect(()=>{a?G():Q()},[t,e.length,a]);const ee=l.useCallback(D=>{p!=="waiting"||t==="playback"||(C(D),D===c[u]?.id&&y(L=>L+1),t==="exam"?(h("playing"),F(400,()=>M(c,u+1))):(h("feedback"),F(s,()=>M(c,u+1))))},[p,t,c,u,M,s,y]),oe=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:v,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:ee},index:u,total:oe,score:w,phase:p,done:p==="done",start:G,reset:Q}}var Aw=Object.freeze({__proto__:null,CACHE_GROUPS:ll,CORE_VERSION:jr,DocumentTitleSuppressContext:il,EMPTY_COMPOSITION:mn,MediaQueryOverrideContext:dn,NO_CODA:ea,SYLLABLE_MIN:ta,VAP_PAGE_SIZE_OPTIONS:pn,buildGradeSection:hl,buildPartOfSpeechSection:ml,buildPositionSection:ih,buildSelectSection:nh,buildSyllableSection:rh,buildWordTypeSection:bl,charToPronValue:_l,convertComposition:yl,fmtBytes:Kp,lsBytes:cl,meaningKey:fn,pronToCharValue:Cl,syllableToFilter:hn,today:yo,toggleAttributeFilter:sh,useAnchoredMenu:ao,useCacheManagement:Zp,useDailyTrainingSelection:_h,useDelayedHoverAnchor:wh,useDeviceManagement:oh,useDocumentTitle:sl,useEscToClose:Al,useFontScale:cn,useHoverAnchor:ko,useMediaQuery:Qt,usePagedList:kh,usePasswordChange:qp,useRelativeDay:Yp,useSoundCompassExam:Bl,useTablePaging:dl,useTableSort:ul,useToastState:vn,useTrainingTypeLabels:Ah,useVisitAllPanel:ah,useVisitHistory:Qp,useVisitSchedule:th,useWindowEvent:pr,useWordAttributeFilterKeys:pl,useWordDataStats:Xp,useWordMeanings:yh,useWordTrainingDataGeneration:fh,useWordTrainingFilter:gh,valueToJamos:ma}),Sw=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ae(Sw);function Sh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const p=n??i??"main",h=l.useRef(null),[g,f]=l.useState("main"),b=Qt("(max-width: 767px)");l.useLayoutEffect(()=>{const C=h.current;C&&(d!==void 0&&C.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&C.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const C=h.current;if(!C)return;const w=Ns(C);f(w?.actionVariant??"main")},[p]);const x=_e("promo-banner",`promo-banner--${s}`,m),v=ol[p];return o.jsxs("div",{ref:h,className:x,role:"note",children:[o.jsx(v,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(ne,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var Bw='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ae(Bw);function Bh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=me.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[p,h]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||p)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,p]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var Nw=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ae(Nw);function Dw({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=me.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),h=p.indexOf(u.currentTarget);(u.key==="ArrowDown"?p[h+1]:p[h-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(We,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Nh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(Dw,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var jw=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(jw);var Ew=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ae(Ew);function Tw(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Lw(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Mw(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:w,number:_,position:k="top-right",onClick:y,animate:A=!1}=e,T=_!==void 0?"number":w??"check",S=typeof a=="number"?a:32,N=_e("circle-badge",`circle-badge--${T}`,`circle-badge--${k}`,`circle-badge--${S}`,A?"circle-badge--animate":"",y?"circle-badge--clickable":"",r),F=_!==void 0?`${_}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[w??"check"];return o.jsxs("span",{className:N,onClick:y,onKeyDown:y?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":n??F,role:y?"button":void 0,tabIndex:y?0:void 0,children:[_!==void 0&&_,_===void 0&&w==="check"&&o.jsx(Tw,{}),_===void 0&&w==="remove"&&o.jsx(Lw,{}),_===void 0&&w==="minus"&&o.jsx(Mw,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:p,color:h}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,x=_e("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),v=h?.startsWith("--")?`var(${h})`:h,C=u!==void 0||v?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...v?{"--badge-color":v}:{}}:void 0;return o.jsxs("span",{className:x,style:C,children:[m&&o.jsx(We,{icon:m,size:b,className:"badge__icon"}),i??s,p&&o.jsx(We,{icon:p,size:b,className:"badge__icon"})]})}var $w=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ae($w);function gr({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=me.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),x=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:x,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),p=l.useRef(null),h=s.length;l.useEffect(()=>{p.current||(p.current=document.activeElement);let f=0,b=0;const x=()=>{const v=m.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(x))};return f=requestAnimationFrame(x),()=>cancelAnimationFrame(f)},[h]),l.useEffect(()=>()=>{p.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ne,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((x,v)=>o.jsx(ne,{className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-label":`${x.badgeCount}`}):void 0,label:x.label,ariaLabel:x.label,onClick:()=>g(x),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},v))})]},b))})]})}const Rw=52,Dh=10;function Nl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[p,h]=l.useState(0),g=e.length;l.useEffect(()=>{const B=m.current;if(!B||(h(B.clientWidth),typeof ResizeObserver>"u"))return;const G=new ResizeObserver(Q=>h(Q[0].contentRect.width));return G.observe(B),()=>G.disconnect()},[]);const f=p>0?Math.floor((p+Dh)/(Rw+Dh)):g,b=p>0&&f<g,x=b?f:g,v=e.slice(0,x),C=e.slice(x),w=b||i.length>0,_=l.useCallback(B=>({position:"fixed",bottom:window.innerHeight-B.top+8,right:window.innerWidth-B.right,zIndex:1e4}),[]),k=l.useId(),{open:y,toggle:A,close:T,style:S,triggerRef:N,menuRef:F}=ao({computeStyle:_,onScroll:"ignore",onResize:"ignore"}),R=l.useCallback(()=>n?.(c),[n,c]),E=l.useMemo(()=>C.find(B=>B.key===t)??i.find(B=>B.selected||B.key&&B.key===t),[C,t,i]),M=l.useMemo(()=>[{items:[...C.map(B=>({label:B.label,icon:B.icon,selected:B.key===t,closeOnSelect:!0,onClick:()=>{B.key&&a&&a(B.key),T()}})),...i.map(B=>({label:B.label,icon:B.icon,badgeCount:B.badgeCount,selected:B.selected??(!!B.key&&B.key===t),closeOnSelect:!0,onClick:()=>{B.onClick?.(),T()}}))]}],[C,i,t,a,T]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(ne,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:R})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:v.map(B=>o.jsx(ne,{size:52,type:"dot",icon:B.icon,ariaLabel:B.label,selected:B.key===t,disabled:B.state==="disabled",className:"bottom-nav-item",onClick:()=>B.key&&a?.(B.key)},B.key))}),w&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:N,children:[o.jsx(ne,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:A,"aria-expanded":y,"aria-controls":y?k:void 0}),y&&Vt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:S,ref:F,children:o.jsx(gr,{columns:M,onClose:T})}),document.body)]})})]})]})}var Pw=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ae(Pw);function zw(e){const{t}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function jh(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",p=t?.label??r??"",h=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(We,{icon:h,label:typeof p=="string"?p:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",x=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,v=l.useCallback(C=>{if(!b){try{C.currentTarget.blur()}catch{}s?.(m,C.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:x,onClick:v,"aria-label":typeof p=="string"?p:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:p}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Dl(e){const{t}=me.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}=e||{},g=l.useCallback(()=>h?.(p==="malgwi"?"manager":"malgwi"),[h,p]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(jh,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(x,v)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{v?.blur()}catch{}return}n?.(f.key);try{const w=document.querySelector(".content-area");w?w.scrollTop=0:window.scrollTo({top:0})}catch{}try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const C=document.querySelector(".header");if(C&&!(typeof C.matches=="function"&&C.matches(":hover"))){C.classList.add("header--force-collapsed");const w=()=>{C.classList.remove("header--force-collapsed"),C.removeEventListener("mouseenter",w)};C.addEventListener("mouseenter",w)}}})]},f.key??`side-nav__item-${b}`)),h&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&o.jsx(jh,{item:{key:"__mode-switch__",label:p==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:p==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(zw,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var jl='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',El='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Iw='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Ow='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ae(Ow);function Tl({appMode:e}){const{t}=me.useTranslation(),a=e==="manager",r=a?El:jl,n=Iw,i=Qt("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Ll({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}){const{t:g}=me.useTranslation(),f=Qt("(max-width: 767px)"),b=l.useMemo(()=>{const S=[];return s&&S.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&S.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&S.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&S.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&S.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),S},[g,s,c,u,m,d,i]),x=l.useCallback(S=>({position:"fixed",top:S.bottom+8,right:Math.max(8,window.innerWidth-S.right),zIndex:1e4}),[]),v=l.useId(),{open:C,toggle:w,close:_,style:k,triggerRef:y,menuRef:A}=ao({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),T=l.useMemo(()=>[{items:b.map(S=>({label:S.label,icon:S.icon,badgeCount:S.badgeCount,selected:S.selected??(!!S.key&&S.key===e),closeOnSelect:!0,onClick:()=>{S.onClick?.(),_()}}))}],[b,e,_]);return o.jsxs("aside",{className:`header${p==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Tl,{appMode:p}),o.jsxs("div",{className:"header__menu-button",ref:y,children:[o.jsx(ne,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:w,"aria-expanded":C,"aria-controls":C?v:void 0}),C&&Vt.createPortal(o.jsx("div",{id:v,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:A,children:o.jsx(gr,{columns:T,onClose:_})}),document.body)]})]}),o.jsx(Dl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}),f&&o.jsx(Nl,{items:a,activeKey:e??void 0,onChange:t,appMode:p,onAppModeChange:h})]})}const Eh=Ll;var Fw='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ae(Fw);function Th(e){if(!(e==null||e===""))return rr(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function Hw(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function Ww(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function Vw(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Ml(e){return{type:e.type??Hw(e),plan:Ww(e),label:e.label,price:Th(e.price),originalPrice:Th(e.originalPrice),discountLabel:e.discountLabel}}var Gw='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ae(Gw);var Uw='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Yw='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',qw='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Kw='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Zw='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Xw='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Jw=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ae(Jw);var Qw=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ae(Qw);var Lh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ha={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},$l=new WeakMap;function e5(e){if(e)return $l.get(e)}function ba(e,t){e&&(e.style.setProperty(Ha.text,t.text),e.style.setProperty(Ha.sub,t.sub),t.copyrightColor&&e.style.setProperty(Ha.copyright,t.copyrightColor),$l.set(e,t))}function ga(e){e&&(e.style.removeProperty(Ha.text),e.style.removeProperty(Ha.sub),e.style.removeProperty(Ha.copyright),$l.delete(e))}const Rl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Pl(e={}){const t=it(Rl,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Lh}")`}})]})}const Mh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var t5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(t5);var fr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const a5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},o5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function $h(e={}){const t=it(a5,ba,ga),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:o5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Mh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var r5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(r5);const n5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},i5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function s5(e={}){const t=it(n5,ba,ga),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:i5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Mh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Lh}")`}})]})}var l5=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ae(l5);const c5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function d5(e={}){const t=it(c5,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}const u5={Logo_speechear_kr:{"":jl,_white:Uw,_textWhite:Yw,_black:qw},Logo_speechearManager_kr:{"":El,_white:Kw,_textWhite:Zw,_black:Xw}};function p5(e,t){if(e)return u5[e]?.[t??""]??void 0}const h5={speechear:jl,manager:El},m5={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Rh=10;function b5(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function g5(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(d5,{}):n?o.jsx(s5,{}):o.jsx($h,{})}return o.jsx(Pl,{})}function zl({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:p,logoSrc:h,label:g,price:f,originalPrice:b,discountLabel:x,onUse:v,onRefund:C,onDelete:w}){const{t:_}=me.useTranslation(),k=e?Ml(e):void 0,y=r??k?.type??"speechear",A=a??k?.plan??"\uC774\uC6A9\uAD8C",T=g??k?.label,S=f??(t?k?.price:void 0),N=b??(t?k?.originalPrice:void 0),F=x??k?.discountLabel,R=l.useMemo(()=>{if(S)return null;const $=e?.durationDays??Vw(e?.code);if(!$||$<=0)return null;const U=$*86400;let re;if(i!=null)re=i;else if((s==="active"||s==="expired")&&n){const ce=new Date(n).getTime();if(Number.isNaN(ce))return null;const z=new Date;z.setHours(0,0,0,0);const X=new Date(ce);X.setHours(0,0,0,0);const Z=Math.round((X.getTime()-z.getTime())/864e5);re=Math.max(0,Z)*86400}else s==="expired"?re=0:re=U;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(re,U)/U*100)));return s==="pending"&&ge>=100?null:{percent:ge,remainingLabel:b5(re,_)}},[S,s,n,i,e?.durationDays,e?.code,_]),E=l.useRef(null),[M,B]=l.useState({}),[G,Q]=l.useState(null),ee=!!(v||C||w),oe=l.useRef(!1),D=l.useRef(void 0),[L,P]=l.useState(h);l.useLayoutEffect(()=>{P(h)},[h]),l.useLayoutEffect(()=>{const $=E.current;$&&(u!==void 0&&$.style.setProperty("--pass-card-text",u),m!==void 0&&$.style.setProperty("--pass-card-sub",m),p!==void 0&&$.style.setProperty("--pass-card-copyright",p))},[u,m,p]),l.useLayoutEffect(()=>{const $=E.current;if(!$)return;const U=e5($);if(!h){const re=m5[y],ge=s==="expired"?"_black":U?.logoColor??"",ce=p5(re,ge);P(ce)}},[c,h,y,s]);const H=$=>{const U=E.current;if(!U)return null;const{left:re,top:ge,width:ce,height:z}=U.getBoundingClientRect(),X=($.clientX-re)/ce-.5;return{rotateX:-(($.clientY-ge)/z-.5)*Rh,rotateY:X*Rh}},W=($,U)=>{const re=U*-.7,ge=$*.7+10,ce=20+(Math.abs($)+Math.abs(U))*.4;return`${re}px ${ge}px ${ce}px rgba(0, 0, 0, 0.18)`},te=l.useCallback($=>{oe.current=!0,clearTimeout(D.current),D.current=setTimeout(()=>{oe.current=!1},200);const U=H($);U&&B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=l.useCallback($=>{const U=H($);if(!U)return;const re=oe.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:re})},[]),q=l.useCallback(()=>{clearTimeout(D.current),oe.current=!1,B({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(()=>Q(null),[]),ie=l.useMemo(()=>{const $=A.replace("\uC774\uC6A9\uAD8C","").trim(),U=$.match(/^(.*?)(일|년)$/);return U?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:U[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:U[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:$})},[A,_]),pe=l.useMemo(()=>{const $=rr(S);if(!$)return null;const U=$.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return o.jsx("span",{className:"h1",children:$});const[,re,ge,ce]=U;return o.jsxs(o.Fragment,{children:[re&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:re}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),ce.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:ce.trim()})]})},[S]),ve=l.useCallback(()=>{ee&&Q($=>{if($)return null;const U=E.current?.getBoundingClientRect();if(!U)return null;const re=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+re,top:U.top+re,bottom:U.bottom+re}})},[ee]),xe=l.useCallback($=>{ee&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),ve())},[ee,ve]),be=[{items:[...v?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),Q(null)},closeOnSelect:!0}]:[],...C?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{C(),Q(null)},closeOnSelect:!0}]:[],...w?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{w(),Q(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:E,className:`pass-card pass-card--${s}${ee?" pass-card--clickable":""}`,style:M,onMouseEnter:te,onMouseMove:I,onMouseLeave:q,onClick:ve,onKeyDown:ee?xe:void 0,role:ee?"button":void 0,tabIndex:ee?0:void 0,children:[c??g5(y,A,T),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:L??h5[y],className:"pass-card__logo",alt:y==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ie}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:T?_("passCard.labeledPlan",{label:T}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?o.jsxs("div",{className:"pass-card__price-area",children:[F&&o.jsx("span",{className:"pass-card__discount body-3",children:F}),o.jsxs("div",{className:"pass-card__price",children:[N&&o.jsx("span",{className:"pass-card__price-original body-3",children:rr(N)}),pe]})]}):R?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:R.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:R.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),G&&o.jsx(Aa,{anchorRect:G,onClose:O,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:o.jsx(gr,{columns:be,onClose:O,size:"small"})})]})}var f5=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(f5);const v5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function x5(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=it(v5,ba,ga);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var _5=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ae(_5);const C5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function y5(e={}){const t=it(C5,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}function w5(e,t){if(e){if(t==="manager_pro")return o.jsx(y5,{});if(t==="manager_standard")return o.jsx(x5,{});if(t==="manager_lite")return o.jsx($h,{})}}function k5(e){const t=rr(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Ph(e){const{t}=me.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=w=>!!w&&!!c?.includes(w),u=(n.tiers||[]).some(w=>/오픈\s*특가/.test(w.label??"")&&d(w.code)),m=w=>{const _=w.prices?w.prices[s]:w.price;return _?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===_):!1},p=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",h=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=w=>w.prices?w.prices[s]:w.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(w=>{const _=f(w);return _==="\uBB34\uB8CC"||_===h||_==="0\uC6D0"}),x=(n.tiers||[]).length>0&&(n.tiers||[]).every(w=>{const _=f(w);return _==="\uBB38\uC758"||_===g}),v=n.group==="org",C=v?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:p,"--plan-color":p},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:p},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((w,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),w]},_))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((w,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),w]},_))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:x?o.jsx(ne,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(w=>{const _=w.label||a,k=/오픈\s*특가/.test(_),y=k||w.openPromo===!0,A=_.replace(/^오픈\s*특가\s*/,"")||a,T=w.prices?w.prices[s]:w.price,S=w.badge?y?`${r}
832
+ ${w.badge}`:w.badge:void 0;if(k&&d(w.code))return null;if(!w.badge&&!u)return m(w)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${w.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:w.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:k5(T)})})]},w.id);const N=n.tier??(v?n.title:void 0),F=o.jsx(zl,{showPrice:!0,product:{type:C,code:w.code,name:A,label:N,price:T,originalPrice:w.originals?.[s]??void 0,discountLabel:S},bg:w5(v,n.id)}),R=()=>i?.({...w,productId:n.id,productTitle:n.title,preview:F});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},w.id)})})})})]})}function zh({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var A5=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";ae(A5);var Il='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ol={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Ih(){const e=it(Ol,ba,ga);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Il}")`}})})}var S5=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";ae(S5);const Fl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Oh(e={}){const t=it(Fl,ba,ga);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${fr}")`}})]})}var B5=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";ae(B5);function Hl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:_e("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var N5=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";ae(N5);const vr=(e,t,a)=>e+(t-e)*a;function Fh({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:p=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:x,centerDisabled:v=!1,centerAttention:C=!1,shortcutAnchor:w="top-right",shortcutScale:_,scaleShortcut:k=!1}){const y=Math.max(0,Math.min(1,a)),A=t/2,T=110/300,S=.18,N=$=>t*(T+($-1)*S),F=$=>{const U=N($.row??1),re=$.angleDeg*Math.PI/180;return{x:A+U*Math.cos(re),y:A+U*Math.sin(re)}},R=Math.max(...e.map($=>$.row??1),1),E=t*.08,M=t*.1,B=t*.24,G=t-2*E,Q=t-M-B,ee=t-B/2,oe=l.useMemo(()=>[...new Set(e.map($=>$.deg))].sort(($,U)=>$-U),[e]),D=oe.length,L=Math.max(68,D>1?G/(D-1):0),P=l.useMemo(()=>new Map(oe.map(($,U)=>[$,U])),[oe]),H=$=>{const U=P.get($.deg)??0,re=A+(U-(D-1)/2)*L,ge=R>1?Math.min(68,Q/(R-1)):0,ce=ge*(R-1),z=M+(Q-ce)/2,X=R===1?M+Q*.4:z+(R-($.row??1))*ge;return{x:re,y:X}},W=$=>{const U=F($),re=H($);return{x:vr(U.x,re.x,y),y:vr(U.y,re.y,y)}},te={x:A,y:vr(A,ee,y)},I=Math.round(g*1.2),q=Math.round(Math.max(16,Math.min(80,g*.7))),O=[],ie=new Map;for(const $ of e){const U=$.row??1;ie.has(U)||ie.set(U,[]),ie.get(U).push($)}for(const[$,U]of ie.entries()){if(U.length<2)continue;const re=[...U].sort((Ae,Fe)=>Ae.deg-Fe.deg),ge=re.map(Ae=>W(Ae)),ce=re.map(Ae=>Ae.deg),z=ce[ce.length-1]-ce[0],X=z/(ce.length-1),Z=360-z,fe=re.length>=3&&X>0&&Z<=X*1.5,Ne=Math.round(N($)*1e3)/1e3,Ie=(Ae,Fe,Xe,we)=>{const He=(Fe.angleDeg-Ae.angleDeg+540)%360-180;if(He===0)return`L ${we.x} ${we.y}`;if(y===0)return`A ${Ne} ${Ne} 0 0 ${He>0?1:0} ${we.x} ${we.y}`;const Te=(Ae.angleDeg+He/2)*Math.PI/180,Ue={x:A+Ne*Math.cos(Te),y:A+Ne*Math.sin(Te)},et={x:(Xe.x+we.x)/2,y:(Xe.y+we.y)/2},Ke={x:vr(Ue.x,et.x,y),y:vr(Ue.y,et.y,y)},Oe={x:2*Ke.x-et.x,y:2*Ke.y-et.y};return`Q ${Oe.x} ${Oe.y} ${we.x} ${we.y}`},Me=fe?[...re,re[0]]:re,Ee=fe?[...ge,ge[0]]:ge;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ie(Me[Ae-1],Me[Ae],Ee[Ae-1],Ee[Ae]);O.push({key:`arc-${$}`,d:je})}const pe=l.useMemo(()=>new Set(n??[]),[n]),ve=$=>{if(r===$.id)return"active";if(c){if($.id===s)return"correct";if($.id===i&&i!==s)return"wrong"}return pe.has($.id)?"played":"idle"},xe=$=>r===$.id?"loop":c?$.id===s?"loop":null:d&&$.id===i?"once":null,be=($,U)=>{switch($){case"played":case"correct":return o.jsx(ad,{size:U});case"wrong":return o.jsx(pd,{size:U});default:return o.jsx(ud,{size:U})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[y===0&&e.map($=>{const{x:U,y:re}=W($);return o.jsx("line",{x1:te.x,y1:te.y,x2:U,y2:re,stroke:"#dde3ec",strokeWidth:"1"},$.id)}),O.map($=>o.jsx("path",{d:$.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},$.key))]}),C&&!v&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:te.x-I/2,top:te.y-I/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:te.x,top:te.y},"aria-label":x,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:b,children:o.jsx(Yn,{size:q,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:te.x,top:te.y},children:o.jsx(Yn,{size:q,color:"currentColor",strokeWidth:1.5})}),e.map(($,U)=>{const{x:re,y:ge}=W($),ce=ve($),z=xe($),X={..._!==void 0||k?{"--shortcut-badge-scale":String(_??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ce!=="idle"?10:1},Z=g,fe=Math.round(Math.max(10,Math.min(56,Z*.38))),Ne=Math.round(Math.max(7,Math.min(18,Z*.2))),Ie=Math.round(Math.max(10,Math.min(56,Z*.4))),Me=f==="answered"&&(ce==="played"||ce==="correct"||ce==="wrong"),Ee=f===!0||Me,je=!Me;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...X,left:re-Z/2,top:ge-Z/2},children:[z&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ce}`+(z==="once"?" sound-compass__pulse--once":""),style:{width:Z,height:Z,...z==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>h?.($.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ce}`,style:{width:Z,height:Z},"aria-label":$.label,children:[Ee&&be(ce,fe),je&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?Ne:Ie},children:U+1})]}),$.shortcut&&o.jsx(Hl,{keys:$.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},$.id)})]})})}function Hh({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:_e("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var D5=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";ae(D5);function Wh({orientation:e="horizontal",label:t,className:a=""}){const r=_e("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var j5='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';ae(j5);function Wl({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var E5=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";ae(E5);function Vh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(Wl,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var T5=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";ae(T5);const L5={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Gh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const p=_e("alert",`alert--${e}`,s),h=!!t,g=!!(a||r);return o.jsxs("div",{className:p,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(We,{icon:L5[e],size:20,className:"alert__icon"}),h&&o.jsx("span",{className:"alert__title body-2",children:t}),!h&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),h&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var M5=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";ae(M5);const $5={ready:"search",guide:"info",error:"circle-alert"};function R5(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function Uh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??$5[e],c=_e("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?R5(d,r):d;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(We,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Ao({title:e,items:t}){const{t:a}=me.useTranslation(),{anchorRect:r,openAt:n,close:i}=ko();return o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(Fa,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var P5=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";ae(P5);function Yh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=me.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,f=u())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},p=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=u(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(b-1,f):g.key==="Home"?m(0,f):m(f.length-1,f)},h=e.find(g=>g.key===d);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${i}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:p,children:g.label},g.key))}),h&&o.jsx("div",{id:`tabs__panel-${i}-${h.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${h.key}`,tabIndex:0,className:"tabs__panel",children:h.panel},h.key)]})}var z5=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";ae(z5);const I5={xs:12,sm:16,md:20,lg:28,xl:36};function O5(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function qh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=me.useTranslation(),[s,c]=l.useState(!1),d=t?O5(t):"",u=!!e&&!s,m=!u&&!!d,p=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":p,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:p,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(We,{icon:"user-round",size:I5[a],className:"avatar__icon"})]})}var F5=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";ae(F5);function H5(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function Kh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=me.useTranslation(),u=l.useRef(null),[m,p]=l.useState(!1),[h,g]=l.useState([]),f=i??h,b=y=>{if(!y||y.length===0)return;const A=Array.from(y).filter(S=>H5(S,t));if(A.length===0)return;const T=a?A:A.slice(0,1);if(i===void 0){const S=a?[...f,...T]:T;g(S),e?.(S)}else e?.(T)},x=y=>{y.preventDefault(),!r&&p(!0)},v=y=>{y.preventDefault(),p(!1)},C=y=>{y.preventDefault(),p(!1),!r&&b(y.dataTransfer.files)},w=y=>{b(y.target.files),y.target.value=""},_=()=>{r||u.current?.click()},k=y=>{if(s){s(y);return}if(i===void 0){const A=f.filter((T,S)=>S!==y);g(A),e?.(A)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:_e("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:_,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),_())},onDragOver:x,onDragLeave:v,onDrop:C,children:[o.jsx(We,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:y=>{y.stopPropagation(),_()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((y,A)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:y.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:y.name}),onClick:()=>k(A),children:o.jsx(We,{icon:"x",size:14})})]},`${y.name}-${A}`))})]})}var W5=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";ae(W5);function Zh({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(We,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var V5=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer;min-height:24px;min-width:24px}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";ae(V5);const G5={small:14,medium:20,large:28};function Xh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=me.useTranslation(),d=r||!t,[u,m]=l.useState(null),p=u??e,h=G5[n],g=_=>{d||t?.(_)},f=_=>{d||m(_)},b=l.useRef(null),x=_=>{const k=Math.min(a,Math.max(1,_));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(y=>y.dataset.star===String(k))?.focus()},v=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":x((e||0)+1);break;case"ArrowLeft":case"ArrowDown":x((e||1)-1);break;case"Home":x(1);break;case"End":x(a);break;default:return}_.preventDefault()}},C=e>=1&&e<=a?Math.round(e):1,w=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:v,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:w,children:Array.from({length:a},(_,k)=>{const y=k+1,A=Math.max(0,Math.min(1,p-k)),T=A>0&&A<1,S=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--empty"}),A>0&&o.jsx("span",{className:`rating__star-fill${T?" rating__star-fill--half":""}`,children:o.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:S},y):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===y,"aria-label":c("rating.starLabel",{n:y}),"data-star":y,tabIndex:y===C?0:-1,onClick:()=>g(y),onMouseEnter:()=>f(y),children:S},y)})})}var U5=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";ae(U5);const Y5=20,q5=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Jh({value:e,onChange:t,palette:a=q5,size:r=40,className:n=""}){const{t:i}=me.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(We,{icon:"check",size:Y5,className:"color-picker__check"})},s)})})}var K5=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";ae(K5);function Qh({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=_e("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(We,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var Z5=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";ae(Z5);function X5(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function em({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:p}=me.useTranslation(),h=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:x}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=x,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return kl(f)},[e,c,f]),Ss(g,e),!e||typeof document>"u"?null:Vt.createPortal(o.jsx("div",{className:_e("dialog",u),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:_e("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(X5,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var J5=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";ae(J5);function tm({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:_e("board",d),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(m=>o.jsx("th",{scope:"col",className:_e("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,p)=>o.jsx("tr",{className:"board__row",children:e.map(h=>o.jsx("td",{className:_e("board__td",`board__cell--${h.align??"left"}`),children:h.render(m,p)},h.key))},a(m,p)))})]})]})}var Q5=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";ae(Q5);function am({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:_e("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var e3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";ae(e3);function om({groups:e,className:t=""}){return o.jsx("div",{className:_e("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var t3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";ae(t3);function rm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:_e("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var a3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";ae(a3);function nm({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=rl(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var o3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';ae(o3);function im({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:_e("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var r3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";ae(r3);function sm({items:e,className:t=""}){return o.jsx("ul",{className:_e("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Vl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const p=l.useCallback(b=>{t?.(b),s(!1)},[t]),h=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(x=>Math.min(m.length-1,x+1))):b.key==="ArrowUp"?(b.preventDefault(),d(x=>Math.max(-1,x-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&p(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,p]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:h,handleBlur:g,handleKeyDown:f,handleSelect:p}}var n3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";ae(n3);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:p=!1,readOnly:h=!1,error:g,helperText:f,maxLength:b,size:x=48,variant:v="input",fullWidth:C=!1,newline:w=!1,multiline:_=!1,rows:k=3,leftIcon:y,rightIcon:A,clearable:T=!1,list:S,showCount:N=!0,className:F="",onFocus:R,onBlur:E,onKeyDown:M,onEnter:B,inputMode:G,autoComplete:Q,autoFocus:ee,suggestions:oe,openOnFocus:D=!1}=e,{t:L}=me.useTranslation(),P=l.useId();!s&&!c&&Gn(`TextField:unnamed:${P}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const H=`tf-${P}`,W=`tf-helper-${P}`,te=l.useRef(null),I=Vl({value:t??"",onChange:i,suggestions:oe??[],openOnFocus:D}),q=!!oe&&I.open&&I.filtered.length>0,O=l.useCallback(X=>{te.current=X,typeof n=="function"?n(X):n&&(n.current=X)},[n]),ie=t!==void 0,pe=ie&&m==="password",ve=(t??"").length;l.useEffect(()=>{const X=te.current;if(!pe||!X)return;const Z=t??"";X.value!==Z&&(X.value=Z)},[pe,t]),l.useEffect(()=>{if(!w||!te.current)return;const X=te.current;X.style.height="",X.scrollHeight>X.clientHeight&&(X.style.height=`${X.scrollHeight}px`)},[t,w]);const xe=b!=null&&ve>b,be=x===32?16:20,$=_e("text-field",`text-field--s${x}`,v==="display"?"text-field--display":"",C?"text-field--full-width":"",p?"text-field--disabled":"",h?"text-field--readonly":"",g?"text-field--error":"",y?"text-field--has-left-icon":"",A||T?"text-field--has-right-icon":"",F),U={id:H,...pe?{}:ie?{value:t}:{defaultValue:a},ref:O,placeholder:u,name:r,disabled:p,readOnly:h,autoFocus:ee,tabIndex:h?-1:void 0,maxLength:b,list:S,inputMode:G,autoComplete:Q,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":f||g?W:void 0,role:oe?"combobox":void 0,"aria-autocomplete":oe?"list":void 0,"aria-haspopup":oe?"listbox":void 0,"aria-expanded":oe?I.open:void 0,"aria-controls":q?I.listId:void 0,"aria-activedescendant":q&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:X=>i?.(X.target.value),onFocus:(X=>{R?.(X),oe&&I.handleFocus()}),onBlur:(X=>{E?.(X),oe&&I.handleBlur()}),onKeyDown:(X=>{B&&X.key==="Enter"&&!X.nativeEvent.isComposing&&(X.preventDefault(),B()),M?.(X),oe&&I.handleKeyDown(X)})},re=T&&!p&&!h&&ve>0,ge=()=>w?o.jsx("textarea",{...U,className:"text-field__input text-field__input--auto body-2",rows:1}):_?o.jsx("textarea",{...U,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...U,type:m,className:"text-field__input body-2"}),ce=v==="display"&&!w&&!_&&!!u,z=()=>o.jsxs(o.Fragment,{children:[ge(),ce&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:$,children:[s&&o.jsxs("label",{htmlFor:H,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[y&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(We,{icon:y,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),z(),b!=null&&N&&o.jsxs("span",{className:`text-field__count caption-2${xe?" text-field__count--over":""}`,children:[ve,"/",b]}),re&&o.jsx(ne,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:X=>{X.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),A&&!re&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(We,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),oe&&I.open&&I.filtered.length>0&&o.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((X,Z)=>o.jsx("li",{id:`${I.listId}-option-${Z}`,role:"option","aria-selected":Z===I.activeIdx,className:`text-field__suggestion body-2${Z===I.activeIdx?" is-active":""}`,onMouseDown:fe=>fe.preventDefault(),onClick:()=>{I.handleSelect(X),te.current?.focus()},children:X},`${X}-${Z}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:W,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var i3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";ae(i3);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=me.useTranslation(),p=r??m("dropdown.placeholder","\uC120\uD0DD"),h=l.useId(),g=l.useRef(null),f=l.useCallback(E=>{const M=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...M?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:v,style:C,triggerRef:w,menuRef:_}=ao({computeStyle:f}),[k,y]=l.useState(-1),A=l.useCallback(()=>y(-1),[]),T=e.find(E=>E.value===t);l.useEffect(()=>{if(b){const E=e.findIndex(M=>M.value===t);y(E>=0?E:0),requestAnimationFrame(()=>{const M=_.current;if(!M)return;const B=M.querySelectorAll(".dropdown__option")[E];B&&(M.scrollTop=Math.max(0,B.offsetTop-M.clientHeight/2+B.clientHeight/2))})}},[b,e,t,_]);const S=l.useCallback(()=>{n||v()},[n,v]),N=l.useCallback(E=>{E.disabled||(a?.(E.value),x(!1))},[a,x]),F=l.useCallback(E=>{if(!n){if(!b){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),x(!0));return}if(E.key==="Escape"){E.preventDefault(),x(!1);return}E.key==="ArrowDown"?(E.preventDefault(),y(M=>{let B=M+1;for(;B<e.length&&e[B].disabled;)B++;return B<e.length?B:M})):E.key==="ArrowUp"?(E.preventDefault(),y(M=>{let B=M-1;for(;B>=0&&e[B].disabled;)B--;return B>=0?B:M})):E.key==="Enter"&&k>=0&&(E.preventDefault(),N(e[k]))}},[n,b,e,k,N,x]),R=b?o.jsx("div",{ref:_,id:h,className:"dropdown__menu",role:"listbox",style:C,onMouseLeave:A,children:e.map((E,M)=>o.jsxs("button",{id:`${h}-option-${M}`,type:"button",role:"option","aria-selected":E.value===t,className:_e("dropdown__option body-2",E.value===t?"dropdown__option--active":"",M===k?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:B=>B.preventDefault(),onClick:()=>N(E),onMouseEnter:()=>y(M),disabled:E.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:E.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return o.jsxs("div",{ref:g,className:_e("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:F,children:[o.jsxs("button",{ref:w,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?h:void 0,"aria-activedescendant":b&&k>=0?`${h}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:S,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${T?"":" dropdown__trigger-label--placeholder"}`,children:T?T.label:p}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Vt.createPortal(R,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var s3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";ae(s3);function xr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=me.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:_e("pagination",i),children:[o.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var l3=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";ae(l3);function Va(e){const{t}=me.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=x=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},p=l.useRef(null),h=a.filter(x=>!x.disabled),g=x=>{if(!h.length)return;const v=Math.max(0,h.findIndex(w=>w.key===r)),C=x==="first"?h[0]:x==="last"?h[h.length-1]:h[(v+x+h.length)%h.length];C&&(n(C.key),Array.from(p.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===C.key)?.focus())},f=x=>{switch(x.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}x.preventDefault()},b=h.some(x=>x.key===r)?r:h[0]?.key;return o.jsx("div",{ref:p,onKeyDown:f,className:_e("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(x=>o.jsx(ne,{role:"radio","aria-checked":x.key===r,"data-segkey":x.key,tabIndex:x.key===b?0:-1,label:x.label,count:x.count,disabled:x.disabled,className:x.key===r?"is-selected":"",onClick:()=>{x.disabled||n(x.key)},size:s,shape:c,useBorder:!1,useBG:!1},x.key))})}var c3=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";ae(c3);function Cn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=me.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:_e("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((p,h)=>o.jsx(Va,{size:40,...p},p.ariaLabel??h))]}),m&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(Wa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((p,h)=>o.jsx(Ut,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},h)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(xr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var d3=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";ae(d3);function lm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(lm).join(""):""}function u3(e){let t=e.replace(/\r\n/g,`
833
833
  `).replace(/\r/g,`
834
834
  `);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
835
835
  `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),n=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(n)).join(`
836
836
  `)}const p3=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),h3=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function m3(e,t){let a=e;const r=[],n=/sh|bash/.test(t.toLowerCase()),i=(s,c)=>r.push({type:s,content:c});for(;a.length>0;){const s=a.match(/^\s+/);if(s){i("whitespace",s[0]),a=a.slice(s[0].length);continue}if(!n&&a.startsWith("//")){const f=a.indexOf(`
837
837
  `),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}if(n&&a.startsWith("#")){const f=a.indexOf(`
838
- `),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const m=a.match(h3);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const h=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(h){const f=h[0];i(n&&p3.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const p=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(p){i("operator",p[0]),a=a.slice(p[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function cm({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=me.useTranslation(),[c,d]=l.useState(!1),u=u3(lm(e)),m=l.useRef(null);l.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const h=async()=>{try{if(!await ds(u))return;d(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}catch{}},p=m3(u,t),g=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:_e("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(ne,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:h,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:p.map((f,b)=>o.jsx("span",{className:`code-token ${f.type} ${g}`,children:f.content},b))})})]})}var b3=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";ae(b3);function So(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var g3='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';ae(g3);function Gl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const d=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&d,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}var f3=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;ae(f3);function Ul({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:d}){const u=l.useRef(null),m=l.useId();return l.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:_e("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:m,title:c,children:[o.jsx("input",{ref:u,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>t?.(h.target.checked),disabled:a,"aria-label":!n&&d?d:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var v3=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ae(v3);function dm({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=me.useTranslation(),d=n!==void 0?n:e>0,u=l.useRef(null),[m,h]=l.useState(!1);return l.useEffect(()=>{const p=u.current;if(!p)return;const g=()=>{const b=p.firstElementChild??p,v=Array.from(b.children);if(v.length<2){h(!1);return}const x=v[0].offsetTop;h(v.some(y=>y.offsetTop!==x))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(p),()=>f.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${d?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:u,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[o.jsx(ne,{size:40,label:r,onClick:a}),t.map((p,g)=>o.jsx(ne,{size:40,variant:p.variant??"default",icon:p.icon,label:p.label,onClick:p.onClick},g))]})]})}function Yl(e){const t=()=>{if(e){const[h,p]=e.split("-");return{y:+h,m:+p-1}}const m=new Date;return{y:m.getFullYear(),m:m.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const m=t();r(m.y),i(m.m)},[e]);const c=l.useCallback(()=>{n===0?(r(m=>m-1),i(11)):i(m=>m-1)},[n]),d=l.useCallback(()=>{n===11?(r(m=>m+1),i(0)):i(m=>m+1)},[n]),u=l.useCallback((m,h)=>{r(m),i(h)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:d,setViewYM:u}}var x3=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";ae(x3);function um(e,t){return new Date(e,t+1,0).getDate()}function _3(e,t){return new Date(e,t,1).getDay()}function Bo(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function C3(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function y3(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const d=`${s}-${String(c+1).padStart(2,"0")}`;t&&d<t.slice(0,7)||a&&d>a.slice(0,7)||i.push({value:d,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function pm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:d}=me.useTranslation(),u=l.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),m=new Date,{viewY:h,viewM:p,prevMonth:g,nextMonth:f,setViewYM:b}=Yl(e),v=l.useCallback(N=>{const L=window.innerHeight-N.bottom,P=300,H=L<P&&N.top>P;return{position:"fixed",left:N.left,width:N.width,minWidth:260,...H?{bottom:window.innerHeight-N.top+6}:{top:N.bottom+6},zIndex:9999}},[]),{open:x,setOpen:y,toggle:C,style:_,triggerRef:k,menuRef:w}=ao({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!x)return;const N=w.current;return(N?.querySelector(".date-picker__day--selected")??N?.querySelector(".date-picker__day--today")??N?.querySelector(ur)??N)?.focus?.(),()=>{const L=document.activeElement;(!L||L===document.body)&&k.current?.focus?.()}},[x,w,k]);const[A,T]=l.useState(1),S=l.useRef(null),D=l.useRef(null);l.useEffect(()=>{if(!x)return;const N=Bo(m.getFullYear(),m.getMonth(),m.getDate()),L=e&&e.slice(0,7)===`${h}-${String(p+1).padStart(2,"0")}`?+e.slice(8):N.slice(0,7)===`${h}-${String(p+1).padStart(2,"0")}`?+N.slice(8):1;T(L)},[x]),l.useEffect(()=>{if(D.current==null)return;const N=D.current;D.current=null,S.current?.querySelector(`[data-day="${N}"]`)?.focus()}),l.useEffect(()=>{T(N=>Math.min(N,um(h,p)))},[h,p]);const F=l.useCallback(N=>{let L=Bo(N.getFullYear(),N.getMonth(),N.getDate());r&&L<r&&(L=r),n&&L>n&&(L=n);const[P,H,W]=L.split("-").map(Number);(P!==h||H-1!==p)&&b(P,H-1),T(W),D.current=W},[r,n,h,p,b]),R=l.useCallback(N=>{const L=new Date(h,p,A),P=W=>{L.setDate(L.getDate()+W),F(L)},H=W=>{L.setMonth(L.getMonth()+W),F(L)};switch(N.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-L.getDay());break;case"End":P(6-L.getDay());break;case"PageUp":N.shiftKey?H(-12):H(-1);break;case"PageDown":N.shiftKey?H(12):H(1);break;default:return}N.preventDefault()},[h,p,A,F]),E=l.useCallback(N=>{t(Bo(h,p,N)),y(!1)},[h,p,t,y]),$=N=>{const L=Bo(h,p,N);return!!(r&&L<r||n&&L>n)},B=[];for(let N=0;N<_3(h,p);N++)B.push(null);for(let N=1;N<=um(h,p);N++)B.push(N);const G=a===64?20:a===40?16:18,Q=y3(h,r,n),ee=`${h}-${String(p+1).padStart(2,"0")}`,oe=x?Vt.createPortal(o.jsxs("div",{ref:w,className:"date-picker__dropdown",style:_,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(od,{size:16,strokeWidth:2})}),o.jsx(Ut,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:Q,value:ee,onChange:N=>{const[L,P]=N.split("-");b(+L,+P-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(rd,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:S,onKeyDown:R,children:[u.map(N=>o.jsx("div",{className:"date-picker__dow caption-1",children:N},N)),B.map((N,L)=>{if(N===null)return o.jsx("div",{},`e${L}`);const P=Bo(h,p,N),H=P===e,W=P===Bo(m.getFullYear(),m.getMonth(),m.getDate()),te=$(N),I=L%7;return o.jsx("button",{type:"button",disabled:te,"data-day":N,tabIndex:N===A?0:-1,"aria-current":W?"date":void 0,onClick:()=>!te&&E(N),className:_e("date-picker__day caption-1",H&&"date-picker__day--selected",W&&!H&&"date-picker__day--today",te&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:N},N)})]})]}),document.body):null;return o.jsxs("div",{className:_e("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[o.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&C(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?C3(e):s}),o.jsx(hd,{size:G,className:"date-picker__icon",strokeWidth:1.5})]}),oe]})}var w3=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-bar,.ihabdevteam-core-scope .manager-bar-chart-stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";ae(w3);var k3=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";ae(k3);function yn({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function _r({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function wn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function oo(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function A3(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<oo(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-oo(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function hm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=new Map;r.set(a,[]);for(const i of e){if(isNaN(i.date.getTime()))continue;const s=`${i.date.getFullYear()}\uB144 ${i.date.getMonth()+1}\uC6D4`;r.has(s)||r.set(s,[]),r.get(s).push(i)}const n={};for(const[i,s]of r){const c=i.match(/^(\d+)년 (\d+)월$/);if(!c)continue;const d=Number(c[1]),u=Number(c[2])-1,m=new Date(d,u+1,0).getDate(),h=d===t.getFullYear()&&u===t.getMonth(),p=t.getDate(),g=s.reduce((C,_)=>Math.max(C,_.parts?.length??0),0),f=new Array(m+1).fill(0),b=new Array(m+1).fill(0),v=Array.from({length:m+1},()=>new Array(g).fill(0));for(const C of s){const _=C.date.getDate();if(f[_]+=C.a,b[_]+=C.b,C.parts)for(let k=0;k<g;k++)v[_][k]+=C.parts[k]??0}const x=[];for(let C=1;C<=m;C++){const _=h&&C>p;x.push({label:String(C),a:_&&f[C]===0&&b[C]===0?-1:f[C],b:b[C],...g?{parts:v[C]}:{}})}const y=[];for(let C=oo(d,u);C<=m;C+=7){const _=Math.min(C+6,m);let k=0,w=0;const A=new Array(g).fill(0);for(let T=C;T<=_;T++){k+=f[T],w+=b[T];for(let S=0;S<g;S++)A[S]+=v[T][S]}y.push({label:`${y.length+1}\uC8FC`,sublabel:`[${C}\uC77C~${_}\uC77C]`,a:k,b:w,...g?{parts:A}:{}})}n[i]={weekly:y,daily:x}}return n}function S3(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const B3=S3(),mm=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ql(e){const{t,i18n:a}=me.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>B3.filter(S=>S.value in e),[e]),s=l.useMemo(()=>{const S=[];for(const D of i){const F=new Date(D.year,D.month,0).getDate(),R=oo(D.year,D.month-1),E=Math.ceil((F-R+1)/7);for(let $=E-1;$>=0;$--)S.push({value:`${D.value}#${$}`,monthKey:D.value,year:D.year,month:D.month,week:$})}return S},[i]),c=l.useCallback(S=>{const D=t("calendar.yearMonth",{year:S.year,month:S.month});return a.language?.startsWith("ko")?`${D} ${mm[S.week]??`${S.week+1}`}\uC8FC`:`${D} Week ${S.week+1}`},[t,a.language]),d=l.useMemo(()=>i.map(S=>({value:S.value,label:t("calendar.yearMonth",{year:S.year,month:S.month})})),[t,i]),u=l.useMemo(()=>s.map(S=>({value:S.value,label:c(S)})),[s,c]),m=l.useMemo(()=>A3(),[]),h=l.useMemo(()=>i.find(S=>S.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),p=l.useMemo(()=>s.find(S=>S.value===m.value)?.value??s[0]?.value??"",[s,m]),[g,f]=l.useState(""),[b,v]=l.useState("");l.useEffect(()=>{i.find(S=>S.value===g)||f(h)},[i,g,h]),l.useEffect(()=>{s.find(S=>S.value===b)||v(p)},[s,b,p]);const x=r==="month"?d:u,y=r==="month"?g:b,C=r==="month"?f:v,_=l.useMemo(()=>{const S=t("calendar.dow",{returnObjects:!0});return Array.isArray(S)?S:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=x.findIndex(S=>S.value===y),w=l.useCallback(()=>{const S=x.findIndex(D=>D.value===y);S<x.length-1&&C(x[S+1].value)},[x,y,C]),A=l.useCallback(()=>{const S=x.findIndex(D=>D.value===y);S>0&&C(x[S-1].value)},[x,y,C]),T=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:y,setRange:C,activeOptions:x,activeIdx:k,handlePrev:w,handleNext:A,periodOptions:T,monthRange:g,weekRange:b,weekRanges:s,DOW:_}}function N3({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:d,seriesColors:u,seriesLabels:m,rateLabels:h}){const p=!a,g=!!(u&&u.length>0),f=l.useMemo(()=>g?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((T,S)=>T+Math.max(0,S),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>p?[A.a]:[A.a,A.b])),[e,p,g]),b=l.useMemo(()=>c??(d?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,d]),v=s,x=g||p?1:2,y={"--bar-width":`${l.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(A*x)+6)))},[e.length,x,i])}px`},C=l.useMemo(()=>{const A=Math.round(b/2);return A!==b?[b,A,0]:[b,0]},[b]),[_,k]=l.useState(null),w=l.useCallback(()=>k(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[C.slice(0,-1).map((A,T)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:T*(v/(C.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},T)),e.map((A,T)=>{const S=A.a===-1,D=S?0:A.a/b*v,F=S?0:A.b/b*v,R=A.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:S?"default":"pointer"},onMouseEnter:S?void 0:E=>{const $=E.currentTarget.getBoundingClientRect(),B=[A.label,A.sublabel].filter(Boolean).join(" ");let G;if(g){const Q=(m??[]).map((oe,N)=>({text:`${oe}: ${R[N]??0}`,color:(u??[])[N]})),ee=Q.filter((oe,N)=>(R[N]??0)>0);G=ee.length?ee:Q}else h&&!p?G=[{text:`${r} ${A.a}%`,color:t},{text:`${n} ${A.b}%`,color:a}]:h&&A.rawB!==void 0?G=[{text:`${h.total} ${A.rawB}`},{text:`${h.done} ${A.rawA??0}`,color:t}]:p?G=[{text:`${r}: ${A.a}`,color:t}]:G=[{text:`${r}: ${A.a}`,color:t},{text:`${n}: ${A.b}`,color:a}];k({rect:{left:$.left,top:$.top,right:$.right,bottom:$.bottom,width:$.width,height:$.height},title:B,items:G})},onMouseLeave:w,children:!S&&(g?o.jsx("div",{className:"manager-bar-chart-stack",style:y,children:(()=>{const E=R.reduce(($,B,G)=>B>0?G:$,-1);return R.map(($,B)=>$>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:$/b*v,background:(u??[])[B],borderRadius:B===E?"6px 6px 0 0":void 0}},B):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{...y,height:D,background:t}}),!p&&o.jsx("div",{className:"manager-bar-chart-bar",style:{...y,height:F,background:a}})]}))},T)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,T)=>{const S=A.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${S?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),A.label]}),A.sublabel&&o.jsx("span",{className:"caption-1",children:A.sublabel})]},T)})})]})})}),_&&o.jsx(Fa,{anchorRect:_.rect,title:_.title,items:_.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Kl({control:e}){const{t}=me.useTranslation(),{activeOptions:a,activeIdx:r,range:n,setRange:i,handlePrev:s,handleNext:c,periodOptions:d,period:u,setPeriod:m}=e,h=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),p=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(ne,{size:32,type:"dot",icon:"chevron-left",ariaLabel:h,showTooltipInfo:h,disabled:r===a.length-1,onClick:s}),o.jsx(Ut,{value:n,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(ne,{size:32,type:"dot",icon:"chevron-right",ariaLabel:p,showTooltipInfo:p,disabled:r<=0,onClick:c}),o.jsx(Va,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:g=>m(g),size:32})]})}function D3(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:d}=t,u=r?.startsWith("ko"),m=new Date,h=m.getFullYear(),p=m.getMonth()+1,g=m.getDate();if(n==="month"){const v=e[i]??{weekly:[],daily:[]},x=i.match(/^(\d+)년 (\d+)월$/),y=x?Number(x[1]):null,C=x?Number(x[2]):null,_=y&&C?oo(y,C-1):1;return v.weekly.map((k,w)=>{const A=w+1;let T=k.label,S=!1,D=!1;if(y&&C){const F=_+w*7,R=new Date(y,C-1,F+6),E=R.getMonth()+1,$=R.getDate(),B=E===C?`${$}`:`${E}/${$}`;T=a("manager.chart.weekRange",{start:F,end:B}),S=h===y&&p===C&&g>=F&&g<=F+6,D=y>h||y===h&&(C>p||C===p&&F>g)}return{...k,label:T,sublabel:u?`${mm[A-1]??A}\uC8FC`:`Week ${A}`,isToday:S,a:D?-1:k.a,b:D?0:k.b}})}const f=c.find(v=>v.value===s);if(!f)return[];const b=new Date(f.year,f.month-1,oo(f.year,f.month-1)+f.week*7);return Array.from({length:7},(v,x)=>{const y=new Date(b);y.setDate(b.getDate()+x);const C=y.getMonth()+1,_=y.getDate(),k=y.getFullYear(),w=(e[`${k}\uB144 ${C}\uC6D4`]?.daily??[])[_-1],A=C===f.month&&k===f.year,T=w?.a===-1||y>new Date(h,m.getMonth(),g);return{label:A?`${_}`:`${C}/${_}`,sublabel:d[y.getDay()]??"",a:T?-1:w&&w.a>0?w.a:0,b:T?0:w&&w.b>0?w.b:0,isToday:k===h&&C===p&&_===g,...w?.parts?{parts:T?w.parts.map(()=>0):w.parts}:{}}})}const j3={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function bm({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:n,colorB:i,labelAKey:s,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:m,control:h,hideControls:p=!1,rate:g=!1,tightMax:f=!1,avgMode:b=!1,totalFormat:v,series:x,loading:y=!1,onDetail:C}){const{t:_,i18n:k}=me.useTranslation(),w=j3[e],A=ql(r),T=h??A,S=l.useMemo(()=>D3(r,T,_,k.language),[r,T,_,k.language]),D=l.useMemo(()=>g?S.map($=>({...$,a:$.a===-1?-1:$.b>0?Math.round($.a/$.b*100):0,b:$.a===-1?0:c&&$.parts&&$.parts[1]>0?Math.round($.parts[0]/$.parts[1]*100):0,rawA:$.a===-1?-1:$.a,rawB:$.b})):S,[S,g,c]),F=l.useMemo(()=>{if(g||b){const $=(T.period==="week"?S:r[T.monthRange]?.daily??[]).filter(G=>G.a!==-1);if($.length===0)return 0;const B=g?$.reduce((G,Q)=>G+(Q.b>0?Q.a/Q.b*100:0),0):$.reduce((G,Q)=>G+(Q.a>0?Q.a:0),0);return Math.round(B/$.length)}return D.reduce(($,B)=>$+(B.a>0?B.a:0)+(c&&B.b>0?B.b:0),0)},[D,S,g,b,c,T.period,T.monthRange,r]),R=x&&x.length>0?x.map($=>({color:$.color,label:$.label})):[{color:n,label:_(s)},...c?[{color:i,label:_(c)}]:[]],E=e==="small";return o.jsx(wn,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:_(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:o.jsxs(o.Fragment,{children:[!p&&o.jsx(Kl,{control:T}),C&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(ne,{size:32,type:"dot",icon:"list",ariaLabel:_("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:C})})]}),subRow:o.jsxs(o.Fragment,{children:[d?g||b||m&&v?o.jsx(_r,{label:E?void 0:`${_(T.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${_(m??s)}`,children:v?(v(F).match(/(\d+|[^\d]+)/g)??[]).map(($,B)=>/\d/.test($)?o.jsx("span",{className:"barchart-total__num h0",children:$},B):o.jsx("span",{className:"barchart-total__unit h5",children:$},B)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:F}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]})}):o.jsxs(_r,{children:[o.jsx("span",{className:"barchart-total__num h0",children:F}),o.jsx("span",{className:"barchart-total__unit h5",children:_(s)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]}):o.jsx("span",{}),o.jsx(yn,{items:R,className:"caption-1"})]}),children:y?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(So,{size:32})}):o.jsx(N3,{data:D,colorA:n,colorB:c?i:void 0,labelA:_(s),labelB:c?_(c):void 0,barWidth:t??w.barWidth,height:w.height,maxOverride:g?100:void 0,tightMax:f,seriesColors:x?.map($=>$.color),seriesLabels:x?.map($=>$.label),rateLabels:g?{total:_("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:_("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function gm(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),d=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,d-1,1,0,0,0),to:new Date(c,d,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=oo(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var E3=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ae(E3);const fm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function vm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof n=="number"?n:fm[n].diameter,m=i??(typeof n=="number"?12:fm[n].strokeWidth),h=u/2,p=(u-m)/2,g=2*Math.PI*p;if(a&&a.length>0){const x=a.reduce((y,C)=>{const _=y.length>0?y[y.length-1].acc:0,k=Math.max(0,Math.min(C.ratio,1-_));return y.push({color:C.color,rotate:-90+_*360,dash:g*k,acc:_+k}),y},[]);return o.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:h,cy:h,r:p,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),x.map((y,C)=>y.dash>0&&o.jsx("circle",{cx:h,cy:h,r:p,fill:"none",stroke:y.color,strokeWidth:m,strokeDasharray:`${y.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${y.rotate} ${h} ${h})`},C))]})})}const f=(t??0)>0?Math.min((e??0)/t,1):0,b=g*f,v=g-b;return o.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:h,cy:h,r:p,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),f>0&&o.jsx("circle",{cx:h,cy:h,r:p,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${b} ${v}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${h} ${h})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Math.round(f*100)}),!d&&o.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function xm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...d}){const{t:u}=me.useTranslation();if(!e)return o.jsx(vm,{...d});const m=(d.total??0)>0?Math.round(Math.min((d.done??0)/d.total,1)*100):0,h=d.size==="small",p=d.size==="large",g=[c,h?"manager-section--compact":p?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(We,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(wn,{className:g,title:u(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(_r,{label:!h&&n?u(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:m}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(yn,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(So,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(vm,{...d,hideCenter:h||d.hideCenter})})})}var T3=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";ae(T3);function _m({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:d,openAt:u,close:m}=ko(),h=l.useCallback(()=>{i&&c.current&&u(c.current)},[i,u]),p=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?f:void 0,onPointerEnter:h,onPointerLeave:m,onFocus:h,onBlur:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&d&&o.jsx(ha,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(We,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),g&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${p??"neutral"} caption-1`,children:g})]})})]})}var L3='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';ae(L3);function Zl({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:d,length:u,className:m,label:h,formatValue:p,labelPos:g,labelAlign:f="right",showMinMax:b=!1,minLabel:v,maxLabel:x,showBgTick:y=!1,showFillTick:C=!1,tickStep:_,tickShape:k="dot"}){t&&!d&&Gn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const w=Math.min(r,Math.max(a,e)),A=r>a?(w-a)/(r-a):0,T=i==="vertical",S=!t,D=H=>t?.(Number(H.target.value)),F=typeof u=="number"?`${u}px`:u,R={"--slider-ratio":String(A),"--slider-thumb":`${s}px`,...F?T?{height:F}:{width:F}:{}},E=_??n,$=(y||C)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if($>0&&$<=100){const H=k!=="dash",W=ie=>H?`radial-gradient(circle, ${ie} 0.5px, transparent 1px)`:T?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ie} calc(50% - 2px), ${ie} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ie} calc(50% - 2px), ${ie} calc(50% + 2px), transparent calc(50% + 2px))`,te=H?"2px":"4px",I=[],q=[],O=[];for(let ie=0;ie<=$;ie++){const pe=ie*E/(r-a);if(pe>1+1e-6)break;const ve=`${((T?1-pe:pe)*100).toFixed(4)}%`,xe=pe<=A+1e-6;if(xe?!C:!y)continue;const be=xe?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(W(be)),q.push(T?`${te} var(--slider-thumb)`:`var(--slider-thumb) ${te}`),O.push(T?`center ${ve}`:`${ve} center`)}I.push(T?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),q.push("100% 100%"),O.push("0 0"),R.backgroundImage=I.join(", "),R.backgroundSize=q.join(", "),R.backgroundPosition=O.join(", "),R.backgroundRepeat="no-repeat"}const B=o.jsx("input",{type:"range",className:_e("slider",`slider--${i}`,S&&"slider--static",!h&&!b&&m),min:a,max:r,step:n,value:w,disabled:c,readOnly:S,tabIndex:S?-1:void 0,"aria-label":d,"aria-orientation":i,onChange:D,style:R});if(!h&&!b)return B;const G=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),Q=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:x??r}),ee=b?o.jsxs("div",{className:_e("slider-track-group",`slider-track-group--${i}`,!h&&m),children:[T?Q:G,B,T?G:Q]}):B;if(!h)return ee;const oe=g??(T?"bottom":"right"),N=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,L=p?p(w):h==="percent"?N:h==="count"?`${w} / ${r}`:String(w),P=o.jsx("span",{className:"slider-wrap__value body-3b",children:L});return o.jsxs("div",{className:_e("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${oe}`,`slider-wrap--align-${f}`,m),children:[ee,P]})}var M3='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ae(M3);const $3=.86,R3=250,Xl=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function kn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:m=25,className:h,ariaLabel:p}){const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null);l.useEffect(()=>{const C=e??Vo(t),_=g.current;if(!C||!_){_?.style.setProperty("--meter-level","0"),f.current&&(f.current.textContent=Xl(c,d,u,m));return}Wo();const k=new Float32Array(C.fftSize);let w=0,A=0,T=0,S=0,D=null;const F=R=>{const E=di(C,k);w=E>w?E:w*$3;const $=w>1e-5?20*Math.log10(w):-1/0,B=Math.max(c,$),G=B-d,Q=Math.min(1,Math.max(0,(G-u)/(m-u)));if(_.style.setProperty("--meter-level",Q.toFixed(3)),f.current&&(A+=B,T+=1,R-S>=R3)){const ee=A/T;D=D==null?ee:D*.6+ee*.4,f.current.textContent=Xl(D,d,u,m),A=0,T=0,S=R}b.current=requestAnimationFrame(F)};return b.current=requestAnimationFrame(F),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,c,d,u,m]);const v=typeof r=="number"?`${r}px`:r,x=o.jsx("div",{className:"audio-meter__track",style:v?a==="vertical"?{height:v}:{width:v}:{},children:o.jsx("div",{ref:g,className:"audio-meter__fill"})}),y=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:_e("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${y}`,n&&`audio-meter--align-${s}`,h),role:"meter","aria-label":p,children:[x,n&&o.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Xl(c,d,u,m)})]})}const Cm=500;function Jl({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),d=l.useRef(s),u=l.useRef(n);l.useEffect(()=>{d.current=s},[s]),l.useEffect(()=>{u.current=n},[n]);const m=l.useRef(null),h=l.useRef(""),p=l.useRef(r);l.useEffect(()=>{p.current=r});const g=a,f=l.useRef(null),b=l.useRef(0),v=l.useRef(0),x=l.useRef(!1),y=l.useRef(null),C=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(()=>{});w.current=S=>{S<0||(b.current=Date.now(),v.current=S,f.current=setTimeout(()=>{f.current=null,i(!1),y.current=setTimeout(()=>{c(!1);try{p.current()}catch{}},Cm)},S))};const A=l.useCallback(()=>{x.current||!f.current||(x.current=!0,clearTimeout(f.current),f.current=null,v.current=Math.max(0,v.current-(Date.now()-b.current)))},[]),T=l.useCallback(()=>{x.current&&(x.current=!1,w.current(v.current))},[]);return l.useEffect(()=>{if(e!==h.current&&(f.current&&(clearTimeout(f.current),f.current=null),y.current&&(clearTimeout(y.current),y.current=null)),e){if(u.current)return g>0&&!f.current&&(x.current=!1,w.current(g)),h.current=e,()=>{};const S=()=>{const D=m.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(S(),i(!0)):(c(!0),C.current=requestAnimationFrame(()=>{_.current=requestAnimationFrame(()=>{S(),i(!0)})})),g>0&&(x.current=!1,w.current(g))}else i(!1),y.current=setTimeout(()=>c(!1),Cm);return h.current=e,()=>{f.current&&clearTimeout(f.current),y.current&&clearTimeout(y.current),C.current&&cancelAnimationFrame(C.current),_.current&&cancelAnimationFrame(_.current),k.current&&clearTimeout(k.current),f.current=null,y.current=null,C.current=null,_.current=null,k.current=null}},[e,g,t]),{mounted:s,showing:n,popupRef:m,pause:A,resume:T}}var P3=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ae(P3);function ro({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c,pause:d,resume:u}=Jl({message:e,position:t,duration:n,onClose:r});if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",h=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:d,onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:o.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Vt.createPortal(h,document.body):h}var z3='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ae(z3);const I3=24;function ym({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:d="right",ariaLabel:u,className:m}){const h=Number.isFinite(t)&&t>0?t:1,p=Math.max(0,Math.min(Number.isFinite(e)?e:0,h)),g=p/h*100,f=c??(a>=I3?"inside":"bottom"),b=f==="center"?"inside":f,v=b==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),x={};return r&&(x["--progress-bar-fill"]=r),n&&(x["--progress-bar-track"]=n),o.jsxs("div",{className:_e("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${d}`,i&&v&&"progress-bar--label-on-fill",m),style:x,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":p,"aria-valuemin":0,"aria-valuemax":h,"aria-label":u,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(p):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(p):`${p} / ${h}`})]})}var O3=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";ae(O3);const F3="rgba(255, 255, 255, 0.16)";function Ql({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:d}=me.useTranslation(),u=Qt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,h=c??d("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),p={};return a&&(p["--pi-inactive-bg"]=a),r&&(p["--pi-inactive-color"]=r),n&&(a||(p["--pi-inactive-bg"]=F3),r||(p["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:p,role:s?"status":"img","aria-label":h,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<m?" done":f===m?" active":""}`},f))}):u?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:p,role:"list","aria-label":h,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:p,role:"list","aria-label":h,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{role:"listitem","aria-current":f===m?"step":void 0,className:`progress-indicator-dot ${f<m?" done":f===m?" active":""} body-3`,children:f+1},f))})}function H3(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var W3=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{position:relative}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px}.ihabdevteam-core-scope .table-fields__reset{position:absolute;right:2px;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";ae(W3);var V3=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";ae(V3);var G3='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';ae(G3);function U3({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function ec({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,expandedContent:u}){const m=l.useCallback(h=>{n&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(So,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?m:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),u&&o.jsx("div",{className:"table-row-expand",children:u})]})}function Y3({dir:e}){return o.jsx(e==="asc"?bd:md,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function q3({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:_e("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(Y3,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function An({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:d,draggingId:u,gridTemplateColumns:m,resizable:h=!1,resizeMode:p="grow",resizeStorageKey:g,size:f="small",title:b,icon:v,count:x,collapsed:y=!1,onToggleCollapse:C,headerActions:_,empty:k,loading:w,dragOver:A=!1,onDragOver:T,onDragLeave:S,onDrop:D,renderExpandedRow:F,expandedId:R}){const{t:E}=me.useTranslation(),$=48,B=g?`table-cols:${g}`:null,G=l.useRef(null),Q=l.useRef(()=>!1),ee=l.useRef([]),oe=l.useRef(null),[N,L]=l.useState(()=>{if(!B||typeof window>"u")return null;try{const M=JSON.parse(window.localStorage.getItem(B)??"null");return Array.isArray(M)&&M.every(U=>typeof U=="number")?M:null}catch{return null}}),P=l.useRef(N);l.useEffect(()=>{P.current=N},[N]);const H=l.useCallback(M=>{const U=oe.current;U&&L(re=>{if(!re)return re;const ge=[...re];if(U.next!=null&&U.startWNext!=null){const ce=M.clientX-U.startX,z=Math.max($-U.startW,Math.min(U.startWNext-$,ce));ge[U.index]=U.startW+z,ge[U.next]=U.startWNext-z}else ge[U.index]=Math.max($,U.startW+(M.clientX-U.startX));return ge})},[]),W=l.useCallback(()=>{if(oe.current=null,window.removeEventListener("pointermove",H),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="",B&&P.current)try{window.localStorage.setItem(B,JSON.stringify(P.current))}catch{}},[H,B]),te=l.useCallback((M,U)=>{U.preventDefault(),U.stopPropagation();const re=G.current;if(!re)return;const ge=Array.from(re.children).map(z=>z.getBoundingClientRect().width),ce=p==="fit"?e.findIndex((z,X)=>X>M&&z.resizable!==!1):-1;oe.current=ce>=0?{index:M,startX:U.clientX,startW:ge[M],next:ce,startWNext:ge[ce]}:{index:M,startX:U.clientX,startW:ge[M]},L(ge),window.addEventListener("pointermove",H),window.addEventListener("pointerup",W),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[H,W,p,e]),I=l.useCallback(()=>{const M=G.current,U=M?.closest(".table-wrap");if(!M||!U)return;const re=U.style.getPropertyValue("--table-grid-cols");U.style.setProperty("--table-grid-cols",e.map((Me,Ee)=>Q.current(Ee)?ee.current[Ee]:"max-content").join(" "));const ge=Array.from(U.querySelectorAll(".table-row")).filter(Me=>!Me.classList.contains("table-row--loading")&&!Me.classList.contains("table-row--empty")),ce=e.map((Me,Ee)=>{let je=M.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of ge){const Fe=Ae.children[Ee];Fe&&(je=Math.max(je,Fe.getBoundingClientRect().width))}return Math.max($,Math.ceil(je))}),z=window.getComputedStyle(M),X=M.clientWidth-(parseFloat(z.paddingLeft)||0)-(parseFloat(z.paddingRight)||0);re?U.style.setProperty("--table-grid-cols",re):U.style.removeProperty("--table-grid-cols");let Z=ce;const fe=ce.reduce((Me,Ee,je)=>Me+(Q.current(je)?Ee:0),0),Ne=ce.reduce((Me,Ee,je)=>Me+(Q.current(je)?0:Ee),0),Ie=X-fe;if(X>0&&Ne>0&&Ie>0){const Me=Ie/Ne;Z=ce.map((je,Ae)=>Q.current(Ae)?je:Math.max($,Math.round(je*Me)));const Ee=Math.round(Ie-Z.reduce((je,Ae,Fe)=>je+(Q.current(Fe)?0:Ae),0));if(Ee!==0){let je=-1;Z.forEach((Ae,Fe)=>{!Q.current(Fe)&&(je<0||Ae>Z[je])&&(je=Fe)}),je>=0&&(Z[je]=Math.max($,Z[je]+Ee))}}if(L(Z),B)try{window.localStorage.setItem(B,JSON.stringify(Z))}catch{}},[e,p,B]);l.useEffect(()=>()=>{oe.current&&(window.removeEventListener("pointermove",H),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="")},[H,W]);const q=H3(m),O=q.filter(M=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(M));O.length>0&&Gn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${O.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ie=M=>/^\d+(\.\d+)?px$/.test(q[M]??"");Q.current=ie,ee.current=q;const pe=M=>p==="fit"&&!ie(M)?"fr":"px",ve=N&&N.length===e.length&&(p==="fit"||a.length>0)?e.map((M,U)=>M.resizable===!1&&q[U]?q[U]:`${N[U]}${pe(U)}`).join(" "):m,xe=ve?{"--table-grid-cols":ve}:void 0,be=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${f}${h?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:xe,onDragOver:T,onDragLeave:S,onDrop:D,children:o.jsxs("div",{className:"table body-2",children:[be&&o.jsxs("div",{className:"table-header",onClick:C,role:C?"button":void 0,tabIndex:C?0:void 0,"aria-expanded":C?!y:void 0,onKeyDown:C?M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),C())}:void 0,children:[C&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),v&&o.jsx(We,{icon:v,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),x!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:x}),_&&o.jsx("span",{className:"table-header__actions",onClick:M=>M.stopPropagation(),children:_})]}),!y&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map((M,U)=>o.jsx("div",{className:_e("table-field body-3",M.className),style:{gridColumn:`span ${M.span}`},children:M.label},U))}),o.jsxs("div",{className:_e("table-fields-strip",h&&"table-fields-strip--resizable"),children:[o.jsx("div",{className:"table-fields",ref:G,children:e.map((M,U)=>o.jsx(q3,{onClick:M.onClick,className:M.className,sortDir:M.sortDir,onResizeStart:h&&U<e.length-1&&M.resizable!==!1&&(p!=="fit"||e.some((re,ge)=>ge>U&&re.resizable!==!1))?re=>te(U,re):void 0,children:M.label},U))}),h&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),o.jsx("div",{className:"table-body",children:w?o.jsx(ec,{variant:"loading"}):a.length===0&&k?o.jsx(ec,{variant:"empty",children:k}):a.map((M,U)=>{const re=u!=null&&M.id===u,ge=R!=null&&(R instanceof Set?R.has(M.id):M.id===R);return o.jsx(ec,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${re?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n(M):void 0,onMouseEnter:i?ce=>i(M,ce):void 0,onMouseLeave:s?ce=>s(M,ce):void 0,onDragStart:c?ce=>c(M,ce):void 0,onDragEnd:d?ce=>d(M,ce):void 0,expandedContent:ge&&F?F(M):void 0,children:r(M).map((ce,z)=>o.jsx(U3,{className:ce.className,style:ce.style,children:ce.content},z))},String(M.id??U))})})]})]})})}function wm(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var K3=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";ae(K3);function km(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Am({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=me.useTranslation(),c=f=>f==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:u}=ul(),m=l.useMemo(()=>{if(!d)return e;const{key:f,asc:b}=d;return[...e].sort((v,x)=>{const y=f==="worn"?Number(x.worn)-Number(v.worn):km(v,f).localeCompare(km(x,f),"ko");return b?y:-y})},[e,d]),{pageRows:h,pageSizeProps:p,paginationProps:g}=dl(m,d);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(Cn,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:p,pagination:g,actions:i&&o.jsx(ne,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(An,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...u(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},u(s("device.direction.label","\uBC29\uD5A5"),"side"),u(s("device.deviceType","\uC885\uB958"),"device"),u(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),u(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),u(s("device.productName","\uC81C\uD488\uBA85"),"productName"),u(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:h.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(Ul,{checked:f.worn,disabled:!r||!n,ariaLabel:f.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):n?.(f)}})})},{content:o.jsx("span",{children:c(f.side)})},{content:f.device?o.jsx(ht,{size:"small",variant:wm(f.device),fill:"soft",label:f.device}):o.jsx("span",{})},{content:o.jsx("span",{children:f.brand})},{content:o.jsx("span",{children:f.fitType||"-"})},{content:o.jsx("span",{children:f.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(ne,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>t(f),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var Z3=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
838
+ `),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const m=a.match(h3);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const f=p[0];i(n&&p3.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function cm({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=me.useTranslation(),[c,d]=l.useState(!1),u=u3(lm(e)),m=l.useRef(null);l.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await ds(u))return;d(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}catch{}},h=m3(u,t),g=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:_e("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(ne,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:h.map((f,b)=>o.jsx("span",{className:`code-token ${f.type} ${g}`,children:f.content},b))})})]})}var b3=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";ae(b3);function So(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var g3='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';ae(g3);function Gl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const d=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&d,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}var f3=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;ae(f3);function Ul({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:d}){const u=l.useRef(null),m=l.useId();return l.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:_e("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:m,title:c,children:[o.jsx("input",{ref:u,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:p=>t?.(p.target.checked),disabled:a,"aria-label":!n&&d?d:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var v3=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ae(v3);function dm({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=me.useTranslation(),d=n!==void 0?n:e>0,u=l.useRef(null),[m,p]=l.useState(!1);return l.useEffect(()=>{const h=u.current;if(!h)return;const g=()=>{const b=h.firstElementChild??h,x=Array.from(b.children);if(x.length<2){p(!1);return}const v=x[0].offsetTop;p(x.some(C=>C.offsetTop!==v))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(h),()=>f.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${d?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:u,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[o.jsx(ne,{size:40,label:r,onClick:a}),t.map((h,g)=>o.jsx(ne,{size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},g))]})]})}function Yl(e){const t=()=>{if(e){const[p,h]=e.split("-");return{y:+p,m:+h-1}}const m=new Date;return{y:m.getFullYear(),m:m.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const m=t();r(m.y),i(m.m)},[e]);const c=l.useCallback(()=>{n===0?(r(m=>m-1),i(11)):i(m=>m-1)},[n]),d=l.useCallback(()=>{n===11?(r(m=>m+1),i(0)):i(m=>m+1)},[n]),u=l.useCallback((m,p)=>{r(m),i(p)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:d,setViewYM:u}}var x3=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";ae(x3);function um(e,t){return new Date(e,t+1,0).getDate()}function _3(e,t){return new Date(e,t,1).getDay()}function Bo(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function C3(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function y3(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const d=`${s}-${String(c+1).padStart(2,"0")}`;t&&d<t.slice(0,7)||a&&d>a.slice(0,7)||i.push({value:d,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function pm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:d}=me.useTranslation(),u=l.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),m=new Date,{viewY:p,viewM:h,prevMonth:g,nextMonth:f,setViewYM:b}=Yl(e),x=l.useCallback(D=>{const L=window.innerHeight-D.bottom,P=300,H=L<P&&D.top>P;return{position:"fixed",left:D.left,width:D.width,minWidth:260,...H?{bottom:window.innerHeight-D.top+6}:{top:D.bottom+6},zIndex:9999}},[]),{open:v,setOpen:C,toggle:w,style:_,triggerRef:k,menuRef:y}=ao({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!v)return;const D=y.current;return(D?.querySelector(".date-picker__day--selected")??D?.querySelector(".date-picker__day--today")??D?.querySelector(ur)??D)?.focus?.(),()=>{const L=document.activeElement;(!L||L===document.body)&&k.current?.focus?.()}},[v,y,k]);const[A,T]=l.useState(1),S=l.useRef(null),N=l.useRef(null);l.useEffect(()=>{if(!v)return;const D=Bo(m.getFullYear(),m.getMonth(),m.getDate()),L=e&&e.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+e.slice(8):D.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+D.slice(8):1;T(L)},[v]),l.useEffect(()=>{if(N.current==null)return;const D=N.current;N.current=null,S.current?.querySelector(`[data-day="${D}"]`)?.focus()}),l.useEffect(()=>{T(D=>Math.min(D,um(p,h)))},[p,h]);const F=l.useCallback(D=>{let L=Bo(D.getFullYear(),D.getMonth(),D.getDate());r&&L<r&&(L=r),n&&L>n&&(L=n);const[P,H,W]=L.split("-").map(Number);(P!==p||H-1!==h)&&b(P,H-1),T(W),N.current=W},[r,n,p,h,b]),R=l.useCallback(D=>{const L=new Date(p,h,A),P=W=>{L.setDate(L.getDate()+W),F(L)},H=W=>{L.setMonth(L.getMonth()+W),F(L)};switch(D.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-L.getDay());break;case"End":P(6-L.getDay());break;case"PageUp":D.shiftKey?H(-12):H(-1);break;case"PageDown":D.shiftKey?H(12):H(1);break;default:return}D.preventDefault()},[p,h,A,F]),E=l.useCallback(D=>{t(Bo(p,h,D)),C(!1)},[p,h,t,C]),M=D=>{const L=Bo(p,h,D);return!!(r&&L<r||n&&L>n)},B=[];for(let D=0;D<_3(p,h);D++)B.push(null);for(let D=1;D<=um(p,h);D++)B.push(D);const G=a===64?20:a===40?16:18,Q=y3(p,r,n),ee=`${p}-${String(h+1).padStart(2,"0")}`,oe=v?Vt.createPortal(o.jsxs("div",{ref:y,className:"date-picker__dropdown",style:_,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(od,{size:16,strokeWidth:2})}),o.jsx(Ut,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:Q,value:ee,onChange:D=>{const[L,P]=D.split("-");b(+L,+P-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(rd,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:S,onKeyDown:R,children:[u.map(D=>o.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),B.map((D,L)=>{if(D===null)return o.jsx("div",{},`e${L}`);const P=Bo(p,h,D),H=P===e,W=P===Bo(m.getFullYear(),m.getMonth(),m.getDate()),te=M(D),I=L%7;return o.jsx("button",{type:"button",disabled:te,"data-day":D,tabIndex:D===A?0:-1,"aria-current":W?"date":void 0,onClick:()=>!te&&E(D),className:_e("date-picker__day caption-1",H&&"date-picker__day--selected",W&&!H&&"date-picker__day--today",te&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return o.jsxs("div",{className:_e("date-picker",`date-picker--s${a}`,v&&"date-picker--open",c),children:[o.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&w(),disabled:i,"aria-haspopup":"true","aria-expanded":v,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?C3(e):s}),o.jsx(hd,{size:G,className:"date-picker__icon",strokeWidth:1.5})]}),oe]})}var w3=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-bar,.ihabdevteam-core-scope .manager-bar-chart-stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";ae(w3);var k3=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";ae(k3);function yn({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function _r({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function wn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function oo(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function A3(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<oo(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-oo(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function hm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,n=new Map;n.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());n.has(u)||n.set(u,[]),n.get(u).push(d)}const i=new Map;for(const[d,u]of n){const m=d.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),h=Number(m[2])-1,g=new Date(p,h+1,0).getDate(),f=u.reduce((C,w)=>Math.max(C,w.parts?.length??0),0),b=new Array(g+1).fill(0),x=new Array(g+1).fill(0),v=Array.from({length:g+1},()=>new Array(f).fill(0));for(const C of u){const w=C.date.getDate();if(b[w]+=C.a,x[w]+=C.b,C.parts)for(let _=0;_<f;_++)v[w][_]+=C.parts[_]??0}i.set(d,{year:p,month:h,daysInMonth:g,partsLen:f,dayA:b,dayB:x,dayParts:v})}const s=(d,u,m)=>new Date(d,u,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[d,u]of i){const{year:m,month:p,daysInMonth:h,dayA:g,dayB:f,dayParts:b}=u,x=m===t.getFullYear()&&p===t.getMonth(),v=t.getDate(),C=i.get(r(p===11?m+1:m,(p+1)%12)),w=u.partsLen,_=[];for(let y=1;y<=h;y++){const A=x&&y>v;_.push({label:String(y),a:A&&g[y]===0&&f[y]===0?-1:g[y],b:f[y],...w?{parts:b[y]}:{}})}const k=[];for(let y=oo(m,p);y<=h;y+=7){const A=Math.max(0,y+6-h),T=A&&C?Math.max(w,C.partsLen):w;let S=0,N=0;const F=new Array(T).fill(0);for(let E=y;E<=Math.min(y+6,h);E++){S+=g[E],N+=f[E];for(let M=0;M<w;M++)F[M]+=b[E][M]}if(A&&C)for(let E=1;E<=A&&!s(C.year,C.month,E);E++){S+=C.dayA[E],N+=C.dayB[E];for(let M=0;M<C.partsLen;M++)F[M]+=C.dayParts[E][M]}const R=A?`${(p+1)%12+1}/${A}`:`${y+6}`;k.push({label:`${k.length+1}\uC8FC`,sublabel:`[${y}\uC77C~${R}\uC77C]`,a:S,b:N,...T?{parts:F}:{}})}c[d]={weekly:k,daily:_}}return c}function S3(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const B3=S3(),mm=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ql(e){const{t,i18n:a}=me.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>B3.filter(S=>S.value in e),[e]),s=l.useMemo(()=>{const S=[];for(const N of i){const F=new Date(N.year,N.month,0).getDate(),R=oo(N.year,N.month-1),E=Math.ceil((F-R+1)/7);for(let M=E-1;M>=0;M--)S.push({value:`${N.value}#${M}`,monthKey:N.value,year:N.year,month:N.month,week:M})}return S},[i]),c=l.useCallback(S=>{const N=t("calendar.yearMonth",{year:S.year,month:S.month});return a.language?.startsWith("ko")?`${N} ${mm[S.week]??`${S.week+1}`}\uC8FC`:`${N} Week ${S.week+1}`},[t,a.language]),d=l.useMemo(()=>i.map(S=>({value:S.value,label:t("calendar.yearMonth",{year:S.year,month:S.month})})),[t,i]),u=l.useMemo(()=>s.map(S=>({value:S.value,label:c(S)})),[s,c]),m=l.useMemo(()=>A3(),[]),p=l.useMemo(()=>i.find(S=>S.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),h=l.useMemo(()=>s.find(S=>S.value===m.value)?.value??s[0]?.value??"",[s,m]),[g,f]=l.useState(""),[b,x]=l.useState("");l.useEffect(()=>{i.find(S=>S.value===g)||f(p)},[i,g,p]),l.useEffect(()=>{s.find(S=>S.value===b)||x(h)},[s,b,h]);const v=r==="month"?d:u,C=r==="month"?g:b,w=r==="month"?f:x,_=l.useMemo(()=>{const S=t("calendar.dow",{returnObjects:!0});return Array.isArray(S)?S:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=v.findIndex(S=>S.value===C),y=l.useCallback(()=>{const S=v.findIndex(N=>N.value===C);S<v.length-1&&w(v[S+1].value)},[v,C,w]),A=l.useCallback(()=>{const S=v.findIndex(N=>N.value===C);S>0&&w(v[S-1].value)},[v,C,w]),T=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:C,setRange:w,activeOptions:v,activeIdx:k,handlePrev:y,handleNext:A,periodOptions:T,monthRange:g,weekRange:b,weekRanges:s,DOW:_}}function N3({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:d,seriesColors:u,seriesLabels:m,rateLabels:p}){const h=!a,g=!!(u&&u.length>0),f=l.useMemo(()=>g?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((T,S)=>T+Math.max(0,S),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>h?[A.a]:[A.a,A.b])),[e,h,g]),b=l.useMemo(()=>c??(d?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,d]),x=s,v=g||h?1:2,C={"--bar-width":`${l.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(A*v)+6)))},[e.length,v,i])}px`},w=l.useMemo(()=>{const A=Math.round(b/2);return A!==b?[b,A,0]:[b,0]},[b]),[_,k]=l.useState(null),y=l.useCallback(()=>k(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[w.slice(0,-1).map((A,T)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:T*(x/(w.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},T)),e.map((A,T)=>{const S=A.a===-1,N=S?0:A.a/b*x,F=S?0:A.b/b*x,R=A.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:S?"default":"pointer"},onMouseEnter:S?void 0:E=>{const M=E.currentTarget.getBoundingClientRect(),B=[A.label,A.sublabel].filter(Boolean).join(" ");let G;if(g){const Q=(m??[]).map((oe,D)=>({text:`${oe}: ${R[D]??0}`,color:(u??[])[D]})),ee=Q.filter((oe,D)=>(R[D]??0)>0);G=ee.length?ee:Q}else p&&!h?G=[{text:`${r} ${A.a}%`,color:t},{text:`${n} ${A.b}%`,color:a}]:p&&A.rawB!==void 0?G=[{text:`${p.total} ${A.rawB}`},{text:`${p.done} ${A.rawA??0}`,color:t}]:h?G=[{text:`${r}: ${A.a}`,color:t}]:G=[{text:`${r}: ${A.a}`,color:t},{text:`${n}: ${A.b}`,color:a}];k({rect:{left:M.left,top:M.top,right:M.right,bottom:M.bottom,width:M.width,height:M.height},title:B,items:G})},onMouseLeave:y,children:!S&&(g?o.jsx("div",{className:"manager-bar-chart-stack",style:C,children:(()=>{const E=R.reduce((M,B,G)=>B>0?G:M,-1);return R.map((M,B)=>M>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:M/b*x,background:(u??[])[B],borderRadius:B===E?"6px 6px 0 0":void 0}},B):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:N,background:t}}),!h&&o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:F,background:a}})]}))},T)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,T)=>{const S=A.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${S?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),A.label]}),A.sublabel&&o.jsx("span",{className:"caption-1",children:A.sublabel})]},T)})})]})})}),_&&o.jsx(Fa,{anchorRect:_.rect,title:_.title,items:_.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Kl({control:e}){const{t}=me.useTranslation(),{activeOptions:a,activeIdx:r,range:n,setRange:i,handlePrev:s,handleNext:c,periodOptions:d,period:u,setPeriod:m}=e,p=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(ne,{size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:s}),o.jsx(Ut,{value:n,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(ne,{size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),o.jsx(Va,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:g=>m(g),size:32})]})}function D3(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:d}=t,u=r?.startsWith("ko"),m=new Date,p=m.getFullYear(),h=m.getMonth()+1,g=m.getDate();if(n==="month"){const x=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),C=v?Number(v[1]):null,w=v?Number(v[2]):null,_=C&&w?oo(C,w-1):1;return x.weekly.map((k,y)=>{const A=y+1;let T=k.label,S=!1,N=!1;if(C&&w){const F=_+y*7,R=new Date(C,w-1,F+6),E=R.getMonth()+1,M=R.getDate(),B=E===w?`${M}`:`${E}/${M}`;T=a("manager.chart.weekRange",{start:F,end:B});const G=new Date(p,h-1,g).getTime();S=G>=new Date(C,w-1,F).getTime()&&G<=R.getTime(),N=C>p||C===p&&(w>h||w===h&&F>g)}return{...k,label:T,sublabel:u?`${mm[A-1]??A}\uC8FC`:`Week ${A}`,isToday:S,a:N?-1:k.a,b:N?0:k.b}})}const f=c.find(x=>x.value===s);if(!f)return[];const b=new Date(f.year,f.month-1,oo(f.year,f.month-1)+f.week*7);return Array.from({length:7},(x,v)=>{const C=new Date(b);C.setDate(b.getDate()+v);const w=C.getMonth()+1,_=C.getDate(),k=C.getFullYear(),y=(e[`${k}\uB144 ${w}\uC6D4`]?.daily??[])[_-1],A=w===f.month&&k===f.year,T=y?.a===-1||C>new Date(p,m.getMonth(),g);return{label:A?`${_}`:`${w}/${_}`,sublabel:d[C.getDay()]??"",a:T?-1:y&&y.a>0?y.a:0,b:T?0:y&&y.b>0?y.b:0,isToday:k===p&&w===h&&_===g,...y?.parts?{parts:T?y.parts.map(()=>0):y.parts}:{}}})}const j3={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function bm({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:n,colorB:i,labelAKey:s,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:m,control:p,hideControls:h=!1,rate:g=!1,tightMax:f=!1,avgMode:b=!1,totalFormat:x,series:v,loading:C=!1,onDetail:w}){const{t:_,i18n:k}=me.useTranslation(),y=j3[e],A=ql(r),T=p??A,S=l.useMemo(()=>D3(r,T,_,k.language),[r,T,_,k.language]),N=l.useMemo(()=>g?S.map(M=>({...M,a:M.a===-1?-1:M.b>0?Math.round(M.a/M.b*100):0,b:M.a===-1?0:c&&M.parts&&M.parts[1]>0?Math.round(M.parts[0]/M.parts[1]*100):0,rawA:M.a===-1?-1:M.a,rawB:M.b})):S,[S,g,c]),F=l.useMemo(()=>{if(g||b){const M=(T.period==="week"?S:r[T.monthRange]?.daily??[]).filter(G=>G.a!==-1);if(M.length===0)return 0;const B=g?M.reduce((G,Q)=>G+(Q.b>0?Q.a/Q.b*100:0),0):M.reduce((G,Q)=>G+(Q.a>0?Q.a:0),0);return Math.round(B/M.length)}return N.reduce((M,B)=>M+(B.a>0?B.a:0)+(c&&B.b>0?B.b:0),0)},[N,S,g,b,c,T.period,T.monthRange,r]),R=v&&v.length>0?v.map(M=>({color:M.color,label:M.label})):[{color:n,label:_(s)},...c?[{color:i,label:_(c)}]:[]],E=e==="small";return o.jsx(wn,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:_(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:o.jsxs(o.Fragment,{children:[!h&&o.jsx(Kl,{control:T}),w&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(ne,{size:32,type:"dot",icon:"list",ariaLabel:_("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:w})})]}),subRow:o.jsxs(o.Fragment,{children:[d?g||b||m&&x?o.jsx(_r,{label:E?void 0:`${_(T.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${_(m??s)}`,children:x?(x(F).match(/(\d+|[^\d]+)/g)??[]).map((M,B)=>/\d/.test(M)?o.jsx("span",{className:"barchart-total__num h0",children:M},B):o.jsx("span",{className:"barchart-total__unit h5",children:M},B)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:F}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]})}):o.jsxs(_r,{children:[o.jsx("span",{className:"barchart-total__num h0",children:F}),o.jsx("span",{className:"barchart-total__unit h5",children:_(s)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]}):o.jsx("span",{}),o.jsx(yn,{items:R,className:"caption-1"})]}),children:C?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(So,{size:32})}):o.jsx(N3,{data:N,colorA:n,colorB:c?i:void 0,labelA:_(s),labelB:c?_(c):void 0,barWidth:t??y.barWidth,height:y.height,maxOverride:g?100:void 0,tightMax:f,seriesColors:v?.map(M=>M.color),seriesLabels:v?.map(M=>M.label),rateLabels:g?{total:_("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:_("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function gm(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),d=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,d-1,1,0,0,0),to:new Date(c,d,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=oo(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var E3=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ae(E3);const fm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function vm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof n=="number"?n:fm[n].diameter,m=i??(typeof n=="number"?12:fm[n].strokeWidth),p=u/2,h=(u-m)/2,g=2*Math.PI*h;if(a&&a.length>0){const v=a.reduce((C,w)=>{const _=C.length>0?C[C.length-1].acc:0,k=Math.max(0,Math.min(w.ratio,1-_));return C.push({color:w.color,rotate:-90+_*360,dash:g*k,acc:_+k}),C},[]);return o.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v.map((C,w)=>C.dash>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:C.color,strokeWidth:m,strokeDasharray:`${C.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},w))]})})}const f=(t??0)>0?Math.min((e??0)/t,1):0,b=g*f,x=g-b;return o.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),f>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${b} ${x}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Math.round(f*100)}),!d&&o.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function xm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...d}){const{t:u}=me.useTranslation();if(!e)return o.jsx(vm,{...d});const m=(d.total??0)>0?Math.round(Math.min((d.done??0)/d.total,1)*100):0,p=d.size==="small",h=d.size==="large",g=[c,p?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(We,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(wn,{className:g,title:u(e),titleClassName:p?"h5 chart-section-title--small":void 0,headRight:f||(p?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(_r,{label:!p&&n?u(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:m}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(yn,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(So,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(vm,{...d,hideCenter:p||d.hideCenter})})})}var T3=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";ae(T3);function _m({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:d,openAt:u,close:m}=ko(),p=l.useCallback(()=>{i&&c.current&&u(c.current)},[i,u]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?f:void 0,onPointerEnter:p,onPointerLeave:m,onFocus:p,onBlur:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&d&&o.jsx(ha,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(We,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),g&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:g})]})})]})}var L3='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';ae(L3);function Zl({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:d,length:u,className:m,label:p,formatValue:h,labelPos:g,labelAlign:f="right",showMinMax:b=!1,minLabel:x,maxLabel:v,showBgTick:C=!1,showFillTick:w=!1,tickStep:_,tickShape:k="dot"}){t&&!d&&Gn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const y=Math.min(r,Math.max(a,e)),A=r>a?(y-a)/(r-a):0,T=i==="vertical",S=!t,N=H=>t?.(Number(H.target.value)),F=typeof u=="number"?`${u}px`:u,R={"--slider-ratio":String(A),"--slider-thumb":`${s}px`,...F?T?{height:F}:{width:F}:{}},E=_??n,M=(C||w)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(M>0&&M<=100){const H=k!=="dash",W=ie=>H?`radial-gradient(circle, ${ie} 0.5px, transparent 1px)`:T?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ie} calc(50% - 2px), ${ie} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ie} calc(50% - 2px), ${ie} calc(50% + 2px), transparent calc(50% + 2px))`,te=H?"2px":"4px",I=[],q=[],O=[];for(let ie=0;ie<=M;ie++){const pe=ie*E/(r-a);if(pe>1+1e-6)break;const ve=`${((T?1-pe:pe)*100).toFixed(4)}%`,xe=pe<=A+1e-6;if(xe?!w:!C)continue;const be=xe?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(W(be)),q.push(T?`${te} var(--slider-thumb)`:`var(--slider-thumb) ${te}`),O.push(T?`center ${ve}`:`${ve} center`)}I.push(T?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),q.push("100% 100%"),O.push("0 0"),R.backgroundImage=I.join(", "),R.backgroundSize=q.join(", "),R.backgroundPosition=O.join(", "),R.backgroundRepeat="no-repeat"}const B=o.jsx("input",{type:"range",className:_e("slider",`slider--${i}`,S&&"slider--static",!p&&!b&&m),min:a,max:r,step:n,value:y,disabled:c,readOnly:S,tabIndex:S?-1:void 0,"aria-label":d,"aria-orientation":i,onChange:N,style:R});if(!p&&!b)return B;const G=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:x??a}),Q=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),ee=b?o.jsxs("div",{className:_e("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[T?Q:G,B,T?G:Q]}):B;if(!p)return ee;const oe=g??(T?"bottom":"right"),D=`${Math.round(r>a?(y-a)/(r-a)*100:0)}%`,L=h?h(y):p==="percent"?D:p==="count"?`${y} / ${r}`:String(y),P=o.jsx("span",{className:"slider-wrap__value body-3b",children:L});return o.jsxs("div",{className:_e("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${oe}`,`slider-wrap--align-${f}`,m),children:[ee,P]})}var M3='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ae(M3);const $3=.86,R3=250,Xl=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function kn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:m=25,className:p,ariaLabel:h}){const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null);l.useEffect(()=>{const w=e??Vo(t),_=g.current;if(!w||!_){_?.style.setProperty("--meter-level","0"),f.current&&(f.current.textContent=Xl(c,d,u,m));return}Wo();const k=new Float32Array(w.fftSize);let y=0,A=0,T=0,S=0,N=null;const F=R=>{const E=di(w,k);y=E>y?E:y*$3;const M=y>1e-5?20*Math.log10(y):-1/0,B=Math.max(c,M),G=B-d,Q=Math.min(1,Math.max(0,(G-u)/(m-u)));if(_.style.setProperty("--meter-level",Q.toFixed(3)),f.current&&(A+=B,T+=1,R-S>=R3)){const ee=A/T;N=N==null?ee:N*.6+ee*.4,f.current.textContent=Xl(N,d,u,m),A=0,T=0,S=R}b.current=requestAnimationFrame(F)};return b.current=requestAnimationFrame(F),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,c,d,u,m]);const x=typeof r=="number"?`${r}px`:r,v=o.jsx("div",{className:"audio-meter__track",style:x?a==="vertical"?{height:x}:{width:x}:{},children:o.jsx("div",{ref:g,className:"audio-meter__fill"})}),C=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:_e("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${C}`,n&&`audio-meter--align-${s}`,p),role:"meter","aria-label":h,children:[v,n&&o.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Xl(c,d,u,m)})]})}const Cm=500;function Jl({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),d=l.useRef(s),u=l.useRef(n);l.useEffect(()=>{d.current=s},[s]),l.useEffect(()=>{u.current=n},[n]);const m=l.useRef(null),p=l.useRef(""),h=l.useRef(r);l.useEffect(()=>{h.current=r});const g=a,f=l.useRef(null),b=l.useRef(0),x=l.useRef(0),v=l.useRef(!1),C=l.useRef(null),w=l.useRef(null),_=l.useRef(null),k=l.useRef(null),y=l.useRef(()=>{});y.current=S=>{S<0||(b.current=Date.now(),x.current=S,f.current=setTimeout(()=>{f.current=null,i(!1),C.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Cm)},S))};const A=l.useCallback(()=>{v.current||!f.current||(v.current=!0,clearTimeout(f.current),f.current=null,x.current=Math.max(0,x.current-(Date.now()-b.current)))},[]),T=l.useCallback(()=>{v.current&&(v.current=!1,y.current(x.current))},[]);return l.useEffect(()=>{if(e!==p.current&&(f.current&&(clearTimeout(f.current),f.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(u.current)return g>0&&!f.current&&(v.current=!1,y.current(g)),p.current=e,()=>{};const S=()=>{const N=m.current;if(N)try{N.classList.remove("is-visible"),N.style.transition="none",t==="top"?N.style.transform="translateX(-50%) translateY(-16px)":N.style.transform="translateX(-50%) translateY(16px)",N.style.opacity="0",N.offsetWidth,N.style.transition="",N.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{N.style.opacity="",N.style.transform="",N.style.transition=""}catch{}},60)}catch{}};d.current?(S(),i(!0)):(c(!0),w.current=requestAnimationFrame(()=>{_.current=requestAnimationFrame(()=>{S(),i(!0)})})),g>0&&(v.current=!1,y.current(g))}else i(!1),C.current=setTimeout(()=>c(!1),Cm);return p.current=e,()=>{f.current&&clearTimeout(f.current),C.current&&clearTimeout(C.current),w.current&&cancelAnimationFrame(w.current),_.current&&cancelAnimationFrame(_.current),k.current&&clearTimeout(k.current),f.current=null,C.current=null,w.current=null,_.current=null,k.current=null}},[e,g,t]),{mounted:s,showing:n,popupRef:m,pause:A,resume:T}}var P3=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ae(P3);function ro({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c,pause:d,resume:u}=Jl({message:e,position:t,duration:n,onClose:r});if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",p=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:d,onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:o.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Vt.createPortal(p,document.body):p}var z3='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ae(z3);const I3=24;function ym({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:d="right",ariaLabel:u,className:m}){const p=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),g=h/p*100,f=c??(a>=I3?"inside":"bottom"),b=f==="center"?"inside":f,x=b==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),v={};return r&&(v["--progress-bar-fill"]=r),n&&(v["--progress-bar-track"]=n),o.jsxs("div",{className:_e("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${d}`,i&&x&&"progress-bar--label-on-fill",m),style:v,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":p,"aria-label":u,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(h):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(h):`${h} / ${p}`})]})}var O3=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";ae(O3);const F3="rgba(255, 255, 255, 0.16)";function Ql({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:d}=me.useTranslation(),u=Qt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=c??d("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),n&&(a||(h["--pi-inactive-bg"]=F3),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:h,role:s?"status":"img","aria-label":p,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<m?" done":f===m?" active":""}`},f))}):u?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":p,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":p,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{role:"listitem","aria-current":f===m?"step":void 0,className:`progress-indicator-dot ${f<m?" done":f===m?" active":""} body-3`,children:f+1},f))})}function H3(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var W3=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{position:relative}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px}.ihabdevteam-core-scope .table-fields__reset{position:absolute;right:2px;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";ae(W3);var V3=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";ae(V3);var G3='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';ae(G3);function U3({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function ec({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,expandedContent:u}){const m=l.useCallback(p=>{n&&p.target===p.currentTarget&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(So,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?m:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),u&&o.jsx("div",{className:"table-row-expand",children:u})]})}function Y3({dir:e}){return o.jsx(e==="asc"?bd:md,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function q3({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:_e("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(Y3,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function An({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:d,draggingId:u,gridTemplateColumns:m,resizable:p=!1,resizeMode:h="grow",resizeStorageKey:g,size:f="small",title:b,icon:x,count:v,collapsed:C=!1,onToggleCollapse:w,headerActions:_,empty:k,loading:y,dragOver:A=!1,onDragOver:T,onDragLeave:S,onDrop:N,renderExpandedRow:F,expandedId:R}){const{t:E}=me.useTranslation(),M=48,B=g?`table-cols:${g}`:null,G=l.useRef(null),Q=l.useRef(()=>!1),ee=l.useRef([]),oe=l.useRef(null),[D,L]=l.useState(()=>{if(!B||typeof window>"u")return null;try{const $=JSON.parse(window.localStorage.getItem(B)??"null");return Array.isArray($)&&$.every(U=>typeof U=="number")?$:null}catch{return null}}),P=l.useRef(D);l.useEffect(()=>{P.current=D},[D]);const H=l.useCallback($=>{const U=oe.current;U&&L(re=>{if(!re)return re;const ge=[...re];if(U.next!=null&&U.startWNext!=null){const ce=$.clientX-U.startX,z=Math.max(M-U.startW,Math.min(U.startWNext-M,ce));ge[U.index]=U.startW+z,ge[U.next]=U.startWNext-z}else ge[U.index]=Math.max(M,U.startW+($.clientX-U.startX));return ge})},[]),W=l.useCallback(()=>{if(oe.current=null,window.removeEventListener("pointermove",H),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="",B&&P.current)try{window.localStorage.setItem(B,JSON.stringify(P.current))}catch{}},[H,B]),te=l.useCallback(($,U)=>{U.preventDefault(),U.stopPropagation();const re=G.current;if(!re)return;const ge=Array.from(re.children).map(z=>z.getBoundingClientRect().width),ce=h==="fit"?e.findIndex((z,X)=>X>$&&z.resizable!==!1):-1;oe.current=ce>=0?{index:$,startX:U.clientX,startW:ge[$],next:ce,startWNext:ge[ce]}:{index:$,startX:U.clientX,startW:ge[$]},L(ge),window.addEventListener("pointermove",H),window.addEventListener("pointerup",W),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[H,W,h,e]),I=l.useCallback(()=>{const $=G.current,U=$?.closest(".table-wrap");if(!$||!U)return;const re=U.style.getPropertyValue("--table-grid-cols");U.style.setProperty("--table-grid-cols",e.map((Me,Ee)=>Q.current(Ee)?ee.current[Ee]:"max-content").join(" "));const ge=Array.from(U.querySelectorAll(".table-row")).filter(Me=>!Me.classList.contains("table-row--loading")&&!Me.classList.contains("table-row--empty")),ce=e.map((Me,Ee)=>{let je=$.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of ge){const Fe=Ae.children[Ee];Fe&&(je=Math.max(je,Fe.getBoundingClientRect().width))}return Math.max(M,Math.ceil(je))}),z=window.getComputedStyle($),X=$.clientWidth-(parseFloat(z.paddingLeft)||0)-(parseFloat(z.paddingRight)||0);re?U.style.setProperty("--table-grid-cols",re):U.style.removeProperty("--table-grid-cols");let Z=ce;const fe=ce.reduce((Me,Ee,je)=>Me+(Q.current(je)?Ee:0),0),Ne=ce.reduce((Me,Ee,je)=>Me+(Q.current(je)?0:Ee),0),Ie=X-fe;if(X>0&&Ne>0&&Ie>0){const Me=Ie/Ne;Z=ce.map((je,Ae)=>Q.current(Ae)?je:Math.max(M,Math.round(je*Me)));const Ee=Math.round(Ie-Z.reduce((je,Ae,Fe)=>je+(Q.current(Fe)?0:Ae),0));if(Ee!==0){let je=-1;Z.forEach((Ae,Fe)=>{!Q.current(Fe)&&(je<0||Ae>Z[je])&&(je=Fe)}),je>=0&&(Z[je]=Math.max(M,Z[je]+Ee))}}if(L(Z),B)try{window.localStorage.setItem(B,JSON.stringify(Z))}catch{}},[e,h,B]);l.useEffect(()=>()=>{oe.current&&(window.removeEventListener("pointermove",H),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="")},[H,W]);const q=H3(m),O=q.filter($=>/\b(auto|min-content|max-content)\b|fit-content\(/.test($));O.length>0&&Gn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${O.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ie=$=>/^\d+(\.\d+)?px$/.test(q[$]??"");Q.current=ie,ee.current=q;const pe=$=>h==="fit"&&!ie($)?"fr":"px",ve=D&&D.length===e.length&&(h==="fit"||a.length>0)?e.map(($,U)=>$.resizable===!1&&q[U]?q[U]:`${D[U]}${pe(U)}`).join(" "):m,xe=ve?{"--table-grid-cols":ve}:void 0,be=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${f}${p?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${C?" table-wrap--collapsed":""}`,style:xe,onDragOver:T,onDragLeave:S,onDrop:N,children:o.jsxs("div",{className:"table body-2",children:[be&&o.jsxs("div",{className:"table-header",onClick:w,role:w?"button":void 0,tabIndex:w?0:void 0,"aria-expanded":w?!C:void 0,onKeyDown:w?$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),w())}:void 0,children:[w&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:C?"chevron-right":"chevron-down",ariaLabel:C?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&o.jsx(We,{icon:x,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),v!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:v}),_&&o.jsx("span",{className:"table-header__actions",onClick:$=>$.stopPropagation(),children:_})]}),!C&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map(($,U)=>o.jsx("div",{className:_e("table-field body-3",$.className),style:{gridColumn:`span ${$.span}`},children:$.label},U))}),o.jsxs("div",{className:_e("table-fields-strip",p&&"table-fields-strip--resizable"),children:[o.jsx("div",{className:"table-fields",ref:G,children:e.map(($,U)=>o.jsx(q3,{onClick:$.onClick,className:$.className,sortDir:$.sortDir,onResizeStart:p&&U<e.length-1&&$.resizable!==!1&&(h!=="fit"||e.some((re,ge)=>ge>U&&re.resizable!==!1))?re=>te(U,re):void 0,children:$.label},U))}),p&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),o.jsx("div",{className:"table-body",children:y?o.jsx(ec,{variant:"loading"}):a.length===0&&k?o.jsx(ec,{variant:"empty",children:k}):a.map(($,U)=>{const re=u!=null&&$.id===u,ge=R!=null&&(R instanceof Set?R.has($.id):$.id===R);return o.jsx(ec,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${re?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n($):void 0,onMouseEnter:i?ce=>i($,ce):void 0,onMouseLeave:s?ce=>s($,ce):void 0,onDragStart:c?ce=>c($,ce):void 0,onDragEnd:d?ce=>d($,ce):void 0,expandedContent:ge&&F?F($):void 0,children:r($).map((ce,z)=>o.jsx(U3,{className:ce.className,style:ce.style,children:ce.content},z))},String($.id??U))})})]})]})})}function wm(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var K3=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";ae(K3);function km(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Am({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=me.useTranslation(),c=f=>f==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:u}=ul(),m=l.useMemo(()=>{if(!d)return e;const{key:f,asc:b}=d;return[...e].sort((x,v)=>{const C=f==="worn"?Number(v.worn)-Number(x.worn):km(x,f).localeCompare(km(v,f),"ko");return b?C:-C})},[e,d]),{pageRows:p,pageSizeProps:h,paginationProps:g}=dl(m,d);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(Cn,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:h,pagination:g,actions:i&&o.jsx(ne,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(An,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...u(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},u(s("device.direction.label","\uBC29\uD5A5"),"side"),u(s("device.deviceType","\uC885\uB958"),"device"),u(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),u(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),u(s("device.productName","\uC81C\uD488\uBA85"),"productName"),u(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:p.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(Ul,{checked:f.worn,disabled:!r||!n,ariaLabel:f.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):n?.(f)}})})},{content:o.jsx("span",{children:c(f.side)})},{content:f.device?o.jsx(ht,{size:"small",variant:wm(f.device),fill:"soft",label:f.device}):o.jsx("span",{})},{content:o.jsx("span",{children:f.brand})},{content:o.jsx("span",{children:f.fitType||"-"})},{content:o.jsx("span",{children:f.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(ne,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>t(f),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var Z3=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
839
839
 
840
840
  /* !important \uD544\uC694 \u2014 \uC624\uB298\uC774 \uC77C\uC694\uC77C/\uD1A0\uC694\uC77C\uACFC \uACB9\uCE58\uBA74 \uC544\uB798 nth-child \uC8FC\uB9D0 \uC0C9\uC0C1 \uADDC\uCE59\uACFC
841
841
  \uD2B9\uC774\uB3C4\uAC00 \uB3D9\uC77C(3\uD074\uB798\uC2A4)\uD558\uACE0 \uC18C\uC2A4 \uC21C\uC11C\uC0C1 \uB4A4\uB77C !important \uC5C6\uC774\uB294 \uD770 \uAE00\uC790\uAC00 \uC8FC\uB9D0\uC0C9\uC73C\uB85C
842
- \uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;ae(Z3);function Sm(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function X3(e,t){return new Date(e,t+1,0).getDate()}function J3(e,t){return new Date(e,t,1).getDay()}function Bm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[d,u]=l.useState(new Date().getMonth()),[m,h]=l.useState(null),p=l.useRef(null),g=new Date,f=l.useMemo(()=>{const _={};return e.forEach(k=>{_[k.date]||(_[k.date]=[]),_[k.date].push(k)}),_},[e]),b=l.useMemo(()=>{const _=X3(s,d),k=J3(s,d),w=[];for(let A=0;A<k;A++)w.push(null);for(let A=1;A<=_;A++)w.push(A);for(;w.length<35;)w.push(null);return w},[s,d]),v=l.useCallback(()=>{d===0?(c(_=>_-1),u(11)):u(_=>_-1)},[d]),x=l.useCallback(()=>{d===11?(c(_=>_+1),u(0)):u(_=>_+1)},[d]),y=_=>`${s}-${String(d+1).padStart(2,"0")}-${String(_).padStart(2,"0")}`,C=_=>g.getFullYear()===s&&g.getMonth()===d&&g.getDate()===_;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(We,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:d+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:x,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(We,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(_=>o.jsx("div",{className:"calendar-day-header body-3",children:_},_)),b.map((_,k)=>{if(_===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const w=_,A=y(w),T=f[A]??[],S=m===A;return o.jsxs("div",{className:`calendar-cell${C(w)?" today":""}${S?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(A))}:void 0,onDragOver:a?D=>{D.preventDefault(),h(A)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||h(null)}:void 0,onDrop:a?D=>{D.preventDefault(),p.current!=null&&(a(p.current,A),p.current=null),h(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:w}),o.jsx("div",{className:"calendar-cell__badges",children:T.map((D,F)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?R=>{p.current=D.id,R.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{p.current=null,h(null)}:void 0,onClick:t?R=>{R.stopPropagation(),t(D)}:void 0,...Sm(t?()=>t(D):void 0),"aria-label":[D.time?en(D.time,n):null,D.customer,n(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:en(D.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??F))})]},w)})]})]})}var Q3=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";ae(Q3);const e8={page:"h3",pagePopup:"h4",popup:"h5"};function no({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const d=e8[e],u=t||n;return o.jsxs("div",{className:_e("section",`section--${e}`,s),style:c,children:[u&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(We,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${d}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var t8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";ae(t8);var a8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}";ae(a8);function Nm({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const d=c==="small",u=_e("category-icon",d?"category-icon--small":""),m=d?16:20,h=l.useRef(null),[p,g]=l.useState(!1),f=l.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!n&&!i?w:{...w,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[v,x]=l.useState(null);l.useLayoutEffect(()=>{p&&x(h.current?.getBoundingClientRect()??null)},[p]),l.useEffect(()=>{if(!s&&p)try{g(!1)}catch{}},[s,p]),l.useEffect(()=>{if(!p)return;const w=A=>{const T=h.current;if(!T)return;const S=A.target;S&&!T.contains(S)&&g(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[p]);const y=l.useCallback(()=>{s&&g(!0)},[s]),C=l.useCallback(()=>{s&&g(!1)},[s]),_=l.useCallback(()=>g(!1),[]),k=l.useCallback(w=>{if(w.key==="Escape"){g(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(A=>!A))},[]);return o.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:y,onPointerLeave:C,onFocus:y,onBlur:C,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":p,"data-tooltip-ignore":!0,children:[o.jsx(We,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:m}),p&&b&&o.jsx(ha,{anchorRect:v,text:typeof b=="string"?b:void 0,offset:8,onClose:_,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var o8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";ae(o8);function r8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function n8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),d=l.useRef(null),u=l.useRef(!1),m=l.useRef(null),[h,p]=l.useState(!1),g=l.useRef([]),{previewCodes:f,previewBucket:b}=r8(e,t);l.useEffect(()=>{if(!f.length)return;let x=!1;return(async()=>{const y=[],C=[];for(const _ of f)try{const k=Tr(_,b);if(!k){y.push("");continue}let w=null;try{w=await Oo(k)}catch{}if(!w)try{const A=await Lr(k);A&&(w=URL.createObjectURL(A),C.push(w))}catch{}y.push(w??"")}catch{y.push("")}x?C.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}):(g.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),g.current=C,c(y))})(),()=>{x=!0}},[f.join(","),b]),l.useEffect(()=>()=>{g.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),g.current=[]},[]);const v=l.useCallback(async x=>{if(x.stopPropagation(),x.preventDefault(),u.current){u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){u.current=!0,r(!0);for(let y=0;y<s.length&&u.current;y++){const C=s[y];if(C){i(y);try{await new Promise((_,k)=>{const w=new Audio(C);d.current=w,w.onended=()=>_(),w.onerror=()=>k(),w.play().catch(k)})}catch{break}}}u.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:h,setPreviewHover:p,previewBtnRef:m,handlePreview:v}}const i8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Sn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:d,selectedIds:u,tooltipText:m,useDescriptionTooltip:h=!1,onRemove:p,hideCheckBadge:g=!1,showTypeLabel:f=!1,onComplete:b,onSelect:v,onMore:x,countLabelOverride:y,size:C="square"}=e||{},{t:_}=me.useTranslation(),[k,w]=l.useState(!1),A=l.useRef(null),[T,S]=l.useState(!1);l.useEffect(()=>{A.current?.matches(":hover")&&S(!0)},[]);const{playing:D,playingIndex:F,previewUrls:R,previewHover:E,setPreviewHover:$,previewBtnRef:B,handlePreview:G}=n8(r,a?.key),Q=l.useCallback(()=>{v?v():w(!0)},[v]),ee=l.useCallback(()=>w(!1),[]),oe=l.useCallback(()=>S(!0),[]),N=l.useCallback(()=>S(!1),[]),L=l.useCallback(()=>$(!0),[$]),P=l.useCallback(()=>$(!1),[$]),[H,W]=l.useState(null);l.useLayoutEffect(()=>{E&&W(B.current?.getBoundingClientRect()??null)},[E,B]);const[te,I]=l.useState(null);l.useLayoutEffect(()=>{T&&!k&&h&&I(A.current?.getBoundingClientRect()??null)},[T,k,h]);const q=l.useCallback(we=>{(we.key==="Enter"||we.key===" ")&&(we.preventDefault(),Q())},[Q]),O=r||null,ie=l.useMemo(()=>{if(!h)return null;const we=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,He=we&&we.length>0?we:i8(O);return He&&He.length>0?He:null},[h,m,O]),pe=l.useCallback(we=>{we.stopPropagation(),p?.()},[p]),ve=l.useCallback(we=>we.stopPropagation(),[]),xe=l.useCallback(we=>{typeof b=="function"&&b(we)},[b]),be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),M=!be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);pr("speechear.popup.close",ee);const U=tn(),re=`${a?.label||""} ${t+1}`,ge=O?.title||O?.name||re;let ce=a?.icon,z,X="",Z="";try{const we=O?.category_0||O?.category_main_code||O?.category_main,He=O?.category_1||O?.category_sub_code||O?.category_sub,Te=U.find(Ue=>Ue.key===we);Te?.icon&&(ce=Te.icon),!z&&Te?.color&&(z={"--t-item-fg":Te.color}),!z&&O?.iconColor&&(z={"--t-item-fg":O.iconColor}),X=Te?.label||"";try{Z=Te?.subs?.find(Ue=>Ue.key===He)?.label||""}catch{}}catch{}const fe=Z?`${X} / ${Z}`:X||a?.label||ge,Ne=we=>_("training.countQuestions",{n:we}),Ie=we=>_("training.countSentences",{n:we});let Me="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let we=0;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?we=O.sentences.length:O.sentences&&(we=1),Me=Ie(we)}else if(a?.key==="SHORT_STORY"){let we=1;Array.isArray(r?.items)?we=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?we=r.raw.items.length:Array.isArray(O?.questions)?we=O.questions.length:Array.isArray(O?.sentences)&&(we=O.sentences.length),Me=Ne(we)}else if(a?.key==="LONG_STORY"){let we=1;if(Array.isArray(O.items)&&O.items.length>0){const He=O.items.reduce((Te,Ue)=>{const et=Ue.questionItems;return Array.isArray(et)?Te+et.length:Array.isArray(Ue.questions)?Te+Ue.questions.length:Te},0);we=He>0?He:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?we=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length);Me=Ne(we)}else if(a?.key==="ORDERING_SENTENCE"){let we=1;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length),Me=Ie(we)}else Array.isArray(O.items)&&(Me=O.items.length>0?Ne(O.items.length):"")}catch{}const Ee=C==="list",je=C==="compact",Ae=C==="small",Fe=Ae&&a?.key?ps().find(we=>we.key===a.key)?.label??"":"",Xe=!!f&&!!a?.label&&a.label!==String(ge)||Ae&&!!Fe&&Fe!==String(ge);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:A,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${be?" training-block-button--completed":""}${M?" training-block-button--selected":""}${Xe&&!Ae?" training-block-button--withType":""}${Ae&&!Xe?" training-block-button--no-type-label":""}`,onClick:Q,onPointerEnter:oe,onPointerLeave:N,role:"button",tabIndex:0,onKeyDown:q,"aria-label":typeof n=="string"?n:typeof ge=="string"?ge:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(ge)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&Fe&&Fe!==String(ge)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Fe}),o.jsx(Nm,{icon:ce,label:ge,tooltip:fe,wrapperStyle:z,iconSize:Ae||je?"small":"medium"}),!g&&(be||M)&&!(p&&T)&&o.jsx(ht,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?_("training.completed","\uD6C8\uB828 \uC644\uB8CC"):_("training.selected","\uC120\uD0DD\uB428")}),p&&T&&o.jsx(ht,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":_("common.remove","\uC81C\uAC70"),onClick:pe}),o.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(ge)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const we=y!==void 0?y:Me;return we?o.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:we}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(We,{icon:"chevron-right",label:_("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Ee||Ae)&&R.length>0&&o.jsx("div",{ref:B,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ve,onPointerEnter:L,onPointerLeave:P,children:o.jsx(ne,{size:Ae?28:32,type:"dot",icon:D?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:G})})]}),x&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:we=>{we.stopPropagation(),x(we)},children:o.jsx(ne,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:_("common.more","\uB354\uBCF4\uAE30")})})]}),E&&o.jsx(ha,{anchorRect:H,text:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),T&&!k&&h&&(ie?o.jsx(Fa,{anchorRect:te,items:ie,activeIndex:F,onClose:N}):O?.subTitle?o.jsx(ha,{anchorRect:te,text:O.subTitle,offset:8,onClose:N}):null),k&&s&&s({trainingData:O,typeKey:a?.key??"",onClose:ee,onComplete:xe,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ce,popupIconTooltip:String(fe),popupWrapperStyle:z})]})}const Bn=20;function Dm(e){const{t}=me.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:m,onRemove:h,onMore:p,sectionType:g="page"}=e||{},[,f]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],v=b.length,[x,y]=l.useState(Math.min(v,Bn)),C=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{y(Math.min(v,Bn))},[v]),pr("speechear.data.updated",()=>f(k=>k+1));function _(){y(k=>Math.min(v,k+Bn))}return o.jsxs(no,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,x).map((k,w)=>{const A=k;return o.jsx(Sn,{index:w,type:a,trainingData:A,depth:C,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:m,onRemove:typeof h=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>h(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof p=="function"?T=>p(A,T):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${w}`)})}),v>Bn&&x<v&&o.jsx("div",{className:"training-block__more",children:o.jsx(ne,{size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function tc(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let No=null;function s8(e){if(No&&No!==e)try{No()}catch{}return No=e,()=>{No===e&&(No=null)}}var l8='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',c8='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';ae(c8);const d8=l8,Nn=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},m){const{t:h}=me.useTranslation(),p=e.word||e.title||"",g=t||!p,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[x,y]=l.useState({label:p,subLabel:b,colloquialLabel:v,homonum:e.homonum});p&&x.label!==p&&y({label:p,subLabel:b,colloquialLabel:v,homonum:e.homonum});const C=l.useRef(null),_=Qt("(max-width: 767px)"),[k,w]=l.useState(!1),[A,T]=l.useState(""),S=Ma()?.(x.label,x.homonum)??e.image??"",{imgRef:D,loading:F,hasImage:R,onLoad:E,onError:$}=tc(S);l.useEffect(()=>{let L=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){T(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const H=f.src;if(H){T(H);return}}}const P=Fo();if(P&&p)try{const H=await Promise.resolve(P(p));!L&&H&&T(H)}catch{}})(),()=>{L=!0}},[f,p]),l.useEffect(()=>()=>{try{C.current?.pause()}catch{}C.current=null},[]);const B=l.useCallback(()=>new Promise(L=>{if(typeof window<"u"&&window.speechSynthesis&&p){w(!0),window.speechSynthesis.cancel();const P=new SpeechSynthesisUtterance(p);P.lang="ko-KR",P.onend=()=>{w(!1);try{a?.()}catch{}L()},P.onerror=()=>{w(!1),L()},window.speechSynthesis.speak(P)}else L()}),[p,a]),G=l.useCallback(L=>new Promise(P=>{let H=!1;const W=()=>{H||(H=!0,w(!1),P(!1))};try{const te=new Audio(L);C.current=te,te.onended=()=>{if(!H){H=!0,w(!1);try{a?.()}catch{}P(!0)}},te.onerror=W,te.play().catch(W)}catch{W()}}),[a]),Q=l.useCallback(async()=>{if(t)return;const L=s8(()=>{try{C.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(A&&(w(!0),await G(A)))return;const P=li();if(P&&p)try{const H=await Promise.resolve(P(p));if(H&&(w(!0),await G(H)))return}catch{}await B()}finally{L()}},[t,A,p,G,B]);l.useImperativeHandle(m,()=>({play:()=>Q()}),[Q]);const ee=L=>L.stopPropagation(),oe=l.useCallback(L=>{if(L.stopPropagation(),!t){if(k){try{C.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}Q()}},[t,k,Q]),N=_e("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:N,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?L=>{(L.key==="Enter"||L.key===" "||L.key==="Spacebar")&&(L.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:ee,children:o.jsx(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?h("training.nthSelected",{n:u}):h("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:R?o.jsxs(o.Fragment,{children:[F&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:D,className:"training-word-card__image",src:S,alt:x.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:F?0:1},onLoad:E,onError:$})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:x.label}),x.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",x.subLabel,"]"]}),x.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",x.colloquialLabel,"]"]})]}),!d&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?ee:void 0,children:o.jsx(ne,{size:_?40:48,type:_?"dot":"bar",icon:k?"pause":"play",label:_?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:oe,disabled:t,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:d8,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let Cr=0,jm="",Em="",yr=0;function u8(){return Tm(!1)}function p8(){return Tm(!0)}function Tm(e){const t=typeof document<"u";Cr===0&&t&&(jm=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(yr===0&&(Em=document.body.style.paddingRight),yr++,document.body.style.paddingRight="0px"),Cr++;let a=!1;return()=>{a||(a=!0,Cr=Math.max(0,Cr-1),e&&t&&(yr=Math.max(0,yr-1),yr===0&&(document.body.style.paddingRight=Em)),Cr===0&&t&&(document.body.style.overflow=jm))}}var h8=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";ae(h8);const m8=260;function Ba(e){const{t}=me.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:d="",onClose:u,closeDisabled:m=!1,beforeClose:h,className:p="",ariaLabel:g,useTitle:f=!0,inline:b=!1,size:v,resetScrollKey:x}=e||{},[y,C]=l.useState(!1),_=l.useRef(!1),k=l.useRef(null),w=l.useId(),A=l.useRef(null);l.useEffect(()=>{},[b,a,g,p]),l.useEffect(()=>{x!==void 0&&A.current&&(A.current.scrollTop=0)},[x]);const[T,S]=l.useState(!1);l.useEffect(()=>{const B=A.current;if(!B)return;const G=()=>S(B.scrollHeight>B.clientHeight+1);if(G(),typeof ResizeObserver>"u")return;const Q=new ResizeObserver(G);Q.observe(B);const ee=B.firstElementChild;return ee&&Q.observe(ee),()=>Q.disconnect()},[i,x]),l.useEffect(()=>{if(!b)return u8()},[b]),l.useEffect(()=>{if(b)return;const B=document.activeElement,G=k.current;return G&&!G.contains(document.activeElement)&&(G.querySelector(ur)??G).focus(),()=>{B?.focus?.()}},[b]),Ss(k,!b);const D=l.useCallback(B=>{_.current||(_.current=!0,C(!0),setTimeout(()=>{try{B&&B()}catch{}},m8))},[]),F=l.useCallback(()=>{m||h&&h()===!1||D(u)},[D,u,m,h]),R=l.useRef(F);l.useEffect(()=>{R.current=F});const E=!b&&!!u;l.useEffect(()=>{if(E)return kl(()=>R.current())},[E]);const $=o.jsx("div",{className:`popup ${b?"popup--inline":""} ${y?"popup--closing":""} ${p}`,children:o.jsxs("div",{ref:k,className:`popup-panel${v?` popup-panel--${v}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?w:void 0,"aria-label":!b&&!a&&g?g:void 0,children:[!f&&(n||u)?o.jsxs("div",{className:"popup-close-float",children:[n,u&&o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||u?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:w,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,u&&o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:A,tabIndex:T?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:D,closeWithAnimation:F}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((B,G)=>o.jsx(ne,{size:48,variant:B.variant??"default",label:B.label,disabled:B.disabled,onClick:()=>B.onClick?.({animateThen:D,closeWithAnimation:F})},G))}):c?o.jsx("div",{className:`popup-footer${d?` ${d}`:""}`,children:typeof c=="function"?c({animateThen:D,closeWithAnimation:F}):c}):null]})});return b||typeof document>"u"?$:Vt.createPortal($,document.body)}function wr(e){return String(e)}const ac=["o","triangle","x"];function oc(e,t){return e===t?null:t}const rc={o:"circle",triangle:"triangle",x:"x"},nc={o:"main",triangle:"warn",x:"danger"};function Lm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function Dn(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function ic(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Mm(e,t){return!t&&e>0}var b8=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
842
+ \uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;ae(Z3);function Sm(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function X3(e,t){return new Date(e,t+1,0).getDate()}function J3(e,t){return new Date(e,t,1).getDay()}function Bm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[d,u]=l.useState(new Date().getMonth()),[m,p]=l.useState(null),h=l.useRef(null),g=new Date,f=l.useMemo(()=>{const _={};return e.forEach(k=>{_[k.date]||(_[k.date]=[]),_[k.date].push(k)}),_},[e]),b=l.useMemo(()=>{const _=X3(s,d),k=J3(s,d),y=[];for(let A=0;A<k;A++)y.push(null);for(let A=1;A<=_;A++)y.push(A);for(;y.length<35;)y.push(null);return y},[s,d]),x=l.useCallback(()=>{d===0?(c(_=>_-1),u(11)):u(_=>_-1)},[d]),v=l.useCallback(()=>{d===11?(c(_=>_+1),u(0)):u(_=>_+1)},[d]),C=_=>`${s}-${String(d+1).padStart(2,"0")}-${String(_).padStart(2,"0")}`,w=_=>g.getFullYear()===s&&g.getMonth()===d&&g.getDate()===_;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:x,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(We,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:d+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(We,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(_=>o.jsx("div",{className:"calendar-day-header body-3",children:_},_)),b.map((_,k)=>{if(_===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const y=_,A=C(y),T=f[A]??[],S=m===A;return o.jsxs("div",{className:`calendar-cell${w(y)?" today":""}${S?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?N=>{N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),r(A))}:void 0,onDragOver:a?N=>{N.preventDefault(),p(A)}:void 0,onDragLeave:a?N=>{N.currentTarget.contains(N.relatedTarget)||p(null)}:void 0,onDrop:a?N=>{N.preventDefault(),h.current!=null&&(a(h.current,A),h.current=null),p(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:y}),o.jsx("div",{className:"calendar-cell__badges",children:T.map((N,F)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${N.status==="noVisit"?" calendar-visit-badge--no-visit":N.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?R=>{h.current=N.id,R.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,p(null)}:void 0,onClick:t?R=>{R.stopPropagation(),t(N)}:void 0,...Sm(t?()=>t(N):void 0),"aria-label":[N.time?en(N.time,n):null,N.customer,n(N.status==="noVisit"?"calendar.legend.noVisit":N.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[N.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:en(N.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:N.customer}),N.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},N.id??F))})]},y)})]})]})}var Q3=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";ae(Q3);const e8={page:"h3",pagePopup:"h4",popup:"h5"};function no({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const d=e8[e],u=t||n;return o.jsxs("div",{className:_e("section",`section--${e}`,s),style:c,children:[u&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(We,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${d}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var t8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";ae(t8);var a8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}";ae(a8);function Nm({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const d=c==="small",u=_e("category-icon",d?"category-icon--small":""),m=d?16:20,p=l.useRef(null),[h,g]=l.useState(!1),f=l.useMemo(()=>{const y=r&&typeof r=="object"?{...r}:{};return!n&&!i?y:{...y,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[x,v]=l.useState(null);l.useLayoutEffect(()=>{h&&v(p.current?.getBoundingClientRect()??null)},[h]),l.useEffect(()=>{if(!s&&h)try{g(!1)}catch{}},[s,h]),l.useEffect(()=>{if(!h)return;const y=A=>{const T=p.current;if(!T)return;const S=A.target;S&&!T.contains(S)&&g(!1)};return document.addEventListener("pointerdown",y,!0),()=>document.removeEventListener("pointerdown",y,!0)},[h]);const C=l.useCallback(()=>{s&&g(!0)},[s]),w=l.useCallback(()=>{s&&g(!1)},[s]),_=l.useCallback(()=>g(!1),[]),k=l.useCallback(y=>{if(y.key==="Escape"){g(!1);return}(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),g(A=>!A))},[]);return o.jsxs("span",{ref:p,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:w,onFocus:C,onBlur:w,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":h,"data-tooltip-ignore":!0,children:[o.jsx(We,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:m}),h&&b&&o.jsx(ha,{anchorRect:x,text:typeof b=="string"?b:void 0,offset:8,onClose:_,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var o8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";ae(o8);function r8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function n8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),d=l.useRef(null),u=l.useRef(!1),m=l.useRef(null),[p,h]=l.useState(!1),g=l.useRef([]),{previewCodes:f,previewBucket:b}=r8(e,t);l.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const C=[],w=[];for(const _ of f)try{const k=Tr(_,b);if(!k){C.push("");continue}let y=null;try{y=await Oo(k)}catch{}if(!y)try{const A=await Lr(k);A&&(y=URL.createObjectURL(A),w.push(y))}catch{}C.push(y??"")}catch{C.push("")}v?w.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}):(g.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),g.current=w,c(C))})(),()=>{v=!0}},[f.join(","),b]),l.useEffect(()=>()=>{g.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),g.current=[]},[]);const x=l.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),u.current){u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){u.current=!0,r(!0);for(let C=0;C<s.length&&u.current;C++){const w=s[C];if(w){i(C);try{await new Promise((_,k)=>{const y=new Audio(w);d.current=y,y.onended=()=>_(),y.onerror=()=>k(),y.play().catch(k)})}catch{break}}}u.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:p,setPreviewHover:h,previewBtnRef:m,handlePreview:x}}const i8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Sn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:d,selectedIds:u,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:f=!1,onComplete:b,onSelect:x,onMore:v,countLabelOverride:C,size:w="square"}=e||{},{t:_}=me.useTranslation(),[k,y]=l.useState(!1),A=l.useRef(null),[T,S]=l.useState(!1);l.useEffect(()=>{A.current?.matches(":hover")&&S(!0)},[]);const{playing:N,playingIndex:F,previewUrls:R,previewHover:E,setPreviewHover:M,previewBtnRef:B,handlePreview:G}=n8(r,a?.key),Q=l.useCallback(()=>{x?x():y(!0)},[x]),ee=l.useCallback(()=>y(!1),[]),oe=l.useCallback(()=>S(!0),[]),D=l.useCallback(()=>S(!1),[]),L=l.useCallback(()=>M(!0),[M]),P=l.useCallback(()=>M(!1),[M]),[H,W]=l.useState(null);l.useLayoutEffect(()=>{E&&W(B.current?.getBoundingClientRect()??null)},[E,B]);const[te,I]=l.useState(null);l.useLayoutEffect(()=>{T&&!k&&p&&I(A.current?.getBoundingClientRect()??null)},[T,k,p]);const q=l.useCallback(we=>{(we.key==="Enter"||we.key===" ")&&(we.preventDefault(),Q())},[Q]),O=r||null,ie=l.useMemo(()=>{if(!p)return null;const we=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,He=we&&we.length>0?we:i8(O);return He&&He.length>0?He:null},[p,m,O]),pe=l.useCallback(we=>{we.stopPropagation(),h?.()},[h]),ve=l.useCallback(we=>we.stopPropagation(),[]),xe=l.useCallback(we=>{typeof b=="function"&&b(we)},[b]),be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),$=!be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);pr("speechear.popup.close",ee);const U=tn(),re=`${a?.label||""} ${t+1}`,ge=O?.title||O?.name||re;let ce=a?.icon,z,X="",Z="";try{const we=O?.category_0||O?.category_main_code||O?.category_main,He=O?.category_1||O?.category_sub_code||O?.category_sub,Te=U.find(Ue=>Ue.key===we);Te?.icon&&(ce=Te.icon),!z&&Te?.color&&(z={"--t-item-fg":Te.color}),!z&&O?.iconColor&&(z={"--t-item-fg":O.iconColor}),X=Te?.label||"";try{Z=Te?.subs?.find(Ue=>Ue.key===He)?.label||""}catch{}}catch{}const fe=Z?`${X} / ${Z}`:X||a?.label||ge,Ne=we=>_("training.countQuestions",{n:we}),Ie=we=>_("training.countSentences",{n:we});let Me="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let we=0;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?we=O.sentences.length:O.sentences&&(we=1),Me=Ie(we)}else if(a?.key==="SHORT_STORY"){let we=1;Array.isArray(r?.items)?we=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?we=r.raw.items.length:Array.isArray(O?.questions)?we=O.questions.length:Array.isArray(O?.sentences)&&(we=O.sentences.length),Me=Ne(we)}else if(a?.key==="LONG_STORY"){let we=1;if(Array.isArray(O.items)&&O.items.length>0){const He=O.items.reduce((Te,Ue)=>{const et=Ue.questionItems;return Array.isArray(et)?Te+et.length:Array.isArray(Ue.questions)?Te+Ue.questions.length:Te},0);we=He>0?He:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?we=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length);Me=Ne(we)}else if(a?.key==="ORDERING_SENTENCE"){let we=1;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length),Me=Ie(we)}else Array.isArray(O.items)&&(Me=O.items.length>0?Ne(O.items.length):"")}catch{}const Ee=w==="list",je=w==="compact",Ae=w==="small",Fe=Ae&&a?.key?ps().find(we=>we.key===a.key)?.label??"":"",Xe=!!f&&!!a?.label&&a.label!==String(ge)||Ae&&!!Fe&&Fe!==String(ge);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:A,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${be?" training-block-button--completed":""}${$?" training-block-button--selected":""}${Xe&&!Ae?" training-block-button--withType":""}${Ae&&!Xe?" training-block-button--no-type-label":""}`,onClick:Q,onPointerEnter:oe,onPointerLeave:D,role:"button",tabIndex:0,onKeyDown:q,"aria-label":typeof n=="string"?n:typeof ge=="string"?ge:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(ge)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&Fe&&Fe!==String(ge)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Fe}),o.jsx(Nm,{icon:ce,label:ge,tooltip:fe,wrapperStyle:z,iconSize:Ae||je?"small":"medium"}),!g&&(be||$)&&!(h&&T)&&o.jsx(ht,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?_("training.completed","\uD6C8\uB828 \uC644\uB8CC"):_("training.selected","\uC120\uD0DD\uB428")}),h&&T&&o.jsx(ht,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":_("common.remove","\uC81C\uAC70"),onClick:pe}),o.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(ge)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const we=C!==void 0?C:Me;return we?o.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:we}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(We,{icon:"chevron-right",label:_("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Ee||Ae)&&R.length>0&&o.jsx("div",{ref:B,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ve,onPointerEnter:L,onPointerLeave:P,children:o.jsx(ne,{size:Ae?28:32,type:"dot",icon:N?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:N?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:G})})]}),v&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:we=>{we.stopPropagation(),v(we)},children:o.jsx(ne,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:_("common.more","\uB354\uBCF4\uAE30")})})]}),E&&o.jsx(ha,{anchorRect:H,text:N?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),T&&!k&&p&&(ie?o.jsx(Fa,{anchorRect:te,items:ie,activeIndex:F,onClose:D}):O?.subTitle?o.jsx(ha,{anchorRect:te,text:O.subTitle,offset:8,onClose:D}):null),k&&s&&s({trainingData:O,typeKey:a?.key??"",onClose:ee,onComplete:xe,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ce,popupIconTooltip:String(fe),popupWrapperStyle:z})]})}const Bn=20;function Dm(e){const{t}=me.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:m,onRemove:p,onMore:h,sectionType:g="page"}=e||{},[,f]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],x=b.length,[v,C]=l.useState(Math.min(x,Bn)),w=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{C(Math.min(x,Bn))},[x]),pr("speechear.data.updated",()=>f(k=>k+1));function _(){C(k=>Math.min(x,k+Bn))}return o.jsxs(no,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,v).map((k,y)=>{const A=k;return o.jsx(Sn,{index:y,type:a,trainingData:A,depth:w,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:m,onRemove:typeof p=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>p(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof h=="function"?T=>h(A,T):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${y}`)})}),x>Bn&&v<x&&o.jsx("div",{className:"training-block__more",children:o.jsx(ne,{size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function tc(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let No=null;function s8(e){if(No&&No!==e)try{No()}catch{}return No=e,()=>{No===e&&(No=null)}}var l8='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',c8='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';ae(c8);const d8=l8,Nn=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},m){const{t:p}=me.useTranslation(),h=e.word||e.title||"",g=t||!h,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",x=e.colloquialLabel||"",[v,C]=l.useState({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});h&&v.label!==h&&C({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});const w=l.useRef(null),_=Qt("(max-width: 767px)"),[k,y]=l.useState(!1),[A,T]=l.useState(""),S=Ma()?.(v.label,v.homonum)??e.image??"",{imgRef:N,loading:F,hasImage:R,onLoad:E,onError:M}=tc(S);l.useEffect(()=>{let L=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){T(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const H=f.src;if(H){T(H);return}}}const P=Fo();if(P&&h)try{const H=await Promise.resolve(P(h));!L&&H&&T(H)}catch{}})(),()=>{L=!0}},[f,h]),l.useEffect(()=>()=>{try{w.current?.pause()}catch{}w.current=null},[]);const B=l.useCallback(()=>new Promise(L=>{if(typeof window<"u"&&window.speechSynthesis&&h){y(!0),window.speechSynthesis.cancel();const P=new SpeechSynthesisUtterance(h);P.lang="ko-KR",P.onend=()=>{y(!1);try{a?.()}catch{}L()},P.onerror=()=>{y(!1),L()},window.speechSynthesis.speak(P)}else L()}),[h,a]),G=l.useCallback(L=>new Promise(P=>{let H=!1;const W=()=>{H||(H=!0,y(!1),P(!1))};try{const te=new Audio(L);w.current=te,te.onended=()=>{if(!H){H=!0,y(!1);try{a?.()}catch{}P(!0)}},te.onerror=W,te.play().catch(W)}catch{W()}}),[a]),Q=l.useCallback(async()=>{if(t)return;const L=s8(()=>{try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(A&&(y(!0),await G(A)))return;const P=li();if(P&&h)try{const H=await Promise.resolve(P(h));if(H&&(y(!0),await G(H)))return}catch{}await B()}finally{L()}},[t,A,h,G,B]);l.useImperativeHandle(m,()=>({play:()=>Q()}),[Q]);const ee=L=>L.stopPropagation(),oe=l.useCallback(L=>{if(L.stopPropagation(),!t){if(k){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1);return}Q()}},[t,k,Q]),D=_e("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:D,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?L=>{(L.key==="Enter"||L.key===" "||L.key==="Spacebar")&&(L.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:ee,children:o.jsx(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?p("training.nthSelected",{n:u}):p("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:R?o.jsxs(o.Fragment,{children:[F&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:N,className:"training-word-card__image",src:S,alt:v.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:F?0:1},onLoad:E,onError:M})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!d&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?ee:void 0,children:o.jsx(ne,{size:_?40:48,type:_?"dot":"bar",icon:k?"pause":"play",label:_?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:oe,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:d8,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let Cr=0,jm="",Em="",yr=0;function u8(){return Tm(!1)}function p8(){return Tm(!0)}function Tm(e){const t=typeof document<"u";Cr===0&&t&&(jm=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(yr===0&&(Em=document.body.style.paddingRight),yr++,document.body.style.paddingRight="0px"),Cr++;let a=!1;return()=>{a||(a=!0,Cr=Math.max(0,Cr-1),e&&t&&(yr=Math.max(0,yr-1),yr===0&&(document.body.style.paddingRight=Em)),Cr===0&&t&&(document.body.style.overflow=jm))}}var h8=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";ae(h8);const m8=260;function Ba(e){const{t}=me.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:d="",onClose:u,closeDisabled:m=!1,beforeClose:p,className:h="",ariaLabel:g,useTitle:f=!0,inline:b=!1,size:x,resetScrollKey:v}=e||{},[C,w]=l.useState(!1),_=l.useRef(!1),k=l.useRef(null),y=l.useId(),A=l.useRef(null);l.useEffect(()=>{},[b,a,g,h]),l.useEffect(()=>{v!==void 0&&A.current&&(A.current.scrollTop=0)},[v]);const[T,S]=l.useState(!1);l.useEffect(()=>{const B=A.current;if(!B)return;const G=()=>S(B.scrollHeight>B.clientHeight+1);if(G(),typeof ResizeObserver>"u")return;const Q=new ResizeObserver(G);Q.observe(B);const ee=B.firstElementChild;return ee&&Q.observe(ee),()=>Q.disconnect()},[i,v]),l.useEffect(()=>{if(!b)return u8()},[b]),l.useEffect(()=>{if(b)return;const B=document.activeElement,G=k.current;return G&&!G.contains(document.activeElement)&&(G.querySelector(ur)??G).focus(),()=>{B?.focus?.()}},[b]),Ss(k,!b);const N=l.useCallback(B=>{_.current||(_.current=!0,w(!0),setTimeout(()=>{try{B&&B()}catch{}},m8))},[]),F=l.useCallback(()=>{m||p&&p()===!1||N(u)},[N,u,m,p]),R=l.useRef(F);l.useEffect(()=>{R.current=F});const E=!b&&!!u;l.useEffect(()=>{if(E)return kl(()=>R.current())},[E]);const M=o.jsx("div",{className:`popup ${b?"popup--inline":""} ${C?"popup--closing":""} ${h}`,children:o.jsxs("div",{ref:k,className:`popup-panel${x?` popup-panel--${x}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?y:void 0,"aria-label":!b&&!a&&g?g:void 0,children:[!f&&(n||u)?o.jsxs("div",{className:"popup-close-float",children:[n,u&&o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||u?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:y,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,u&&o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:A,tabIndex:T?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:N,closeWithAnimation:F}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((B,G)=>o.jsx(ne,{size:48,variant:B.variant??"default",label:B.label,disabled:B.disabled,onClick:()=>B.onClick?.({animateThen:N,closeWithAnimation:F})},G))}):c?o.jsx("div",{className:`popup-footer${d?` ${d}`:""}`,children:typeof c=="function"?c({animateThen:N,closeWithAnimation:F}):c}):null]})});return b||typeof document>"u"?M:Vt.createPortal(M,document.body)}function wr(e){return String(e)}const ac=["o","triangle","x"];function oc(e,t){return e===t?null:t}const rc={o:"circle",triangle:"triangle",x:"x"},nc={o:"main",triangle:"warn",x:"danger"};function Lm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function Dn(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function ic(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Mm(e,t){return!t&&e>0}var b8=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
843
843
 
844
844
  /* !important \uD544\uC694: WordTable.tsx\uAC00 \uD654\uBA74 \uD45C\uC2DC\uC6A9 scale/marginLeft\uB97C \uC778\uB77C\uC778 style\uB85C
845
845
  \uC9C1\uC811 \uC801\uC6A9\uD558\uBBC0\uB85C(\uC2A4\uD06C\uB9B0 \uCD95\uC18C \uB80C\uB354), \uC778\uC1C4 \uC2DC \uC774\uB97C \uBB34\uD6A8\uD654\uD558\uB824\uBA74 \uD074\uB798\uC2A4 \uADDC\uCE59\uC5D0
846
- !important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;ae(b8);const io={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function $m(e="landscape"){const{printSize:t,printW:a,printH:r}=io[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Rm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const g8={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function f8(e,t){const a=g8[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const v8={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},sc={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},lc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function jn(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Pm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const d="#ddd",u=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,m=[],h=[],p=[];return s&&(m.push(u("bottom")),h.push("1px 100%"),p.push("right center")),c&&(m.push(u("right")),h.push("100% 1px"),p.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:h.join(", "),backgroundPosition:p.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const x8=280,_8=240,C8=280,y8=400,w8=120,k8=280;function cc(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((d,u)=>{const m=d/e,h=t?u/t:1/0,p=Math.min(1,m,h);n(p),s(Math.max(0,(d-e*p)/2))},[e,t]);return l.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([h])=>c(h.contentRect.width,h.contentRect.height));return m.observe(u),()=>m.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let Na=null;function zm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:m}=me.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(1),[v,x]=l.useState(!1),[y,C]=l.useState(""),[_,k]=l.useState(null),w=t&&t.length>0?t:ci()?.(e,r)??"",A=Ma()?.(e,r)??"",{imgRef:T,loading:S,failed:D,onLoad:F,onError:R}=tc(A),E=l.useCallback(()=>k(p.current?.getBoundingClientRect()??null),[]),$=l.useCallback(()=>k(null),[]),B=l.useMemo(()=>{if(!u)return null;const N=[];return u.grade&&N.push(`\uB09C\uC774\uB3C4: ${u.grade}\uB4F1\uAE09`),u.syllables&&N.push(`\uC74C\uC808 \uC218: ${u.syllables}\uC74C\uC808`),u.pos&&N.push(`\uD488\uC0AC: ${jn(u.pos,sc)}`),u.wordType&&N.push(`\uC720\uD615: ${jn(u.wordType,lc)}`),N.length?N:null},[u]);l.useEffect(()=>{const N=Fo(),L=w||e;if(!N||!L)return;let P=!1;return Promise.resolve(N(L)).then(H=>{!P&&H&&C(H)}),()=>{P=!0}},[w,e]),l.useEffect(()=>()=>{g.current?.pause(),Na?.audio===g.current&&(Na=null)},[]);const G=l.useCallback(async N=>{if(N.stopPropagation(),v){g.current?.pause(),x(!1),Na=null;return}if(y){Na?.stop(),x(!0);try{const L=new Audio(y);g.current=L;const P=()=>{x(!1),Na?.audio===L&&(Na=null)};Na={audio:L,stop:()=>{L.pause(),P()}},L.onended=P,L.onerror=P,await L.play()}catch{x(!1),Na?.audio===g.current&&(Na=null)}}},[v,y]),Q=i&&!!A&&!D,ee=Q&&n?x8:Q?C8:_8,oe=Q&&n?y8:Q?k8:w8;return l.useEffect(()=>{const N=h.current;if(!N||typeof ResizeObserver>"u")return;const L=new ResizeObserver(([P])=>{const{width:H,height:W}=P.contentRect;b(Math.min(H/ee,W/oe))});return L.observe(N),()=>L.disconnect()},[ee,oe]),o.jsxs("div",{ref:h,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[Q&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[S&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:T,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:S?0:1},onLoad:F,onError:R})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&w&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":y,children:[o.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:o.jsx(ne,{size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),onClick:G})}),o.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:o.jsx(ne,{size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),onClick:G})})]}),u&&o.jsxs("div",{ref:p,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:$,onFocus:E,onBlur:$,children:[o.jsx(ne,{size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:N=>N.stopPropagation()}),_&&B&&o.jsx(Fa,{anchorRect:_,items:B,showIndex:!1})]})]})}function so({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:m,count:h,activeCell:p=null,onActivateCell:g,onRemoveCell:f,onRemoveItem:b,onReorder:v,showFillerAdd:x=!1,contentRef:y,buttonSize:C=40,pageNumber:_,pageNumberPosition:k="right",fitHeight:w=!1,scoring:A=!1,marks:T,onMarkClick:S,scoreIndexOffset:D=0}){const F=l.useCallback((xe,be)=>{S?.(D+xe,be)},[S,D]),R=(xe,be)=>{const M=T?.[wr(D+xe)]??null;return o.jsx("div",{className:_e("word-table-cell__score",M?"word-table-cell__score--marked":""),children:ac.map(U=>o.jsx("span",{className:_e("word-table-cell__score-slot",M===U?"word-table-cell__score-slot--on":""),children:o.jsx(ne,{size:C,type:"dot",icon:rc[U],variant:M===U?nc[U]:"default",selected:M===U,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${U}`,{word:be,defaultValue:`${be} ${U}`}),onClick:re=>{re.stopPropagation(),F(xe,U)}})},U))})},{t:E}=me.useTranslation(),$=m!==void 0,B=l.useRef(null),[G,Q]=l.useState(null),{width:ee,height:oe}=io[n],{scalerRef:N,scale:L,offset:P}=cc(ee,w?oe:void 0),H=$?m?.length??0:u?.length??0,W=Math.max(h??H,1),{cols:te,rows:I}=f8(n,W),q={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},O=$?(m??[]).some(xe=>xe!==null&&xe.length>1):(u??[]).some(xe=>xe.words.length>1),ie=_e("word-table-block__content",v8[s],c&&"word-table-block__content--outline",d&&O&&"word-table-block__content--div-line"),pe={transform:`scale(${1/L})`,transformOrigin:"center center"},ve=o.jsx("div",{ref:N,className:"word-table__scaler",style:{height:oe*L},children:o.jsx("div",{className:_e("word-table",r),style:{width:ee,height:oe,transform:`scale(${L})`,transformOrigin:"top left",marginLeft:P},children:o.jsxs("div",{ref:y,className:ie,style:{gridTemplateColumns:`repeat(${te}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[$?o.jsx(o.Fragment,{children:(m??[]).map((xe,be)=>o.jsx("div",{className:_e("word-table-block__edit-cell",xe?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",p===be?"word-table-block__edit-cell--active":""),style:Pm(be,te,I,s),children:xe?o.jsxs(o.Fragment,{children:[xe.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(zm,{label:M.word,subLabel:M.pronunciation,homonum:M.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:C})]},U)),A&&R(be,xe.map(M=>M.word).join(" / ")),f&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ne,{size:C,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:xe.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:xe.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(be)})})]}):g&&o.jsx("div",{style:pe,children:o.jsx(ne,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(be)})})},be))}):o.jsxs(o.Fragment,{children:[(u??[]).map((xe,be)=>o.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${G===be?" word-table-block__card--drag-over":""}`,style:Pm(be,te,I,s),draggable:!!v,onDragStart:v?()=>{B.current=be}:void 0,onDragOver:v?M=>{M.preventDefault(),Q(be)}:void 0,onDragLeave:v?()=>Q(null):void 0,onDrop:v?M=>{M.preventDefault(),B.current!==null&&B.current!==be&&v(B.current,be),B.current=null,Q(null)}:void 0,onDragEnd:v?()=>{B.current=null,Q(null)}:void 0,children:[xe.words.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(zm,{label:M.label,subLabel:M.subLabel,colloquialLabel:M.colloquialLabel,homonum:M.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:C,wordInfo:M.grade||M.syllables!=null||M.pos||M.wordType?{grade:M.grade,syllables:M.syllables,pos:M.pos,wordType:M.wordType}:void 0})]},U)),A&&R(be,xe.words.map(M=>M.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ne,{size:C,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:xe.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:xe.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(xe.id)})})]},xe.id)),Array.from({length:Math.max(0,te*I-(u?.length??0))}).map((xe,be)=>{const M=(u?.length??0)+be<W;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:x&&g&&M&&o.jsx("div",{style:pe,children:o.jsx(ne,{size:C,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((u?.length??0)+be)})})},`filler-${be}`)})]}),_&&k!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:E("wordTable.filter.pageIndicator",{current:_.current,total:_.total})})]})})});return e!=null||t||a?o.jsx(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",r),children:ve}):ve}var A8=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ae(A8);function fa({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:d={},onSelect:u,align:m,sectionAlign:h,className:p}){const g=(m??(h==="vertical"?"newline":"inline"))==="inline",{t:f}=me.useTranslation(),[b,v]=l.useState(r),x=n??b,y=()=>{const _=!x;v(_),i?.(_)},C=e||t||a;return o.jsxs("div",{className:_e("filter-panel",a?"filter-panel--collapsible":"",x?"filter-panel--collapsed":"",p),children:[C&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:x?"chevron-down":"chevron-up",ariaLabel:x?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!x,onClick:y}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!x&&t})]}),!x&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:_e("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(_=>{const k=d[_.label],w=k===void 0||(Array.isArray(k)?k.length===0:!1),A=(_.items??[]).filter(S=>S!=null),T=S=>{const D=typeof S=="string"?S:S.value,F=typeof S!="string"&&!!S.disabled,R=typeof S!="string"?S.labels:void 0,E=typeof S!="string"?S.displayLabel:void 0,$=typeof S!="string"?S.tooltip:void 0,B=typeof S!="string"?S.descriptionTooltip:void 0,G=typeof S!="string"?S.shape:void 0,Q=Array.isArray(k)?k.includes(D):k===D;return o.jsx(ne,{size:"keyboard",label:R??E??D,type:_.itemType??(R?"bar":D.length===1?"dot":void 0),selected:Q,disabled:F,shape:G,showTooltipInfo:!!$,tooltipInfoText:$,tooltipDescription:B,onClick:()=>u?.(D,_.label)},D)};return o.jsxs(l.Fragment,{children:[_.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:_.groupLabel}),_.groupAction]}),o.jsxs("div",{className:_e("filter-panel__section",_.layout==="row"?"filter-panel__section--row":"",_.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:_.displayLabel??_.label}),_.labelAction??(_.labelInfo?o.jsx(Ao,{..._.labelInfo}):null)]}),_.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:_.content}):_.type==="input"?o.jsx(Wa,{className:"filter-panel__textfield",placeholder:_.placeholder,ariaLabel:_.displayLabel??_.label,value:d[_.label]??"",onChange:S=>u?.(S,_.label),error:_.error}):!_.multiple&&_.display==="segmented"?o.jsx(Va,{ariaLabel:_.displayLabel??_.label,options:[..._.allOption?[{key:Dt,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const D=typeof S=="string"?S:S.value,F=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{key:D,label:F??D,disabled:R}})],value:w&&_.allOption?Dt:d[_.label],onChange:S=>u?.(S,_.label),size:32}):!_.multiple&&_.display==="dropdown"?o.jsx(Ut,{className:"filter-panel__dropdown",size:40,options:[..._.allOption?[{value:Dt,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const D=typeof S=="string"?S:S.value,F=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{value:D,label:F??D,disabled:R}})],value:w&&_.allOption?Dt:d[_.label],onChange:S=>u?.(S,_.label)}):o.jsxs("div",{className:_.groups?"filter-panel__item-groups":"filter-panel__items",children:[_.allOption&&!_.groups&&o.jsx(ne,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(Dt,_.label)}),_.groups?_.groups.map((S,D)=>o.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&_.allOption&&o.jsx(ne,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(Dt,_.label)}),S.filter(F=>F!=null).map(T)]},D)):A.map(T)]})]})]},_.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const S8=[1,2,3,4,5,6,7,8,9,10,11,12],B8=[8,4,2,1];function Im(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Om(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Fm(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Hm(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wm(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Vm(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...B8.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Gm(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Um={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ym(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function qm(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Km(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===Dt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function N8(e){return"sections"in e}function En(e){const{t}=me.useTranslation(),{title:a,className:r}=e;if(N8(e))return o.jsx(fa,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m,setters:h,showCutLine:p=!1,showDivLine2:g=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:v}=e,x=[Im(t,{hasImage:n,hasColloquial:i}),Om(t),...f,Fm(t),...p?[Hm(t)]:[],...g?[Wm(t)]:[]],y={...qm(t,{contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m}),...b},C=(_,k)=>{Km(t,_,k,h)||v?.(_,k)};return o.jsx(fa,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:x,selected:y,onSelect:C,sectionAlign:"horizontal"})}function Zm(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dc(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function D8(e,t,a,r="",n=""){if(e.length===0)return;const i=r?dc(r):"";if(i){const d=document.title;document.title=i;const u=()=>{document.title=d,window.removeEventListener("afterprint",u)};window.addEventListener("afterprint",u)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(uc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function uc(e,t,a,r=!1,n="",i=""){n=n?dc(n):"";const s=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
847
- `),c=document.documentElement.getAttribute("data-theme")||"light",d=i?`<div class="paper-head">${Zm(i)}</div>`:"",u=e.map(m=>{const h=m.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(p=>p.style.display=""),h.querySelectorAll('[data-play-state="pause"]').forEach(p=>p.style.display="none"),h.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(p=>p.remove()),`<div class="paper-wrap">${d}${h.outerHTML}</div>`}).join(`
846
+ !important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;ae(b8);const io={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function $m(e="landscape"){const{printSize:t,printW:a,printH:r}=io[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Rm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const g8={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function f8(e,t){const a=g8[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const v8={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},sc={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},lc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function jn(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Pm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const d="#ddd",u=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,m=[],p=[],h=[];return s&&(m.push(u("bottom")),p.push("1px 100%"),h.push("right center")),c&&(m.push(u("right")),p.push("100% 1px"),h.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const x8=280,_8=240,C8=280,y8=400,w8=120,k8=280;function cc(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((d,u)=>{const m=d/e,p=t?u/t:1/0,h=Math.min(1,m,p);n(h),s(Math.max(0,(d-e*h)/2))},[e,t]);return l.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return m.observe(u),()=>m.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let Na=null;function zm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:m}=me.useTranslation(),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(1),[x,v]=l.useState(!1),[C,w]=l.useState(""),[_,k]=l.useState(null),y=t&&t.length>0?t:ci()?.(e,r)??"",A=Ma()?.(e,r)??"",{imgRef:T,loading:S,failed:N,onLoad:F,onError:R}=tc(A),E=l.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),M=l.useCallback(()=>k(null),[]),B=l.useMemo(()=>{if(!u)return null;const D=[];return u.grade&&D.push(`\uB09C\uC774\uB3C4: ${u.grade}\uB4F1\uAE09`),u.syllables&&D.push(`\uC74C\uC808 \uC218: ${u.syllables}\uC74C\uC808`),u.pos&&D.push(`\uD488\uC0AC: ${jn(u.pos,sc)}`),u.wordType&&D.push(`\uC720\uD615: ${jn(u.wordType,lc)}`),D.length?D:null},[u]);l.useEffect(()=>{const D=Fo(),L=y||e;if(!D||!L)return;let P=!1;return Promise.resolve(D(L)).then(H=>{!P&&H&&w(H)}),()=>{P=!0}},[y,e]),l.useEffect(()=>()=>{g.current?.pause(),Na?.audio===g.current&&(Na=null)},[]);const G=l.useCallback(async D=>{if(D.stopPropagation(),x){g.current?.pause(),v(!1),Na=null;return}if(C){Na?.stop(),v(!0);try{const L=new Audio(C);g.current=L;const P=()=>{v(!1),Na?.audio===L&&(Na=null)};Na={audio:L,stop:()=>{L.pause(),P()}},L.onended=P,L.onerror=P,await L.play()}catch{v(!1),Na?.audio===g.current&&(Na=null)}}},[x,C]),Q=i&&!!A&&!N,ee=Q&&n?x8:Q?C8:_8,oe=Q&&n?y8:Q?k8:w8;return l.useEffect(()=>{const D=p.current;if(!D||typeof ResizeObserver>"u")return;const L=new ResizeObserver(([P])=>{const{width:H,height:W}=P.contentRect;b(Math.min(H/ee,W/oe))});return L.observe(D),()=>L.disconnect()},[ee,oe]),o.jsxs("div",{ref:p,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[Q&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[S&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:T,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:S?0:1},onLoad:F,onError:R})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&y&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",y,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":C,children:[o.jsx("span",{"data-play-state":"play",style:{display:x?"none":void 0},children:o.jsx(ne,{size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),onClick:G})}),o.jsx("span",{"data-play-state":"pause",style:{display:x?void 0:"none"},children:o.jsx(ne,{size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),onClick:G})})]}),u&&o.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:M,onFocus:E,onBlur:M,children:[o.jsx(ne,{size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:D=>D.stopPropagation()}),_&&B&&o.jsx(Fa,{anchorRect:_,items:B,showIndex:!1})]})]})}function so({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:m,count:p,activeCell:h=null,onActivateCell:g,onRemoveCell:f,onRemoveItem:b,onReorder:x,showFillerAdd:v=!1,contentRef:C,buttonSize:w=40,pageNumber:_,pageNumberPosition:k="right",fitHeight:y=!1,scoring:A=!1,marks:T,onMarkClick:S,scoreIndexOffset:N=0}){const F=l.useCallback((xe,be)=>{S?.(N+xe,be)},[S,N]),R=(xe,be)=>{const $=T?.[wr(N+xe)]??null;return o.jsx("div",{className:_e("word-table-cell__score",$?"word-table-cell__score--marked":""),children:ac.map(U=>o.jsx("span",{className:_e("word-table-cell__score-slot",$===U?"word-table-cell__score-slot--on":""),children:o.jsx(ne,{size:w,type:"dot",icon:rc[U],variant:$===U?nc[U]:"default",selected:$===U,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${U}`,{word:be,defaultValue:`${be} ${U}`}),onClick:re=>{re.stopPropagation(),F(xe,U)}})},U))})},{t:E}=me.useTranslation(),M=m!==void 0,B=l.useRef(null),[G,Q]=l.useState(null),{width:ee,height:oe}=io[n],{scalerRef:D,scale:L,offset:P}=cc(ee,y?oe:void 0),H=M?m?.length??0:u?.length??0,W=Math.max(p??H,1),{cols:te,rows:I}=f8(n,W),q={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},O=M?(m??[]).some(xe=>xe!==null&&xe.length>1):(u??[]).some(xe=>xe.words.length>1),ie=_e("word-table-block__content",v8[s],c&&"word-table-block__content--outline",d&&O&&"word-table-block__content--div-line"),pe={transform:`scale(${1/L})`,transformOrigin:"center center"},ve=o.jsx("div",{ref:D,className:"word-table__scaler",style:{height:oe*L},children:o.jsx("div",{className:_e("word-table",r),style:{width:ee,height:oe,transform:`scale(${L})`,transformOrigin:"top left",marginLeft:P},children:o.jsxs("div",{ref:C,className:ie,style:{gridTemplateColumns:`repeat(${te}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[M?o.jsx(o.Fragment,{children:(m??[]).map((xe,be)=>o.jsx("div",{className:_e("word-table-block__edit-cell",xe?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===be?"word-table-block__edit-cell--active":""),style:Pm(be,te,I,s),children:xe?o.jsxs(o.Fragment,{children:[xe.map(($,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(zm,{label:$.word,subLabel:$.pronunciation,homonum:$.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:w})]},U)),A&&R(be,xe.map($=>$.word).join(" / ")),f&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ne,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:xe.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:xe.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(be)})})]}):g&&o.jsx("div",{style:pe,children:o.jsx(ne,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(be)})})},be))}):o.jsxs(o.Fragment,{children:[(u??[]).map((xe,be)=>o.jsxs("div",{className:`word-table-block__card${x?" word-table-block__card--draggable":""}${G===be?" word-table-block__card--drag-over":""}`,style:Pm(be,te,I,s),draggable:!!x,onDragStart:x?()=>{B.current=be}:void 0,onDragOver:x?$=>{$.preventDefault(),Q(be)}:void 0,onDragLeave:x?()=>Q(null):void 0,onDrop:x?$=>{$.preventDefault(),B.current!==null&&B.current!==be&&x(B.current,be),B.current=null,Q(null)}:void 0,onDragEnd:x?()=>{B.current=null,Q(null)}:void 0,children:[xe.words.map(($,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(zm,{label:$.label,subLabel:$.subLabel,colloquialLabel:$.colloquialLabel,homonum:$.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:w,wordInfo:$.grade||$.syllables!=null||$.pos||$.wordType?{grade:$.grade,syllables:$.syllables,pos:$.pos,wordType:$.wordType}:void 0})]},U)),A&&R(be,xe.words.map($=>$.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ne,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:xe.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:xe.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(xe.id)})})]},xe.id)),Array.from({length:Math.max(0,te*I-(u?.length??0))}).map((xe,be)=>{const $=(u?.length??0)+be<W;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&g&&$&&o.jsx("div",{style:pe,children:o.jsx(ne,{size:w,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((u?.length??0)+be)})})},`filler-${be}`)})]}),_&&k!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:E("wordTable.filter.pageIndicator",{current:_.current,total:_.total})})]})})});return e!=null||t||a?o.jsx(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",r),children:ve}):ve}var A8=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ae(A8);function fa({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:d={},onSelect:u,align:m,sectionAlign:p,className:h}){const g=(m??(p==="vertical"?"newline":"inline"))==="inline",{t:f}=me.useTranslation(),[b,x]=l.useState(r),v=n??b,C=()=>{const _=!v;x(_),i?.(_)},w=e||t||a;return o.jsxs("div",{className:_e("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",h),children:[w&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:C}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!v&&t})]}),!v&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:_e("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(_=>{const k=d[_.label],y=k===void 0||(Array.isArray(k)?k.length===0:!1),A=(_.items??[]).filter(S=>S!=null),T=S=>{const N=typeof S=="string"?S:S.value,F=typeof S!="string"&&!!S.disabled,R=typeof S!="string"?S.labels:void 0,E=typeof S!="string"?S.displayLabel:void 0,M=typeof S!="string"?S.tooltip:void 0,B=typeof S!="string"?S.descriptionTooltip:void 0,G=typeof S!="string"?S.shape:void 0,Q=Array.isArray(k)?k.includes(N):k===N;return o.jsx(ne,{size:"keyboard",label:R??E??N,type:_.itemType??(R?"bar":N.length===1?"dot":void 0),selected:Q,disabled:F,shape:G,showTooltipInfo:!!M,tooltipInfoText:M,tooltipDescription:B,onClick:()=>u?.(N,_.label)},N)};return o.jsxs(l.Fragment,{children:[_.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:_.groupLabel}),_.groupAction]}),o.jsxs("div",{className:_e("filter-panel__section",_.layout==="row"?"filter-panel__section--row":"",_.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:_.displayLabel??_.label}),_.labelAction??(_.labelInfo?o.jsx(Ao,{..._.labelInfo}):null)]}),_.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:_.content}):_.type==="input"?o.jsx(Wa,{className:"filter-panel__textfield",placeholder:_.placeholder,ariaLabel:_.displayLabel??_.label,value:d[_.label]??"",onChange:S=>u?.(S,_.label),error:_.error}):!_.multiple&&_.display==="segmented"?o.jsx(Va,{ariaLabel:_.displayLabel??_.label,options:[..._.allOption?[{key:Dt,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const N=typeof S=="string"?S:S.value,F=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{key:N,label:F??N,disabled:R}})],value:y&&_.allOption?Dt:d[_.label],onChange:S=>u?.(S,_.label),size:32}):!_.multiple&&_.display==="dropdown"?o.jsx(Ut,{className:"filter-panel__dropdown",size:40,options:[..._.allOption?[{value:Dt,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const N=typeof S=="string"?S:S.value,F=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{value:N,label:F??N,disabled:R}})],value:y&&_.allOption?Dt:d[_.label],onChange:S=>u?.(S,_.label)}):o.jsxs("div",{className:_.groups?"filter-panel__item-groups":"filter-panel__items",children:[_.allOption&&!_.groups&&o.jsx(ne,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:y,disabled:_.allOptionDisabled,onClick:()=>u?.(Dt,_.label)}),_.groups?_.groups.map((S,N)=>o.jsxs("div",{className:"filter-panel__item-group",children:[N===0&&_.allOption&&o.jsx(ne,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:y,disabled:_.allOptionDisabled,onClick:()=>u?.(Dt,_.label)}),S.filter(F=>F!=null).map(T)]},N)):A.map(T)]})]})]},_.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const S8=[1,2,3,4,5,6,7,8,9,10,11,12],B8=[8,4,2,1];function Im(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Om(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Fm(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Hm(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wm(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Vm(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...B8.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Gm(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Um={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ym(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function qm(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Km(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===Dt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function N8(e){return"sections"in e}function En(e){const{t}=me.useTranslation(),{title:a,className:r}=e;if(N8(e))return o.jsx(fa,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m,setters:p,showCutLine:h=!1,showDivLine2:g=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:x}=e,v=[Im(t,{hasImage:n,hasColloquial:i}),Om(t),...f,Fm(t),...h?[Hm(t)]:[],...g?[Wm(t)]:[]],C={...qm(t,{contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m}),...b},w=(_,k)=>{Km(t,_,k,p)||x?.(_,k)};return o.jsx(fa,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:C,onSelect:w,sectionAlign:"horizontal"})}function Zm(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dc(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function D8(e,t,a,r="",n=""){if(e.length===0)return;const i=r?dc(r):"";if(i){const d=document.title;document.title=i;const u=()=>{document.title=d,window.removeEventListener("afterprint",u)};window.addEventListener("afterprint",u)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(uc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function uc(e,t,a,r=!1,n="",i=""){n=n?dc(n):"";const s=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
847
+ `),c=document.documentElement.getAttribute("data-theme")||"light",d=i?`<div class="paper-head">${Zm(i)}</div>`:"",u=e.map(m=>{const p=m.cloneNode(!0);return p.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),p.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),p.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),`<div class="paper-wrap">${d}${p.outerHTML}</div>`}).join(`
848
848
  `);return`<!DOCTYPE html>
849
849
  <html data-theme="${c}">
850
850
  <head>
@@ -970,16 +970,16 @@ ${C.badge}`:C.badge:void 0;if(k&&d(C.code))return null;if(!C.badge&&!u)return m(
970
970
  `:""}
971
971
  <\/script>
972
972
  </body>
973
- </html>`}function Tn({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{D8(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=window.open("","_blank");if(!m){n?.();return}m.document.write(uc(u,t,a,!1,r,i)),m.document.close()},[e,t,a,r,n,i]),d=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=uc(u,t,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),p=URL.createObjectURL(h),g=r&&dc(r),f=Object.assign(document.createElement("a"),{href:p,download:`${g}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(p)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:d}}function pc(e){const{t}=me.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[d,u]=l.useState(!0),[m,h]=l.useState(!0),[p,g]=l.useState(8),[f,b]=l.useState("right"),v=e.length,x=e.some(R=>R.words.length>1),y=e.some(R=>R.words.some(E=>!!E.colloquialLabel)),C=Math.min(p,Math.max(v,1)),_=l.useMemo(()=>Rm(e,C),[e,C]),k=_.length>1,w=C,[A,T]=l.useState(!1);l.useEffect(()=>{let R=!1;if(!Ma()){T(!1);return}return Promise.all(e.flatMap(E=>E.words.map($=>Yo($.label,$.homonum)))).then(E=>{R||T(E.some(Boolean))}),()=>{R=!0}},[e]);const S=l.useMemo(()=>[Im(t,{hasImage:A,hasColloquial:y}),Om(t),...v>0?[Vm(t,{hasPairs:x,itemCount:v})]:[],...k?[Gm(t)]:[],Fm(t),...w>1?[Hm(t)]:[],...x?[Wm(t)]:[]],[t,A,y,v,x,k,w]),D={...qm(t,{contentTypes:n,orientation:a,showOutline:d,cutLine:s,showDivLine:m}),...v>0?{[t(x?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${C}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Um[f]}:{}},F=l.useCallback((R,E)=>{Km(t,R,E,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:h})||(E===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(R)):E===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(Ym(R)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:d,showDivLine:m,count:w},filterSections:S,filterSelected:D,handleSelect:F,pages:_,isPaginated:k,pageNumberPosition:f}}var j8=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";ae(j8);function Xm({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:d,printFileName:u,showSettings:m,autoPrint:h,className:p,onClose:g,scoring:f=!1,onScoreChange:b,printHeader:v,beforeClose:x}){const{t:y}=me.useTranslation(),C=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ie=>typeof ie=="string"&&ie.length>0).map((ie,pe)=>({id:`${ie}-${pe}`,words:[{label:ie}]})),[e,t]),{settings:_,filterSections:k,filterSelected:w,handleSelect:A,pages:T,isPaginated:S,pageNumberPosition:D}=pc(C),F=l.useMemo(()=>ic(T.map(ie=>ie.length)),[T]),[R,E]=l.useState({}),$=l.useCallback((ie,pe)=>{E(ve=>({...ve,[wr(ie)]:oc(ve[wr(ie)]??null,pe)}))},[]),B=l.useRef(b);l.useEffect(()=>{B.current=b}),l.useEffect(()=>{B.current?.(Dn(R))},[R]);const G=l.useMemo(()=>Dn(R),[R]),Q=l.useRef(null),{toastMessage:ee,toastKey:oe,showWarning:N,clearToast:L}=vn("warning"),P=l.useRef([]),H=l.useCallback(()=>S?P.current.filter(ie=>ie!==null):Q.current?[Q.current]:[],[S]),{print:W,openNewWindow:te}=Tn({getElements:H,paperW:io[_.orientation].width,paperH:io[_.orientation].height,fileName:u??"",header:v??"",onPopupBlocked:()=>N(y("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),I=l.useMemo(()=>c?void 0:s?s({print:W,openNewWindow:te}):u?[{label:y("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>te()},{label:y("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>W()},...i??[]]:i,[c,s,u,i,y,W,te]),q=l.useMemo(()=>c?c({print:W,openNewWindow:te}):void 0,[c,W,te]),O=l.useRef(!1);return l.useEffect(()=>{if(!h||O.current)return;O.current=!0;const ie=window.setTimeout(()=>W(),100);return()=>window.clearTimeout(ie)},[h,W]),o.jsxs(Ba,{title:a??y("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:_e("word-table-popup",p),buttons:I,footer:q,footerClassName:d,beforeClose:x,onClose:g,children:[C.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[m&&o.jsx(En,{sections:k,selected:w,onSelect:A}),S?o.jsx("div",{className:"word-table-popup__pages",children:T.map((ie,pe)=>o.jsx(so,{items:ie,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:ve=>{P.current[pe]=ve},pageNumber:{current:pe+1,total:T.length},pageNumberPosition:D,scoring:f,scoreIndexOffset:F[pe],marks:G,onMarkClick:$},pe))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(so,{items:C,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:Q,fitHeight:!0,scoring:f,marks:G,onMarkClick:$})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??y("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(ro,{message:ee,position:"top",onClose:L},oe)]})}const E8=new Set(["x","triangle"]);function Jm(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&E8.has(n)&&a.push(e[r])}return a}function Qm(e,t){const[,a,r]=ka(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const u=i.exec(s);if(!u)break;c=Math.max(c,(u[1]?Number(u[1]):1)+1),s=s.slice(0,u.index).trim()}const d=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${d}\uBCF5\uC2B5 ${n}`}function eb(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function tb(e){return e.map(t=>t.label).join(" / ")}function ab(e,t,a){const r=Qr(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}const T8=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Ln(e,t){return T8().compare(e,t)}function L8(e,t){return typeof e=="number"&&typeof t=="number"?e-t:Ln(e==null?"":String(e),t==null?"":String(t))}function ob(e,t,a){return a===0?0:(e+t*.5)/a}function rb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")d.o++;else if(s==="triangle")d.triangle++;else if(s==="x")d.x++;else continue;d.latest=s,d.latestAt=n.scoredAt,t.set(c,d)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:ob(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||Ln(n.label,i.label)),r}function nb(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),d=c.filter(m=>m==="o").length,u=c.filter(m=>m==="triangle").length;return ob(d,u,c.filter(m=>m==="o"||m==="triangle"||m==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function ib(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function sb(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const d=s.itemId?.trim()||c,u=`${s.trainingType}|${d}`,m=t.get(u)??{trainingType:s.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};m.tried++,s.isCorrect||m.wrong++,m.title=c,m.latestCorrect=s.isCorrect,m.latestAt=s.answeredAt,m.lastSelected=s.selected,s.setId&&!m.setIds.includes(s.setId)&&m.setIds.unshift(s.setId),t.set(u,m)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||Ln(s.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function lb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function cb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const Mn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function db(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,d=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>Mn.includes(i.trainingType)).sort(r),word:n.filter(i=>!Mn.includes(i.trainingType)).sort(r),noSet:a}}function ub(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const d of i.cellLabels)r.has(d)&&!s.has(d)&&(s.add(d),c.push(d));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||Ln(i.name,s.name)),n.slice(0,Math.max(0,a))}function pb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function hb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function mb(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function bb(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function gb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function fb(e,t){return e.filter(a=>a.key!==t)}function vb(e,t,a){const r=e.filter(u=>u.pinned),n=new Set(r.map(u=>u.key)),i=e.length-r.length,s=[],c=new Set(n);for(const u of t){if(s.length>=i)break;const m=a(u);c.has(m)||(c.add(m),s.push({key:m,value:u,pinned:!1}))}const d=[...s];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function xb(e){return e.map(t=>t.value)}var M8=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
973
+ </html>`}function Tn({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{D8(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=window.open("","_blank");if(!m){n?.();return}m.document.write(uc(u,t,a,!1,r,i)),m.document.close()},[e,t,a,r,n,i]),d=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=uc(u,t,a,!1,r,i),p=new Blob([m],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(p),g=r&&dc(r),f=Object.assign(document.createElement("a"),{href:h,download:`${g}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(h)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:d}}function pc(e){const{t}=me.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[d,u]=l.useState(!0),[m,p]=l.useState(!0),[h,g]=l.useState(8),[f,b]=l.useState("right"),x=e.length,v=e.some(R=>R.words.length>1),C=e.some(R=>R.words.some(E=>!!E.colloquialLabel)),w=Math.min(h,Math.max(x,1)),_=l.useMemo(()=>Rm(e,w),[e,w]),k=_.length>1,y=w,[A,T]=l.useState(!1);l.useEffect(()=>{let R=!1;if(!Ma()){T(!1);return}return Promise.all(e.flatMap(E=>E.words.map(M=>Yo(M.label,M.homonum)))).then(E=>{R||T(E.some(Boolean))}),()=>{R=!0}},[e]);const S=l.useMemo(()=>[Im(t,{hasImage:A,hasColloquial:C}),Om(t),...x>0?[Vm(t,{hasPairs:v,itemCount:x})]:[],...k?[Gm(t)]:[],Fm(t),...y>1?[Hm(t)]:[],...v?[Wm(t)]:[]],[t,A,C,x,v,k,y]),N={...qm(t,{contentTypes:n,orientation:a,showOutline:d,cutLine:s,showDivLine:m}),...x>0?{[t(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${w}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Um[f]}:{}},F=l.useCallback((R,E)=>{Km(t,R,E,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:p})||(E===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(R)):E===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(Ym(R)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:d,showDivLine:m,count:y},filterSections:S,filterSelected:N,handleSelect:F,pages:_,isPaginated:k,pageNumberPosition:f}}var j8=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";ae(j8);function Xm({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:d,printFileName:u,showSettings:m,autoPrint:p,className:h,onClose:g,scoring:f=!1,onScoreChange:b,printHeader:x,beforeClose:v}){const{t:C}=me.useTranslation(),w=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ie=>typeof ie=="string"&&ie.length>0).map((ie,pe)=>({id:`${ie}-${pe}`,words:[{label:ie}]})),[e,t]),{settings:_,filterSections:k,filterSelected:y,handleSelect:A,pages:T,isPaginated:S,pageNumberPosition:N}=pc(w),F=l.useMemo(()=>ic(T.map(ie=>ie.length)),[T]),[R,E]=l.useState({}),M=l.useCallback((ie,pe)=>{E(ve=>({...ve,[wr(ie)]:oc(ve[wr(ie)]??null,pe)}))},[]),B=l.useRef(b);l.useEffect(()=>{B.current=b}),l.useEffect(()=>{B.current?.(Dn(R))},[R]);const G=l.useMemo(()=>Dn(R),[R]),Q=l.useRef(null),{toastMessage:ee,toastKey:oe,showWarning:D,clearToast:L}=vn("warning"),P=l.useRef([]),H=l.useCallback(()=>S?P.current.filter(ie=>ie!==null):Q.current?[Q.current]:[],[S]),{print:W,openNewWindow:te}=Tn({getElements:H,paperW:io[_.orientation].width,paperH:io[_.orientation].height,fileName:u??"",header:x??"",onPopupBlocked:()=>D(C("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),I=l.useMemo(()=>c?void 0:s?s({print:W,openNewWindow:te}):u?[{label:C("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>te()},{label:C("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>W()},...i??[]]:i,[c,s,u,i,C,W,te]),q=l.useMemo(()=>c?c({print:W,openNewWindow:te}):void 0,[c,W,te]),O=l.useRef(!1);return l.useEffect(()=>{if(!p||O.current)return;O.current=!0;const ie=window.setTimeout(()=>W(),100);return()=>window.clearTimeout(ie)},[p,W]),o.jsxs(Ba,{title:a??C("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:_e("word-table-popup",h),buttons:I,footer:q,footerClassName:d,beforeClose:v,onClose:g,children:[w.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[m&&o.jsx(En,{sections:k,selected:y,onSelect:A}),S?o.jsx("div",{className:"word-table-popup__pages",children:T.map((ie,pe)=>o.jsx(so,{items:ie,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:ve=>{P.current[pe]=ve},pageNumber:{current:pe+1,total:T.length},pageNumberPosition:N,scoring:f,scoreIndexOffset:F[pe],marks:G,onMarkClick:M},pe))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(so,{items:w,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:Q,fitHeight:!0,scoring:f,marks:G,onMarkClick:M})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??C("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(ro,{message:ee,position:"top",onClose:L},oe)]})}const E8=new Set(["x","triangle"]);function Jm(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&E8.has(n)&&a.push(e[r])}return a}function Qm(e,t){const[,a,r]=ka(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const u=i.exec(s);if(!u)break;c=Math.max(c,(u[1]?Number(u[1]):1)+1),s=s.slice(0,u.index).trim()}const d=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${d}\uBCF5\uC2B5 ${n}`}function eb(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function tb(e){return e.map(t=>t.label).join(" / ")}function ab(e,t,a){const r=Qr(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}const T8=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Ln(e,t){return T8().compare(e,t)}function L8(e,t){return typeof e=="number"&&typeof t=="number"?e-t:Ln(e==null?"":String(e),t==null?"":String(t))}function ob(e,t,a){return a===0?0:(e+t*.5)/a}function rb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")d.o++;else if(s==="triangle")d.triangle++;else if(s==="x")d.x++;else continue;d.latest=s,d.latestAt=n.scoredAt,t.set(c,d)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:ob(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||Ln(n.label,i.label)),r}function nb(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),d=c.filter(m=>m==="o").length,u=c.filter(m=>m==="triangle").length;return ob(d,u,c.filter(m=>m==="o"||m==="triangle"||m==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function ib(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function sb(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const d=s.itemId?.trim()||c,u=`${s.trainingType}|${d}`,m=t.get(u)??{trainingType:s.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};m.tried++,s.isCorrect||m.wrong++,m.title=c,m.latestCorrect=s.isCorrect,m.latestAt=s.answeredAt,m.lastSelected=s.selected,s.setId&&!m.setIds.includes(s.setId)&&m.setIds.unshift(s.setId),t.set(u,m)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||Ln(s.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function lb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function cb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const Mn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function db(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,d=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>Mn.includes(i.trainingType)).sort(r),word:n.filter(i=>!Mn.includes(i.trainingType)).sort(r),noSet:a}}function ub(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const d of i.cellLabels)r.has(d)&&!s.has(d)&&(s.add(d),c.push(d));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||Ln(i.name,s.name)),n.slice(0,Math.max(0,a))}function pb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function hb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function mb(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function bb(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function gb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function fb(e,t){return e.filter(a=>a.key!==t)}function vb(e,t,a){const r=e.filter(u=>u.pinned),n=new Set(r.map(u=>u.key)),i=e.length-r.length,s=[],c=new Set(n);for(const u of t){if(s.length>=i)break;const m=a(u);c.has(m)||(c.add(m),s.push({key:m,value:u,pinned:!1}))}const d=[...s];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function xb(e){return e.map(t=>t.value)}var M8=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
974
974
 
975
975
  /* !important \uD544\uC694: Icon.tsx\uC758 \uD3F4\uBC31 SVG(nullSvg)\uB294 style="stroke:...;stroke-width:.." \uC778\uB77C\uC778
976
976
  \uC18D\uC131\uC73C\uB85C \uB80C\uB354\uB9C1\uB418\uC5B4 \uD074\uB798\uC2A4 \uADDC\uCE59\uBCF4\uB2E4 \uC6B0\uC120\uC21C\uC704\uAC00 \uB192\uC74C. \uC774 \uADDC\uCE59\uC744 \uBAA8\uB4E0 \uC544\uC774\uCF58(\uC77C\uBC18 lucide
977
- \uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;ae(M8);function $8(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(We,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function _b(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const d=l.useRef(r),u=l.useRef(s),m=l.useRef(a!==void 0);l.useEffect(()=>{!m.current&&u.current&&typeof d.current=="function"&&d.current(u.current)},[]);const h=l.useCallback(p=>{const g=s===p?null:p;c(g),r?.(g)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(p=>o.jsx($8,{category:p,isSelected:s===p.key,onClick:()=>h(p.key)},p.key))})}var R8=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(R8);function Cb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(ne,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var P8=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";ae(P8);function yb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=me.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
977
+ \uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;ae(M8);function $8(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(We,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function _b(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const d=l.useRef(r),u=l.useRef(s),m=l.useRef(a!==void 0);l.useEffect(()=>{!m.current&&u.current&&typeof d.current=="function"&&d.current(u.current)},[]);const p=l.useCallback(h=>{const g=s===h?null:h;c(g),r?.(g)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(h=>o.jsx($8,{category:h,isSelected:s===h.key,onClick:()=>p(h.key)},h.key))})}var R8=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(R8);function Cb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(ne,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var P8=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";ae(P8);function yb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=me.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
978
978
  \uC2E0\uB8B0\uB97C \uC313\uACE0
979
979
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
980
- `).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Il,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var z8='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';ae(z8);function wb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),h=s?`${s} landing-header__inner`:"landing-header__inner",p=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:h,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:p(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:p(g,()=>m(!1))},g.href))})})]})}var I8=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ae(I8);function kb({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,...Sm(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const hc=9,O8=e=>Math.round(Math.min(hc,Math.max(0,e))/hc*100),F8=e=>e/100*hc,Ab={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},Sb=l.createContext(null);function mc(){return l.useContext(Sb)}const bc=e=>`${ii()}/${e}`,Bb=e=>Array.from({length:10},(t,a)=>bc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),$n={get defaultNoise(){return bc("noise1.mp3")},get street(){return Bb("noise2")},get restaurant(){return Bb("noise3")},get buzz(){return bc("noise4.mp3")}};function H8(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return $n.defaultNoise;case"street":return $n.street[t];case"restaurant":return $n.restaurant[t];case"buzz":return $n.buzz;default:return null}}function W8({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),h=l.useRef(null),p=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),g=l.useCallback((v,x=250)=>{const y=n.current;if(!y||!y.src)return;m.current+=1,p();try{Wo(),r.current?.("noise",Vo(y))}catch{}const C=y.paused?0:y.volume;y.paused&&(y.volume=0),y.play().catch(()=>{});const _=performance.now(),k=()=>{const w=Math.min(1,(performance.now()-_)/x);try{y.volume=Math.max(0,Math.min(1,C+(v-C)*w))}catch{}w<1?u.current=requestAnimationFrame(k):u.current=null};u.current=requestAnimationFrame(k)},[p]),f=l.useCallback((v=250,x)=>{const y=n.current;if(!y||y.paused){x?.();return}const C=++m.current;p();const _=performance.now(),k=y.volume,w=()=>{const A=Math.min(1,(performance.now()-_)/v);try{y.volume=Math.max(0,k*(1-A))}catch{}if(A<1)u.current=requestAnimationFrame(w);else{u.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{y.pause()}catch{}x?.()}};u.current=requestAnimationFrame(w),h.current=setTimeout(()=>{if(h.current=null,m.current===C){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{y.paused||(y.volume=0,y.pause(),x?.())}catch{}}},v+150)},[p]);l.useEffect(()=>{const v=document.createElement("audio");return v.loop=!0,v.crossOrigin="anonymous",n.current=v,()=>{p();try{v.pause(),v.src=""}catch{}n.current=null}},[p]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let v=0;const x=setInterval(()=>{const y=n.current;if(!y||y.paused){v=0;return}const C=t.current;if(C&&!C.paused&&!C.ended||a.current==="playing"){v=0;return}v+=1,v>=2&&(v=0,f())},400);return()=>clearInterval(x)},[f,b,t,a]),l.useEffect(()=>{const v=()=>{if(!document.hidden)return;const x=n.current;if(x&&!x.paused){p();try{x.pause()}catch{}}};return document.addEventListener("visibilitychange",v),()=>document.removeEventListener("visibilitychange",v)},[p]),l.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,level:e.settings.level,type:e.settings.type}:null},[e,e?.settings.enabled,e?.settings.level,e?.settings.type]),l.useEffect(()=>{const v=e?.settings,x=n.current;if(!x)return;if(!v||!v.enabled||v.level===0){f();return}const y=Math.min(1,v.level/9);if(c.current!==v.type){const C=H8(v.type);C&&(c.current=v.type,s(C),f(150,()=>{x.src=C,x.load();const _=t.current;_&&!_.paused&&x.addEventListener("canplay",function k(){x.removeEventListener("canplay",k);const w=t.current;w&&!w.paused&&!w.ended&&g(y)})}))}else{const C=t.current,_=!!C&&!C.paused&&!C.ended;if(_&&x.paused&&x.src)g(y);else if(!x.paused)if(!_)f();else{p();const k=x.volume,w=performance.now(),A=()=>{const T=Math.min(1,(performance.now()-w)/150);try{x.volume=k+(y-k)*T}catch{}T<1?u.current=requestAnimationFrame(A):u.current=null};u.current=requestAnimationFrame(A)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,p,g,f,t]),l.useEffect(()=>{const v=n.current;if(v)try{v.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:p,fadeInNoise:g,fadeOutNoise:f}}function V8({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:h,handleEndRef:p}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const v=(C,_=1)=>{try{const k=(C||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(C||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,_)))}catch{return 1200}},x=l.useCallback(C=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const _=window.speechSynthesis;try{try{_.cancel()}catch{}const k=C??e,w=(Array.isArray(k)?k[0]??"":k)||"",A=new SpeechSynthesisUtterance(w);try{A.rate=Math.max(.3,Math.min(3,t))}catch{}try{A.volume=Math.max(0,Math.min(1,a))}catch{}f.current=v(w,A.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const T=m.current;T?.enabled&&(T?.level??0)>0&&d(T.level/9);const S=()=>{try{const D=g.current||performance.now(),F=performance.now()-D,R=f.current||1200,E=Math.min(1,F/R);i(E);try{r.current&&(r.current.style.left=`${E*100}%`),n.current&&n.current.style.setProperty("--progress",String(E))}catch{}E<1&&(b.current=requestAnimationFrame(S))}catch{}};A.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{p.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},A.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(S)}catch{}};try{_.speak(A)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,h,p]),y=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:x,stopTTS:y}}var G8='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{display:none}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;position:absolute}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}';ae(G8);async function U8(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((h,p)=>{const g=p*u,f=Math.min(g+u,d);let b=0;for(let v=g;v<f;v++){const x=Math.abs(s[v]);x>b&&(b=x)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function Nb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await U8(r,t,a)}catch(r){try{const n=Kr(r)}catch{}return null}}const Db=4;function Y8(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:h=!0}=e,p=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[v,x]=l.useState(!1),[y,C]=l.useState(null),[_,k]=l.useState(2),[w,A]=l.useState(0),[T,S]=l.useState(null),[D,F]=l.useState(!1),R=3,E=3,$=1,B=300,G=l.useRef(0),Q=l.useCallback(async(ie,pe)=>{const ve=++G.current,xe=()=>G.current===ve;try{if(x(!1),!ie){xe()&&b(null);return}let be=pe;if(!be)try{for(let Ne=0;Ne<4&&!(p.current||g.current);Ne++)await new Promise(Ie=>requestAnimationFrame(Ie));await new Promise(Ne=>requestAnimationFrame(Ne));const U=p.current,re=g&&g.current?g.current:U?U.closest(".audio-player__wave"):null,ge=re?re.getBoundingClientRect():U?U.getBoundingClientRect():null,ce=ge?Math.max(100,ge.width):320,z=ge?ge.height:0;z>0&&A(z),be=Math.max($,Math.min(B,Math.floor((ce+E)/(R+E))));const X=be*R,Z=Math.max(0,be-1),fe=Z>0?(ce-X)/Z:E;k(Math.max(0,fe))}catch{be=120}const M=await Nb(ie,be);if(!xe())return;if(!M){b(null),x(!1);return}b(M),C(be),x(!0)}catch{if(!xe())return;b(null),x(!1)}},[x,b,A,k,C]);l.useEffect(()=>{const ie=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;Q(typeof ie=="string"?ie:void 0).catch(()=>{}),F(!1)},[t,a,Q]),l.useEffect(()=>{let ie=!1;if(!i||!y){S(null);return}const pe=d>0?d*(c||1):void 0;return Nb(i,y,pe).then(ve=>{ie||S(ve)}).catch(()=>{ie||S(null)}),()=>{ie=!0}},[i,y,d,c]);const ee=Math.max(0,Math.min(1,u)),oe=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),N=y||40,L=l.useMemo(()=>Array.from({length:N}).map((ie,pe)=>{const ve=f&&f[pe]!=null?f[pe]:null,xe=ve==null?null:Math.min(1,ve/oe*ee),be=xe!=null&&w>0&&xe*w<=Db,M=xe==null?.15:be?0:xe,U=N>1?pe/(N-1):0;return o.jsx("div",{className:be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":M,"--i":pe,"--mix":U}},pe)}),[N,f,oe,ee,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},H={"--bar-gap":`${_}px`},W=Math.max(0,Math.min(9,s))/9,te=v&&(i?!!T:!0);l.useEffect(()=>{te&&F(!0)},[te]);const I=D?v:te;l.useEffect(()=>{m?.(I)},[I,m]);const q=y||40,O=l.useMemo(()=>Array.from({length:q}).map((ie,pe)=>{const ve=T&&T[pe]!=null?T[pe]:null,xe=ve==null?0:Math.min(1,ve/oe*W),be=w>0&&xe*w<=Db,M=be?0:xe,U=q>1?pe/(q-1):0;return o.jsx("div",{className:be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":M,"--i":pe,"--mix":U}},pe)}),[q,T,oe,W,w]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:H,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${te?"is-ready":""}`,"aria-hidden":"true",children:O}),h&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${I?"is-ready":""}`,ref:p,children:L}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${I?"is-ready":""}`,ref:n,style:P,children:L})]})]})}const q8={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function gc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const K8=2e3;function jb(e,t=K8){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function Z8({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function X8(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function J8({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function Q8({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function e7(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function t7({ended:e,completedByEnd:t}){return!!e||!!t}function a7(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function o7(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function r7(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function n7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const m=e.current,h=Q8({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function kr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=me.useTranslation(),m=e,h=mc(),p=l.useRef(h?.registerAnalyser);l.useEffect(()=>{p.current=h?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),v=X8(),x=l.useRef(null),y=l.useRef(!1),C=l.useRef(0),_=l.useRef(null),{ref:k,rect:w,show:A,hide:T}=J8();l.useEffect(()=>()=>{p.current?.("main",null),p.current?.("noise",null)},[]);const[S,D]=l.useState(!1),[F,R]=l.useState("idle"),[E,$]=l.useState("stopped"),B=l.useRef("stopped");l.useEffect(()=>{B.current=E},[E]);const[G,Q]=l.useState(0),[ee,oe]=l.useState("active"),[N,L]=l.useState(null),[P,H]=l.useState(null),[W,te]=l.useState(0),[I,q]=l.useState(!1),[O,ie]=l.useState(0),pe=h?.playbackRate??1,ve=h?.mainVolume??1,[xe,be]=l.useState("idle"),[M,U]=l.useState(""),[re]=l.useState("top"),ge=l.useRef(null),ce=l.useRef(0),z=l.useRef(null),{start:X,stop:Z,settleTo:fe}=n7({audioRef:g,fillRef:f,waveProgressRef:z,sourcesRef:ge,currentIndexRef:ce}),{onReadyChange:Ne,waitForReady:Ie,markNotReady:Me}=Z8({showSoundWaveForm:c,showNoiseWaveForm:d}),Ee=l.useRef(null),je=l.useRef(n),Ae=l.useRef(r),Fe=l.useRef(null),Xe=l.useRef(!1),[we,He]=l.useState(!1),Te=l.useCallback(V=>{Xe.current=V,He(V)},[]),Ue=l.useRef(null),{activeNoiseUrl:et,noiseSettingsRef:Ke,fadeInNoise:Oe,fadeOutNoise:dt}=W8({noisePlayer:h,audioRef:g,playbackStateRef:B}),{startTTS:xt,stopTTS:Ze}=V8({ttsText:i,playbackRate:pe,mainVolume:ve,fillRef:f,waveProgressRef:z,setProgress:Q,setPlaybackState:$,setStateLocal:oe,fadeInNoise:Oe,fadeOutNoise:dt,noiseSettingsRef:Ke,onDoneRef:Ae,handleEndRef:Ue}),st=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Le=(!st||st.length===0)&&!!i,Pe=Array.isArray(N)&&N.length>0?N:Array.isArray(P)&&P.length>0?P:null,rt=Math.max(Array.isArray(Pe)?Pe.length:0,st.length),nt=l.useCallback(async(V,J=3,de=50)=>{for(let Ce=0;Ce<J;Ce++)try{return await V.play(),!0}catch(ye){if((ye instanceof Error||typeof ye=="object"&&ye&&"name"in ye?ye.name:void 0)==="AbortError"){await new Promise(De=>setTimeout(De,de));continue}try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),tt=l.useCallback(()=>{const V=g.current;if(!V)return;const J=()=>{$("playing"),oe("playMode"),q(!0),X();try{Wo(),p.current?.("main",Vo(V))}catch{}const ye=Ke.current;ye?.enabled&&(ye?.level??0)>0&&Oe(ye.level/9)},de=()=>{t7({ended:!!V?.ended,completedByEnd:Xe.current})||($("paused"),Z(),dt())},Ce=()=>{try{const ye=ge.current,De=e7(ye,ce.current);if(De!==null){ce.current=De,te(De),q(!0);const ze=ye?.[De]&&ye[De].src;if(ze&&V){V.src=ze,V.load(),nt(V).catch(()=>{});return}}}catch{}$("stopped"),Q(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Z(),q(!1),dt();try{!je.current&&Ue.current&&Ue.current()}catch{}};return V.addEventListener("play",J),V.addEventListener("pause",de),V.addEventListener("ended",Ce),()=>{try{V.removeEventListener("play",J),V.removeEventListener("pause",de),V.removeEventListener("ended",Ce),Z()}catch{}}},[Oe,dt,nt,Ke,X,Z]);l.useEffect(()=>tt(),[tt]),l.useEffect(()=>{je.current=n},[n]),l.useEffect(()=>{Ae.current=r},[r]),l.useEffect(()=>{if(n||ee!=="active")return;const V=_.current;if(!V)return;let J=null;const de=requestAnimationFrame(()=>{try{const Ce=V.getTotalLength();if(!Ce)return;const ye=Ce*.2;V.style.strokeDasharray=`${Ce-ye} ${ye}`;const De="triFlow_"+Math.random().toString(36).slice(2);J=document.createElement("style"),J.textContent=`@keyframes ${De}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Ce}}}`,document.head.appendChild(J),V.style.animation=`${De} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(de),J?.remove()}},[ee,n]),l.useEffect(()=>{ge.current=N},[N]),l.useEffect(()=>{ce.current=W},[W]),l.useEffect(()=>{const V=b.current,J=x.current;if(!V||!J)return;let de=null;const Ce=32,ye=60,De=()=>{try{const ut=Array.from(V.querySelectorAll(":scope > .button"));let ue=0;ut.forEach(Yt=>{if(Yt===J)return;const Eo=Yt.getBoundingClientRect();ue+=Eo.width});const Se=V.getBoundingClientRect().width,Ge=Math.max(0,Math.floor(Se-ue-8)),mt=rt;if(!mt||Ge<=0){Array.from(J.children).forEach(Yt=>{try{Yt.style.width=""}catch{}});return}let _t=Math.floor(Ge/mt);_t>ye&&(_t=ye),_t<Ce&&(_t=Math.max(Ce,Math.floor(Ge/mt))),Array.from(J.querySelectorAll(".button")).forEach(Yt=>{try{Yt.style.width=`${_t}px`}catch{}})}catch{}},ze=requestAnimationFrame(De);try{de=new ResizeObserver(()=>{requestAnimationFrame(De)}),de.observe(V),de.observe(J),window.addEventListener("resize",De)}catch{}return()=>{try{cancelAnimationFrame(ze)}catch{}try{de&&(de.disconnect(),de=null)}catch{}try{window.removeEventListener("resize",De)}catch{}}},[N,P,rt]),l.useEffect(()=>()=>{try{Ee.current&&(clearTimeout(Ee.current),Ee.current=null),Fe.current&&(clearTimeout(Fe.current),Fe.current=null)}catch{}},[]);const lt=(V,J)=>{L(V),ie(J),Me(),H(a7(V)),ge.current=V},yt=async(V,J)=>{Te(!1),y.current=!1,V.src=J,V.load(),await jb(V),await Ie(),D(!1),await nt(V),oe("playMode"),te(0),q(!0)},aa=async(V,J=!1)=>{const de=g.current;D(!0),R("measuring_duration");try{const Ce=await gc(V,{timeoutMs:1e4,rejectOnError:!0});lt([{src:V,objectUrl:null,duration:Ce}],Ce),R("ready"),J&&de&&await yt(de,V)}finally{y.current=!1,D(!1)}},at=async(V,J=!1)=>{const de=g.current;D(!0),R("measuring_duration");try{const Ce=await Promise.all(V.map(De=>gc(De,{timeoutMs:1e4}))),ye=V.map((De,ze)=>({src:De,objectUrl:null,duration:Ce[ze]||0}));lt(ye,o7(ye)),R("ready"),J&&de&&ye.length>0&&await yt(de,ye[0].src)}finally{y.current=!1,D(!1)}},Lt=async(V=!1,J=!0)=>{const de=g.current,Ce=t?Array.isArray(t)?t:[t]:[];if(!(!Ce||Ce.length===0||!Ce.some(Boolean))&&!y.current){y.current=!0,J&&D(!0),R("resolving");try{const ye=r7(t,a,Tr),De=[];let ze=0;for(const ut of ye){let ue=ut.src??null,Se=null;if(!ue&&ut.resolvedPath){try{R("getting_signed_url"),ue=await Oo(ut.resolvedPath)}catch{ue=null}if(!ue)try{R("downloading");const mt=await Lr(ut.resolvedPath);if(mt){const _t=mt instanceof Blob?mt:new Blob([mt]);Se=v.track(URL.createObjectURL(_t)),ue=Se}}catch{R("error");try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),oe("active")}catch{}}}if(!ue)continue;let Ge=0;try{R("measuring_duration"),Ge=await gc(ue,{timeoutMs:3e3})}catch{Ge=0}ze+=Ge||0,De.push({...ut,src:ue,objectUrl:Se,duration:Ge})}if(lt(De,ze),De.length>0&&V&&de){const ut=De[0];Te(!1);try{v.keepOnly(De.map(ue=>ue.objectUrl))}catch{}if(R("ready"),y.current=!1,ut.src&&de)try{de.src=ut.src,de.load(),await jb(de),await Ie(),J&&D(!1),de&&await nt(de)}catch{J&&D(!1)}else J&&D(!1);oe("playMode"),te(0),q(!0)}}finally{y.current=!1,J&&D(!1),R(ye=>ye==="ready"?"ready":"idle")}}},Pt=async()=>{const V=g.current;if(!(!V&&!Le)){if(Le){const J=window.speechSynthesis;if(ee==="active"){const de=Fo(),Ce=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(de&&Ce.length>0){oe("load"),D(!0),R("resolving"),y.current=!0;try{const ye=await Promise.all(Ce.map(De=>Promise.resolve(de(De))));ye.length>1?await at(ye,!0):await aa(ye[0],!0)}catch{y.current=!1,D(!1),oe("active"),xt(Ce[0]||void 0)}return}xt(Ce[0]||void 0);return}if(ee==="playMode"){if(V){if(V.paused){if(Xe.current){await Wt();return}await nt(V),$("playing")}else V.pause(),$("paused");return}try{if(J&&J.paused)try{J.resume(),$("playing")}catch{}else try{J.pause(),$("paused")}catch{}}catch{}}return}if(ee==="active"){if(n&&Array.isArray(ge.current)&&ge.current.length>0){const J=ge.current[0];try{if(J.src&&V)try{V.src=J.src,V.load(),V&&await nt(V)}catch{}oe("playMode"),te(0),q(!0);return}catch{}}oe("load"),await Lt(!0);return}if(ee!=="load"&&(ee==="playMode"||ee==="active"))try{if(V&&V.paused){if(Xe.current){await Wt();return}V&&await nt(V),$("playing")}else V&&(V.pause(),$("paused"))}catch(J){(J instanceof Error||typeof J=="object"&&J&&"name"in J)&&J.name}}},Wt=async()=>{const V=g.current;if(V)try{const J=ge.current;if(Array.isArray(J)&&J.length>1){await Et(0);return}Te(!1);try{V.currentTime=0}catch{}V&&await nt(V),$("playing"),oe("playMode")}catch{}},Ea=()=>{if(Le){Ze();return}const V=g.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}dt(),$("stopped"),oe("active"),Q(0),q(!1)},oa=async(V,{sameSegment:J=!1}={})=>{const de=++C.current,Ce=g.current,ye=ge.current?.[V]?.src;try{if(Te(!1),te(V),q(!0),ce.current=V,!ye||!Ce||(J||Me(),Ce.src=ye,Ce.load(),J||await Ie(),de!==C.current)||(await nt(Ce),de!==C.current))return;$("playing"),oe("playMode")}catch{}},va=async()=>{const V=ge.current,J=ce.current||0;if(!V||J<=0){await Wt();return}await oa(J-1)},Ta=async()=>{const V=ge.current,J=ce.current||0;if(!V||J>=V.length-1){Ea();return}await oa(J+1)},jt=()=>{if(Xe.current)return;const V=200,J=340;Te(!0);try{Q(1)}catch{}fe(1);try{be("hold")}catch{}try{const de=g.current,Ce=Le&&!!de?.src;if(!Le||Ce){if(de){de.pause();try{de.currentTime=0}catch{}}}else Ze();dt()}catch{}try{$("stopped")}catch{}if(q(!1),!je.current)try{Fe.current&&(clearTimeout(Fe.current),Fe.current=null),Fe.current=setTimeout(()=>{try{be("out")}catch{}Fe.current=setTimeout(()=>{try{typeof Ae.current=="function"&&Ae.current(!0)}catch{}try{be("idle")}catch{}Fe.current=null},J)},V)}catch{}};l.useEffect(()=>{Ue.current=jt});const Ua=l.useCallback(()=>U(""),[]),Et=async V=>{(ge.current||[])[V]&&await oa(V,{sameSegment:V===ce.current})},xa=E==="playing",Ya=l.useMemo(()=>{if(!P||P.length<=1)return P;const V=P[W];return V?[V]:P},[P,W]),Je=n===!0;l.useEffect(()=>{try{const V=g.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=pe||1)}catch{}},[pe]),l.useEffect(()=>{try{const V=g.current;V&&(V.volume=Math.max(0,Math.min(1,ve)))}catch{}},[ve]);const zt=xe==="hold",wt=xe==="out",_a=ee==="playMode"&&!S&&!we||zt||wt,ra=E!=="stopped"||zt||wt,na=E==="paused",ia=Math.max(0,Math.min(100,(G||0)*100)),le=_e("audio-player__fill",_a?"is-visible":"",ra?"is-expanded":"",na?"is-paused":"",wt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Je?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${xa?"is-playing":""} ${S?"is-loading":""} ${ee!=="default"?"is-revealed":""}`,children:[S?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:q8[F]})]}):null,ee==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{T(),Pt()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:T,onFocus:A,onBlur:T,children:o.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:_,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&o.jsx(ha,{anchorRect:w,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${ee==="playMode"||xa?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:va,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:xa?"pause":"play",onClick:Pt,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),rt>1?o.jsx("div",{ref:x,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((V,J)=>o.jsx(ne,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(J+1),onClick:()=>{try{Et(J)}catch{}},ariaLabel:u("training.sourcePlay",{n:J+1}),variant:"transparent-white",selected:I&&W===J,disabled:ee!=="playMode"||!(Array.isArray(N)&&N[J]),showTooltipInfo:!0},J))}):null,!Array.isArray(N)||N.length<=1?o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Wt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}):null,o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ta,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:le,ref:f,style:{left:`${ia}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(Y8,{segments:Ya,progress:G,totalDuration:O,onSegmentClick:Et,waveProgressRef:z,showSoundWaveForm:c,noiseSrc:d&&h?.settings.enabled&&(h?.settings.level??0)>0?et:null,noiseLevel:h?.settings.level??0,noiseSpeed:h?.settings.speed??1,mainVolume:ve,onReadyChange:Ne})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(We,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),o.jsx(ro,{message:M,position:re,onClose:Ua})]})}var i7=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";ae(i7);function Do(e){const{t}=me.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}=cn({storageKey:"tooltip-fontScale"}),v=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),x=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),y=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],C={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},_=o.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:C,children:y.map((k,w)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[y.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!p}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:x,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Aa,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:_}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:_})}var s7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ae(s7);var l7='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';ae(l7);function fc({state:e="disabled"}){const{t}=me.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(We,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var c7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ae(c7);function vc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:h}=me.useTranslation(),p=Qt("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[v,x]=l.useState(!1),[y,C]=l.useState(null),[_,k]=l.useState(null),w=l.useRef(i);l.useEffect(()=>{w.current=i});const A=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(D=>typeof D=="string"||typeof D=="number")?s.join(""):"",[s]),T=l.useCallback(()=>{x(!1),C(null),k(null)},[]);l.useEffect(()=>{if(!v)return;let D;try{typeof w.current=="function"&&(D=w.current())}catch{}if(D===!1){T();return}k(typeof D<"u"&&D!==null?D:null)},[A]);const S=l.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:s),!b.current){x(F=>!F);return}if(v)x(!1),C(null),k(null);else{const F=b.current.getBoundingClientRect();C(F),x(!0)}}},[i,s,v]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(ne,{size:32,type:p?"dot":"bar",icon:"play-circle",label:p?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(ne,{size:32,type:p?"dot":"bar",icon:"eye",label:p?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:S,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),v&&o.jsx(Do,{text:_??s,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:y,onClose:T,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function xc(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Ga({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=me.useTranslation(),[m,h]=l.useState(()=>xc(e,t));l.useEffect(()=>{const k=xc(e,t);if(k!==m){const w=setTimeout(()=>h(k),0);return()=>clearTimeout(w)}},[e,t,m]);const p=l.useCallback((...k)=>{xc(e,t)==="done"||m==="done"||typeof c=="function"&&c(...k)},[e,t,m,c]),[g,f]=l.useState(!1),[b,v]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),x=l.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const S=w.currentTarget??w.target;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect()}if(k instanceof DOMRect)return k;const A=k;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const T=k?.current;return T&&typeof T.getBoundingClientRect=="function"?T.getBoundingClientRect():null}catch{return null}},[]),y=l.useCallback((k,{text:w="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:T=!1,alignX:S="center",alignY:D="top"}={})=>{const F=x(k);v({text:w,label:A,anchorRect:F,backdrop:T,alignX:S,alignY:D}),f(!0)},[x]),C=l.useCallback(()=>{f(!1),v(k=>({...k,anchorRect:null}))},[]),_=l.Children.map(i,k=>{if(l.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const A=w.props??{},T=typeof A.onDone=="function"?A.onDone:p,S=typeof A.disabled=="boolean";let D=m==="disabled";return S&&(D=!!A.disabled),l.cloneElement(w,{onDone:T,disabled:D,showTooltip:y,hideTooltip:C})}return k});return o.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${s}`,"aria-current":m==="active",children:[o.jsx(fc,{state:m}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(vc,{state:m,title:r,...n,useFaded:d}),_]}),g?o.jsx(Aa,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:C,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:o.jsx(Do,{text:b.text,onClose:C})}):null]})}var d7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ae(d7);function _c({context:e,state:t="disabled",theme:a="light"}){const{t:r}=me.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const d=()=>c(S=>S==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:h,canDecrease:p,fontSize:g,lineHeight:f}=cn({storageKey:"textbox_fontScale"}),[b,v]=l.useState(""),x=l.useCallback(()=>i("active"),[]),y=l.useCallback(()=>v(""),[]),C=S=>{try{v(S)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const S=setTimeout(()=>i(t),0);return()=>clearTimeout(S)}},[t]);const k=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const S=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(S)},[k]);const w=t==="disabled"?n:t,A=w==="disabled"?"training-text-box--disabled":w==="active"?"training-text-box--active":w==="done"?"training-text-box--done":"",T=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${A} ${w!=="disabled"&&s==="dark"?"is-dark":""}`,children:[w==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(ne,{size:48,type:"bar",onClick:x,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":w==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:T,children:k})}),w!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":w==="disabled",children:[o.jsx(ne,{size:32,type:"dot",onClick:m,onDisabledClick:()=>C(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ne,{size:32,type:"dot",onClick:u,onDisabledClick:()=>C(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:y})]})}function Rn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:h=0,useDisabledCovered:p=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=me.useTranslation(),v=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),x=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":x<t?"done":x===t?"active":"disabled",C=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,_=d?d.join("||"):"",k=u?u.join("||"):"",[w,A]=l.useState(()=>Array.isArray(C)?f?Ve(C):C.slice():void 0);l.useEffect(()=>{Array.isArray(C)&&C.length?A(f?Ve(C):C.slice()):A(void 0)},[c,_,k,f]);const[T,S]=l.useState(null),[D,F]=l.useState(()=>new Set);l.useEffect(()=>{S(null),F(new Set)},[k]);const R=l.useRef(void 0);l.useEffect(()=>{const B=R.current;typeof B=="number"&&typeof t=="number"&&typeof e=="number"&&B>=e&&t<e&&(S(null),F(new Set)),R.current=t},[t,e]);const E=l.useCallback(B=>{if(y!=="active")return;const G=w?.[B];if(G==null)return;const Q=G,ee=y==="active"||y==="done";if(m){const oe=new Set(D),N=oe.has(Q);N?oe.delete(Q):oe.add(Q),F(oe),typeof s=="function"&&s({selectedValues:[...oe],__ts:Date.now()}),ee&&(typeof h=="number"&&h>0?oe.size>=h:!N)&&typeof i=="function"&&y==="active"&&i({selectedValues:[...oe],__ts:Date.now()})}else S(Q),typeof s=="function"&&s({selectedIndex:B,selectedValue:Q,__ts:Date.now()}),ee&&typeof i=="function"&&y==="active"&&i({selectedIndex:B,selectedValue:Q,__ts:Date.now()})},[w,y,m,s,i,h,D]),$=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:v,useTitleFaded:n,children:o.jsx("div",{className:$,children:Array.isArray(w)&&w.length>0?w.map((B,G)=>o.jsx(ne,{size:56,type:"bar",onClick:()=>E(G),ariaLabel:String(B),label:B,useLabel:!0,icon:g?g[String(B)]:void 0,variant:"default",disabled:y==="disabled",selected:m?D.has(B):T===B,useDisabledCovered:p,minWidth:0},String(B))):null})})}function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=me.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",p=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const C=setTimeout(()=>b(null),0);return()=>clearTimeout(C)}},[p,c,f]);const v=l.useCallback(C=>{const _=typeof C=="object"&&C!==null?Object.assign({},C,{__ts:Date.now()}):{value:C,__ts:Date.now()};typeof i=="function"&&i(_),h==="active"&&typeof n=="function"&&n(_)},[i,h,n]),x=l.useCallback(()=>{h==="active"&&(b(!1),v(!1))},[v,h]),y=l.useCallback(()=>{h==="active"&&(b(!0),v(!0))},[v,h]);return o.jsxs(Ga,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(_c,{context:s,state:h}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((C,_)=>o.jsx(ne,{size:56,type:"bar",onClick:()=>{h==="active"&&(b(_),v&&v(_))},disabled:h==="disabled",ariaLabel:String(C),label:C,variant:h,selected:f===_},_)):o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:56,type:"bar",onClick:x,disabled:h==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(ne,{size:56,type:"bar",onClick:y,disabled:h==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function zn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:h,_pageIndex:p,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=me.useTranslation(),v=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),x=h??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:v,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(kr,{soundSrc:s,ttsText:s?null:u??v,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:x,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${p??0}-s${e}`)})}var u7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";ae(u7);var p7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ae(p7);function In({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=me.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[m,h]=l.useState(Array.isArray(s)?s:[]),[p,g]=l.useState(()=>(m||[]).map((L,P)=>({id:P,text:u(L)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const L=Array.isArray(s)?s:[];h(L);const P=(H=>{const W=(H||[]).map((O,ie)=>({id:ie,text:u(O)}));if(W.length<=1)return W;const te=(O,ie)=>{if(O.length!==ie.length)return!1;for(let pe=0;pe<O.length;pe++)if(O[pe].text!==ie[pe].text)return!1;return!0};let I=Ve(W),q=0;for(;te(I,W)&&q<20;)I=Ve(W),q+=1;return I})(L);g(P);try{if(typeof i=="function"){const H=P.filter((W,te)=>W.text===u(L[te])).length;i({shuffled:P,score:H,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const H=P.filter((W,te)=>W.text===u(L[te])).length;n({shuffled:P,score:H,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(L,P)=>{const H=[...p],W=L+P;if(W<0||W>=H.length)return;const te=H[W];H[W]=H[L],H[L]=te,$(H);try{if(typeof n=="function"&&f==="active"){const I=H.filter((q,O)=>q.text===u(m[O])).length;n({shuffled:H,score:I,total:(m||[]).length,__ts:Date.now()})}}catch{}},[v,x]=l.useState(null),y=l.useRef(null),C=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(null),A=l.useRef({x:0,y:0}),T=l.useRef(null),S=l.useRef({dx:0,dy:0}),D=()=>{if(T.current!==null)return;const L=()=>{T.current=requestAnimationFrame(L);const P=A.current,H=S.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${P.x-H.dx}px, ${P.y-H.dy}px, 0)`)};T.current=requestAnimationFrame(L)},F=l.useRef(new Map),R=l.useRef(new Map),E=()=>{const L=new Map;return F.current.forEach((P,H)=>{P&&P.getBoundingClientRect&&L.set(H,P.getBoundingClientRect())}),L},$=L=>{const P=E();g(L);try{if(typeof i=="function"){const H=L.filter((W,te)=>W.text===u(m[te])).length;i({shuffled:L,score:H,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=E();L.forEach(W=>{const te=P.get(W.id),I=H.get(W.id),q=F.current.get(W.id);if(!q||!te||!I)return;const O=te.top-I.top;O&&(q.style.transition="none",q.style.transform=`translateY(${O}px)`,requestAnimationFrame(()=>{q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",q.style.transform="";const ie=()=>{q.style.transition="",q.removeEventListener("transitionend",ie)};q.addEventListener("transitionend",ie)}))})})},B=(L,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(L))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),P.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}x(L);try{const H=p[L],W=document.createElement("div");W.className="order-list__dragging-object order-list__dragging-object--visible",W.textContent=H&&H.text?H.text:"",document.body.appendChild(W),y.current=W;const te=F.current.get(H.id);let I=P.clientX||0,q=P.clientY||0;try{if(te&&te.getBoundingClientRect){const be=te.getBoundingClientRect();I=be.left+be.width/2,q=be.top+be.height/2}}catch{}const O=W.getBoundingClientRect(),ie=O.width/2,pe=O.height/2;S.current={dx:ie,dy:pe},W.style.transition="none",A.current={x:I,y:q},W.style.transform=`translate3d(${I-ie}px, ${q-pe}px, 0)`,requestAnimationFrame(()=>{try{W.style.transition=""}catch{}D()});const ve=be=>{const M=be;A.current={x:M.clientX,y:M.clientY},D()};_.current=ve,document.addEventListener("mousemove",ve);const xe=be=>{const M=be;A.current={x:M.clientX,y:M.clientY},D()};C.current=xe,document.addEventListener("dragover",xe);try{P.dataTransfer?.setData("text/plain",String(L));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},G=(L,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const H=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if(H&&k.current!==H){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}k.current=H}}catch{}},Q=(L,P)=>{P.preventDefault();const H=P.dataTransfer?.getData("text/plain")||"",W=H?parseInt(H,10):v,te=L;if(typeof W!="number"||isNaN(W)||W===te){x(null),N(),ee();return}const I=Wi(p,W,te);$(I),x(null),ee();try{if(typeof n=="function"&&f==="active"){const q=I.filter((O,ie)=>O.text===u(m[ie])).length;n({shuffled:I,score:q,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const q=document.querySelectorAll(".order-list .order-list__item")[te];if(!q)return;const O=q.querySelector(".order-list__slot")||q;try{O.classList.add("pulse"),O.offsetHeight,O.classList.add("to-dark");const ie=()=>{O.classList.remove("pulse","to-dark"),O.removeEventListener("transitionend",ie)};O.addEventListener("transitionend",ie)}catch{}})}catch{}N()},ee=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}C.current&&(document.removeEventListener("dragover",C.current),C.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null)},oe=()=>{x(null),N(),ee()};l.useEffect(()=>()=>ee(),[]);const N=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const L=Math.max(1,(p||[]).length);p.forEach((P,H)=>{const W=R.current.get(P.id);if(!W)return;let te=50;L>1&&(te=Math.round(H/(L-1)*100));try{W.style.setProperty("--marker-pos",te+"%")}catch{}})}catch{}},[p]),l.useEffect(()=>()=>{ee(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:p.map((L,P)=>{const H=Math.max(1,(p||[]).length),W=H>1?Math.round(P/(H-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":W+"%"},ref:te=>{const I=R.current;te?I.set(L.id,te):I.delete(L.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,o.jsxs("div",{ref:te=>{const I=F.current;te?I.set(L.id,te):I.delete(L.id)},className:`order-list__draggable ${v===P?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?te=>B(P,te):void 0,onDragEnter:f==="active"?te=>G(P,te):void 0,onDragOver:f==="active"?te=>G(P,te):void 0,onDragLeave:f==="active"?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const te=document.querySelectorAll(".order-list .order-list__item");te&&te[P]&&(te[P].classList.remove("drag-over"),k.current===te[P]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?te=>Q(P,te):void 0,onDragEnd:f==="active"?oe:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(ne,{size:32,type:"dot",onClick:()=>b(P,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(ne,{size:32,type:"dot",onClick:()=>b(P,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===p.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var h7="";ae(h7);const m7=8e3;function b7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function Cc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:h}=me.useTranslation(),p=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=m??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const v=typeof e=="number"?e:-1,x=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",[y,C]=l.useState(null),_=l.useRef([]),[k,w]=l.useState(!1),A=l.useMemo(()=>g.map(F=>F?.id??F?.word??"").join("|"),[g]);l.useEffect(()=>{C(null),_.current=[]},[A]);const T=l.useCallback((F,R)=>{if(c)return;const E={item:F,index:R,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(x==="active"&&typeof n=="function")try{n(E)}catch{}},[c,i,x,n]),S=l.useCallback(async()=>{if(!(k||x==="disabled")){w(!0);try{for(const F of _.current)F&&await b7(F.play(),m7)}finally{w(!1)}}},[k,x]),D=l.useCallback((F,R)=>{if(x!=="active")return;C(R);const E={selectedValue:F.word||F.title||"",selectedIndex:R,item:F,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(x==="active"&&typeof n=="function")try{n(E)}catch{}},[i,x,n]);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:p,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:S,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((F,R)=>o.jsx(Nn,{ref:E=>{_.current[R]=E},item:F,disabled:x==="disabled",onPlayDone:()=>T(F,R),selectable:c,selected:c&&y===R,onSelect:c?()=>D(F,R):void 0,flipDelay:R*120,hideLabel:d,hideAudio:u},F&&F.id||R))})})}const g7=160;var f7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";ae(f7);const Eb=()=>{};function Da(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:v,onClick:x,children:y,align:C="horizontal",icon:_}=e,k=w=>{x&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),x())};return o.jsxs("div",{className:_e("panel-row",C==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?k:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[_!=null&&o.jsx("div",{className:"panel-row__icon",children:_}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),v&&o.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),o.jsx("div",{className:"panel-row__right",children:y})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(So,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:m}=e;let h=null;const p=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;h=o.jsx(Gl,{checked:b.checked,onChange:b.onChange,id:p})}else if(a==="segmented"){const b=e;h=o.jsx(Va,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,v=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((x,y)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:u,error:!!c,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},y))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Eb,block:u,error:!!c,ariaLabel:r});h=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[v,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const b=e;b.buttons?.length?h=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((v,x)=>o.jsx(ne,{size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},x))}):h=o.jsx(ne,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=o.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[o.jsx(Wa,{value:b.value,onChange:b.onChange??Eb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:_e("panel-row",d==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[p?o.jsxs("label",{htmlFor:p,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:h})]})}function Tb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Lb({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=me.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(n=>{const i=e[n],s=n==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:s}),i&&t&&o.jsx(ne,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(n)})]}),i?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&o.jsx(ht,{size:"small",variant:wm(i.device),fill:"soft",label:i.device}),Tb(i)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Tb(i)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},n)})})}function Ar({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,useBorder:u=!0,useBg:m=!0,useRowBorder:h=!0,labelWidth:p,form:g=!1,loading:f,empty:b,children:v}){const x=_e("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",h?"":"panel--no-row-border",c),y={};return i!==void 0&&(y.minHeight=i),s!==void 0&&(y.maxWidth=typeof s=="number"?`${s}px`:s),p!==void 0&&(y["--panel-label-width"]=typeof p=="number"?`${p}px`:p),o.jsxs("div",{className:x,style:Object.keys(y).length?y:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:_e("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(We,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Da,{variant:"loading"}):b!=null&&(v==null||Array.isArray(v)&&v.length===0)?o.jsx(Da,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:v}):v]})}function Mb({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function v7(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function $b(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}v7(Ca.t.bind(Ca)),$b(Ca.t.bind(Ca));var x7='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:20px}.ihabdevteam-core-scope .tooltip-content:has(.noise-settings__header) .tooltip-content__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}';ae(x7);const yc="none",_7=.5,C7=1.5,y7=.25;function wc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Da,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(Zl,{value:a,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function kc({anchorRect:e,onClose:t}){const{t:a}=me.useTranslation(),r=Qt("(max-width: 767px)")?40:24,n=mc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=O8(i),u=n?.playbackRate??1,m=n?.mainVolume??1,h=Math.round(m*100),p=l.useCallback(v=>{try{n?.setMainVolume(Math.max(0,Math.min(1,v/100)))}catch{}},[n]),g=l.useCallback(v=>{try{n?.setPlaybackRate(v)}catch{}},[n]),f=l.useCallback(v=>{const x=F8(v);try{n?.setSettings({level:x})}catch{}},[n]),b=l.useCallback(v=>{try{v===yc?n?.setSettings({enabled:!1}):n?.setSettings({type:v,enabled:!0})}catch{}},[n]);return o.jsx(Aa,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(Ar,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx(wc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${h}%`,value:h,min:0,max:100,step:10,size:r,onChange:p}),o.jsx(wc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:_7,max:C7,step:y7,size:r,onChange:g}),o.jsx(wc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${d}%`,value:d,min:0,max:100,step:10,size:r,onChange:f}),o.jsx(Da,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Va,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:yc,label:a("training.noise.type.none","\uC5C6\uC74C")},...$b(a).map(v=>({key:v.value,label:v.label}))],value:c?s:yc,onChange:b})})]})})}var w7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";ae(w7);function Ac({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=me.useTranslation(),[u,m]=l.useState(!1),[h,p]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),v=l.useRef(null),x=mc(),y=s<c-1,C=s===c-1,_=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),p(null))},[e]);const k=l.useCallback(()=>{m(!1),p(null)},[]),w=l.useCallback(()=>{if(u){m(!1),p(null);return}const S=b?.current?.getBoundingClientRect();S&&p(S),t?.(),m(!0)},[u,t]),A=l.useCallback(()=>{if(u){m(!1),p(null);return}const S=v?.current?.getBoundingClientRect();S&&p(S),t?.(),m(!0)},[u,t]),T=l.useCallback(()=>f(S=>!S),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ne,{size:56,type:"bar",icon:"settings",onClick:w,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ne,{size:56,type:"dot",icon:"settings",onClick:A,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(ne,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:T,selected:g,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(kn,{analyser:x?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(kn,{analyser:x?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[C&&o.jsx(ne,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),y&&o.jsx(ne,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&u&&o.jsx(kc,{anchorRect:h,onClose:k})]})}var k7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ae(k7);function Sc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:h,onClose:p}){const{t:g}=me.useTranslation(),f=Qt("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,v=Number.isInteger(u)?u:d||0,x=h||p,y=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,C=typeof e=="string"?e.trim():e,_=typeof t=="string"?t.trim():t,k=!!(C||_),w=k?C||_:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=y||t,T=f&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,S=l.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[x?o.jsx(ne,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:x,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(Nm,{icon:n,label:e,tooltip:s,wrapperStyle:S}):null}),o.jsxs("div",{className:"pp-title__text",children:[T?o.jsx("span",{className:"pp-title__depth caption-1",children:T}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Ql,{max:Math.max(0,v??0),index:Math.max(0,b??0)})]})}function Rb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Pb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function Bc(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=tn().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function On(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zb(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Ib({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Bc(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function Ob(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Fb(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Hb(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Nc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function Wb(e,t,a,r){return Nc(e,t*a+r)}function Vb({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function Gb(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Ub=l.createContext(null);function A7(){const e=l.useContext(Ub);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function S7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),h=n.join("|");l.useEffect(()=>{m(h?h.split("|").map(()=>null):[])},[h]);const p=l.useMemo(()=>u.filter(f=>f!==null).length+1,[u]),g=l.useCallback(f=>{d==="active"&&m(b=>{const v=[...b];if(v[f]!==null){const y=v[f];return v.map(C=>C!==null&&C>=y?null:C)}v[f]=p;const x={selectedOrder:v,words:n,__ts:Date.now()};try{typeof s=="function"&&s(x)}catch{}if(v.every(y=>y!==null))try{typeof i=="function"&&i(x)}catch{}return v})},[d,p,s,i,n]);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(Nn,{item:{word:f},disabled:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function Sr(e){return null}Sr.__isTrainingPage=!0;function jo(e,t){const a=A7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Dc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=jo(e,t);return o.jsx(zn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function jc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Rn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Ec({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Pn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Tc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(In,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Lc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Cc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function B7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(S7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var N7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
980
+ `).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Il,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var z8='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';ae(z8);function wb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),p=s?`${s} landing-header__inner`:"landing-header__inner",h=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:p,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:h(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:h(g,()=>m(!1))},g.href))})})]})}var I8=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ae(I8);function kb({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,...Sm(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const hc=9,O8=e=>Math.round(Math.min(hc,Math.max(0,e))/hc*100),F8=e=>e/100*hc,Ab={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},Sb=l.createContext(null);function mc(){return l.useContext(Sb)}const bc=e=>`${ii()}/${e}`,Bb=e=>Array.from({length:10},(t,a)=>bc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),$n={get defaultNoise(){return bc("noise1.mp3")},get street(){return Bb("noise2")},get restaurant(){return Bb("noise3")},get buzz(){return bc("noise4.mp3")}};function H8(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return $n.defaultNoise;case"street":return $n.street[t];case"restaurant":return $n.restaurant[t];case"buzz":return $n.buzz;default:return null}}function W8({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),p=l.useRef(null),h=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),g=l.useCallback((x,v=250)=>{const C=n.current;if(!C||!C.src)return;m.current+=1,h();try{Wo(),r.current?.("noise",Vo(C))}catch{}const w=C.paused?0:C.volume;C.paused&&(C.volume=0),C.play().catch(()=>{});const _=performance.now(),k=()=>{const y=Math.min(1,(performance.now()-_)/v);try{C.volume=Math.max(0,Math.min(1,w+(x-w)*y))}catch{}y<1?u.current=requestAnimationFrame(k):u.current=null};u.current=requestAnimationFrame(k)},[h]),f=l.useCallback((x=250,v)=>{const C=n.current;if(!C||C.paused){v?.();return}const w=++m.current;h();const _=performance.now(),k=C.volume,y=()=>{const A=Math.min(1,(performance.now()-_)/x);try{C.volume=Math.max(0,k*(1-A))}catch{}if(A<1)u.current=requestAnimationFrame(y);else{u.current=null,p.current!==null&&(clearTimeout(p.current),p.current=null);try{C.pause()}catch{}v?.()}};u.current=requestAnimationFrame(y),p.current=setTimeout(()=>{if(p.current=null,m.current===w){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{C.paused||(C.volume=0,C.pause(),v?.())}catch{}}},x+150)},[h]);l.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",n.current=x,()=>{h();try{x.pause(),x.src=""}catch{}n.current=null}},[h]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let x=0;const v=setInterval(()=>{const C=n.current;if(!C||C.paused){x=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,f())},400);return()=>clearInterval(v)},[f,b,t,a]),l.useEffect(()=>{const x=()=>{if(!document.hidden)return;const v=n.current;if(v&&!v.paused){h();try{v.pause()}catch{}}};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[h]),l.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,level:e.settings.level,type:e.settings.type}:null},[e,e?.settings.enabled,e?.settings.level,e?.settings.type]),l.useEffect(()=>{const x=e?.settings,v=n.current;if(!v)return;if(!x||!x.enabled||x.level===0){f();return}const C=Math.min(1,x.level/9);if(c.current!==x.type){const w=H8(x.type);w&&(c.current=x.type,s(w),f(150,()=>{v.src=w,v.load();const _=t.current;_&&!_.paused&&v.addEventListener("canplay",function k(){v.removeEventListener("canplay",k);const y=t.current;y&&!y.paused&&!y.ended&&g(C)})}))}else{const w=t.current,_=!!w&&!w.paused&&!w.ended;if(_&&v.paused&&v.src)g(C);else if(!v.paused)if(!_)f();else{h();const k=v.volume,y=performance.now(),A=()=>{const T=Math.min(1,(performance.now()-y)/150);try{v.volume=k+(C-k)*T}catch{}T<1?u.current=requestAnimationFrame(A):u.current=null};u.current=requestAnimationFrame(A)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,h,g,f,t]),l.useEffect(()=>{const x=n.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:h,fadeInNoise:g,fadeOutNoise:f}}function V8({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:p,handleEndRef:h}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const x=(w,_=1)=>{try{const k=(w||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(w||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,_)))}catch{return 1200}},v=l.useCallback(w=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!0)}catch{}return}const _=window.speechSynthesis;try{try{_.cancel()}catch{}const k=w??e,y=(Array.isArray(k)?k[0]??"":k)||"",A=new SpeechSynthesisUtterance(y);try{A.rate=Math.max(.3,Math.min(3,t))}catch{}try{A.volume=Math.max(0,Math.min(1,a))}catch{}f.current=x(y,A.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const T=m.current;T?.enabled&&(T?.level??0)>0&&d(T.level/9);const S=()=>{try{const N=g.current||performance.now(),F=performance.now()-N,R=f.current||1200,E=Math.min(1,F/R);i(E);try{r.current&&(r.current.style.left=`${E*100}%`),n.current&&n.current.style.setProperty("--progress",String(E))}catch{}E<1&&(b.current=requestAnimationFrame(S))}catch{}};A.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{h.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},A.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(S)}catch{}};try{_.speak(A)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,p,h]),C=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:v,stopTTS:C}}var G8='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{display:none}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;position:absolute}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}';ae(G8);async function U8(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((p,h)=>{const g=h*u,f=Math.min(g+u,d);let b=0;for(let x=g;x<f;x++){const v=Math.abs(s[x]);v>b&&(b=v)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function Nb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await U8(r,t,a)}catch(r){try{const n=Kr(r)}catch{}return null}}const Db=4;function Y8(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:p=!0}=e,h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[x,v]=l.useState(!1),[C,w]=l.useState(null),[_,k]=l.useState(2),[y,A]=l.useState(0),[T,S]=l.useState(null),[N,F]=l.useState(!1),R=3,E=3,M=1,B=300,G=l.useRef(0),Q=l.useCallback(async(ie,pe)=>{const ve=++G.current,xe=()=>G.current===ve;try{if(v(!1),!ie){xe()&&b(null);return}let be=pe;if(!be)try{for(let Ne=0;Ne<4&&!(h.current||g.current);Ne++)await new Promise(Ie=>requestAnimationFrame(Ie));await new Promise(Ne=>requestAnimationFrame(Ne));const U=h.current,re=g&&g.current?g.current:U?U.closest(".audio-player__wave"):null,ge=re?re.getBoundingClientRect():U?U.getBoundingClientRect():null,ce=ge?Math.max(100,ge.width):320,z=ge?ge.height:0;z>0&&A(z),be=Math.max(M,Math.min(B,Math.floor((ce+E)/(R+E))));const X=be*R,Z=Math.max(0,be-1),fe=Z>0?(ce-X)/Z:E;k(Math.max(0,fe))}catch{be=120}const $=await Nb(ie,be);if(!xe())return;if(!$){b(null),v(!1);return}b($),w(be),v(!0)}catch{if(!xe())return;b(null),v(!1)}},[v,b,A,k,w]);l.useEffect(()=>{const ie=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;Q(typeof ie=="string"?ie:void 0).catch(()=>{}),F(!1)},[t,a,Q]),l.useEffect(()=>{let ie=!1;if(!i||!C){S(null);return}const pe=d>0?d*(c||1):void 0;return Nb(i,C,pe).then(ve=>{ie||S(ve)}).catch(()=>{ie||S(null)}),()=>{ie=!0}},[i,C,d,c]);const ee=Math.max(0,Math.min(1,u)),oe=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),D=C||40,L=l.useMemo(()=>Array.from({length:D}).map((ie,pe)=>{const ve=f&&f[pe]!=null?f[pe]:null,xe=ve==null?null:Math.min(1,ve/oe*ee),be=xe!=null&&y>0&&xe*y<=Db,$=xe==null?.15:be?0:xe,U=D>1?pe/(D-1):0;return o.jsx("div",{className:be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$,"--i":pe,"--mix":U}},pe)}),[D,f,oe,ee,y]),P={"--progress":String(Math.max(0,Math.min(1,r)))},H={"--bar-gap":`${_}px`},W=Math.max(0,Math.min(9,s))/9,te=x&&(i?!!T:!0);l.useEffect(()=>{te&&F(!0)},[te]);const I=N?x:te;l.useEffect(()=>{m?.(I)},[I,m]);const q=C||40,O=l.useMemo(()=>Array.from({length:q}).map((ie,pe)=>{const ve=T&&T[pe]!=null?T[pe]:null,xe=ve==null?0:Math.min(1,ve/oe*W),be=y>0&&xe*y<=Db,$=be?0:xe,U=q>1?pe/(q-1):0;return o.jsx("div",{className:be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$,"--i":pe,"--mix":U}},pe)}),[q,T,oe,W,y]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:H,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${te?"is-ready":""}`,"aria-hidden":"true",children:O}),p&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${I?"is-ready":""}`,ref:h,children:L}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${I?"is-ready":""}`,ref:n,style:P,children:L})]})]})}const q8={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function gc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const K8=2e3;function jb(e,t=K8){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function Z8({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function X8(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function J8({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function Q8({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function e7(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function t7({ended:e,completedByEnd:t}){return!!e||!!t}function a7(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function o7(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function r7(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function n7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const m=e.current,p=Q8({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${p*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(p))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function kr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=me.useTranslation(),m=e,p=mc(),h=l.useRef(p?.registerAnalyser);l.useEffect(()=>{h.current=p?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),x=X8(),v=l.useRef(null),C=l.useRef(!1),w=l.useRef(0),_=l.useRef(null),{ref:k,rect:y,show:A,hide:T}=J8();l.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[S,N]=l.useState(!1),[F,R]=l.useState("idle"),[E,M]=l.useState("stopped"),B=l.useRef("stopped");l.useEffect(()=>{B.current=E},[E]);const[G,Q]=l.useState(0),[ee,oe]=l.useState("active"),[D,L]=l.useState(null),[P,H]=l.useState(null),[W,te]=l.useState(0),[I,q]=l.useState(!1),[O,ie]=l.useState(0),pe=p?.playbackRate??1,ve=p?.mainVolume??1,[xe,be]=l.useState("idle"),[$,U]=l.useState(""),[re]=l.useState("top"),ge=l.useRef(null),ce=l.useRef(0),z=l.useRef(null),{start:X,stop:Z,settleTo:fe}=n7({audioRef:g,fillRef:f,waveProgressRef:z,sourcesRef:ge,currentIndexRef:ce}),{onReadyChange:Ne,waitForReady:Ie,markNotReady:Me}=Z8({showSoundWaveForm:c,showNoiseWaveForm:d}),Ee=l.useRef(null),je=l.useRef(n),Ae=l.useRef(r),Fe=l.useRef(null),Xe=l.useRef(!1),[we,He]=l.useState(!1),Te=l.useCallback(V=>{Xe.current=V,He(V)},[]),Ue=l.useRef(null),{activeNoiseUrl:et,noiseSettingsRef:Ke,fadeInNoise:Oe,fadeOutNoise:dt}=W8({noisePlayer:p,audioRef:g,playbackStateRef:B}),{startTTS:xt,stopTTS:Ze}=V8({ttsText:i,playbackRate:pe,mainVolume:ve,fillRef:f,waveProgressRef:z,setProgress:Q,setPlaybackState:M,setStateLocal:oe,fadeInNoise:Oe,fadeOutNoise:dt,noiseSettingsRef:Ke,onDoneRef:Ae,handleEndRef:Ue}),st=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Le=(!st||st.length===0)&&!!i,Pe=Array.isArray(D)&&D.length>0?D:Array.isArray(P)&&P.length>0?P:null,rt=Math.max(Array.isArray(Pe)?Pe.length:0,st.length),nt=l.useCallback(async(V,J=3,de=50)=>{for(let Ce=0;Ce<J;Ce++)try{return await V.play(),!0}catch(ye){if((ye instanceof Error||typeof ye=="object"&&ye&&"name"in ye?ye.name:void 0)==="AbortError"){await new Promise(De=>setTimeout(De,de));continue}try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),tt=l.useCallback(()=>{const V=g.current;if(!V)return;const J=()=>{M("playing"),oe("playMode"),q(!0),X();try{Wo(),h.current?.("main",Vo(V))}catch{}const ye=Ke.current;ye?.enabled&&(ye?.level??0)>0&&Oe(ye.level/9)},de=()=>{t7({ended:!!V?.ended,completedByEnd:Xe.current})||(M("paused"),Z(),dt())},Ce=()=>{try{const ye=ge.current,De=e7(ye,ce.current);if(De!==null){ce.current=De,te(De),q(!0);const ze=ye?.[De]&&ye[De].src;if(ze&&V){V.src=ze,V.load(),nt(V).catch(()=>{});return}}}catch{}M("stopped"),Q(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Z(),q(!1),dt();try{!je.current&&Ue.current&&Ue.current()}catch{}};return V.addEventListener("play",J),V.addEventListener("pause",de),V.addEventListener("ended",Ce),()=>{try{V.removeEventListener("play",J),V.removeEventListener("pause",de),V.removeEventListener("ended",Ce),Z()}catch{}}},[Oe,dt,nt,Ke,X,Z]);l.useEffect(()=>tt(),[tt]),l.useEffect(()=>{je.current=n},[n]),l.useEffect(()=>{Ae.current=r},[r]),l.useEffect(()=>{if(n||ee!=="active")return;const V=_.current;if(!V)return;let J=null;const de=requestAnimationFrame(()=>{try{const Ce=V.getTotalLength();if(!Ce)return;const ye=Ce*.2;V.style.strokeDasharray=`${Ce-ye} ${ye}`;const De="triFlow_"+Math.random().toString(36).slice(2);J=document.createElement("style"),J.textContent=`@keyframes ${De}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Ce}}}`,document.head.appendChild(J),V.style.animation=`${De} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(de),J?.remove()}},[ee,n]),l.useEffect(()=>{ge.current=D},[D]),l.useEffect(()=>{ce.current=W},[W]),l.useEffect(()=>{const V=b.current,J=v.current;if(!V||!J)return;let de=null;const Ce=32,ye=60,De=()=>{try{const ut=Array.from(V.querySelectorAll(":scope > .button"));let ue=0;ut.forEach(Yt=>{if(Yt===J)return;const Eo=Yt.getBoundingClientRect();ue+=Eo.width});const Se=V.getBoundingClientRect().width,Ge=Math.max(0,Math.floor(Se-ue-8)),mt=rt;if(!mt||Ge<=0){Array.from(J.children).forEach(Yt=>{try{Yt.style.width=""}catch{}});return}let _t=Math.floor(Ge/mt);_t>ye&&(_t=ye),_t<Ce&&(_t=Math.max(Ce,Math.floor(Ge/mt))),Array.from(J.querySelectorAll(".button")).forEach(Yt=>{try{Yt.style.width=`${_t}px`}catch{}})}catch{}},ze=requestAnimationFrame(De);try{de=new ResizeObserver(()=>{requestAnimationFrame(De)}),de.observe(V),de.observe(J),window.addEventListener("resize",De)}catch{}return()=>{try{cancelAnimationFrame(ze)}catch{}try{de&&(de.disconnect(),de=null)}catch{}try{window.removeEventListener("resize",De)}catch{}}},[D,P,rt]),l.useEffect(()=>()=>{try{Ee.current&&(clearTimeout(Ee.current),Ee.current=null),Fe.current&&(clearTimeout(Fe.current),Fe.current=null)}catch{}},[]);const lt=(V,J)=>{L(V),ie(J),Me(),H(a7(V)),ge.current=V},yt=async(V,J)=>{Te(!1),C.current=!1,V.src=J,V.load(),await jb(V),await Ie(),N(!1),await nt(V),oe("playMode"),te(0),q(!0)},aa=async(V,J=!1)=>{const de=g.current;N(!0),R("measuring_duration");try{const Ce=await gc(V,{timeoutMs:1e4,rejectOnError:!0});lt([{src:V,objectUrl:null,duration:Ce}],Ce),R("ready"),J&&de&&await yt(de,V)}finally{C.current=!1,N(!1)}},at=async(V,J=!1)=>{const de=g.current;N(!0),R("measuring_duration");try{const Ce=await Promise.all(V.map(De=>gc(De,{timeoutMs:1e4}))),ye=V.map((De,ze)=>({src:De,objectUrl:null,duration:Ce[ze]||0}));lt(ye,o7(ye)),R("ready"),J&&de&&ye.length>0&&await yt(de,ye[0].src)}finally{C.current=!1,N(!1)}},Lt=async(V=!1,J=!0)=>{const de=g.current,Ce=t?Array.isArray(t)?t:[t]:[];if(!(!Ce||Ce.length===0||!Ce.some(Boolean))&&!C.current){C.current=!0,J&&N(!0),R("resolving");try{const ye=r7(t,a,Tr),De=[];let ze=0;for(const ut of ye){let ue=ut.src??null,Se=null;if(!ue&&ut.resolvedPath){try{R("getting_signed_url"),ue=await Oo(ut.resolvedPath)}catch{ue=null}if(!ue)try{R("downloading");const mt=await Lr(ut.resolvedPath);if(mt){const _t=mt instanceof Blob?mt:new Blob([mt]);Se=x.track(URL.createObjectURL(_t)),ue=Se}}catch{R("error");try{U(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),oe("active")}catch{}}}if(!ue)continue;let Ge=0;try{R("measuring_duration"),Ge=await gc(ue,{timeoutMs:3e3})}catch{Ge=0}ze+=Ge||0,De.push({...ut,src:ue,objectUrl:Se,duration:Ge})}if(lt(De,ze),De.length>0&&V&&de){const ut=De[0];Te(!1);try{x.keepOnly(De.map(ue=>ue.objectUrl))}catch{}if(R("ready"),C.current=!1,ut.src&&de)try{de.src=ut.src,de.load(),await jb(de),await Ie(),J&&N(!1),de&&await nt(de)}catch{J&&N(!1)}else J&&N(!1);oe("playMode"),te(0),q(!0)}}finally{C.current=!1,J&&N(!1),R(ye=>ye==="ready"?"ready":"idle")}}},Pt=async()=>{const V=g.current;if(!(!V&&!Le)){if(Le){const J=window.speechSynthesis;if(ee==="active"){const de=Fo(),Ce=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(de&&Ce.length>0){oe("load"),N(!0),R("resolving"),C.current=!0;try{const ye=await Promise.all(Ce.map(De=>Promise.resolve(de(De))));ye.length>1?await at(ye,!0):await aa(ye[0],!0)}catch{C.current=!1,N(!1),oe("active"),xt(Ce[0]||void 0)}return}xt(Ce[0]||void 0);return}if(ee==="playMode"){if(V){if(V.paused){if(Xe.current){await Wt();return}await nt(V),M("playing")}else V.pause(),M("paused");return}try{if(J&&J.paused)try{J.resume(),M("playing")}catch{}else try{J.pause(),M("paused")}catch{}}catch{}}return}if(ee==="active"){if(n&&Array.isArray(ge.current)&&ge.current.length>0){const J=ge.current[0];try{if(J.src&&V)try{V.src=J.src,V.load(),V&&await nt(V)}catch{}oe("playMode"),te(0),q(!0);return}catch{}}oe("load"),await Lt(!0);return}if(ee!=="load"&&(ee==="playMode"||ee==="active"))try{if(V&&V.paused){if(Xe.current){await Wt();return}V&&await nt(V),M("playing")}else V&&(V.pause(),M("paused"))}catch(J){(J instanceof Error||typeof J=="object"&&J&&"name"in J)&&J.name}}},Wt=async()=>{const V=g.current;if(V)try{const J=ge.current;if(Array.isArray(J)&&J.length>1){await Et(0);return}Te(!1);try{V.currentTime=0}catch{}V&&await nt(V),M("playing"),oe("playMode")}catch{}},Ea=()=>{if(Le){Ze();return}const V=g.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}dt(),M("stopped"),oe("active"),Q(0),q(!1)},oa=async(V,{sameSegment:J=!1}={})=>{const de=++w.current,Ce=g.current,ye=ge.current?.[V]?.src;try{if(Te(!1),te(V),q(!0),ce.current=V,!ye||!Ce||(J||Me(),Ce.src=ye,Ce.load(),J||await Ie(),de!==w.current)||(await nt(Ce),de!==w.current))return;M("playing"),oe("playMode")}catch{}},va=async()=>{const V=ge.current,J=ce.current||0;if(!V||J<=0){await Wt();return}await oa(J-1)},Ta=async()=>{const V=ge.current,J=ce.current||0;if(!V||J>=V.length-1){Ea();return}await oa(J+1)},jt=()=>{if(Xe.current)return;const V=200,J=340;Te(!0);try{Q(1)}catch{}fe(1);try{be("hold")}catch{}try{const de=g.current,Ce=Le&&!!de?.src;if(!Le||Ce){if(de){de.pause();try{de.currentTime=0}catch{}}}else Ze();dt()}catch{}try{M("stopped")}catch{}if(q(!1),!je.current)try{Fe.current&&(clearTimeout(Fe.current),Fe.current=null),Fe.current=setTimeout(()=>{try{be("out")}catch{}Fe.current=setTimeout(()=>{try{typeof Ae.current=="function"&&Ae.current(!0)}catch{}try{be("idle")}catch{}Fe.current=null},J)},V)}catch{}};l.useEffect(()=>{Ue.current=jt});const Ua=l.useCallback(()=>U(""),[]),Et=async V=>{(ge.current||[])[V]&&await oa(V,{sameSegment:V===ce.current})},xa=E==="playing",Ya=l.useMemo(()=>{if(!P||P.length<=1)return P;const V=P[W];return V?[V]:P},[P,W]),Je=n===!0;l.useEffect(()=>{try{const V=g.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=pe||1)}catch{}},[pe]),l.useEffect(()=>{try{const V=g.current;V&&(V.volume=Math.max(0,Math.min(1,ve)))}catch{}},[ve]);const zt=xe==="hold",wt=xe==="out",_a=ee==="playMode"&&!S&&!we||zt||wt,ra=E!=="stopped"||zt||wt,na=E==="paused",ia=Math.max(0,Math.min(100,(G||0)*100)),le=_e("audio-player__fill",_a?"is-visible":"",ra?"is-expanded":"",na?"is-paused":"",wt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Je?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${xa?"is-playing":""} ${S?"is-loading":""} ${ee!=="default"?"is-revealed":""}`,children:[S?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:q8[F]})]}):null,ee==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{T(),Pt()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:T,onFocus:A,onBlur:T,children:o.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:_,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,y&&o.jsx(ha,{anchorRect:y,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${ee==="playMode"||xa?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:va,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:xa?"pause":"play",onClick:Pt,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),rt>1?o.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((V,J)=>o.jsx(ne,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(J+1),onClick:()=>{try{Et(J)}catch{}},ariaLabel:u("training.sourcePlay",{n:J+1}),variant:"transparent-white",selected:I&&W===J,disabled:ee!=="playMode"||!(Array.isArray(D)&&D[J]),showTooltipInfo:!0},J))}):null,!Array.isArray(D)||D.length<=1?o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Wt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}):null,o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ta,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:ee!=="playMode"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:le,ref:f,style:{left:`${ia}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(Y8,{segments:Ya,progress:G,totalDuration:O,onSegmentClick:Et,waveProgressRef:z,showSoundWaveForm:c,noiseSrc:d&&p?.settings.enabled&&(p?.settings.level??0)>0?et:null,noiseLevel:p?.settings.level??0,noiseSpeed:p?.settings.speed??1,mainVolume:ve,onReadyChange:Ne})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(We,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),o.jsx(ro,{message:$,position:re,onClose:Ua})]})}var i7=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";ae(i7);function Do(e){const{t}=me.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:p,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}=cn({storageKey:"tooltip-fontScale"}),x=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),v=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},_=o.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:C.map((k,y)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:y+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},y))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:x,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Aa,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:_}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:_})}var s7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ae(s7);var l7='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';ae(l7);function fc({state:e="disabled"}){const{t}=me.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(We,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var c7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ae(c7);function vc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:p}=me.useTranslation(),h=Qt("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[x,v]=l.useState(!1),[C,w]=l.useState(null),[_,k]=l.useState(null),y=l.useRef(i);l.useEffect(()=>{y.current=i});const A=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(N=>typeof N=="string"||typeof N=="number")?s.join(""):"",[s]),T=l.useCallback(()=>{v(!1),w(null),k(null)},[]);l.useEffect(()=>{if(!x)return;let N;try{typeof y.current=="function"&&(N=y.current())}catch{}if(N===!1){T();return}k(typeof N<"u"&&N!==null?N:null)},[A]);const S=l.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(k(typeof N<"u"&&N!==null?N:s),!b.current){v(F=>!F);return}if(x)v(!1),w(null),k(null);else{const F=b.current.getBoundingClientRect();w(F),v(!0)}}},[i,s,x]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(ne,{size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(ne,{size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:x,onClick:S,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),x&&o.jsx(Do,{text:_??s,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:T,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function xc(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Ga({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=me.useTranslation(),[m,p]=l.useState(()=>xc(e,t));l.useEffect(()=>{const k=xc(e,t);if(k!==m){const y=setTimeout(()=>p(k),0);return()=>clearTimeout(y)}},[e,t,m]);const h=l.useCallback((...k)=>{xc(e,t)==="done"||m==="done"||typeof c=="function"&&c(...k)},[e,t,m,c]),[g,f]=l.useState(!1),[b,x]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=l.useCallback(k=>{if(!k)return null;try{const y=k;if(typeof k=="object"&&(y.currentTarget||y.target)&&(y.nativeEvent||y.type)){const S=y.currentTarget??y.target;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect()}if(k instanceof DOMRect)return k;const A=k;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const T=k?.current;return T&&typeof T.getBoundingClientRect=="function"?T.getBoundingClientRect():null}catch{return null}},[]),C=l.useCallback((k,{text:y="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:T=!1,alignX:S="center",alignY:N="top"}={})=>{const F=v(k);x({text:y,label:A,anchorRect:F,backdrop:T,alignX:S,alignY:N}),f(!0)},[v]),w=l.useCallback(()=>{f(!1),x(k=>({...k,anchorRect:null}))},[]),_=l.Children.map(i,k=>{if(l.isValidElement(k)){const y=k;if(typeof y.type=="string")return y;const A=y.props??{},T=typeof A.onDone=="function"?A.onDone:h,S=typeof A.disabled=="boolean";let N=m==="disabled";return S&&(N=!!A.disabled),l.cloneElement(y,{onDone:T,disabled:N,showTooltip:C,hideTooltip:w})}return k});return o.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${s}`,"aria-current":m==="active",children:[o.jsx(fc,{state:m}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(vc,{state:m,title:r,...n,useFaded:d}),_]}),g?o.jsx(Aa,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:w,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:o.jsx(Do,{text:b.text,onClose:w})}):null]})}var d7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ae(d7);function _c({context:e,state:t="disabled",theme:a="light"}){const{t:r}=me.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const d=()=>c(S=>S==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:p,canDecrease:h,fontSize:g,lineHeight:f}=cn({storageKey:"textbox_fontScale"}),[b,x]=l.useState(""),v=l.useCallback(()=>i("active"),[]),C=l.useCallback(()=>x(""),[]),w=S=>{try{x(S)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const S=setTimeout(()=>i(t),0);return()=>clearTimeout(S)}},[t]);const k=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const S=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(S)},[k]);const y=t==="disabled"?n:t,A=y==="disabled"?"training-text-box--disabled":y==="active"?"training-text-box--active":y==="done"?"training-text-box--done":"",T=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${A} ${y!=="disabled"&&s==="dark"?"is-dark":""}`,children:[y==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(ne,{size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":y==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:T,children:k})}),y!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":y==="disabled",children:[o.jsx(ne,{size:32,type:"dot",onClick:m,onDisabledClick:()=>w(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ne,{size:32,type:"dot",onClick:u,onDisabledClick:()=>w(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:C})]})}function Rn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=me.useTranslation(),x=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",w=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,_=d?d.join("||"):"",k=u?u.join("||"):"",[y,A]=l.useState(()=>Array.isArray(w)?f?Ve(w):w.slice():void 0);l.useEffect(()=>{Array.isArray(w)&&w.length?A(f?Ve(w):w.slice()):A(void 0)},[c,_,k,f]);const[T,S]=l.useState(null),[N,F]=l.useState(()=>new Set);l.useEffect(()=>{S(null),F(new Set)},[k]);const R=l.useRef(void 0);l.useEffect(()=>{const B=R.current;typeof B=="number"&&typeof t=="number"&&typeof e=="number"&&B>=e&&t<e&&(S(null),F(new Set)),R.current=t},[t,e]);const E=l.useCallback(B=>{if(C!=="active")return;const G=y?.[B];if(G==null)return;const Q=G,ee=C==="active"||C==="done";if(m){const oe=new Set(N),D=oe.has(Q);D?oe.delete(Q):oe.add(Q),F(oe),typeof s=="function"&&s({selectedValues:[...oe],__ts:Date.now()}),ee&&(typeof p=="number"&&p>0?oe.size>=p:!D)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...oe],__ts:Date.now()})}else S(Q),typeof s=="function"&&s({selectedIndex:B,selectedValue:Q,__ts:Date.now()}),ee&&typeof i=="function"&&C==="active"&&i({selectedIndex:B,selectedValue:Q,__ts:Date.now()})},[y,C,m,s,i,p,N]),M=`training-step__buttons${Array.isArray(y)&&y.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:x,useTitleFaded:n,children:o.jsx("div",{className:M,children:Array.isArray(y)&&y.length>0?y.map((B,G)=>o.jsx(ne,{size:56,type:"bar",onClick:()=>E(G),ariaLabel:String(B),label:B,useLabel:!0,icon:g?g[String(B)]:void 0,variant:"default",disabled:C==="disabled",selected:m?N.has(B):T===B,useDisabledCovered:h,minWidth:0},String(B))):null})})}function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=me.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",h=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const w=setTimeout(()=>b(null),0);return()=>clearTimeout(w)}},[h,c,f]);const x=l.useCallback(w=>{const _=typeof w=="object"&&w!==null?Object.assign({},w,{__ts:Date.now()}):{value:w,__ts:Date.now()};typeof i=="function"&&i(_),p==="active"&&typeof n=="function"&&n(_)},[i,p,n]),v=l.useCallback(()=>{p==="active"&&(b(!1),x(!1))},[x,p]),C=l.useCallback(()=>{p==="active"&&(b(!0),x(!0))},[x,p]);return o.jsxs(Ga,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(_c,{context:s,state:p}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((w,_)=>o.jsx(ne,{size:56,type:"bar",onClick:()=>{p==="active"&&(b(_),x&&x(_))},disabled:p==="disabled",ariaLabel:String(w),label:w,variant:p,selected:f===_},_)):o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:56,type:"bar",onClick:v,disabled:p==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(ne,{size:56,type:"bar",onClick:C,disabled:p==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function zn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:p,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=me.useTranslation(),x=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:x,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(kr,{soundSrc:s,ttsText:s?null:u??x,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${h??0}-s${e}`)})}var u7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";ae(u7);var p7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ae(p7);function In({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=me.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[m,p]=l.useState(Array.isArray(s)?s:[]),[h,g]=l.useState(()=>(m||[]).map((L,P)=>({id:P,text:u(L)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const L=Array.isArray(s)?s:[];p(L);const P=(H=>{const W=(H||[]).map((O,ie)=>({id:ie,text:u(O)}));if(W.length<=1)return W;const te=(O,ie)=>{if(O.length!==ie.length)return!1;for(let pe=0;pe<O.length;pe++)if(O[pe].text!==ie[pe].text)return!1;return!0};let I=Ve(W),q=0;for(;te(I,W)&&q<20;)I=Ve(W),q+=1;return I})(L);g(P);try{if(typeof i=="function"){const H=P.filter((W,te)=>W.text===u(L[te])).length;i({shuffled:P,score:H,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const H=P.filter((W,te)=>W.text===u(L[te])).length;n({shuffled:P,score:H,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(L,P)=>{const H=[...h],W=L+P;if(W<0||W>=H.length)return;const te=H[W];H[W]=H[L],H[L]=te,M(H);try{if(typeof n=="function"&&f==="active"){const I=H.filter((q,O)=>q.text===u(m[O])).length;n({shuffled:H,score:I,total:(m||[]).length,__ts:Date.now()})}}catch{}},[x,v]=l.useState(null),C=l.useRef(null),w=l.useRef(null),_=l.useRef(null),k=l.useRef(null),y=l.useRef(null),A=l.useRef({x:0,y:0}),T=l.useRef(null),S=l.useRef({dx:0,dy:0}),N=()=>{if(T.current!==null)return;const L=()=>{T.current=requestAnimationFrame(L);const P=A.current,H=S.current||{dx:0,dy:0};C.current&&(C.current.style.transform=`translate3d(${P.x-H.dx}px, ${P.y-H.dy}px, 0)`)};T.current=requestAnimationFrame(L)},F=l.useRef(new Map),R=l.useRef(new Map),E=()=>{const L=new Map;return F.current.forEach((P,H)=>{P&&P.getBoundingClientRect&&L.set(H,P.getBoundingClientRect())}),L},M=L=>{const P=E();g(L);try{if(typeof i=="function"){const H=L.filter((W,te)=>W.text===u(m[te])).length;i({shuffled:L,score:H,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=E();L.forEach(W=>{const te=P.get(W.id),I=H.get(W.id),q=F.current.get(W.id);if(!q||!te||!I)return;const O=te.top-I.top;O&&(q.style.transition="none",q.style.transform=`translateY(${O}px)`,requestAnimationFrame(()=>{q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",q.style.transform="";const ie=()=>{q.style.transition="",q.removeEventListener("transitionend",ie)};q.addEventListener("transitionend",ie)}))})})},B=(L,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(L))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),P.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}v(L);try{const H=h[L],W=document.createElement("div");W.className="order-list__dragging-object order-list__dragging-object--visible",W.textContent=H&&H.text?H.text:"",document.body.appendChild(W),C.current=W;const te=F.current.get(H.id);let I=P.clientX||0,q=P.clientY||0;try{if(te&&te.getBoundingClientRect){const be=te.getBoundingClientRect();I=be.left+be.width/2,q=be.top+be.height/2}}catch{}const O=W.getBoundingClientRect(),ie=O.width/2,pe=O.height/2;S.current={dx:ie,dy:pe},W.style.transition="none",A.current={x:I,y:q},W.style.transform=`translate3d(${I-ie}px, ${q-pe}px, 0)`,requestAnimationFrame(()=>{try{W.style.transition=""}catch{}N()});const ve=be=>{const $=be;A.current={x:$.clientX,y:$.clientY},N()};_.current=ve,document.addEventListener("mousemove",ve);const xe=be=>{const $=be;A.current={x:$.clientX,y:$.clientY},N()};w.current=xe,document.addEventListener("dragover",xe);try{P.dataTransfer?.setData("text/plain",String(L));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},G=(L,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{y.current!==null&&(clearTimeout(y.current),y.current=null);const H=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if(H&&k.current!==H){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}k.current=H}}catch{}},Q=(L,P)=>{P.preventDefault();const H=P.dataTransfer?.getData("text/plain")||"",W=H?parseInt(H,10):x,te=L;if(typeof W!="number"||isNaN(W)||W===te){v(null),D(),ee();return}const I=Wi(h,W,te);M(I),v(null),ee();try{if(typeof n=="function"&&f==="active"){const q=I.filter((O,ie)=>O.text===u(m[ie])).length;n({shuffled:I,score:q,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const q=document.querySelectorAll(".order-list .order-list__item")[te];if(!q)return;const O=q.querySelector(".order-list__slot")||q;try{O.classList.add("pulse"),O.offsetHeight,O.classList.add("to-dark");const ie=()=>{O.classList.remove("pulse","to-dark"),O.removeEventListener("transitionend",ie)};O.addEventListener("transitionend",ie)}catch{}})}catch{}D()},ee=()=>{if(C.current){try{document.body.removeChild(C.current)}catch{}C.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null)},oe=()=>{v(null),D(),ee()};l.useEffect(()=>()=>ee(),[]);const D=()=>{try{if(y.current!==null&&(clearTimeout(y.current),y.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const L=Math.max(1,(h||[]).length);h.forEach((P,H)=>{const W=R.current.get(P.id);if(!W)return;let te=50;L>1&&(te=Math.round(H/(L-1)*100));try{W.style.setProperty("--marker-pos",te+"%")}catch{}})}catch{}},[h]),l.useEffect(()=>()=>{ee(),y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:h.map((L,P)=>{const H=Math.max(1,(h||[]).length),W=H>1?Math.round(P/(H-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":W+"%"},ref:te=>{const I=R.current;te?I.set(L.id,te):I.delete(L.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,o.jsxs("div",{ref:te=>{const I=F.current;te?I.set(L.id,te):I.delete(L.id)},className:`order-list__draggable ${x===P?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?te=>B(P,te):void 0,onDragEnter:f==="active"?te=>G(P,te):void 0,onDragOver:f==="active"?te=>G(P,te):void 0,onDragLeave:f==="active"?()=>{try{y.current!==null&&clearTimeout(y.current),y.current=setTimeout(()=>{try{const te=document.querySelectorAll(".order-list .order-list__item");te&&te[P]&&(te[P].classList.remove("drag-over"),k.current===te[P]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?te=>Q(P,te):void 0,onDragEnd:f==="active"?oe:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(ne,{size:32,type:"dot",onClick:()=>b(P,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(ne,{size:32,type:"dot",onClick:()=>b(P,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var h7="";ae(h7);const m7=8e3;function b7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function Cc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:p}=me.useTranslation(),h=r??p("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=m??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const x=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":x<t?"done":x===t?"active":"disabled",[C,w]=l.useState(null),_=l.useRef([]),[k,y]=l.useState(!1),A=l.useMemo(()=>g.map(F=>F?.id??F?.word??"").join("|"),[g]);l.useEffect(()=>{w(null),_.current=[]},[A]);const T=l.useCallback((F,R)=>{if(c)return;const E={item:F,index:R,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[c,i,v,n]),S=l.useCallback(async()=>{if(!(k||v==="disabled")){y(!0);try{for(const F of _.current)F&&await b7(F.play(),m7)}finally{y(!1)}}},[k,v]),N=l.useCallback((F,R)=>{if(v!=="active")return;w(R);const E={selectedValue:F.word||F.title||"",selectedIndex:R,item:F,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[i,v,n]);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:h,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:S,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:p("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((F,R)=>o.jsx(Nn,{ref:E=>{_.current[R]=E},item:F,disabled:v==="disabled",onPlayDone:()=>T(F,R),selectable:c,selected:c&&C===R,onSelect:c?()=>N(F,R):void 0,flipDelay:R*120,hideLabel:d,hideAudio:u},F&&F.id||R))})})}const g7=160;var f7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";ae(f7);const Eb=()=>{};function Da(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:v,children:C,align:w="horizontal",icon:_}=e,k=y=>{v&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),v())};return o.jsxs("div",{className:_e("panel-row",w==="vertical"?"panel-row--vertical":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?k:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[_!=null&&o.jsx("div",{className:"panel-row__icon",children:_}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),x&&o.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),o.jsx("div",{className:"panel-row__right",children:C})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(So,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:m}=e;let p=null;const h=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;p=o.jsx(Gl,{checked:b.checked,onChange:b.onChange,id:h})}else if(a==="segmented"){const b=e;p=o.jsx(Va,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,C)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:u,error:!!c,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},C))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Eb,block:u,error:!!c,ariaLabel:r});p=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[x,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const b=e;b.buttons?.length?p=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,v)=>o.jsx(ne,{size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},v))}):p=o.jsx(ne,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;p=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;p=o.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[o.jsx(Wa,{value:b.value,onChange:b.onChange??Eb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(p=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:_e("panel-row",d==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[h?o.jsxs("label",{htmlFor:h,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:p})]})}function Tb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Lb({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=me.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(n=>{const i=e[n],s=n==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:s}),i&&t&&o.jsx(ne,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(n)})]}),i?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&o.jsx(ht,{size:"small",variant:wm(i.device),fill:"soft",label:i.device}),Tb(i)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Tb(i)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},n)})})}function Ar({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,useBorder:u=!0,useBg:m=!0,useRowBorder:p=!0,labelWidth:h,form:g=!1,loading:f,empty:b,children:x}){const v=_e("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",p?"":"panel--no-row-border",c),C={};return i!==void 0&&(C.minHeight=i),s!==void 0&&(C.maxWidth=typeof s=="number"?`${s}px`:s),h!==void 0&&(C["--panel-label-width"]=typeof h=="number"?`${h}px`:h),o.jsxs("div",{className:v,style:Object.keys(C).length?C:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:_e("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(We,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Da,{variant:"loading"}):b!=null&&(x==null||Array.isArray(x)&&x.length===0)?o.jsx(Da,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:x}):x]})}function Mb({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function v7(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function $b(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}v7(Ca.t.bind(Ca)),$b(Ca.t.bind(Ca));var x7='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:20px}.ihabdevteam-core-scope .tooltip-content:has(.noise-settings__header) .tooltip-content__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}';ae(x7);const yc="none",_7=.5,C7=1.5,y7=.25;function wc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Da,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(Zl,{value:a,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function kc({anchorRect:e,onClose:t}){const{t:a}=me.useTranslation(),r=Qt("(max-width: 767px)")?40:24,n=mc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=O8(i),u=n?.playbackRate??1,m=n?.mainVolume??1,p=Math.round(m*100),h=l.useCallback(x=>{try{n?.setMainVolume(Math.max(0,Math.min(1,x/100)))}catch{}},[n]),g=l.useCallback(x=>{try{n?.setPlaybackRate(x)}catch{}},[n]),f=l.useCallback(x=>{const v=F8(x);try{n?.setSettings({level:v})}catch{}},[n]),b=l.useCallback(x=>{try{x===yc?n?.setSettings({enabled:!1}):n?.setSettings({type:x,enabled:!0})}catch{}},[n]);return o.jsx(Aa,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(Ar,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx(wc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:h}),o.jsx(wc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:_7,max:C7,step:y7,size:r,onChange:g}),o.jsx(wc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${d}%`,value:d,min:0,max:100,step:10,size:r,onChange:f}),o.jsx(Da,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Va,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:yc,label:a("training.noise.type.none","\uC5C6\uC74C")},...$b(a).map(x=>({key:x.value,label:x.label}))],value:c?s:yc,onChange:b})})]})})}var w7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";ae(w7);function Ac({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=me.useTranslation(),[u,m]=l.useState(!1),[p,h]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),x=l.useRef(null),v=mc(),C=s<c-1,w=s===c-1,_=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),h(null))},[e]);const k=l.useCallback(()=>{m(!1),h(null)},[]),y=l.useCallback(()=>{if(u){m(!1),h(null);return}const S=b?.current?.getBoundingClientRect();S&&h(S),t?.(),m(!0)},[u,t]),A=l.useCallback(()=>{if(u){m(!1),h(null);return}const S=x?.current?.getBoundingClientRect();S&&h(S),t?.(),m(!0)},[u,t]),T=l.useCallback(()=>f(S=>!S),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ne,{size:56,type:"bar",icon:"settings",onClick:y,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:x,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ne,{size:56,type:"dot",icon:"settings",onClick:A,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(ne,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:T,selected:g,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(kn,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(kn,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[w&&o.jsx(ne,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),C&&o.jsx(ne,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&u&&o.jsx(kc,{anchorRect:p,onClose:k})]})}var k7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ae(k7);function Sc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:p,onClose:h}){const{t:g}=me.useTranslation(),f=Qt("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,x=Number.isInteger(u)?u:d||0,v=p||h,C=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,_=typeof t=="string"?t.trim():t,k=!!(w||_),y=k?w||_:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=C||t,T=f&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,S=l.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[v?o.jsx(ne,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(Nm,{icon:n,label:e,tooltip:s,wrapperStyle:S}):null}),o.jsxs("div",{className:"pp-title__text",children:[T?o.jsx("span",{className:"pp-title__depth caption-1",children:T}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:y}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Ql,{max:Math.max(0,x??0),index:Math.max(0,b??0)})]})}function Rb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Pb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function Bc(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=tn().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function On(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zb(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Ib({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Bc(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function Ob(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Fb(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Hb(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Nc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function Wb(e,t,a,r){return Nc(e,t*a+r)}function Vb({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function Gb(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Ub=l.createContext(null);function A7(){const e=l.useContext(Ub);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function S7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),p=n.join("|");l.useEffect(()=>{m(p?p.split("|").map(()=>null):[])},[p]);const h=l.useMemo(()=>u.filter(f=>f!==null).length+1,[u]),g=l.useCallback(f=>{d==="active"&&m(b=>{const x=[...b];if(x[f]!==null){const C=x[f];return x.map(w=>w!==null&&w>=C?null:w)}x[f]=h;const v={selectedOrder:x,words:n,__ts:Date.now()};try{typeof s=="function"&&s(v)}catch{}if(x.every(C=>C!==null))try{typeof i=="function"&&i(v)}catch{}return x})},[d,h,s,i,n]);return o.jsx(Ga,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(Nn,{item:{word:f},disabled:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function Sr(e){return null}Sr.__isTrainingPage=!0;function jo(e,t){const a=A7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Dc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=jo(e,t);return o.jsx(zn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function jc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Rn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Ec({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Pn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Tc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(In,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Lc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(Cc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function B7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=jo(e,t);return o.jsx(S7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var N7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
981
981
  /* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
982
- \uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ae(N7);function Mc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function D7(e){return Mc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Yb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Mc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function $c(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=me.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const v=Yb(b),x=Mc(b?.wording,b?.label);return v===!0?{variant:"main",label:x??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:x??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:x??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,h=t??0,p=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>p.map(b=>{const v=b??{},x=D7(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:y,label:C}=u(v),_=Array.isArray(v.corrects)?v.corrects:[],k=_.length?_.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,A=Yb(v)===!0;return{problem:x,variant:y,label:C,answer:k,selectedText:w,isCorrect:A}}),[p,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ba,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:v})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ne,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ne,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:h,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:h}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,v)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function j7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||rs({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Rc(e,t){return e&&e.id||`page-${t??0}`}function Pc(e,t){return e&&e.key||`step-${t??0}`}function Fn(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function E7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const qb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),T7=e=>o.jsx($c,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function L7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:h,onBack:p,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:v=!0,children:x,ariaLabel:y,label:C,buildResults:_,onResult:k,typeKey:w,entryPoint:A,dailyTotal:T,itemRef:S,renderResultPopup:D,noiseOverride:F}=e;j7(w&&!qb.has(w)?w:"");const R=l.useRef(0);l.useEffect(()=>{R.current=Date.now()},[]);const{t:E}=me.useTranslation(),$=k,B=!!t,G=t?.id||null,Q=t?.meta||{},ee=Array.isArray(t?.pages)?t.pages:[],oe=Array.isArray(x)||l.isValidElement(x)&&typeof x!="function"?l.Children.toArray(x).filter(l.isValidElement):[],N=oe.length>0,L=le=>le===Sr||le?.__isTrainingPage===!0,P=N&&oe.some(le=>L(le.type)),H=P?oe.filter(le=>L(le.type)).map((le,V)=>{const J=le.props||{};return{id:`children-page-${V}`,steps:l.Children.toArray(J.children).filter(l.isValidElement),pageTop:J.pageTop||J.top||null,pageBottom:J.pageBottom||J.bottom||null}}):[{id:"children-page-0",steps:oe}],W=N&&!B&&typeof x!="function",te=W?Math.max(1,H.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const le=document.body;return le.dataset.ihabTrainingPopupCount=String(Number(le.dataset.ihabTrainingPopupCount||"0")+1),le.classList.add("ihab-training-popup-open"),()=>{const V=Number(le.dataset.ihabTrainingPopupCount||"1")-1;V>0?le.dataset.ihabTrainingPopupCount=String(V):(delete le.dataset.ihabTrainingPopupCount,le.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return p8()},[]);const[I,q]=l.useState({...Ab,enabled:!1}),O=l.useRef(I);l.useEffect(()=>{O.current=I},[I]);const ie=l.useRef(F);l.useEffect(()=>{let le=!1;return ls().then(V=>{if(le)return;const J=V?{...O.current,...V}:{...Ab};O.current=J,q(J),ar(J);const de=ie.current;if(de){const Ce=typeof de=="function"?de(J):de,ye={...J,...Ce};O.current=ye,q(ye),ar(ye)}}),()=>{le=!0}},[]);const[pe,ve]=l.useState(null),[xe,be]=l.useState(null),M=l.useCallback((le,V)=>{le==="main"?ve(V):be(V)},[]),U=l.useCallback(le=>{const V={...O.current,...le};O.current=V,q(V),ie.current||cs(V),ar(V)},[]),re=I.mainSpeed,ge=I.mainVolume,ce=l.useCallback(le=>U({mainSpeed:le}),[U]),z=l.useCallback(le=>U({mainVolume:le}),[U]),X=l.useMemo(()=>({settings:I,setSettings:U,registerAnalyser:M,mainAnalyser:pe,noiseAnalyser:xe,playbackRate:re,setPlaybackRate:ce,mainVolume:ge,setMainVolume:z}),[I,U,M,pe,xe,re,ce,ge,z]),Z=l.useRef(null),[fe,Ne]=l.useState("center"),[Ie,Me]=l.useState(!1),Ee=l.useRef(!1),je=l.useRef(null),Ae=l.useCallback(le=>{Ee.current||(Ee.current=!0,Me(!0),je.current=setTimeout(le,g7))},[]);l.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),l.useEffect(()=>{const le=Z.current;if(!le)return;const V=Array.from(le.querySelectorAll(ur)).filter(de=>!de.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}const J=de=>{if(de.key==="Escape"){de.preventDefault(),Ae(()=>{typeof p=="function"&&p()});return}};return le.addEventListener("keydown",J),()=>le.removeEventListener("keydown",J)},[p,Ae]),Ss(Z,!0);const[Fe,Xe]=l.useState(!1),we=l.useRef(!1),[He,Te]=l.useState(null),[Ue,et]=l.useState(""),[Ke,Oe]=l.useState(()=>Fn()),dt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!B&&!W||(Oe(Fn()),Te(null))},[B,G,W]),l.useEffect(()=>{W&&Oe(le=>{const V=Math.max(0,Math.min(le.pageIndex,Math.max(0,te-1)));return V!==le.pageIndex?{...le,pageIndex:V,stepIndex:0}:le})},[W,te]);const xt=W?Math.max(0,Math.min(Ke.pageIndex,te-1)):0,Ze=W?H[xt]:null,st=W&&Ze&&Array.isArray(Ze.steps)?Ze.steps:[],Le=B?Ke.pageIndex:W?xt:typeof d=="number"?d:0,Pe=B?ee[Math.max(0,Math.min(Ke.pageIndex,Math.max(0,ee.length-1)))]:null,rt=B&&Pe&&Array.isArray(Pe.steps)?Pe.steps:[],nt=B?rt.length:W?st.length:typeof h=="number"?h:0,tt=B||W?Math.max(0,Math.min(Ke.stepIndex,Math.max(0,nt))):typeof m=="number"?m:0,lt=B?ee.length:W?te:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const le=dt.current;if(typeof Le=="number"&&le!==null&&Le!==le&&Le>le)try{et(E("training.problemNotice",{n:Le+1}))}catch{}dt.current=typeof Le=="number"?Le:dt.current},[Le,d,E]),l.useLayoutEffect(()=>{const le=Z.current;if(!le)return;const V=()=>le.querySelector(".page-popup__scroll");let J=null,de=null,Ce=null;const ye=Se=>{const Ge=V();if(!Ge)return;const mt=Ge.scrollHeight<=Ge.clientHeight;if(Ne(mt?"center":"top"),Se&&!we.current){we.current=!0;try{Xe(!0)}catch{}try{ut.disconnect()}catch{}}},De=()=>{J!==null&&cancelAnimationFrame(J),J=requestAnimationFrame(()=>{de!==null&&clearTimeout(de),de=setTimeout(()=>ye(!0),60)})},ze=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>ye(!1))};De(),window.addEventListener("resize",ze);const ut=new MutationObserver(De);ut.observe(le,{childList:!0,subtree:!0,attributes:!0});const ue=setTimeout(()=>{we.current||ye(!0)},400);return()=>{window.removeEventListener("resize",ze),J!==null&&cancelAnimationFrame(J),de!==null&&clearTimeout(de),Ce!==null&&cancelAnimationFrame(Ce),clearTimeout(ue);try{ut.disconnect()}catch{}}},[Z]);const yt=l.useCallback(le=>{Z.current&&(Z.current._childOnNext=le)},[]),aa=l.useCallback(le=>{Z.current&&(Z.current._childOnResult=le)},[]),at=l.useCallback((le,V,J)=>{Oe(de=>{const Ce=de.answersByPage[le]||{},ye=Ce[V],De=On(J),ze=On(ye);return ye&&ze>De?de:{...de,answersByPage:{...de.answersByPage,[le]:{...Ce,[V]:J}}}})},[Oe]),Lt=l.useCallback((le,V,J)=>{const de=Rc(Pe,Le),Ce=Pc(le,V);at(de,Ce,J)},[Pe,Le,at]),Pt=l.useCallback((le,V,J)=>{const de=Rc(Pe,Le),Ce=Pc(le,V);at(de,Ce,J),!J?.allowChange&&le?.autoAdvance!==!1&&Oe(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,V+1)}))},[Pe,Le,at,Oe]),Wt=l.useCallback((le,V)=>{const J=Ze?.id||`children-page-${Le??0}`,de=typeof V=="number"?V:tt??0,Ce=`step-${de}`;at(J,Ce,le),le?.allowChange||Oe(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,de+1)}))},[Ze,Le,tt,at,Oe]),Ea=l.useCallback((le,V)=>{const J=Ze?.id||`children-page-${Le??0}`,de=`step-${typeof V=="number"?V:tt??0}`;at(J,de,le)},[Ze,Le,tt,at]),oa=W?{currentPageIndex:Le??0,currentStepIndex:tt??0,totalStepsInPage:st.length,handleStepDone:Wt,handleStepChange:Ea}:null,va=async()=>{const le=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ee,flowState:Ke,answersByPage:Ke.answersByPage})):null;return typeof $=="function"&&await Promise.resolve($(le))||le},Ta=async()=>{const le=Ze?.id||`children-page-${Ke.pageIndex}`,V=Ke.answersByPage[le]||{},J=P?(()=>{const ye={};let De=0;return H.forEach(ze=>{const ut=Ke.answersByPage[ze.id]||{},ue=Array.isArray(ze.steps)?ze.steps.length:0;for(let Se=0;Se<ue;Se+=1){const Ge=ut[`step-${Se}`];typeof Ge<"u"&&(ye[`step-${De+Se}`]=Ge)}De+=ue}),ye})():V;if(typeof _=="function"){const ye=await Promise.resolve(_(J,{pageAnswers:V,answersByPage:Ke.answersByPage,pages:H,currentPageId:le}));return typeof $=="function"&&await Promise.resolve($(ye))||ye}const de=Object.entries(V).map(([ye,De],ze)=>({index:ze,key:ye,payload:De})),Ce={results:de,answers:de,score:0};return typeof $=="function"&&await Promise.resolve($(Ce))||Ce},jt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(B){const J=va();Te({});const de=J;Promise.resolve(de).then(Ce=>{Te(Ce||{isEmpty:!0})}).catch(Ce=>{Te({isEmpty:!0})});return}if(W){const J=Ta();Te({});const de=J;Promise.resolve(de).then(Ce=>{Te(Ce||{isEmpty:!0})}).catch(Ce=>{Te({isEmpty:!0})});return}const le=Z.current&&Z.current._childOnResult,V=J=>{try{return J?J():void 0}catch{return}};if(typeof le=="function"){const J=V(le);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}J&&typeof J.then!="function"?Te(J):Te(J&&typeof J.then=="function"?{}:{}),Promise.resolve(J).then(de=>{de&&Te(de)}).catch(de=>{});return}if(typeof $=="function"){const J=V($);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}J&&typeof J.then!="function"?Te(J):Te(J&&typeof J.then=="function"?{}:{}),Promise.resolve(J).then(de=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}de&&Te(de)}).catch(de=>{console.error("viewResults external handler failed",de)});return}},Ua=()=>{if(B){if(typeof Le=="number"&&typeof lt=="number"&&Le<lt-1){Oe(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return jt()}if(W){const V=st.length;if(typeof tt=="number"&&tt<V-1){Oe(J=>({...J,stepIndex:J.stepIndex+1}));return}if(typeof Le=="number"&&typeof lt=="number"&&Le<lt-1){Oe(J=>({...J,pageIndex:J.pageIndex+1,stepIndex:0}));return}return jt()}if(typeof f=="function"){try{f()}catch{}return}const le=Z.current&&Z.current._childOnNext;if(typeof le=="function"){try{le()}catch{}return}},Et=B?Q.title||Q.label||y||E("common.popup","\uD31D\uC5C5"):a||C||(Array.isArray(n)?n[n.length-1]:void 0)||y||E("common.popup","\uD31D\uC5C5"),xa=B?Q.title??Q.label??Et:a??C??Et,Ya=(le,V)=>{const J=Rc(Pe,Le),de=Pc(le,V),Ce=Ke.answersByPage[J]?.[de],ye=E7(le,{page:Pe,pageIndex:Le,step:le,stepIndex:V,storedPayload:Ce,answersByPage:Ke.answersByPage,flowState:Ke}),De={key:de,index:V,stepIndex:tt,isLast:V===rt.length-1};switch(le?.type){case"listen":return o.jsx(zn,{...De,...ye,onDone:ze=>Pt(le,V,ze)});case"confirm":return o.jsx(Rn,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});case"confirmWithText":return o.jsx(Pn,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});case"orderList":return o.jsx(In,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});default:return null}},Je=B?ee.length>0?o.jsx("div",{className:"training-steps",children:rt.map((le,V)=>Ya(le,V))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,zt=W?o.jsxs(Ub.Provider,{value:oa,children:[Ze?.pageTop?o.jsx("div",{className:"training-page-top",children:Ze.pageTop}):null,o.jsx("div",{className:"training-steps",children:st.map((le,V)=>{const J=le;return l.cloneElement(J,{...J.props,_stepIndex:V,_totalSteps:st.length,_stepKey:`step-${V}`,_pageIndex:Le})})}),Ze?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Ze.pageBottom}):null]}):null,wt=l.useCallback(()=>{let le;if(w){const V=He,J=V?.results||V?.answers||[],de=Array.isArray(J)&&J.length>0?J.length:null,Ce=Array.isArray(J)?J.filter(De=>De?.correct===!0||De?.isCorrect===!0||De?.score===1||De?.heard===!0||De?.judgement===!0).length:null,ye=de!=null?Ce:null;ns({items:ss(J),category:qb.has(w)?"sentence":"word",trainingType:w,entryPoint:A??"sentence",itemRef:S??null,correct:ye,total:de,score:typeof V?.score=="number"?V.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:T??null}),le={correct:ye,total:de}}Te(null),Ae(()=>{typeof g=="function"&&g(le),typeof p=="function"&&p()})},[g,p,w,A,T,S,He,Te,Ae]),_a=l.useCallback(()=>et(""),[et]),ra=l.useCallback(()=>{Ae(()=>{typeof p=="function"&&p()})},[p,Ae]),na=o.jsxs("div",{className:`page-popup${Ie?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Et,children:[o.jsxs("div",{ref:Z,className:`page-popup__panel ${Fe?"":"page-popup__panel--measuring"} ${fe==="center"?"page-popup__panel--center":fe==="top"?"page-popup__panel--top":""}`,children:[o.jsx(Sc,{title:xa,subtitle:B?Q.subtitle||Q.label:Array.isArray(n)?n.join(" / "):void 0,desc:B?void 0:r,depth:B?Q.depth:n,icon:B?Q.icon:i,wrapperStyle:B?Q.wrapperStyle:s,iconTooltip:B?Q.iconTooltip:c,progressMax:lt,progressIndex:Le,pageIndex:Le,pageCount:lt,onBack:ra,onClose:ra}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${fe==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?zt:B?Je:typeof x=="function"?x({registerOnNext:yt,registerOnResult:aa,panelRef:Z,setResultOverlay:Te}):x})}),o.jsx(Ac,{onSettings:b,onNext:Ua,onResult:jt,useNoiseSettingBtn:!!(B?Q.useNoiseSetting??!0:v),stepIndex:tt,stepCount:nt,pageIndex:Le,pageCount:lt})]}),He&&!He.isEmpty&&(D??T7)({score:He.score,results:He.results||He.answers||[],contextsLength:He.results?He.results.length:He.answers?He.answers.length:0,onReplay:()=>{if(Te(null),B){if(Oe(Fn()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Oe(Fn());return}try{const le=Z.current&&Z.current._childOnResult;typeof le=="function"&&le({replay:!0})}catch{}},onClose:wt}),He?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(ne,{variant:"main",size:48,onClick:wt,label:E("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ue,position:"top",onClose:_a})]}),ia=o.jsx(Sb.Provider,{value:X,children:na});return typeof document<"u"&&document.body?Vt.createPortal(ia,document.body):ia}const ja=L7;ja.Page=Sr,ja.ListenStep=Dc,ja.ConfirmStep=jc,ja.ConfirmWithTextStep=Ec,ja.OrderListStep=Tc,ja.CardStep=Lc,ja.CardOrderStep=B7;var M7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ae(M7);var $7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ae($7);function R7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=tc(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function zc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:Vt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(R7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Kb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:h,className:p,emptyHint:g,sectionType:f="page",disc:b,notice:v}){const{t:x,i18n:y}=me.useTranslation(),C=y.language?.startsWith("ko")??!1,{anchorRect:_,openAt:k,close:w}=ko(),[A,T]=l.useState(null),S=l.useCallback(()=>{w(),T(null)},[w]);Al(S,!!A);const D=(r??"").trim(),F=/^[^,[\]\s]+$/.test(D)?D:"",R=F.length>0,[E,$]=l.useState("ganada"),[B,G]=l.useState("50"),[Q,ee]=l.useState(1),[oe,N]=l.useState(R);oe!==R&&(N(R),$(R?"match":"ganada"));const L=E==="match"&&!R?"ganada":E,P=l.useMemo(()=>[...R?[{value:"match",label:x("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:x("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:x("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:x("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:x("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:x("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:x("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[x,R]),H=l.useMemo(()=>["10","25","50","100"].map(z=>({value:z,label:x("wordSearch.pageSize",{count:Number(z),defaultValue:`${z}\uAC1C\uC529 \uBCF4\uAE30`})})),[x]),W=z=>z.words[0],te=l.useCallback((z,X)=>{const Z=Ie=>W(Ie)?.label??"",fe=Ie=>W(Ie)?.syllables??[...Z(Ie)].length,Ne=Ie=>{const Me=parseInt(W(Ie)?.grade??"",10);return Number.isFinite(Me)?Me:999};switch(L){case"match":{const Ie=[...F].length,Me=Ee=>ho(Z(Ee).slice(0,Ie),F)?0:1;return Me(z)-Me(X)||Z(z).localeCompare(Z(X),"ko")}case"ganada":return Z(z).localeCompare(Z(X),"ko");case"ganada_desc":return Z(X).localeCompare(Z(z),"ko");case"syllable":return fe(z)-fe(X)||Z(z).localeCompare(Z(X),"ko");case"syllable_desc":return fe(X)-fe(z)||Z(z).localeCompare(Z(X),"ko");case"grade":return Ne(z)-Ne(X)||Z(z).localeCompare(Z(X),"ko");case"grade_desc":return Ne(X)-Ne(z)||Z(z).localeCompare(Z(X),"ko");default:return 0}},[L,F]),I=l.useMemo(()=>n.slice().sort(te),[n,te]),q=Number(B)||10,O=l.useMemo(()=>(i??[]).flatMap(z=>z.items.slice().sort(te).map(X=>({item:X,label:z.label}))),[i,te]),ie=i?O.length:I.length,pe=Math.max(1,Math.ceil(ie/q)),ve=Math.min(Q,pe),xe=l.useMemo(()=>I.slice((ve-1)*q,ve*q),[I,ve,q]),be=l.useMemo(()=>{if(!i)return null;const z=O.slice((ve-1)*q,ve*q),X=new Map;for(const{item:Z,label:fe}of z)X.has(fe)||X.set(fe,[]),X.get(fe).push(Z);return[...X.entries()].map(([Z,fe])=>({label:Z,items:fe}))},[i,O,ve,q]);l.useEffect(()=>{ee(1)},[E,B,ie]);const M=ie>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:P,value:L,onChange:$,ariaLabel:x("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:H,value:B,onChange:G,ariaLabel:x("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(xr,{page:ve,totalPages:pe,onChange:ee})]}):void 0,U=z=>{c&&c(z)},re=t!==void 0&&a?o.jsxs(o.Fragment,{children:[x("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),x("wordSearch.resultTitleSuffix",{unit:C?Pi(a):a})]}):void 0,ge=t!==void 0&&t>0&&d!==void 0&&a?x("wordSearch.resultDisc",{unit:C?Ii(a):a,max:d,selected:s.length}):void 0,ce=b??(v?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:v}),ge?o.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return o.jsxs(no,{type:f,icon:e,title:re,action:M,disc:ce,className:_e("word-search-result-block",p),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:x("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(be??[]).map(z=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:z.items.map(X=>{const Z=s.includes(X.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),T(X.words)},onMouseLeave:S,children:o.jsx(ne,{size:"word",align:"grid",label:X.words.map(fe=>fe.label),subLabel:X.words.map(fe=>fe.subLabel).filter(Boolean).length>0?X.words.map(fe=>fe.subLabel):void 0,selected:Z,onClick:()=>U(X.id),minWidth:200})},X.id)})})},z.label)):o.jsx("div",{className:"word-search-result-block__items",children:xe.map(z=>{const X=s.includes(z.id);return o.jsx("div",{onMouseEnter:Z=>{k(Z.currentTarget),T(z.words)},onMouseLeave:S,children:o.jsx(ne,{size:"word",align:"grid",label:z.words.map(Z=>Z.label),subLabel:z.words.map(Z=>Z.subLabel).filter(Boolean).length>0?z.words.map(Z=>Z.subLabel):void 0,selected:X,onClick:()=>U(z.id),minWidth:200})},z.id)})}),A&&_&&o.jsx(zc,{words:A,anchorRect:_})]}),pe>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(xr,{page:ve,totalPages:pe,onChange:ee})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ne,{size:"56",type:"bar",label:x("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?h:void 0,children:o.jsx(ne,{size:"56",type:"bar",variant:"main",label:x("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var P7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ae(P7);function z7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function Zb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:h,titleIcon:p,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:v,onSearchEmpty:x,searchDisabled:y=!1,searchLabel:C,searchChecking:_=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:A,beforeContent:T,afterContent:S,hideCountControl:D=!1,ordinal:F=!1}){const{t:R}=me.useTranslation(),E=l.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),$=l.useMemo(()=>Array.from({length:n-i+1},(I,q)=>{const O=i+q;return{key:String(O),label:R("wordPairs.count",{n:O})}}),[R,n,i]),B=l.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),G=l.useCallback(I=>F?R("wordPairs.phonemeOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:I}),[F,B,a,R]),Q=l.useCallback(I=>F?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:I}),[F,B,a,R]),ee=l.useCallback((I,q)=>q?o.jsxs(o.Fragment,{children:[I,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:oe,toggleAt:N,close:L}=ko(),P=l.useCallback(I=>r(Number(I)),[r]),H=Qt("(max-width: 767px)"),W=l.useCallback(I=>z7(I,e).map(({label:q,value:O,displayLabel:ie})=>{const pe=!!O&&O!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||u}),pe&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ie??q})]},q)}),[e,u]),te=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ne,{size:40,type:H?"dot":void 0,icon:"info",label:H?void 0:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!oe,onClick:I=>N(I.currentTarget)})}),oe&&o.jsx(Fa,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:oe,onClose:L})]});return o.jsxs(no,{type:w,title:h,icon:p,disc:g,action:te,className:_e("phoneme-select-block",m),children:[T,(!D||f&&!(h||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&o.jsx(Va,{options:$,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||g)&&te]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:G(q+1)})]},q)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Q(q+1)})]},q)})})]}):t.map((I,q)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:G(q+1)})]},q))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2]??{};return o.jsx(fa,{title:ee(G(q+1),q===0),sections:c?c(O,q*2):s,selected:O,onSelect:d?.(q*2),align:"newline"},q)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2+1]??{};return o.jsx(fa,{title:Q(q+1),sections:c?c(O,q*2+1):s,selected:O,onSelect:d?.(q*2+1),align:"newline"},q)})})]}):t.map((I,q)=>o.jsx(fa,{title:ee(G(q+1),q===0),sections:c?c(I,q):s,selected:I,onSelect:d?.(q),align:"newline"},q))})}),A&&o.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(b||v||_)&&(()=>{const I=t.every(q=>Object.entries(q).every(([O,ie])=>!ie||O==="\uC885\uC131"&&ie==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?x:void 0,children:[b&&o.jsx(ne,{size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:b}),_?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:C??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&o.jsx(ne,{size:"56",type:"bar",variant:"main",label:C??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||y,onClick:I||y?void 0:v})]})})(),S]})}function Xb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=me.useTranslation();return o.jsx(fa,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Jb({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=me.useTranslation();return a.length===0?null:o.jsx(fa,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Qb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=me.useTranslation(),h={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},p=v=>m("wordPairs.count",{n:v}),g=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:o.jsx(Ao,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:o.jsx(Ao,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[p(1),p(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:o.jsx(Ao,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:p(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(v,x)=>{x===h.searchMode?a(v===h.explicit?"explicit":v===h.pick?"pick":"include"):x===h.phonemeOrder?n(v===h.orderMatch?"ordered":"unordered"):x===h.count?s(v===p(2)?2:1):x===h.inputMode&&d(v===h.pronInput?"phoneme":"word")};return o.jsx(fa,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var I7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ae(I7);function eg(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:h,onClose:p,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:v,topContent:x,className:y=""}=e,{t:C}=me.useTranslation(),_=i??C("common.search","\uAC80\uC0C9"),k=b??C("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,A]=l.useState(""),[T,S]=l.useState(c??r[0]?.key??""),[D,F]=l.useState(d),[R,E]=l.useState(String(f??g[0]??10)),[$,B]=l.useState(1);l.useEffect(()=>{B(1)},[w,R]);const G=s!==null,Q=l.useCallback((I,q)=>{if(!q)return!0;const O=q.toLowerCase();return r.some(ie=>{const pe=I[ie.key];return pe==null?!1:String(pe).toLowerCase().includes(O)})},[r]),ee=s??Q,oe=l.useMemo(()=>{const I=G?a.filter(q=>ee(q,w)):a;return T?[...I].sort((q,O)=>{const ie=q[T]??"",pe=O[T]??"";if(ie===pe)return 0;const ve=L8(ie,pe);return D?ve:-ve}):I},[a,w,T,D,G,ee]),N=Math.max(1,Math.ceil(oe.length/Number(R))),L=oe.slice(($-1)*Number(R),$*Number(R)),P=l.useCallback(I=>{T===I?F(q=>!q):(S(I),F(!0))},[T]),H=l.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[I,q]=v.split("{n}");return{prefix:I,suffix:q}}return{prefix:C("common.totalCountPrefix","\uCD1D "),suffix:C("common.totalCountSuffix","\uAC1C")}},[v,C]),W=l.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>P(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&T===I.key?D?"asc":"desc":null})),[r,T,D,P]),te=l.useMemo(()=>g.map(I=>({value:String(I),label:C("common.pageSizeLabel",{n:I})})),[g,C]);return o.jsxs(Ba,{className:`popup-list ${y}`,title:t,onClose:p,children:[x,o.jsx(Cn,{count:{value:oe.length,prefix:H.prefix,suffix:H.suffix},search:G?{value:w,onChange:A,placeholder:_}:void 0,pageSize:{options:te,value:R,onChange:E},pagination:{page:$,total:N,onChange:B}}),o.jsx(An,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:W,items:L,onRowClick:h,renderRow:I=>{const q=m!=null?I.id!=null&&m.has(I.id):u!=null&&I.id===u;return r.map(O=>({content:O.render?O.render(I):I[O.key]??"",className:q?"popup-list__row--selected":O.className}))},empty:k})]})}function tg(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:h=!1,onConfirm:p,closeOnConfirm:g=!0,onClose:f,inline:b,size:v="small",className:x}=e,{t:y}=me.useTranslation(),C=l.useRef(!1),[_,k]=l.useState(!1);return o.jsxs(Ba,{title:t,onClose:f,closeDisabled:_,inline:b,size:v,className:_e("confirm-popup",x),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{C.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??y("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:w})=>w()}],{label:s??y("common.confirm","\uD655\uC778"),variant:m,disabled:h||_,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await p(w),g&&w()}finally{C.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(Ar,{children:n.map((w,A)=>o.jsx(Da,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},A))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var O7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ae(O7);function ag({onApply:e,onCancel:t}){const{t:a}=me.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Kr(b)),s(!1)}}},[r,e]),h=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),p=g=>{n(g.target.value),d(null)};return o.jsx(Ba,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:p,onKeyDown:f=>h(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var F7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ae(F7);const og=200;function H7(e){return e.itemId?(xs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function rg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>an.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,h)=>{const p=H7(m);return p?o.jsx(Sn,{index:h,type:c,trainingData:p,size:"compact",hideCheckBadge:!0},m.itemId??h):null})})]},c.key)])})});return t?o.jsx(Aa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var W7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ae(W7);const ng=["var(--color-main)","var(--color-sub)"];function Ic({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),v=t-b,x=(y,C)=>Array.from({length:y}).map((_,k)=>{const w=6+Math.random()*12,A=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),T=ng[Math.floor(Math.random()*ng.length)],S=Math.random()*300,D=(360+Math.random()*260)*r*1.2,F=(C==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,R=Math.cos(F)*D,E=Math.sin(F)*D*1.35,$=Math.random()*720-360,B=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),G=Math.random()>.7?"50%":"3px";return{id:`${C}-${k}`,side:C,size:A,color:T,delay:S,vx:R,vy:E,angularVel:$,life:B,borderRadius:G}});return[...x(b,"left"),...x(v,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const h=l.useRef(null),p=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&p.current==null&&(p.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,v=performance.now(),x=p.current&&p.current!==document.body?p.current.getBoundingClientRect():null,y=Math.max(60,(window.innerHeight||800)*.05),C=N=>Math.max(40,(N||window.innerWidth)*.02),_=x?.width||window.innerWidth||375,k=x?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((P,H)=>P-H);return L[Math.floor(L.length/2)]||1},A=w(s.map(N=>Math.abs(N.vy))),T=w(s.map(N=>Math.abs(N.vx))),S=Math.sqrt(2*b*(k*.72+y))/A,D=A*S/b,F=_*.5/(T*D),R=(N,L,P)=>Math.min(P,Math.max(L,N)),E=R(S,.8,2.4),$=R(F,.7,2.2),B=s.map(N=>({...N,vx:N.vx*$,vy:N.vy*E,startTime:v+N.delay,ended:!1})),G=x?{x:x.left-C(x.width),y:x.top+x.height+y}:{x:-C(window.innerWidth),y:window.innerHeight+y},Q=x?{x:x.left+x.width+C(x.width),y:x.top+x.height+y}:{x:window.innerWidth+C(window.innerWidth),y:window.innerHeight+y},ee=N=>{let L=!1;for(const P of B){const H=d.current[P.id];if(!H||!H)continue;if(N<P.startTime){H.style.display="none";continue}if(!P._inited){const be=P.side==="left"?G.x:Q.x,M=P.side==="left"?G.y:Q.y;H.style.left=`${be}px`,H.style.top=`${M}px`,H.style.transform="translate3d(0px, 0px, 0)",H.style.display="block",H.style.zIndex="100000";try{if(typeof window<"u"&&typeof P.color=="string"&&P.color.startsWith("var(")){const U=P.color.slice(4,-1).trim(),re=getComputedStyle(document.documentElement).getPropertyValue(U).trim();re?H.style.background=re:H.style.background="#FF0060"}}catch{}P._inited=!0}const W=(N-P.startTime)/1e3;if(W<0)continue;const te=P.life/1e3;if(W>=te){H.style.opacity="0",H.style.display="none",P.ended=!0;continue}L=!0;const I=P.side==="left"?G.x:Q.x,q=P.side==="left"?G.y:Q.y,O=I+P.vx*W,ie=q+P.vy*W+.5*b*W*W,pe=(P.angularVel||0)*W,ve=O-I,xe=ie-q;H.style.transform=`translate3d(${ve}px, ${xe}px, 0) rotate(${pe}deg)`,H.style.opacity=`${Math.max(0,1-W/te)}`}L?u.current=requestAnimationFrame(ee):m.current?.()};u.current=requestAnimationFrame(ee);const oe=setTimeout(()=>{try{if((p.current?p.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const P=document.createElement("span");P.className=`confetti confetti--${L.side}`,P.setAttribute("aria-hidden","true"),P.style.display="none",P.style.position="fixed",P.style.left="0px",P.style.top="0px",P.style.width=`${L.size}px`,P.style.height=`${Math.max(4,L.size*.6)}px`;let H=L.color;try{if(typeof H=="string"&&H.startsWith("var(")){const W=H.slice(4,-1).trim(),te=getComputedStyle(document.documentElement).getPropertyValue(W).trim();te&&(H=te)}}catch{}P.style.background=H,P.style.borderRadius=L.borderRadius,P.style.transform="translate3d(0,0,0)",P.style.opacity="0",N.appendChild(P),d.current[L.id]=P}(document.body||p.current).appendChild(N),h.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(oe),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:v=>{d.current[b.id]=v},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Vt.createPortal(f,p.current||document.body):f}function ig({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Ic,{active:t,trigger:e})}var V7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ae(V7);function sg({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=me.useTranslation();sl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(ne,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function lg(e){return e??""}const cg=l.createContext({words:[],loading:!1});function dg(){return l.useContext(cg)}function ug({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(cg.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var G7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ae(G7);function pg({items:e,actions:t,columns:a,flat:r=!1,className:n,style:i}){const s=a??e.length;return o.jsx("section",{className:_e("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var U7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ae(U7);const Y7=(e,t)=>`${e} / ${t}`;function hg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=Y7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=me.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,v]=l.useState(null),[x,y]=l.useState(!1);l.useEffect(()=>{const D=h.current;if(!D)return;const F=()=>y(D.scrollWidth>D.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(F);return R.observe(D),()=>R.disconnect()},[b]);const C=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");l.useLayoutEffect(()=>{const D=p.current,F=f.current;if(!D||!F)return;const R=g.current?.offsetHeight??0,E=F.offsetHeight-R,$=Array.from(D.children).map(N=>N.offsetHeight),B=[];e.forEach((N,L)=>{const P=B[B.length-1],H=P?e[P[0]]:void 0;H&&N.group!=null&&H.group===N.group?P.push(L):B.push([L])});const G=[];let Q=[],ee=0;const oe=()=>{Q.length&&G.push(Q),Q=[],ee=0};B.forEach(N=>{const L=N.reduce((P,H)=>P+$[H],0);Q.length&&e[Q[0]].section!==e[N[0]].section&&oe(),Q.length&&ee+L>E&&oe(),L>E?N.forEach(P=>{Q.length&&ee+$[P]>E&&oe(),Q.push(P),ee+=$[P]}):(N.forEach(P=>Q.push(P)),ee+=L)}),oe(),v(G)},[C]);const _=Il,k=_,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),A=(D,F,R)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:R!=null&&t?.[R]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(D,F)})]})}),T=A(1,1,e[0]?.section),S={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:h,className:_e("report-doc",d),style:S,tabIndex:x?0:void 0,role:x?"group":void 0,"aria-label":x?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[T.header,T.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(D=>o.jsx("div",{children:D.content},D.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((D,F)=>{const{header:R,footer:E}=A(F+1,b.length,e[D[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[R,D.map($=>o.jsx("div",{children:e[$].content},e[$].id)),E]},F)})})]})}var q7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ae(q7);function mg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var K7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ae(K7);function bg({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=me.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(id,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(ne,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var Z7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ae(Z7);function gg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const h=n!=null||i!=null,p=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),p&&o.jsx("div",{className:"training-card__body",children:r}),h&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var X7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ae(X7);function fg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:h,children:p,className:g}){const{t:f}=me.useTranslation(),b=r!=null,v=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return o.jsxs("div",{className:v,onDragOver:u,onDragLeave:m,onDrop:h,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:x=>x.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:p}))]})}var J7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ae(J7);const Q7="speechear:saved_word_tables";function ek(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function tk(){try{const e=localStorage.getItem(Q7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(ek):[]}catch{return[]}}function vg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:h,showCellCount:p,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:v,hideControls:x,saveOnly:y,tableName:C,nameValue:_,onNameChange:k,descriptionValue:w,onDescriptionChange:A,namePlaceholder:T,descriptionPlaceholder:S,existingNames:D,editingName:F,onCancel:R}){const{t:E}=me.useTranslation(),$=d??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),B=r===void 0,G=!!k,[Q,ee]=l.useState([]),oe=(_??"").trim(),N=oe||(T??"").trim(),L=(w??"").trim()||(S??"").trim(),P=(D??[]).map(ue=>ue.trim().toLowerCase()),H=[F?.trim().toLowerCase(),...Q].filter(ue=>!!ue),W=[...P];for(const ue of H){const Se=W.indexOf(ue);Se!==-1&&W.splice(Se,1)}const te=oe!==""&&W.includes(oe.toLowerCase()),[I,q]=l.useState(Array(4).fill(null)),[O,ie]=l.useState(4),[pe,ve]=l.useState(null),[xe,be]=l.useState("landscape"),[M,U]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,ge]=l.useState("\uD45C\uC2DC"),[ce,z]=l.useState(!0),[X,Z]=l.useState(!0),fe=l.useRef(null),Ne=l.useRef([]),[Ie,Me]=l.useState(8),[Ee,je]=l.useState("right"),[Ae,Fe]=l.useState(!1),[Xe,we]=l.useState(!1),{toastMessage:He,toastType:Te,showWarning:Ue,clearToast:et}=vn("warning"),Ke=l.useCallback(()=>ve(null),[ve]),[Oe,dt]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{B||dt(ue=>Math.max(ue,r?.length??1))},[r?.length,B]);const xt=B?O:p?Math.max(Oe,r?.length??1):Math.max(r?.length??0,1),{width:Ze,height:st}=io[xe],Le=!B&&!p,Pe=r?.length??0,rt=Math.min(Ie,Math.max(Pe,1)),nt=Le?rt:xt,tt=Le?Rm(r??[],nt):null,lt=!!tt&&tt.length>1,yt=B?I.some(ue=>ue!==null&&ue.length>1):(r??[]).some(ue=>ue.words.length>1),aa=C?.trim()||`${Qr(Xr())} ${yt?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,at=l.useCallback(()=>lt?Ne.current.filter(ue=>ue!==null):fe.current?[fe.current]:[],[lt]),{print:Lt,openNewWindow:Pt,downloadHtml:Wt}=Tn({getElements:at,paperW:Ze,paperH:st,fileName:aa,onPopupBlocked:()=>{Ue(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ea=ue=>{ie(ue),q(Se=>{const Ge=Array(ue).fill(null);return Se.slice(0,ue).forEach((mt,_t)=>{Ge[_t]=mt}),Ge}),ve(null)},oa=ue=>{q(Se=>{const Ge=[...Se];return Ge[ue]=null,Ge}),pe===ue&&ve(null)},va=ue=>{if(pe===null)return;const Se=pe;q(mt=>{const _t=[...mt];return _t[Se]=ue,_t});const Ge=I.findIndex((mt,_t)=>_t>Se&&mt===null);ve(Ge!==-1?Ge:null)},Ta=B?I.some(ue=>ue?.some(Se=>!!Se.colloquialPronunciation)):(r??[]).some(ue=>ue.words.some(Se=>!!Se.colloquialLabel)),jt=l.useMemo(()=>Ma()?B?I.flatMap(ue=>(ue??[]).map(Se=>[Se.word,Se.homonum])):(r??[]).flatMap(ue=>ue.words.map(Se=>[Se.label,Se.homonum])):[],[B,I,r]),[Ua,Et]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ue=!1;return Promise.all(jt.map(([Se,Ge])=>Yo(Se,Ge))).then(Se=>{ue||Et(Se.some(Boolean))}),()=>{ue=!0}},[jt]);const xa=jt.length>0&&Ua,Ya=l.useMemo(()=>[...B||p?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:S8.map(ue=>({value:`${ue}\uCE78`,displayLabel:E("wordTable.filter.column",{count:ue})})),display:"segmented"}]:[],...Le&&(r?.length??0)>0?[Vm(E,{hasPairs:yt,itemCount:Pe})]:[],...lt?[Gm(E)]:[]],[E,B,p,Le,r?.length,yt,Pe,lt]),Je={...B||p?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${B?O:Oe}\uCE78`}:{},...Le&&(r?.length??0)>0?{[E(yt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${rt}\uAC1C`}:{},...lt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Um[Ee]}:{}},zt=(ue,Se)=>{Se===E("wordTable.filter.columns","\uCE78 \uC218")?B?Ea(parseInt(ue)):dt(parseInt(ue)):Se===E(yt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Me(parseInt(ue)):Se===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(Ym(ue))},wt=B?I.filter(ue=>ue!==null).map(ue=>({id:ue[0].word,words:ue.map(Se=>({label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}))})):r??[],_a=(ue=!1)=>{if(we(ue),G&&n){const Se=N.trim().toLowerCase();Se&&ee(Ge=>Ge.includes(Se)?Ge:[...Ge,Se]),n(N,wt,L||void 0,ue);return}if(y&&n){n("",wt,void 0,ue);return}if(n){Fe(!0);return}Wt()},[ra,na]=l.useState(!1),[ia,le]=l.useState(""),V=ia.trim(),J=V!==""&&P.includes(V.toLowerCase()),de=()=>{le(N?`${N} (\uBCF5\uC0AC)`:""),na(!0)},Ce=()=>{!V||J||!n||(n(V,wt,L||void 0,!0),na(!1))},ye=wt.length===0,De=ye||G&&(N===""||te),ze=()=>{if(ye){Ue(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(G&&N===""){Ue(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}G&&te&&Ue(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ut=o.jsx(so,{items:wt,orientation:xe,contentTypes:M,cutLine:re,showOutline:ce,showDivLine:X,count:xt});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",f),children:[ra&&o.jsx(Ba,{size:"small",title:m??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>na(!1),footer:({closeWithAnimation:ue})=>o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:ue}),o.jsx(ne,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!V||J,onClick:Ce})]}),children:o.jsx(Wa,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:ia,onChange:le,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Ce,error:J?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&n&&b?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ut,previewW:Ze,previewH:st,items:wt,existingNames:tk().map(ue=>ue.name),saveAsNew:Xe,onSave:(ue,Se)=>{n(ue,wt,Se,Xe),Fe(!1)},onCancel:()=>Fe(!1)}),(B||g)&&pe!==null&&v?.({cellIndex:pe,onConfirm:B?va:ue=>{if(g){const Se=ue[0];Se&&g({id:Se.word,words:[{label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}]})}ve(null)},onClose:Ke}),!x&&o.jsx(En,{hasImage:xa,hasColloquial:Ta,contentTypes:M,orientation:xe,showOutline:ce,cutLine:re,showDivLine:X,setters:{setContentTypes:U,setOrientation:be,setShowOutline:z,setCutLine:ge,setShowDivLine:Z},showCutLine:(Le?nt:xt)>1,showDivLine2:yt,middleSections:Ya,extraSelected:Je,onExtraSelect:zt}),lt&&tt?o.jsx("div",{className:"word-table-block__pages",children:tt.map((ue,Se)=>o.jsx(so,{orientation:xe,contentTypes:M,cutLine:re,showOutline:ce,showDivLine:X,count:nt,items:ue,onRemoveItem:s,contentRef:Ge=>{Ne.current[Se]=Ge},pageNumber:{current:Se+1,total:tt.length},pageNumberPosition:Ee},Se))}):o.jsx(so,{orientation:xe,contentTypes:M,cutLine:re,showOutline:ce,showDivLine:X,count:xt,items:B?void 0:r??[],editCells:B?I:void 0,activeCell:pe,onActivateCell:B||g?ve:void 0,onRemoveCell:B?oa:void 0,onRemoveItem:B?void 0:s,onReorder:B?void 0:h,showFillerAdd:!!g,contentRef:fe}),G&&!x&&o.jsxs(Ar,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Da,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:_??"",onChange:k,placeholder:T?T+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:te?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(_??"").trim()&&(T??"").trim()&&(ue.preventDefault(),k?.(T??""))}})}),o.jsx(Da,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:w??"",onChange:A,placeholder:S?S+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(w??"").trim()&&(S??"").trim()&&(ue.preventDefault(),A?.(S??""))}})})]})]}),!x&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!y&&c&&o.jsx(ne,{size:40,type:"bar",label:$,onClick:c}),!y&&i&&o.jsx(ne,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!y&&o.jsx(ne,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Pt})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[R&&o.jsx(ne,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:R}),!y&&o.jsx(ne,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Lt}),m&&o.jsx(ne,{size:"56",type:"bar",label:m,onClick:()=>G?de():_a(!0),disabled:ye,onDisabledClick:()=>{Ue(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(ne,{size:"56",type:"bar",variant:"main",label:u??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>_a(!1),disabled:De,onDisabledClick:ze})]})]}),o.jsx(ro,{message:He,type:Te,onClose:et})]})}var ak=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ae(ak);function Oc({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var ok=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ae(ok);function xg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:h,downloadCount:p,onPublisherClick:g,selected:f,onClick:b,onMore:v,titleNode:x,className:y}){const{t:C}=me.useTranslation(),_=x!=null,k=u!=null||m!=null||h!=null||p!=null,w=A=>{!_&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":t,onClick:_?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":C("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Oc,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[x??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!_&&o.jsx(ne,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:C("common.moreFor",{name:t}),onClick:A=>{A.stopPropagation(),v(A)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Jr(r,C):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Jr(m,C)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(p)})]})]})]})}/**
982
+ \uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ae(N7);function Mc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function D7(e){return Mc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Yb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Mc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function $c(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=me.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const x=Yb(b),v=Mc(b?.wording,b?.label);return x===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,p=t??0,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>h.map(b=>{const x=b??{},v=D7(x)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:C,label:w}=u(x),_=Array.isArray(x.corrects)?x.corrects:[],k=_.length?_.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,y=typeof x.selectedText=="string"?x.selectedText:null,A=Yb(x)===!0;return{problem:v,variant:C,label:w,answer:k,selectedText:y,isCorrect:A}}),[h,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ba,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:x})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ne,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ne,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:p,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:p}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,x)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(x+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function j7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||rs({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Rc(e,t){return e&&e.id||`page-${t??0}`}function Pc(e,t){return e&&e.key||`step-${t??0}`}function Fn(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function E7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const qb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),T7=e=>o.jsx($c,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function L7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:p,onBack:h,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:x=!0,children:v,ariaLabel:C,label:w,buildResults:_,onResult:k,typeKey:y,entryPoint:A,dailyTotal:T,itemRef:S,renderResultPopup:N,noiseOverride:F}=e;j7(y&&!qb.has(y)?y:"");const R=l.useRef(0);l.useEffect(()=>{R.current=Date.now()},[]);const{t:E}=me.useTranslation(),M=k,B=!!t,G=t?.id||null,Q=t?.meta||{},ee=Array.isArray(t?.pages)?t.pages:[],oe=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],D=oe.length>0,L=le=>le===Sr||le?.__isTrainingPage===!0,P=D&&oe.some(le=>L(le.type)),H=P?oe.filter(le=>L(le.type)).map((le,V)=>{const J=le.props||{};return{id:`children-page-${V}`,steps:l.Children.toArray(J.children).filter(l.isValidElement),pageTop:J.pageTop||J.top||null,pageBottom:J.pageBottom||J.bottom||null}}):[{id:"children-page-0",steps:oe}],W=D&&!B&&typeof v!="function",te=W?Math.max(1,H.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const le=document.body;return le.dataset.ihabTrainingPopupCount=String(Number(le.dataset.ihabTrainingPopupCount||"0")+1),le.classList.add("ihab-training-popup-open"),()=>{const V=Number(le.dataset.ihabTrainingPopupCount||"1")-1;V>0?le.dataset.ihabTrainingPopupCount=String(V):(delete le.dataset.ihabTrainingPopupCount,le.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return p8()},[]);const[I,q]=l.useState({...Ab,enabled:!1}),O=l.useRef(I);l.useEffect(()=>{O.current=I},[I]);const ie=l.useRef(F);l.useEffect(()=>{let le=!1;return ls().then(V=>{if(le)return;const J=V?{...O.current,...V}:{...Ab};O.current=J,q(J),ar(J);const de=ie.current;if(de){const Ce=typeof de=="function"?de(J):de,ye={...J,...Ce};O.current=ye,q(ye),ar(ye)}}),()=>{le=!0}},[]);const[pe,ve]=l.useState(null),[xe,be]=l.useState(null),$=l.useCallback((le,V)=>{le==="main"?ve(V):be(V)},[]),U=l.useCallback(le=>{const V={...O.current,...le};O.current=V,q(V),ie.current||cs(V),ar(V)},[]),re=I.mainSpeed,ge=I.mainVolume,ce=l.useCallback(le=>U({mainSpeed:le}),[U]),z=l.useCallback(le=>U({mainVolume:le}),[U]),X=l.useMemo(()=>({settings:I,setSettings:U,registerAnalyser:$,mainAnalyser:pe,noiseAnalyser:xe,playbackRate:re,setPlaybackRate:ce,mainVolume:ge,setMainVolume:z}),[I,U,$,pe,xe,re,ce,ge,z]),Z=l.useRef(null),[fe,Ne]=l.useState("center"),[Ie,Me]=l.useState(!1),Ee=l.useRef(!1),je=l.useRef(null),Ae=l.useCallback(le=>{Ee.current||(Ee.current=!0,Me(!0),je.current=setTimeout(le,g7))},[]);l.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),l.useEffect(()=>{const le=Z.current;if(!le)return;const V=Array.from(le.querySelectorAll(ur)).filter(de=>!de.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}const J=de=>{if(de.key==="Escape"){de.preventDefault(),Ae(()=>{typeof h=="function"&&h()});return}};return le.addEventListener("keydown",J),()=>le.removeEventListener("keydown",J)},[h,Ae]),Ss(Z,!0);const[Fe,Xe]=l.useState(!1),we=l.useRef(!1),[He,Te]=l.useState(null),[Ue,et]=l.useState(""),[Ke,Oe]=l.useState(()=>Fn()),dt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!B&&!W||(Oe(Fn()),Te(null))},[B,G,W]),l.useEffect(()=>{W&&Oe(le=>{const V=Math.max(0,Math.min(le.pageIndex,Math.max(0,te-1)));return V!==le.pageIndex?{...le,pageIndex:V,stepIndex:0}:le})},[W,te]);const xt=W?Math.max(0,Math.min(Ke.pageIndex,te-1)):0,Ze=W?H[xt]:null,st=W&&Ze&&Array.isArray(Ze.steps)?Ze.steps:[],Le=B?Ke.pageIndex:W?xt:typeof d=="number"?d:0,Pe=B?ee[Math.max(0,Math.min(Ke.pageIndex,Math.max(0,ee.length-1)))]:null,rt=B&&Pe&&Array.isArray(Pe.steps)?Pe.steps:[],nt=B?rt.length:W?st.length:typeof p=="number"?p:0,tt=B||W?Math.max(0,Math.min(Ke.stepIndex,Math.max(0,nt))):typeof m=="number"?m:0,lt=B?ee.length:W?te:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const le=dt.current;if(typeof Le=="number"&&le!==null&&Le!==le&&Le>le)try{et(E("training.problemNotice",{n:Le+1}))}catch{}dt.current=typeof Le=="number"?Le:dt.current},[Le,d,E]),l.useLayoutEffect(()=>{const le=Z.current;if(!le)return;const V=()=>le.querySelector(".page-popup__scroll");let J=null,de=null,Ce=null;const ye=Se=>{const Ge=V();if(!Ge)return;const mt=Ge.scrollHeight<=Ge.clientHeight;if(Ne(mt?"center":"top"),Se&&!we.current){we.current=!0;try{Xe(!0)}catch{}try{ut.disconnect()}catch{}}},De=()=>{J!==null&&cancelAnimationFrame(J),J=requestAnimationFrame(()=>{de!==null&&clearTimeout(de),de=setTimeout(()=>ye(!0),60)})},ze=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>ye(!1))};De(),window.addEventListener("resize",ze);const ut=new MutationObserver(De);ut.observe(le,{childList:!0,subtree:!0,attributes:!0});const ue=setTimeout(()=>{we.current||ye(!0)},400);return()=>{window.removeEventListener("resize",ze),J!==null&&cancelAnimationFrame(J),de!==null&&clearTimeout(de),Ce!==null&&cancelAnimationFrame(Ce),clearTimeout(ue);try{ut.disconnect()}catch{}}},[Z]);const yt=l.useCallback(le=>{Z.current&&(Z.current._childOnNext=le)},[]),aa=l.useCallback(le=>{Z.current&&(Z.current._childOnResult=le)},[]),at=l.useCallback((le,V,J)=>{Oe(de=>{const Ce=de.answersByPage[le]||{},ye=Ce[V],De=On(J),ze=On(ye);return ye&&ze>De?de:{...de,answersByPage:{...de.answersByPage,[le]:{...Ce,[V]:J}}}})},[Oe]),Lt=l.useCallback((le,V,J)=>{const de=Rc(Pe,Le),Ce=Pc(le,V);at(de,Ce,J)},[Pe,Le,at]),Pt=l.useCallback((le,V,J)=>{const de=Rc(Pe,Le),Ce=Pc(le,V);at(de,Ce,J),!J?.allowChange&&le?.autoAdvance!==!1&&Oe(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,V+1)}))},[Pe,Le,at,Oe]),Wt=l.useCallback((le,V)=>{const J=Ze?.id||`children-page-${Le??0}`,de=typeof V=="number"?V:tt??0,Ce=`step-${de}`;at(J,Ce,le),le?.allowChange||Oe(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,de+1)}))},[Ze,Le,tt,at,Oe]),Ea=l.useCallback((le,V)=>{const J=Ze?.id||`children-page-${Le??0}`,de=`step-${typeof V=="number"?V:tt??0}`;at(J,de,le)},[Ze,Le,tt,at]),oa=W?{currentPageIndex:Le??0,currentStepIndex:tt??0,totalStepsInPage:st.length,handleStepDone:Wt,handleStepChange:Ea}:null,va=async()=>{const le=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ee,flowState:Ke,answersByPage:Ke.answersByPage})):null;return typeof M=="function"&&await Promise.resolve(M(le))||le},Ta=async()=>{const le=Ze?.id||`children-page-${Ke.pageIndex}`,V=Ke.answersByPage[le]||{},J=P?(()=>{const ye={};let De=0;return H.forEach(ze=>{const ut=Ke.answersByPage[ze.id]||{},ue=Array.isArray(ze.steps)?ze.steps.length:0;for(let Se=0;Se<ue;Se+=1){const Ge=ut[`step-${Se}`];typeof Ge<"u"&&(ye[`step-${De+Se}`]=Ge)}De+=ue}),ye})():V;if(typeof _=="function"){const ye=await Promise.resolve(_(J,{pageAnswers:V,answersByPage:Ke.answersByPage,pages:H,currentPageId:le}));return typeof M=="function"&&await Promise.resolve(M(ye))||ye}const de=Object.entries(V).map(([ye,De],ze)=>({index:ze,key:ye,payload:De})),Ce={results:de,answers:de,score:0};return typeof M=="function"&&await Promise.resolve(M(Ce))||Ce},jt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(B){const J=va();Te({});const de=J;Promise.resolve(de).then(Ce=>{Te(Ce||{isEmpty:!0})}).catch(Ce=>{Te({isEmpty:!0})});return}if(W){const J=Ta();Te({});const de=J;Promise.resolve(de).then(Ce=>{Te(Ce||{isEmpty:!0})}).catch(Ce=>{Te({isEmpty:!0})});return}const le=Z.current&&Z.current._childOnResult,V=J=>{try{return J?J():void 0}catch{return}};if(typeof le=="function"){const J=V(le);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}J&&typeof J.then!="function"?Te(J):Te(J&&typeof J.then=="function"?{}:{}),Promise.resolve(J).then(de=>{de&&Te(de)}).catch(de=>{});return}if(typeof M=="function"){const J=V(M);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}J&&typeof J.then!="function"?Te(J):Te(J&&typeof J.then=="function"?{}:{}),Promise.resolve(J).then(de=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Gt&&Gt.tagName.toUpperCase()==="SCRIPT"&&Gt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}de&&Te(de)}).catch(de=>{console.error("viewResults external handler failed",de)});return}},Ua=()=>{if(B){if(typeof Le=="number"&&typeof lt=="number"&&Le<lt-1){Oe(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return jt()}if(W){const V=st.length;if(typeof tt=="number"&&tt<V-1){Oe(J=>({...J,stepIndex:J.stepIndex+1}));return}if(typeof Le=="number"&&typeof lt=="number"&&Le<lt-1){Oe(J=>({...J,pageIndex:J.pageIndex+1,stepIndex:0}));return}return jt()}if(typeof f=="function"){try{f()}catch{}return}const le=Z.current&&Z.current._childOnNext;if(typeof le=="function"){try{le()}catch{}return}},Et=B?Q.title||Q.label||C||E("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(n)?n[n.length-1]:void 0)||C||E("common.popup","\uD31D\uC5C5"),xa=B?Q.title??Q.label??Et:a??w??Et,Ya=(le,V)=>{const J=Rc(Pe,Le),de=Pc(le,V),Ce=Ke.answersByPage[J]?.[de],ye=E7(le,{page:Pe,pageIndex:Le,step:le,stepIndex:V,storedPayload:Ce,answersByPage:Ke.answersByPage,flowState:Ke}),De={key:de,index:V,stepIndex:tt,isLast:V===rt.length-1};switch(le?.type){case"listen":return o.jsx(zn,{...De,...ye,onDone:ze=>Pt(le,V,ze)});case"confirm":return o.jsx(Rn,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});case"confirmWithText":return o.jsx(Pn,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});case"orderList":return o.jsx(In,{...De,...ye,onDone:ze=>Pt(le,V,ze),onChange:ze=>Lt(le,V,ze)});default:return null}},Je=B?ee.length>0?o.jsx("div",{className:"training-steps",children:rt.map((le,V)=>Ya(le,V))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,zt=W?o.jsxs(Ub.Provider,{value:oa,children:[Ze?.pageTop?o.jsx("div",{className:"training-page-top",children:Ze.pageTop}):null,o.jsx("div",{className:"training-steps",children:st.map((le,V)=>{const J=le;return l.cloneElement(J,{...J.props,_stepIndex:V,_totalSteps:st.length,_stepKey:`step-${V}`,_pageIndex:Le})})}),Ze?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Ze.pageBottom}):null]}):null,wt=l.useCallback(()=>{let le;if(y){const V=He,J=V?.results||V?.answers||[],de=Array.isArray(J)&&J.length>0?J.length:null,Ce=Array.isArray(J)?J.filter(De=>De?.correct===!0||De?.isCorrect===!0||De?.score===1||De?.heard===!0||De?.judgement===!0).length:null,ye=de!=null?Ce:null;ns({items:ss(J),category:qb.has(y)?"sentence":"word",trainingType:y,entryPoint:A??"sentence",itemRef:S??null,correct:ye,total:de,score:typeof V?.score=="number"?V.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:T??null}),le={correct:ye,total:de}}Te(null),Ae(()=>{typeof g=="function"&&g(le),typeof h=="function"&&h()})},[g,h,y,A,T,S,He,Te,Ae]),_a=l.useCallback(()=>et(""),[et]),ra=l.useCallback(()=>{Ae(()=>{typeof h=="function"&&h()})},[h,Ae]),na=o.jsxs("div",{className:`page-popup${Ie?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Et,children:[o.jsxs("div",{ref:Z,className:`page-popup__panel ${Fe?"":"page-popup__panel--measuring"} ${fe==="center"?"page-popup__panel--center":fe==="top"?"page-popup__panel--top":""}`,children:[o.jsx(Sc,{title:xa,subtitle:B?Q.subtitle||Q.label:Array.isArray(n)?n.join(" / "):void 0,desc:B?void 0:r,depth:B?Q.depth:n,icon:B?Q.icon:i,wrapperStyle:B?Q.wrapperStyle:s,iconTooltip:B?Q.iconTooltip:c,progressMax:lt,progressIndex:Le,pageIndex:Le,pageCount:lt,onBack:ra,onClose:ra}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${fe==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?zt:B?Je:typeof v=="function"?v({registerOnNext:yt,registerOnResult:aa,panelRef:Z,setResultOverlay:Te}):v})}),o.jsx(Ac,{onSettings:b,onNext:Ua,onResult:jt,useNoiseSettingBtn:!!(B?Q.useNoiseSetting??!0:x),stepIndex:tt,stepCount:nt,pageIndex:Le,pageCount:lt})]}),He&&!He.isEmpty&&(N??T7)({score:He.score,results:He.results||He.answers||[],contextsLength:He.results?He.results.length:He.answers?He.answers.length:0,onReplay:()=>{if(Te(null),B){if(Oe(Fn()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Oe(Fn());return}try{const le=Z.current&&Z.current._childOnResult;typeof le=="function"&&le({replay:!0})}catch{}},onClose:wt}),He?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(ne,{variant:"main",size:48,onClick:wt,label:E("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ue,position:"top",onClose:_a})]}),ia=o.jsx(Sb.Provider,{value:X,children:na});return typeof document<"u"&&document.body?Vt.createPortal(ia,document.body):ia}const ja=L7;ja.Page=Sr,ja.ListenStep=Dc,ja.ConfirmStep=jc,ja.ConfirmWithTextStep=Ec,ja.OrderListStep=Tc,ja.CardStep=Lc,ja.CardOrderStep=B7;var M7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ae(M7);var $7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ae($7);function R7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=tc(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function zc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:Vt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(R7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Kb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:p,className:h,emptyHint:g,sectionType:f="page",disc:b,notice:x}){const{t:v,i18n:C}=me.useTranslation(),w=C.language?.startsWith("ko")??!1,{anchorRect:_,openAt:k,close:y}=ko(),[A,T]=l.useState(null),S=l.useCallback(()=>{y(),T(null)},[y]);Al(S,!!A);const N=(r??"").trim(),F=/^[^,[\]\s]+$/.test(N)?N:"",R=F.length>0,[E,M]=l.useState("ganada"),[B,G]=l.useState("50"),[Q,ee]=l.useState(1),[oe,D]=l.useState(R);oe!==R&&(D(R),M(R?"match":"ganada"));const L=E==="match"&&!R?"ganada":E,P=l.useMemo(()=>[...R?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,R]),H=l.useMemo(()=>["10","25","50","100"].map(z=>({value:z,label:v("wordSearch.pageSize",{count:Number(z),defaultValue:`${z}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),W=z=>z.words[0],te=l.useCallback((z,X)=>{const Z=Ie=>W(Ie)?.label??"",fe=Ie=>W(Ie)?.syllables??[...Z(Ie)].length,Ne=Ie=>{const Me=parseInt(W(Ie)?.grade??"",10);return Number.isFinite(Me)?Me:999};switch(L){case"match":{const Ie=[...F].length,Me=Ee=>ho(Z(Ee).slice(0,Ie),F)?0:1;return Me(z)-Me(X)||Z(z).localeCompare(Z(X),"ko")}case"ganada":return Z(z).localeCompare(Z(X),"ko");case"ganada_desc":return Z(X).localeCompare(Z(z),"ko");case"syllable":return fe(z)-fe(X)||Z(z).localeCompare(Z(X),"ko");case"syllable_desc":return fe(X)-fe(z)||Z(z).localeCompare(Z(X),"ko");case"grade":return Ne(z)-Ne(X)||Z(z).localeCompare(Z(X),"ko");case"grade_desc":return Ne(X)-Ne(z)||Z(z).localeCompare(Z(X),"ko");default:return 0}},[L,F]),I=l.useMemo(()=>n.slice().sort(te),[n,te]),q=Number(B)||10,O=l.useMemo(()=>(i??[]).flatMap(z=>z.items.slice().sort(te).map(X=>({item:X,label:z.label}))),[i,te]),ie=i?O.length:I.length,pe=Math.max(1,Math.ceil(ie/q)),ve=Math.min(Q,pe),xe=l.useMemo(()=>I.slice((ve-1)*q,ve*q),[I,ve,q]),be=l.useMemo(()=>{if(!i)return null;const z=O.slice((ve-1)*q,ve*q),X=new Map;for(const{item:Z,label:fe}of z)X.has(fe)||X.set(fe,[]),X.get(fe).push(Z);return[...X.entries()].map(([Z,fe])=>({label:Z,items:fe}))},[i,O,ve,q]);l.useEffect(()=>{ee(1)},[E,B,ie]);const $=ie>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:P,value:L,onChange:M,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:H,value:B,onChange:G,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(xr,{page:ve,totalPages:pe,onChange:ee})]}):void 0,U=z=>{c&&c(z)},re=t!==void 0&&a?o.jsxs(o.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:w?Pi(a):a})]}):void 0,ge=t!==void 0&&t>0&&d!==void 0&&a?v("wordSearch.resultDisc",{unit:w?Ii(a):a,max:d,selected:s.length}):void 0,ce=b??(x?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:x}),ge?o.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return o.jsxs(no,{type:f,icon:e,title:re,action:$,disc:ce,className:_e("word-search-result-block",h),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(be??[]).map(z=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:z.items.map(X=>{const Z=s.includes(X.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),T(X.words)},onMouseLeave:S,children:o.jsx(ne,{size:"word",align:"grid",label:X.words.map(fe=>fe.label),subLabel:X.words.map(fe=>fe.subLabel).filter(Boolean).length>0?X.words.map(fe=>fe.subLabel):void 0,selected:Z,onClick:()=>U(X.id),minWidth:200})},X.id)})})},z.label)):o.jsx("div",{className:"word-search-result-block__items",children:xe.map(z=>{const X=s.includes(z.id);return o.jsx("div",{onMouseEnter:Z=>{k(Z.currentTarget),T(z.words)},onMouseLeave:S,children:o.jsx(ne,{size:"word",align:"grid",label:z.words.map(Z=>Z.label),subLabel:z.words.map(Z=>Z.subLabel).filter(Boolean).length>0?z.words.map(Z=>Z.subLabel):void 0,selected:X,onClick:()=>U(z.id),minWidth:200})},z.id)})}),A&&_&&o.jsx(zc,{words:A,anchorRect:_})]}),pe>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(xr,{page:ve,totalPages:pe,onChange:ee})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ne,{size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?p:void 0,children:o.jsx(ne,{size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var P7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ae(P7);function z7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function Zb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:p,titleIcon:h,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:x,onSearchEmpty:v,searchDisabled:C=!1,searchLabel:w,searchChecking:_=!1,pairMode:k=!1,sectionType:y="page",beforeSearchContent:A,beforeContent:T,afterContent:S,hideCountControl:N=!1,ordinal:F=!1}){const{t:R}=me.useTranslation(),E=l.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),M=l.useMemo(()=>Array.from({length:n-i+1},(I,q)=>{const O=i+q;return{key:String(O),label:R("wordPairs.count",{n:O})}}),[R,n,i]),B=l.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),G=l.useCallback(I=>F?R("wordPairs.phonemeOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:I}),[F,B,a,R]),Q=l.useCallback(I=>F?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:I}),[F,B,a,R]),ee=l.useCallback((I,q)=>q?o.jsxs(o.Fragment,{children:[I,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:oe,toggleAt:D,close:L}=ko(),P=l.useCallback(I=>r(Number(I)),[r]),H=Qt("(max-width: 767px)"),W=l.useCallback(I=>z7(I,e).map(({label:q,value:O,displayLabel:ie})=>{const pe=!!O&&O!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||u}),pe&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ie??q})]},q)}),[e,u]),te=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ne,{size:40,type:H?"dot":void 0,icon:"info",label:H?void 0:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!oe,onClick:I=>D(I.currentTarget)})}),oe&&o.jsx(Fa,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:oe,onClose:L})]});return o.jsxs(no,{type:y,title:p,icon:h,disc:g,action:te,className:_e("phoneme-select-block",m),children:[T,(!N||f&&!(p||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!N&&o.jsx(Va,{options:M,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),f&&!(p||g)&&te]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:G(q+1)})]},q)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Q(q+1)})]},q)})})]}):t.map((I,q)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:G(q+1)})]},q))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2]??{};return o.jsx(fa,{title:ee(G(q+1),q===0),sections:c?c(O,q*2):s,selected:O,onSelect:d?.(q*2),align:"newline"},q)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const O=t[q*2+1]??{};return o.jsx(fa,{title:Q(q+1),sections:c?c(O,q*2+1):s,selected:O,onSelect:d?.(q*2+1),align:"newline"},q)})})]}):t.map((I,q)=>o.jsx(fa,{title:ee(G(q+1),q===0),sections:c?c(I,q):s,selected:I,onSelect:d?.(q),align:"newline"},q))})}),A&&o.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(b||x||_)&&(()=>{const I=t.every(q=>Object.entries(q).every(([O,ie])=>!ie||O==="\uC885\uC131"&&ie==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?v:void 0,children:[b&&o.jsx(ne,{size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:b}),_?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):x&&o.jsx(ne,{size:"56",type:"bar",variant:"main",label:w??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||C,onClick:I||C?void 0:x})]})})(),S]})}function Xb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=me.useTranslation();return o.jsx(fa,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Jb({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=me.useTranslation();return a.length===0?null:o.jsx(fa,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Qb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=me.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=x=>m("wordPairs.count",{n:x}),g=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:o.jsx(Ao,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:o.jsx(Ao,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[h(1),h(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:o.jsx(Ao,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:h(i),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},b=(x,v)=>{v===p.searchMode?a(x===p.explicit?"explicit":x===p.pick?"pick":"include"):v===p.phonemeOrder?n(x===p.orderMatch?"ordered":"unordered"):v===p.count?s(x===h(2)?2:1):v===p.inputMode&&d(x===p.pronInput?"phoneme":"word")};return o.jsx(fa,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var I7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ae(I7);function eg(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:p,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:x,topContent:v,className:C=""}=e,{t:w}=me.useTranslation(),_=i??w("common.search","\uAC80\uC0C9"),k=b??w("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[y,A]=l.useState(""),[T,S]=l.useState(c??r[0]?.key??""),[N,F]=l.useState(d),[R,E]=l.useState(String(f??g[0]??10)),[M,B]=l.useState(1);l.useEffect(()=>{B(1)},[y,R]);const G=s!==null,Q=l.useCallback((I,q)=>{if(!q)return!0;const O=q.toLowerCase();return r.some(ie=>{const pe=I[ie.key];return pe==null?!1:String(pe).toLowerCase().includes(O)})},[r]),ee=s??Q,oe=l.useMemo(()=>{const I=G?a.filter(q=>ee(q,y)):a;return T?[...I].sort((q,O)=>{const ie=q[T]??"",pe=O[T]??"";if(ie===pe)return 0;const ve=L8(ie,pe);return N?ve:-ve}):I},[a,y,T,N,G,ee]),D=Math.max(1,Math.ceil(oe.length/Number(R))),L=oe.slice((M-1)*Number(R),M*Number(R)),P=l.useCallback(I=>{T===I?F(q=>!q):(S(I),F(!0))},[T]),H=l.useMemo(()=>{if(typeof x=="string"&&x.includes("{n}")){const[I,q]=x.split("{n}");return{prefix:I,suffix:q}}return{prefix:w("common.totalCountPrefix","\uCD1D "),suffix:w("common.totalCountSuffix","\uAC1C")}},[x,w]),W=l.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>P(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&T===I.key?N?"asc":"desc":null})),[r,T,N,P]),te=l.useMemo(()=>g.map(I=>({value:String(I),label:w("common.pageSizeLabel",{n:I})})),[g,w]);return o.jsxs(Ba,{className:`popup-list ${C}`,title:t,onClose:h,children:[v,o.jsx(Cn,{count:{value:oe.length,prefix:H.prefix,suffix:H.suffix},search:G?{value:y,onChange:A,placeholder:_}:void 0,pageSize:{options:te,value:R,onChange:E},pagination:{page:M,total:D,onChange:B}}),o.jsx(An,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:W,items:L,onRowClick:p,renderRow:I=>{const q=m!=null?I.id!=null&&m.has(I.id):u!=null&&I.id===u;return r.map(O=>({content:O.render?O.render(I):I[O.key]??"",className:q?"popup-list__row--selected":O.className}))},empty:k})]})}function tg(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:f,inline:b,size:x="small",className:v}=e,{t:C}=me.useTranslation(),w=l.useRef(!1),[_,k]=l.useState(!1);return o.jsxs(Ba,{title:t,onClose:f,closeDisabled:_,inline:b,size:x,className:_e("confirm-popup",v),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:y})=>{if(!w.current){w.current=!0,k(!0);try{await u.onClick(y),(u.closeOnClick??!0)&&y()}finally{w.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??C("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:y})=>y()}],{label:s??C("common.confirm","\uD655\uC778"),variant:m,disabled:p||_,onClick:async({closeWithAnimation:y})=>{if(!w.current){w.current=!0,k(!0);try{await h(y),g&&y()}finally{w.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(Ar,{children:n.map((y,A)=>o.jsx(Da,{label:y.label,children:o.jsx("span",{className:"panel-row__text body-2",children:y.value})},A))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var O7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ae(O7);function ag({onApply:e,onCancel:t}){const{t:a}=me.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Kr(b)),s(!1)}}},[r,e]),p=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),h=g=>{n(g.target.value),d(null)};return o.jsx(Ba,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:f=>p(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var F7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ae(F7);const og=200;function H7(e){return e.itemId?(xs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function rg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>an.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,p)=>{const h=H7(m);return h?o.jsx(Sn,{index:p,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},c.key)])})});return t?o.jsx(Aa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var W7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ae(W7);const ng=["var(--color-main)","var(--color-sub)"];function Ic({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),x=t-b,v=(C,w)=>Array.from({length:C}).map((_,k)=>{const y=6+Math.random()*12,A=Math.round(Math.min(18,y*Math.min(1.5,1+r*.4))),T=ng[Math.floor(Math.random()*ng.length)],S=Math.random()*300,N=(360+Math.random()*260)*r*1.2,F=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,R=Math.cos(F)*N,E=Math.sin(F)*N*1.35,M=Math.random()*720-360,B=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),G=Math.random()>.7?"50%":"3px";return{id:`${w}-${k}`,side:w,size:A,color:T,delay:S,vx:R,vy:E,angularVel:M,life:B,borderRadius:G}});return[...v(b,"left"),...v(x,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const p=l.useRef(null),h=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&h.current==null&&(h.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,x=performance.now(),v=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),w=D=>Math.max(40,(D||window.innerWidth)*.02),_=v?.width||window.innerWidth||375,k=v?.height||window.innerHeight||812,y=D=>{const L=[...D].sort((P,H)=>P-H);return L[Math.floor(L.length/2)]||1},A=y(s.map(D=>Math.abs(D.vy))),T=y(s.map(D=>Math.abs(D.vx))),S=Math.sqrt(2*b*(k*.72+C))/A,N=A*S/b,F=_*.5/(T*N),R=(D,L,P)=>Math.min(P,Math.max(L,D)),E=R(S,.8,2.4),M=R(F,.7,2.2),B=s.map(D=>({...D,vx:D.vx*M,vy:D.vy*E,startTime:x+D.delay,ended:!1})),G=v?{x:v.left-w(v.width),y:v.top+v.height+C}:{x:-w(window.innerWidth),y:window.innerHeight+C},Q=v?{x:v.left+v.width+w(v.width),y:v.top+v.height+C}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+C},ee=D=>{let L=!1;for(const P of B){const H=d.current[P.id];if(!H||!H)continue;if(D<P.startTime){H.style.display="none";continue}if(!P._inited){const be=P.side==="left"?G.x:Q.x,$=P.side==="left"?G.y:Q.y;H.style.left=`${be}px`,H.style.top=`${$}px`,H.style.transform="translate3d(0px, 0px, 0)",H.style.display="block",H.style.zIndex="100000";try{if(typeof window<"u"&&typeof P.color=="string"&&P.color.startsWith("var(")){const U=P.color.slice(4,-1).trim(),re=getComputedStyle(document.documentElement).getPropertyValue(U).trim();re?H.style.background=re:H.style.background="#FF0060"}}catch{}P._inited=!0}const W=(D-P.startTime)/1e3;if(W<0)continue;const te=P.life/1e3;if(W>=te){H.style.opacity="0",H.style.display="none",P.ended=!0;continue}L=!0;const I=P.side==="left"?G.x:Q.x,q=P.side==="left"?G.y:Q.y,O=I+P.vx*W,ie=q+P.vy*W+.5*b*W*W,pe=(P.angularVel||0)*W,ve=O-I,xe=ie-q;H.style.transform=`translate3d(${ve}px, ${xe}px, 0) rotate(${pe}deg)`,H.style.opacity=`${Math.max(0,1-W/te)}`}L?u.current=requestAnimationFrame(ee):m.current?.()};u.current=requestAnimationFrame(ee);const oe=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const D=document.createElement("div");D.className="party-container",D.style.position="fixed",D.style.inset="0",D.style.pointerEvents="none",D.style.overflow="visible",D.style.zIndex="2147483647";for(const L of s){const P=document.createElement("span");P.className=`confetti confetti--${L.side}`,P.setAttribute("aria-hidden","true"),P.style.display="none",P.style.position="fixed",P.style.left="0px",P.style.top="0px",P.style.width=`${L.size}px`,P.style.height=`${Math.max(4,L.size*.6)}px`;let H=L.color;try{if(typeof H=="string"&&H.startsWith("var(")){const W=H.slice(4,-1).trim(),te=getComputedStyle(document.documentElement).getPropertyValue(W).trim();te&&(H=te)}}catch{}P.style.background=H,P.style.borderRadius=L.borderRadius,P.style.transform="translate3d(0,0,0)",P.style.opacity="0",D.appendChild(P),d.current[L.id]=P}(document.body||h.current).appendChild(D),p.current=D}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(oe),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:x=>{d.current[b.id]=x},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Vt.createPortal(f,h.current||document.body):f}function ig({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Ic,{active:t,trigger:e})}var V7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ae(V7);function sg({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=me.useTranslation();sl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(ne,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function lg(e){return e??""}const cg=l.createContext({words:[],loading:!1});function dg(){return l.useContext(cg)}function ug({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(cg.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var G7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ae(G7);function pg({items:e,actions:t,columns:a,flat:r=!1,className:n,style:i}){const s=a??e.length;return o.jsx("section",{className:_e("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var U7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ae(U7);const Y7=(e,t)=>`${e} / ${t}`;function hg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=Y7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=me.useTranslation(),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,x]=l.useState(null),[v,C]=l.useState(!1);l.useEffect(()=>{const N=p.current;if(!N)return;const F=()=>C(N.scrollWidth>N.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(F);return R.observe(N),()=>R.disconnect()},[b]);const w=e.map(N=>`${N.id}\0${N.section??""}\0${N.group??""}`).join("");l.useLayoutEffect(()=>{const N=h.current,F=f.current;if(!N||!F)return;const R=g.current?.offsetHeight??0,E=F.offsetHeight-R,M=Array.from(N.children).map(D=>D.offsetHeight),B=[];e.forEach((D,L)=>{const P=B[B.length-1],H=P?e[P[0]]:void 0;H&&D.group!=null&&H.group===D.group?P.push(L):B.push([L])});const G=[];let Q=[],ee=0;const oe=()=>{Q.length&&G.push(Q),Q=[],ee=0};B.forEach(D=>{const L=D.reduce((P,H)=>P+M[H],0);Q.length&&e[Q[0]].section!==e[D[0]].section&&oe(),Q.length&&ee+L>E&&oe(),L>E?D.forEach(P=>{Q.length&&ee+M[P]>E&&oe(),Q.push(P),ee+=M[P]}):(D.forEach(P=>Q.push(P)),ee+=L)}),oe(),x(G)},[w]);const _=Il,k=_,y=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),A=(N,F,R)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:R!=null&&t?.[R]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:y}),o.jsx("span",{className:"report-doc__page-no",children:n(N,F)})]})}),T=A(1,1,e[0]?.section),S={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:p,className:_e("report-doc",d),style:S,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[T.header,T.footer]}),o.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(N=>o.jsx("div",{children:N.content},N.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((N,F)=>{const{header:R,footer:E}=A(F+1,b.length,e[N[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[R,N.map(M=>o.jsx("div",{children:e[M].content},e[M].id)),E]},F)})})]})}var q7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ae(q7);function mg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var K7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ae(K7);function bg({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=me.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(id,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(ne,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var Z7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ae(Z7);function gg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const p=n!=null||i!=null,h=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&o.jsx("div",{className:"training-card__body",children:r}),p&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var X7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ae(X7);function fg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:p,children:h,className:g}){const{t:f}=me.useTranslation(),b=r!=null,x=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return o.jsxs("div",{className:x,onDragOver:u,onDragLeave:m,onDrop:p,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:h}))]})}var J7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ae(J7);const Q7="speechear:saved_word_tables";function ek(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function tk(){try{const e=localStorage.getItem(Q7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(ek):[]}catch{return[]}}function vg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:p,showCellCount:h,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:x,hideControls:v,saveOnly:C,tableName:w,nameValue:_,onNameChange:k,descriptionValue:y,onDescriptionChange:A,namePlaceholder:T,descriptionPlaceholder:S,existingNames:N,editingName:F,onCancel:R}){const{t:E}=me.useTranslation(),M=d??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),B=r===void 0,G=!!k,[Q,ee]=l.useState([]),oe=(_??"").trim(),D=oe||(T??"").trim(),L=(y??"").trim()||(S??"").trim(),P=(N??[]).map(ue=>ue.trim().toLowerCase()),H=[F?.trim().toLowerCase(),...Q].filter(ue=>!!ue),W=[...P];for(const ue of H){const Se=W.indexOf(ue);Se!==-1&&W.splice(Se,1)}const te=oe!==""&&W.includes(oe.toLowerCase()),[I,q]=l.useState(Array(4).fill(null)),[O,ie]=l.useState(4),[pe,ve]=l.useState(null),[xe,be]=l.useState("landscape"),[$,U]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,ge]=l.useState("\uD45C\uC2DC"),[ce,z]=l.useState(!0),[X,Z]=l.useState(!0),fe=l.useRef(null),Ne=l.useRef([]),[Ie,Me]=l.useState(8),[Ee,je]=l.useState("right"),[Ae,Fe]=l.useState(!1),[Xe,we]=l.useState(!1),{toastMessage:He,toastType:Te,showWarning:Ue,clearToast:et}=vn("warning"),Ke=l.useCallback(()=>ve(null),[ve]),[Oe,dt]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{B||dt(ue=>Math.max(ue,r?.length??1))},[r?.length,B]);const xt=B?O:h?Math.max(Oe,r?.length??1):Math.max(r?.length??0,1),{width:Ze,height:st}=io[xe],Le=!B&&!h,Pe=r?.length??0,rt=Math.min(Ie,Math.max(Pe,1)),nt=Le?rt:xt,tt=Le?Rm(r??[],nt):null,lt=!!tt&&tt.length>1,yt=B?I.some(ue=>ue!==null&&ue.length>1):(r??[]).some(ue=>ue.words.length>1),aa=w?.trim()||`${Qr(Xr())} ${yt?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,at=l.useCallback(()=>lt?Ne.current.filter(ue=>ue!==null):fe.current?[fe.current]:[],[lt]),{print:Lt,openNewWindow:Pt,downloadHtml:Wt}=Tn({getElements:at,paperW:Ze,paperH:st,fileName:aa,onPopupBlocked:()=>{Ue(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ea=ue=>{ie(ue),q(Se=>{const Ge=Array(ue).fill(null);return Se.slice(0,ue).forEach((mt,_t)=>{Ge[_t]=mt}),Ge}),ve(null)},oa=ue=>{q(Se=>{const Ge=[...Se];return Ge[ue]=null,Ge}),pe===ue&&ve(null)},va=ue=>{if(pe===null)return;const Se=pe;q(mt=>{const _t=[...mt];return _t[Se]=ue,_t});const Ge=I.findIndex((mt,_t)=>_t>Se&&mt===null);ve(Ge!==-1?Ge:null)},Ta=B?I.some(ue=>ue?.some(Se=>!!Se.colloquialPronunciation)):(r??[]).some(ue=>ue.words.some(Se=>!!Se.colloquialLabel)),jt=l.useMemo(()=>Ma()?B?I.flatMap(ue=>(ue??[]).map(Se=>[Se.word,Se.homonum])):(r??[]).flatMap(ue=>ue.words.map(Se=>[Se.label,Se.homonum])):[],[B,I,r]),[Ua,Et]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ue=!1;return Promise.all(jt.map(([Se,Ge])=>Yo(Se,Ge))).then(Se=>{ue||Et(Se.some(Boolean))}),()=>{ue=!0}},[jt]);const xa=jt.length>0&&Ua,Ya=l.useMemo(()=>[...B||h?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:S8.map(ue=>({value:`${ue}\uCE78`,displayLabel:E("wordTable.filter.column",{count:ue})})),display:"segmented"}]:[],...Le&&(r?.length??0)>0?[Vm(E,{hasPairs:yt,itemCount:Pe})]:[],...lt?[Gm(E)]:[]],[E,B,h,Le,r?.length,yt,Pe,lt]),Je={...B||h?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${B?O:Oe}\uCE78`}:{},...Le&&(r?.length??0)>0?{[E(yt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${rt}\uAC1C`}:{},...lt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Um[Ee]}:{}},zt=(ue,Se)=>{Se===E("wordTable.filter.columns","\uCE78 \uC218")?B?Ea(parseInt(ue)):dt(parseInt(ue)):Se===E(yt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Me(parseInt(ue)):Se===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(Ym(ue))},wt=B?I.filter(ue=>ue!==null).map(ue=>({id:ue[0].word,words:ue.map(Se=>({label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}))})):r??[],_a=(ue=!1)=>{if(we(ue),G&&n){const Se=D.trim().toLowerCase();Se&&ee(Ge=>Ge.includes(Se)?Ge:[...Ge,Se]),n(D,wt,L||void 0,ue);return}if(C&&n){n("",wt,void 0,ue);return}if(n){Fe(!0);return}Wt()},[ra,na]=l.useState(!1),[ia,le]=l.useState(""),V=ia.trim(),J=V!==""&&P.includes(V.toLowerCase()),de=()=>{le(D?`${D} (\uBCF5\uC0AC)`:""),na(!0)},Ce=()=>{!V||J||!n||(n(V,wt,L||void 0,!0),na(!1))},ye=wt.length===0,De=ye||G&&(D===""||te),ze=()=>{if(ye){Ue(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(G&&D===""){Ue(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}G&&te&&Ue(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ut=o.jsx(so,{items:wt,orientation:xe,contentTypes:$,cutLine:re,showOutline:ce,showDivLine:X,count:xt});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",f),children:[ra&&o.jsx(Ba,{size:"small",title:m??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>na(!1),footer:({closeWithAnimation:ue})=>o.jsxs(o.Fragment,{children:[o.jsx(ne,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:ue}),o.jsx(ne,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!V||J,onClick:Ce})]}),children:o.jsx(Wa,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:ia,onChange:le,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Ce,error:J?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&n&&b?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ut,previewW:Ze,previewH:st,items:wt,existingNames:tk().map(ue=>ue.name),saveAsNew:Xe,onSave:(ue,Se)=>{n(ue,wt,Se,Xe),Fe(!1)},onCancel:()=>Fe(!1)}),(B||g)&&pe!==null&&x?.({cellIndex:pe,onConfirm:B?va:ue=>{if(g){const Se=ue[0];Se&&g({id:Se.word,words:[{label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}]})}ve(null)},onClose:Ke}),!v&&o.jsx(En,{hasImage:xa,hasColloquial:Ta,contentTypes:$,orientation:xe,showOutline:ce,cutLine:re,showDivLine:X,setters:{setContentTypes:U,setOrientation:be,setShowOutline:z,setCutLine:ge,setShowDivLine:Z},showCutLine:(Le?nt:xt)>1,showDivLine2:yt,middleSections:Ya,extraSelected:Je,onExtraSelect:zt}),lt&&tt?o.jsx("div",{className:"word-table-block__pages",children:tt.map((ue,Se)=>o.jsx(so,{orientation:xe,contentTypes:$,cutLine:re,showOutline:ce,showDivLine:X,count:nt,items:ue,onRemoveItem:s,contentRef:Ge=>{Ne.current[Se]=Ge},pageNumber:{current:Se+1,total:tt.length},pageNumberPosition:Ee},Se))}):o.jsx(so,{orientation:xe,contentTypes:$,cutLine:re,showOutline:ce,showDivLine:X,count:xt,items:B?void 0:r??[],editCells:B?I:void 0,activeCell:pe,onActivateCell:B||g?ve:void 0,onRemoveCell:B?oa:void 0,onRemoveItem:B?void 0:s,onReorder:B?void 0:p,showFillerAdd:!!g,contentRef:fe}),G&&!v&&o.jsxs(Ar,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Da,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:_??"",onChange:k,placeholder:T?T+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:te?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(_??"").trim()&&(T??"").trim()&&(ue.preventDefault(),k?.(T??""))}})}),o.jsx(Da,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:y??"",onChange:A,placeholder:S?S+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(y??"").trim()&&(S??"").trim()&&(ue.preventDefault(),A?.(S??""))}})})]})]}),!v&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!C&&c&&o.jsx(ne,{size:40,type:"bar",label:M,onClick:c}),!C&&i&&o.jsx(ne,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!C&&o.jsx(ne,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Pt})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[R&&o.jsx(ne,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:R}),!C&&o.jsx(ne,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Lt}),m&&o.jsx(ne,{size:"56",type:"bar",label:m,onClick:()=>G?de():_a(!0),disabled:ye,onDisabledClick:()=>{Ue(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(ne,{size:"56",type:"bar",variant:"main",label:u??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>_a(!1),disabled:De,onDisabledClick:ze})]})]}),o.jsx(ro,{message:He,type:Te,onClose:et})]})}var ak=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ae(ak);function Oc({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var ok=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ae(ok);function xg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:p,downloadCount:h,onPublisherClick:g,selected:f,onClick:b,onMore:x,titleNode:v,className:C}){const{t:w}=me.useTranslation(),_=v!=null,k=u!=null||m!=null||p!=null||h!=null,y=A=>{!_&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",C),role:"button",tabIndex:0,"aria-label":t,onClick:_?void 0:b,onKeyDown:y,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Oc,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[v??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),x&&!_&&o.jsx(ne,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:t}),onClick:A=>{A.stopPropagation(),x(A)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Jr(r,w):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Jr(m,w)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(p)}),h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
983
983
  * @license lucide-react v1.38.0 - ISC
984
984
  *
985
985
  * This source code is licensed under the ISC license.
@@ -993,4 +993,4 @@ ${C.badge}`:C.badge:void 0;if(k&&d(C.code))return null;if(!C.badge&&!u)return m(
993
993
 
994
994
  /* !important \uBD88\uD544\uC694 \u2014 WordDataUpdatePopup.tsx\uC758 \uC778\uB77C\uC778 width\uB294 pct/isDone/isError\uC77C \uB54C\uB9CC
995
995
  \uC124\uC815\uB418\uACE0 \uC774 indeterminate \uD074\uB798\uC2A4\uAC00 \uBD99\uB294 \uC0C1\uD0DC(state==='active' && pct===undefined)\uC5D0\uC11C\uB294
996
- \uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;ae(lk);function ck(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Fc({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=me.useTranslation(),s=a==="done",c=a==="pending",d=a==="error",u=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(dd,{size:22,color:"white",strokeWidth:2.5}):d?o.jsx(sk,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?o.jsx(ht,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||d?`${d?100:u}%`:void 0}})})]})]})}function _g({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=me.useTranslation(),{phase:s,error:c,wordCount:d,imagePage:u,imageDone:m,imageTotal:h,pairPercent:p}=t,g=ck(s),f=s==="done",b=!!c;function v(w){return b&&g===w?"error":g>w?"done":g===w?"active":"pending"}const x=v(1),y=v(2),C=v(3),_=s==="image-match"&&h?Math.round((m??0)/h*100):void 0,k=l.useMemo(()=>{if(y!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:u??1});if(s==="image-match"&&h)return i("wordData.imageCount",{done:nr(m),total:nr(h)})}},[y,s,u,h,m,i]);return o.jsx(Ba,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(ne,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(ne,{size:56,variant:"main",disabled:!f,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Fc,{icon:o.jsx(nd,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?i("wordData.downloadingCount",{n:nr(d)}):void 0}),o.jsx(Fc,{icon:o.jsx(nk,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:y,pct:_,subText:k}),o.jsx(Fc,{icon:o.jsx(ld,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:C,pct:C==="active"?p??0:void 0,subText:void 0})]})})}var dk=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";ae(dk);function Cg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=p=>{let g=null;p==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:p==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:p==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:p==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(g),r(p)},c=l.useCallback(()=>{r(null),i(null)},[]),d=l.useCallback(()=>s("noise"),[]),u=l.useCallback(()=>s("short"),[]),m=l.useCallback(()=>s("long"),[]),h=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:d,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:u,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:h,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var uk=Object.freeze({__proto__:null,Accordion:Nh,ActionCard:Hp,Alert:Gh,AppHeader:Eh,AudioMeter:kn,AudioPlayer:kr,Avatar:qh,Badge:ht,BarChart:bm,BarChartControls:Kl,Board:tm,BottomNav:Nl,BrandIdentity:Tl,Breadcrumb:Zh,BulkBar:dm,Button:ne,CORE_VERSION:jr,Calendar:Bm,CardStep:Lc,ChartLegend:yn,ChartSection:wn,ChartTotal:_r,Checkbox:Ul,ChoiceChips:Cb,CircleBadge:Hh,CodeBox:cm,ColorPicker:Jh,CompanyMeta:sm,ConfirmPopup:tg,ConfirmStep:jc,ConfirmWithTextStep:Ec,ContrastFilterPanel:Qb,CoreScope:Wp,CountTile:Qh,CouponInputPopup:ag,DatePicker:pm,DebugResultLauncher:Cg,DescriptionTooltip:Fa,DeviceSideTable:Am,Dialog:em,Divider:Wh,Dropdown:Ut,EffectPartyPopper:Ic,EffectPartyPopperHost:ig,EmptyState:Op,ErrorState:Fp,FILTER_ALL_VALUE:Dt,FileUpload:Kh,FilterPanel:fa,FilterSectionInfo:Ao,Footer:yb,Header:Ll,Icon:We,IconGridMenu:_b,IconRenderer:We,InfoTooltip:ha,LandingBottomSticky:kb,LandingHeader:wb,ListPopup:eg,ListenStep:Dc,Loader:So,MARKS:ac,MARK_ICON:rc,MARK_VARIANT:nc,MediaQueryOverrideContext:dn,MenuTooltip:gr,NoiseSettingsTooltip:kc,NoticeBox:Vp,OrderListStep:Tc,PASS_CARD_BG_VARS:Ha,POS_LABEL:sc,PROMO_BANNER_BG_COMPONENTS:ol,PROMO_BANNER_BG_OPTIONS:Gp,PROMO_BANNER_BG_VARS:Co,Page:Sr,PageTitle:sg,Pagination:xr,Panel:Ar,PanelGrid:Mb,PanelRow:Da,PanelRowDevice:Lb,PassCard:zl,PassCardBg:zh,PassCardBgIHAB:Ih,PassCardBgLeftColorGrid:Oh,PassCardBgTwoCircle:Pl,PaymentPlan:Ph,PersonCard:am,PhonemeFilterPanel:Jb,PhonemeSelectBlock:Zb,Popup:Ba,ProgressBar:ym,ProgressIndicator:Ql,PromoBanner:Sh,PromoBannerBgDark:Hs,PromoBannerBgDeep:Rs,PromoBannerBgDiagonal:Us,PromoBannerBgDots:qs,PromoBannerBgInstagram:al,PromoBannerBgMain:js,PromoBannerBgNaver:el,PromoBannerBgOutline:Zs,PromoBannerBgRadial:Vs,PromoBannerBgSoft:Ts,PromoBannerBgSoftSub:zs,PromoBannerBgSub:Ms,PromoBannerBgSuccess:Js,PromoBannerBgWarm:Os,PublicationCard:rm,Radio:Wl,RadioGroup:Vh,Rating:Xh,ReportDocument:hg,ReportInfoPanel:mg,RingChart:xm,SENTENCE_TRAINING_TYPES:Mn,SearchSummary:Uh,Section:no,SectionHeader:im,SegmentedControl:Va,ShortcutBadge:Hl,SideNav:Dl,Slider:Zl,SoundCompass:Fh,SplashLogo:nm,StatChart:_m,SummaryStrip:pg,TRAINING_TOOLTIP_HOVER_DELAY_MS:og,Table:An,TableFilterPanel:En,Tabs:Yh,TextBoxTooltip:Do,TextField:Wa,Timeline:om,Toast:ro,Toggle:Gl,Toolbar:Cn,Tooltip:Aa,TooltipInfo:ha,TooltipTextBox:Do,TopBanner:Bh,TrainingBlock:Dm,TrainingBlockButton:Sn,TrainingCard:gg,TrainingCardGroup:fg,TrainingPagePopup:ja,TrainingPagePopupBottom:Ac,TrainingPagePopupTitle:Sc,TrainingResultPopup:$c,TrainingStep:Ga,TrainingStepAudioPlayer:kr,TrainingStepBullet:fc,TrainingStepCard:Cc,TrainingStepConfirm:Rn,TrainingStepConfirmWithText:Pn,TrainingStepListen:zn,TrainingStepOrderList:In,TrainingStepTextBox:_c,TrainingStepTitle:vc,TrainingTooltip:rg,TrainingWordCard:Nn,UpdateAlert:bg,WORD_TABLE_PAPER:io,WORD_TYPE_LABEL:lc,WordDataProvider:ug,WordDataUpdatePopup:_g,WordImageTooltip:zc,WordSearchFilterPanel:Xb,WordSearchResultBlock:Kb,WordTable:so,WordTableBlock:vg,WordTableButton:xg,WordTablePopup:Xm,WordTableThumbnail:Oc,buildMonthChartData:hm,cellLabel:tb,cellsForLabels:hb,clearPassCardBgTheme:ga,clearPromoBannerBgTheme:Nt,closeTrainingPopup:Rb,companyTypeLabel:lg,createTrainingScenario:Ib,cx:_e,deriveNoiseContexts:Gb,derivePassCard:Ml,draftValues:xb,expandSlashLabel:jn,formatDuration:mb,getControlDateRange:gm,getPayloadTimestamp:On,getPromoBannerBgTheme:Ns,getSelectedFromPayload:Fb,getSelectedText:Hb,getStepPayload:Nc,getSteppedPayload:Wb,injectPassCardBgTheme:ba,injectPromoBannerBgTheme:Bt,isSelectionCorrect:Vb,labelsForSave:eb,markAfterClick:oc,marksForSave:Dn,missesByType:cb,nextFocus:ib,nextMisses:lb,pageStartIndexes:ic,passCardBgIhabTheme:Ol,passCardBgLeftColorGridTheme:Fl,passCardBgTwoCircleTheme:Rl,printWordTable:$m,promoBannerBgDarkTheme:Fs,promoBannerBgDeepTheme:$s,promoBannerBgDiagonalTheme:Gs,promoBannerBgDotsTheme:Ys,promoBannerBgInstagramTheme:tl,promoBannerBgMainTheme:Ds,promoBannerBgNaverTheme:Qs,promoBannerBgOutlineTheme:Ks,promoBannerBgRadialTheme:Ws,promoBannerBgSoftSubTheme:Ps,promoBannerBgSoftTheme:Es,promoBannerBgSubTheme:Ls,promoBannerBgSuccessTheme:Xs,promoBannerBgWarmTheme:Is,recommendTables:ub,regenerateUnpinned:vb,removeItem:fb,resolveTrainingItems:zb,resolveTrainingPopupMeta:Bc,reviewCells:Jm,reviewSetPlan:db,reviewTableName:Qm,scoreKey:wr,scoreSheetHeader:ab,shouldConfirmDiscard:Mm,splitTrainingVariants:Pb,summarize:Lm,summarizeMisses:sb,tableTrends:nb,toDraft:bb,toTrainingText:Ob,togglePin:gb,uncoveredLabels:pb,useAnchoredMenu:ao,useBarChartControl:ql,useCalendarMonth:Yl,useComboboxSuggestions:Vl,useFitScale:cc,useSoundCompassExam:Bl,useToastLifecycle:Jl,useWordData:dg,useWordTableDisplaySettings:pc,useWordTablePrint:Tn,weakItems:rb}),pk=Object.freeze({__proto__:null});const hk={...uk,...Aw,...D4,...pk};exports.Accordion=Nh,exports.ActionCard=Hp,exports.Alert=Gh,exports.AppHeader=Eh,exports.AudioMeter=kn,exports.AudioPlayer=kr,exports.Avatar=qh,exports.Badge=ht,exports.BarChart=bm,exports.BarChartControls=Kl,exports.Board=tm,exports.BottomNav=Nl,exports.BrandIdentity=Tl,exports.Breadcrumb=Zh,exports.BulkBar=dm,exports.Button=ne,exports.CACHE_GROUPS=ll,exports.CAPABILITY=fo,exports.CHOSEONG=qe,exports.CORE_VERSION=jr,exports.Calendar=Bm,exports.CardStep=Lc,exports.ChartLegend=yn,exports.ChartSection=wn,exports.ChartTotal=_r,exports.Checkbox=Ul,exports.ChoiceChips=Cb,exports.CircleBadge=Hh,exports.CodeBox=cm,exports.ColorPicker=Jh,exports.CompanyMeta=sm,exports.ConfirmPopup=tg,exports.ConfirmStep=jc,exports.ConfirmWithTextStep=Ec,exports.ContrastFilterPanel=Qb,exports.CoreScope=Wp,exports.CountTile=Qh,exports.CouponInputPopup=ag,exports.DEFAULT_LOCALE=co,exports.DatePicker=pm,exports.DebugResultLauncher=Cg,exports.DescriptionTooltip=Fa,exports.DeviceSideTable=Am,exports.Dialog=em,exports.Divider=Wh,exports.DocumentTitleSuppressContext=il,exports.Dropdown=Ut,exports.EMPTY_COMPOSITION=mn,exports.EffectPartyPopper=Ic,exports.EffectPartyPopperHost=ig,exports.EmptyState=Op,exports.ErrorState=Fp,exports.FILTER_ALL_VALUE=Dt,exports.FileUpload=Kh,exports.FilterPanel=fa,exports.FilterSectionInfo=Ao,exports.Footer=yb,exports.Header=Ll,exports.I18nProvider=U0,exports.Icon=We,exports.IconGridMenu=_b,exports.IconRenderer=We,exports.InfoTooltip=ha,exports.JONGSEONG=gt,exports.JUNGSEONG=ct,exports.LOCALE_STORAGE_KEY=Vn,exports.LONG_STORIES=za,exports.LandingBottomSticky=kb,exports.LandingHeader=wb,exports.ListPopup=eg,exports.ListenStep=Dc,exports.Loader=So,exports.MARKS=ac,exports.MARK_ICON=rc,exports.MARK_VARIANT=nc,exports.MediaQueryOverrideContext=dn,exports.MenuTooltip=gr,exports.NETWORK_ERROR_MESSAGE=ts,exports.NOISE_DATAS=Ra,exports.NO_CODA=ea,exports.NoiseSettingsTooltip=kc,exports.NoticeBox=Vp,exports.ORDER_SETS=Ia,exports.OrderListStep=Tc,exports.PASS_CARD_BG_VARS=Ha,exports.PLAN_FEATURES=Tp,exports.PLAN_LIMITS=Mp,exports.POS_LABEL=sc,exports.PROMO_BANNER_BG_COMPONENTS=ol,exports.PROMO_BANNER_BG_OPTIONS=Gp,exports.PROMO_BANNER_BG_VARS=Co,exports.Page=Sr,exports.PageTitle=sg,exports.Pagination=xr,exports.Panel=Ar,exports.PanelGrid=Mb,exports.PanelRow=Da,exports.PanelRowDevice=Lb,exports.PassCard=zl,exports.PassCardBg=zh,exports.PassCardBgIHAB=Ih,exports.PassCardBgLeftColorGrid=Oh,exports.PassCardBgTwoCircle=Pl,exports.PaymentPlan=Ph,exports.PersonCard=am,exports.PhonemeFilterPanel=Jb,exports.PhonemeSelectBlock=Zb,exports.Popup=Ba,exports.ProgressBar=ym,exports.ProgressIndicator=Ql,exports.PromoBanner=Sh,exports.PromoBannerBgDark=Hs,exports.PromoBannerBgDeep=Rs,exports.PromoBannerBgDiagonal=Us,exports.PromoBannerBgDots=qs,exports.PromoBannerBgInstagram=al,exports.PromoBannerBgMain=js,exports.PromoBannerBgNaver=el,exports.PromoBannerBgOutline=Zs,exports.PromoBannerBgRadial=Vs,exports.PromoBannerBgSoft=Ts,exports.PromoBannerBgSoftSub=zs,exports.PromoBannerBgSub=Ms,exports.PromoBannerBgSuccess=Js,exports.PromoBannerBgWarm=Os,exports.PublicationCard=rm,exports.Radio=Wl,exports.RadioGroup=Vh,exports.Rating=Xh,exports.ReportDocument=hg,exports.ReportInfoPanel=mg,exports.RingChart=xm,exports.SENTENCE_TRAINING_TYPES=Mn,exports.SHORT_STORIES=Pa,exports.SUPPORTED_LOCALES=Lo,exports.SYLLABLE_MIN=ta,exports.SearchSummary=Uh,exports.Section=no,exports.SectionHeader=im,exports.SegmentedControl=Va,exports.ShortcutBadge=Hl,exports.SideNav=Dl,exports.Slider=Zl,exports.SoundCompass=Fh,exports.SplashLogo=nm,exports.StatChart=_m,exports.SummaryStrip=pg,exports.TIER_RANK=Lp,exports.TOPIC_TYPES=xp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=og,exports.TRAINING_TYPES=an,exports.TRAINING_TYPE_I18N_KEY=ws,exports.Table=An,exports.TableFilterPanel=En,exports.Tabs=Yh,exports.TextBoxTooltip=Do,exports.TextField=Wa,exports.Timeline=om,exports.Toast=ro,exports.Toggle=Gl,exports.Toolbar=Cn,exports.Tooltip=Aa,exports.TooltipInfo=ha,exports.TooltipTextBox=Do,exports.TopBanner=Bh,exports.TrainingBlock=Dm,exports.TrainingBlockButton=Sn,exports.TrainingCard=gg,exports.TrainingCardGroup=fg,exports.TrainingPagePopup=ja,exports.TrainingPagePopupBottom=Ac,exports.TrainingPagePopupTitle=Sc,exports.TrainingResultPopup=$c,exports.TrainingStep=Ga,exports.TrainingStepAudioPlayer=kr,exports.TrainingStepBullet=fc,exports.TrainingStepCard=Cc,exports.TrainingStepConfirm=Rn,exports.TrainingStepConfirmWithText=Pn,exports.TrainingStepListen=zn,exports.TrainingStepOrderList=In,exports.TrainingStepTextBox=_c,exports.TrainingStepTitle=vc,exports.TrainingTooltip=rg,exports.TrainingWordCard=Nn,exports.UpdateAlert=bg,exports.VAP_PAGE_SIZE_OPTIONS=pn,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Pp,exports.WORD_SUGGESTION_EXISTING_ERROR=Ip,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Rp,exports.WORD_TABLE_PAPER=io,exports.WORD_TYPE_LABEL=lc,exports.WordDataProvider=ug,exports.WordDataUpdatePopup=_g,exports.WordImageTooltip=zc,exports.WordSearchFilterPanel=Xb,exports.WordSearchResultBlock=Kb,exports.WordTable=so,exports.WordTableBlock=vg,exports.WordTableButton=xg,exports.WordTablePopup=Xm,exports.WordTableThumbnail=Oc,exports.applyFontScale=gs,exports.applyTheme=ms,exports.buildChangeWholeSyllableProblem=es,exports.buildDropCompoundProblem=Ki,exports.buildDropContrast3Problem=qi,exports.buildDropContrastProblem=Yi,exports.buildDropFinalConsonantProblem=Zi,exports.buildGradeSection=hl,exports.buildMonthChartData=hm,exports.buildMultiPartPosContrast=Ni,exports.buildPairIndex=lu,exports.buildPartOfSpeechSection=ml,exports.buildPositionSection=ih,exports.buildRemoveConsonantProblem=Ji,exports.buildSelectSection=nh,exports.buildSyllableMaskIndex=Qi,exports.buildSyllableSection=rh,exports.buildWordTypeSection=bl,exports.bulkSetImageExistence=Xd,exports.cardQuestionTitle=Du,exports.cellLabel=tb,exports.cellsForLabels=hb,exports.charToPronValue=_l,exports.checkImageExists=Yo,exports.classifyPairDifficulty=bi,exports.clearAudioExistsCache=Vd,exports.clearImageExistenceCache=hi,exports.clearPairIndexCache=Ai,exports.clearPassCardBgTheme=ga,exports.clearPromoBannerBgTheme=Nt,exports.closeTrainingPopup=Rb,exports.companyTypeLabel=lg,exports.composeSyllable=ca,exports.computeDailySelection=vs,exports.configureImageResolver=Kd,exports.configureNoiseSettingsStore=Ju,exports.configurePronunciationResolver=Ud,exports.configureStorage=ri,exports.configureTTS=Wd,exports.configureTrainingCategories=up,exports.convertComposition=yl,exports.copyText=ds,exports.createDecompCache=mi,exports.createTTSUrlResolver=tp,exports.createTrainingScenario=Ib,exports.cx=_e,exports.dateToDb=dp,exports.default=hk,exports.deriveNoiseContexts=Gb,exports.derivePassCard=Ml,exports.downloadCsvText=$u,exports.downloadSound=Lr,exports.draftValues=xb,exports.ensureTrainingDataLoaded=ys,exports.escapeCsvField=Mu,exports.expandSlashLabel=jn,exports.fileExists=ni,exports.filterContrastCandidates=Bi,exports.finalToPhoneme=Ur,exports.firstChoseongOf=gi,exports.fmtBytes=Kp,exports.formatCount=nr,exports.formatDateKo=ap,exports.formatDateLocale=rp,exports.formatDateLongKo=op,exports.formatDateLongLocale=np,exports.formatDatetimeKo=ip,exports.formatDuration=mb,exports.formatPhone=lp,exports.formatRelativeTime=Jr,exports.formatTimeHM=en,exports.formatYmd=Qr,exports.getAssetBaseUrl=ai,exports.getControlDateRange=gm,exports.getDailySelection=fp,exports.getElementAnalyser=Vo,exports.getErrorMessage=Kr,exports.getImageExistenceStats=Rr,exports.getImageExistsCached=pi,exports.getImageResolver=Ma,exports.getNoiseBaseUrl=ii,exports.getPairIndex=Za,exports.getPayloadTimestamp=On,exports.getPlanTier=$p,exports.getPromoBannerBgTheme=Ns,exports.getPronunciationResolver=ci,exports.getSavedFontScale=bs,exports.getSavedTheme=hs,exports.getSelectedFromPayload=Fb,exports.getSelectedText=Hb,exports.getSignedOrPublicUrl=Oo,exports.getStepPayload=Nc,exports.getSteppedPayload=Wb,exports.getTTSFallbackUrlResolver=li,exports.getTTSUrlResolver=Fo,exports.getTodayKst=Xr,exports.getTopicTypes=tn,exports.getTrainingPools=xs,exports.getTrainingTypes=ps,exports.getWordPool=vo,exports.hasQuestionWordConstraint=yu,exports.hasSel=ft,exports.hasStructureContrast=Ko,exports.initFontScale=bp,exports.initTheme=hp,exports.injectPassCardBgTheme=ba,exports.injectPromoBannerBgTheme=Bt,exports.isAllChoseong=vi,exports.isManualOnlyType=ku,exports.isNetworkErrorMessage=as,exports.isSelectionCorrect=Vb,exports.isSyllablePattern=Ci,exports.isThisWeekPick=zp,exports.isTrainingDataLoaded=vp,exports.isValidQuestionWord=wu,exports.itemCorrectness=is,exports.jamoToNamesForSpeech=ju,exports.labelsForSave=eb,exports.loadGameLeaderboard=Xu,exports.loadMyGameRanks=Zu,exports.loadNoiseSettings=ls,exports.loadTrainingData=Cs,exports.logCrossword=Fu,exports.logTrainingCompletion=ns,exports.logTrainingTime=rs,exports.lsBytes=cl,exports.markAfterClick=oc,exports.marksForSave=Dn,exports.matchSyllables=Qa,exports.matchesChoseongSearch=Jd,exports.matchesSyllablePattern=yi,exports.matchesWordQuery=ho,exports.meaningKey=fn,exports.mergeQuestionText=Gi,exports.minimalPairDistractors=Pr,exports.missesByType=cb,exports.nextFocus=ib,exports.nextMisses=lb,exports.normalizeDate=cp,exports.officialSoundPath=ep,exports.pageStartIndexes=ic,exports.parseSortValue=Lu,exports.parseSyllable=$e,exports.passCardBgIhabTheme=Ol,exports.passCardBgLeftColorGridTheme=Fl,exports.passCardBgTwoCircleTheme=Rl,exports.patternToComposition=ru,exports.phonemePartsOf=Nu,exports.pickEuRo=Hi,exports.pickEulReul=zi,exports.pickEunNeun=Oi,exports.pickIga=Ri,exports.pickWaGwa=Fi,exports.prewarmImageCache=Zd,exports.primarySelPart=tr,exports.printWordTable=$m,exports.promoBannerBgDarkTheme=Fs,exports.promoBannerBgDeepTheme=$s,exports.promoBannerBgDiagonalTheme=Gs,exports.promoBannerBgDotsTheme=Ys,exports.promoBannerBgInstagramTheme=tl,exports.promoBannerBgMainTheme=Ds,exports.promoBannerBgNaverTheme=Qs,exports.promoBannerBgOutlineTheme=Ks,exports.promoBannerBgRadialTheme=Ws,exports.promoBannerBgSoftSubTheme=Ps,exports.promoBannerBgSoftTheme=Es,exports.promoBannerBgSubTheme=Ls,exports.promoBannerBgSuccessTheme=Xs,exports.promoBannerBgWarmTheme=Is,exports.pronToCharValue=Cl,exports.readLevel=di,exports.recommendTables=ub,exports.regenerateUnpinned=vb,exports.removeItem=fb,exports.reorderArray=Wi,exports.reportAppliedNoiseSettings=ar,exports.resolveAssetUrl=zo,exports.resolveSoundPath=Tr,exports.resolveTrainingItems=zb,exports.resolveTrainingPopupMeta=Bc,exports.resumeAudioMeter=Wo,exports.reviewCells=Jm,exports.reviewSetPlan=db,exports.reviewTableName=Qm,exports.sample=Kt,exports.saveLocale=V0,exports.saveNoiseSettings=cs,exports.scoreKey=wr,exports.scoreSheetHeader=ab,exports.searchAndRankWords=iu,exports.setAssetBaseUrl=Fd,exports.setCrosswordLogger=Ou,exports.setGameLeaderboardLoader=qu,exports.setGameRanksLoader=Yu,exports.setGameScoreSubmitter=Uu,exports.setTrainingCompletionLogger=Iu,exports.setTrainingTimeLogger=zu,exports.setWordPool=Pu,exports.shouldConfirmDiscard=Mm,exports.shuffle=Ve,exports.sortToValue=Tu,exports.soundOf=qr,exports.speak=zd,exports.splitTrainingVariants=Pb,exports.stopSpeaking=Id,exports.submitGameScore=Ku,exports.summarize=Lm,exports.summarizeMisses=sb,exports.syllMatchesComp=$a,exports.syllableContrasts=eo,exports.syllableLength=bo,exports.syllablePron=Ui,exports.syllableToFilter=hn,exports.tableTrends=nb,exports.toBase64UrlSafe=Qu,exports.toChoseong=fi,exports.toDraft=bb,exports.toItemResults=ss,exports.toKstHm=sp,exports.toKstYmd=ka,exports.toStandardPronunciation=vu,exports.toStorageName=or,exports.toTrainingText=Ob,exports.toUserErrorMessage=Eu,exports.today=yo,exports.toggleAttributeFilter=sh,exports.togglePin=gb,exports.uncoveredLabels=pb,exports.useAnchoredMenu=ao,exports.useBarChartControl=ql,exports.useCacheManagement=Zp,exports.useCalendarMonth=Yl,exports.useComboboxSuggestions=Vl,exports.useDailyTrainingSelection=_h,exports.useDelayedHoverAnchor=wh,exports.useDeviceManagement=oh,exports.useDocumentTitle=sl,exports.useEscToClose=Al,exports.useFitScale=cc,exports.useFontScale=cn,exports.useHoverAnchor=ko,exports.useI18n=G0,exports.useMediaQuery=Qt,exports.usePagedList=kh,exports.usePasswordChange=qp,exports.useRelativeDay=Yp,exports.useSoundCompassExam=Bl,exports.useTablePaging=dl,exports.useTableSort=ul,exports.useToastLifecycle=Jl,exports.useToastState=vn,exports.useTrainingTypeLabels=Ah,exports.useVisitAllPanel=ah,exports.useVisitHistory=Qp,exports.useVisitSchedule=th,exports.useWindowEvent=pr,exports.useWordAttributeFilterKeys=pl,exports.useWordData=dg,exports.useWordDataStats=Xp,exports.useWordMeanings=yh,exports.useWordTableDisplaySettings=pc,exports.useWordTablePrint=Tn,exports.useWordTrainingDataGeneration=fh,exports.useWordTrainingFilter=gh,exports.validateSyllableSearchInput=nu,exports.valueToJamos=ma,exports.weakItems=rb,exports.withEuRo=Cu,exports.withEulReul=Ii,exports.withEunNeun=xu,exports.withIga=Pi,exports.withWaGwa=_u,exports.wordContainsChoseong=eu,exports.wordContainsJongseong=au,exports.wordContainsJungseong=tu,exports.wordHasNoCoda=xi,exports.wordHasSyllableMatching=_i,exports.wrongItems=Hu;
996
+ \uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;ae(lk);function ck(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Fc({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=me.useTranslation(),s=a==="done",c=a==="pending",d=a==="error",u=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(dd,{size:22,color:"white",strokeWidth:2.5}):d?o.jsx(sk,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?o.jsx(ht,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||d?`${d?100:u}%`:void 0}})})]})]})}function _g({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=me.useTranslation(),{phase:s,error:c,wordCount:d,imagePage:u,imageDone:m,imageTotal:p,pairPercent:h}=t,g=ck(s),f=s==="done",b=!!c;function x(y){return b&&g===y?"error":g>y?"done":g===y?"active":"pending"}const v=x(1),C=x(2),w=x(3),_=s==="image-match"&&p?Math.round((m??0)/p*100):void 0,k=l.useMemo(()=>{if(C!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:u??1});if(s==="image-match"&&p)return i("wordData.imageCount",{done:nr(m),total:nr(p)})}},[C,s,u,p,m,i]);return o.jsx(Ba,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(ne,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(ne,{size:56,variant:"main",disabled:!f,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Fc,{icon:o.jsx(nd,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?i("wordData.downloadingCount",{n:nr(d)}):void 0}),o.jsx(Fc,{icon:o.jsx(nk,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:C,pct:_,subText:k}),o.jsx(Fc,{icon:o.jsx(ld,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:w,pct:w==="active"?h??0:void 0,subText:void 0})]})})}var dk=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";ae(dk);function Cg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=h=>{let g=null;h==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:h==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:h==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:h==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(g),r(h)},c=l.useCallback(()=>{r(null),i(null)},[]),d=l.useCallback(()=>s("noise"),[]),u=l.useCallback(()=>s("short"),[]),m=l.useCallback(()=>s("long"),[]),p=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:d,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:u,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:p,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var uk=Object.freeze({__proto__:null,Accordion:Nh,ActionCard:Hp,Alert:Gh,AppHeader:Eh,AudioMeter:kn,AudioPlayer:kr,Avatar:qh,Badge:ht,BarChart:bm,BarChartControls:Kl,Board:tm,BottomNav:Nl,BrandIdentity:Tl,Breadcrumb:Zh,BulkBar:dm,Button:ne,CORE_VERSION:jr,Calendar:Bm,CardStep:Lc,ChartLegend:yn,ChartSection:wn,ChartTotal:_r,Checkbox:Ul,ChoiceChips:Cb,CircleBadge:Hh,CodeBox:cm,ColorPicker:Jh,CompanyMeta:sm,ConfirmPopup:tg,ConfirmStep:jc,ConfirmWithTextStep:Ec,ContrastFilterPanel:Qb,CoreScope:Wp,CountTile:Qh,CouponInputPopup:ag,DatePicker:pm,DebugResultLauncher:Cg,DescriptionTooltip:Fa,DeviceSideTable:Am,Dialog:em,Divider:Wh,Dropdown:Ut,EffectPartyPopper:Ic,EffectPartyPopperHost:ig,EmptyState:Op,ErrorState:Fp,FILTER_ALL_VALUE:Dt,FileUpload:Kh,FilterPanel:fa,FilterSectionInfo:Ao,Footer:yb,Header:Ll,Icon:We,IconGridMenu:_b,IconRenderer:We,InfoTooltip:ha,LandingBottomSticky:kb,LandingHeader:wb,ListPopup:eg,ListenStep:Dc,Loader:So,MARKS:ac,MARK_ICON:rc,MARK_VARIANT:nc,MediaQueryOverrideContext:dn,MenuTooltip:gr,NoiseSettingsTooltip:kc,NoticeBox:Vp,OrderListStep:Tc,PASS_CARD_BG_VARS:Ha,POS_LABEL:sc,PROMO_BANNER_BG_COMPONENTS:ol,PROMO_BANNER_BG_OPTIONS:Gp,PROMO_BANNER_BG_VARS:Co,Page:Sr,PageTitle:sg,Pagination:xr,Panel:Ar,PanelGrid:Mb,PanelRow:Da,PanelRowDevice:Lb,PassCard:zl,PassCardBg:zh,PassCardBgIHAB:Ih,PassCardBgLeftColorGrid:Oh,PassCardBgTwoCircle:Pl,PaymentPlan:Ph,PersonCard:am,PhonemeFilterPanel:Jb,PhonemeSelectBlock:Zb,Popup:Ba,ProgressBar:ym,ProgressIndicator:Ql,PromoBanner:Sh,PromoBannerBgDark:Hs,PromoBannerBgDeep:Rs,PromoBannerBgDiagonal:Us,PromoBannerBgDots:qs,PromoBannerBgInstagram:al,PromoBannerBgMain:js,PromoBannerBgNaver:el,PromoBannerBgOutline:Zs,PromoBannerBgRadial:Vs,PromoBannerBgSoft:Ts,PromoBannerBgSoftSub:zs,PromoBannerBgSub:Ms,PromoBannerBgSuccess:Js,PromoBannerBgWarm:Os,PublicationCard:rm,Radio:Wl,RadioGroup:Vh,Rating:Xh,ReportDocument:hg,ReportInfoPanel:mg,RingChart:xm,SENTENCE_TRAINING_TYPES:Mn,SearchSummary:Uh,Section:no,SectionHeader:im,SegmentedControl:Va,ShortcutBadge:Hl,SideNav:Dl,Slider:Zl,SoundCompass:Fh,SplashLogo:nm,StatChart:_m,SummaryStrip:pg,TRAINING_TOOLTIP_HOVER_DELAY_MS:og,Table:An,TableFilterPanel:En,Tabs:Yh,TextBoxTooltip:Do,TextField:Wa,Timeline:om,Toast:ro,Toggle:Gl,Toolbar:Cn,Tooltip:Aa,TooltipInfo:ha,TooltipTextBox:Do,TopBanner:Bh,TrainingBlock:Dm,TrainingBlockButton:Sn,TrainingCard:gg,TrainingCardGroup:fg,TrainingPagePopup:ja,TrainingPagePopupBottom:Ac,TrainingPagePopupTitle:Sc,TrainingResultPopup:$c,TrainingStep:Ga,TrainingStepAudioPlayer:kr,TrainingStepBullet:fc,TrainingStepCard:Cc,TrainingStepConfirm:Rn,TrainingStepConfirmWithText:Pn,TrainingStepListen:zn,TrainingStepOrderList:In,TrainingStepTextBox:_c,TrainingStepTitle:vc,TrainingTooltip:rg,TrainingWordCard:Nn,UpdateAlert:bg,WORD_TABLE_PAPER:io,WORD_TYPE_LABEL:lc,WordDataProvider:ug,WordDataUpdatePopup:_g,WordImageTooltip:zc,WordSearchFilterPanel:Xb,WordSearchResultBlock:Kb,WordTable:so,WordTableBlock:vg,WordTableButton:xg,WordTablePopup:Xm,WordTableThumbnail:Oc,buildMonthChartData:hm,cellLabel:tb,cellsForLabels:hb,clearPassCardBgTheme:ga,clearPromoBannerBgTheme:Nt,closeTrainingPopup:Rb,companyTypeLabel:lg,createTrainingScenario:Ib,cx:_e,deriveNoiseContexts:Gb,derivePassCard:Ml,draftValues:xb,expandSlashLabel:jn,formatDuration:mb,getControlDateRange:gm,getPayloadTimestamp:On,getPromoBannerBgTheme:Ns,getSelectedFromPayload:Fb,getSelectedText:Hb,getStepPayload:Nc,getSteppedPayload:Wb,injectPassCardBgTheme:ba,injectPromoBannerBgTheme:Bt,isSelectionCorrect:Vb,labelsForSave:eb,markAfterClick:oc,marksForSave:Dn,missesByType:cb,nextFocus:ib,nextMisses:lb,pageStartIndexes:ic,passCardBgIhabTheme:Ol,passCardBgLeftColorGridTheme:Fl,passCardBgTwoCircleTheme:Rl,printWordTable:$m,promoBannerBgDarkTheme:Fs,promoBannerBgDeepTheme:$s,promoBannerBgDiagonalTheme:Gs,promoBannerBgDotsTheme:Ys,promoBannerBgInstagramTheme:tl,promoBannerBgMainTheme:Ds,promoBannerBgNaverTheme:Qs,promoBannerBgOutlineTheme:Ks,promoBannerBgRadialTheme:Ws,promoBannerBgSoftSubTheme:Ps,promoBannerBgSoftTheme:Es,promoBannerBgSubTheme:Ls,promoBannerBgSuccessTheme:Xs,promoBannerBgWarmTheme:Is,recommendTables:ub,regenerateUnpinned:vb,removeItem:fb,resolveTrainingItems:zb,resolveTrainingPopupMeta:Bc,reviewCells:Jm,reviewSetPlan:db,reviewTableName:Qm,scoreKey:wr,scoreSheetHeader:ab,shouldConfirmDiscard:Mm,splitTrainingVariants:Pb,summarize:Lm,summarizeMisses:sb,tableTrends:nb,toDraft:bb,toTrainingText:Ob,togglePin:gb,uncoveredLabels:pb,useAnchoredMenu:ao,useBarChartControl:ql,useCalendarMonth:Yl,useComboboxSuggestions:Vl,useFitScale:cc,useSoundCompassExam:Bl,useToastLifecycle:Jl,useWordData:dg,useWordTableDisplaySettings:pc,useWordTablePrint:Tn,weakItems:rb}),pk=Object.freeze({__proto__:null});const hk={...uk,...Aw,...D4,...pk};exports.Accordion=Nh,exports.ActionCard=Hp,exports.Alert=Gh,exports.AppHeader=Eh,exports.AudioMeter=kn,exports.AudioPlayer=kr,exports.Avatar=qh,exports.Badge=ht,exports.BarChart=bm,exports.BarChartControls=Kl,exports.Board=tm,exports.BottomNav=Nl,exports.BrandIdentity=Tl,exports.Breadcrumb=Zh,exports.BulkBar=dm,exports.Button=ne,exports.CACHE_GROUPS=ll,exports.CAPABILITY=fo,exports.CHOSEONG=qe,exports.CORE_VERSION=jr,exports.Calendar=Bm,exports.CardStep=Lc,exports.ChartLegend=yn,exports.ChartSection=wn,exports.ChartTotal=_r,exports.Checkbox=Ul,exports.ChoiceChips=Cb,exports.CircleBadge=Hh,exports.CodeBox=cm,exports.ColorPicker=Jh,exports.CompanyMeta=sm,exports.ConfirmPopup=tg,exports.ConfirmStep=jc,exports.ConfirmWithTextStep=Ec,exports.ContrastFilterPanel=Qb,exports.CoreScope=Wp,exports.CountTile=Qh,exports.CouponInputPopup=ag,exports.DEFAULT_LOCALE=co,exports.DatePicker=pm,exports.DebugResultLauncher=Cg,exports.DescriptionTooltip=Fa,exports.DeviceSideTable=Am,exports.Dialog=em,exports.Divider=Wh,exports.DocumentTitleSuppressContext=il,exports.Dropdown=Ut,exports.EMPTY_COMPOSITION=mn,exports.EffectPartyPopper=Ic,exports.EffectPartyPopperHost=ig,exports.EmptyState=Op,exports.ErrorState=Fp,exports.FILTER_ALL_VALUE=Dt,exports.FileUpload=Kh,exports.FilterPanel=fa,exports.FilterSectionInfo=Ao,exports.Footer=yb,exports.Header=Ll,exports.I18nProvider=U0,exports.Icon=We,exports.IconGridMenu=_b,exports.IconRenderer=We,exports.InfoTooltip=ha,exports.JONGSEONG=gt,exports.JUNGSEONG=ct,exports.LOCALE_STORAGE_KEY=Vn,exports.LONG_STORIES=za,exports.LandingBottomSticky=kb,exports.LandingHeader=wb,exports.ListPopup=eg,exports.ListenStep=Dc,exports.Loader=So,exports.MARKS=ac,exports.MARK_ICON=rc,exports.MARK_VARIANT=nc,exports.MediaQueryOverrideContext=dn,exports.MenuTooltip=gr,exports.NETWORK_ERROR_MESSAGE=ts,exports.NOISE_DATAS=Ra,exports.NO_CODA=ea,exports.NoiseSettingsTooltip=kc,exports.NoticeBox=Vp,exports.ORDER_SETS=Ia,exports.OrderListStep=Tc,exports.PASS_CARD_BG_VARS=Ha,exports.PLAN_FEATURES=Tp,exports.PLAN_LIMITS=Mp,exports.POS_LABEL=sc,exports.PROMO_BANNER_BG_COMPONENTS=ol,exports.PROMO_BANNER_BG_OPTIONS=Gp,exports.PROMO_BANNER_BG_VARS=Co,exports.Page=Sr,exports.PageTitle=sg,exports.Pagination=xr,exports.Panel=Ar,exports.PanelGrid=Mb,exports.PanelRow=Da,exports.PanelRowDevice=Lb,exports.PassCard=zl,exports.PassCardBg=zh,exports.PassCardBgIHAB=Ih,exports.PassCardBgLeftColorGrid=Oh,exports.PassCardBgTwoCircle=Pl,exports.PaymentPlan=Ph,exports.PersonCard=am,exports.PhonemeFilterPanel=Jb,exports.PhonemeSelectBlock=Zb,exports.Popup=Ba,exports.ProgressBar=ym,exports.ProgressIndicator=Ql,exports.PromoBanner=Sh,exports.PromoBannerBgDark=Hs,exports.PromoBannerBgDeep=Rs,exports.PromoBannerBgDiagonal=Us,exports.PromoBannerBgDots=qs,exports.PromoBannerBgInstagram=al,exports.PromoBannerBgMain=js,exports.PromoBannerBgNaver=el,exports.PromoBannerBgOutline=Zs,exports.PromoBannerBgRadial=Vs,exports.PromoBannerBgSoft=Ts,exports.PromoBannerBgSoftSub=zs,exports.PromoBannerBgSub=Ms,exports.PromoBannerBgSuccess=Js,exports.PromoBannerBgWarm=Os,exports.PublicationCard=rm,exports.Radio=Wl,exports.RadioGroup=Vh,exports.Rating=Xh,exports.ReportDocument=hg,exports.ReportInfoPanel=mg,exports.RingChart=xm,exports.SENTENCE_TRAINING_TYPES=Mn,exports.SHORT_STORIES=Pa,exports.SUPPORTED_LOCALES=Lo,exports.SYLLABLE_MIN=ta,exports.SearchSummary=Uh,exports.Section=no,exports.SectionHeader=im,exports.SegmentedControl=Va,exports.ShortcutBadge=Hl,exports.SideNav=Dl,exports.Slider=Zl,exports.SoundCompass=Fh,exports.SplashLogo=nm,exports.StatChart=_m,exports.SummaryStrip=pg,exports.TIER_RANK=Lp,exports.TOPIC_TYPES=xp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=og,exports.TRAINING_TYPES=an,exports.TRAINING_TYPE_I18N_KEY=ws,exports.Table=An,exports.TableFilterPanel=En,exports.Tabs=Yh,exports.TextBoxTooltip=Do,exports.TextField=Wa,exports.Timeline=om,exports.Toast=ro,exports.Toggle=Gl,exports.Toolbar=Cn,exports.Tooltip=Aa,exports.TooltipInfo=ha,exports.TooltipTextBox=Do,exports.TopBanner=Bh,exports.TrainingBlock=Dm,exports.TrainingBlockButton=Sn,exports.TrainingCard=gg,exports.TrainingCardGroup=fg,exports.TrainingPagePopup=ja,exports.TrainingPagePopupBottom=Ac,exports.TrainingPagePopupTitle=Sc,exports.TrainingResultPopup=$c,exports.TrainingStep=Ga,exports.TrainingStepAudioPlayer=kr,exports.TrainingStepBullet=fc,exports.TrainingStepCard=Cc,exports.TrainingStepConfirm=Rn,exports.TrainingStepConfirmWithText=Pn,exports.TrainingStepListen=zn,exports.TrainingStepOrderList=In,exports.TrainingStepTextBox=_c,exports.TrainingStepTitle=vc,exports.TrainingTooltip=rg,exports.TrainingWordCard=Nn,exports.UpdateAlert=bg,exports.VAP_PAGE_SIZE_OPTIONS=pn,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Pp,exports.WORD_SUGGESTION_EXISTING_ERROR=Ip,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Rp,exports.WORD_TABLE_PAPER=io,exports.WORD_TYPE_LABEL=lc,exports.WordDataProvider=ug,exports.WordDataUpdatePopup=_g,exports.WordImageTooltip=zc,exports.WordSearchFilterPanel=Xb,exports.WordSearchResultBlock=Kb,exports.WordTable=so,exports.WordTableBlock=vg,exports.WordTableButton=xg,exports.WordTablePopup=Xm,exports.WordTableThumbnail=Oc,exports.applyFontScale=gs,exports.applyTheme=ms,exports.buildChangeWholeSyllableProblem=es,exports.buildDropCompoundProblem=Ki,exports.buildDropContrast3Problem=qi,exports.buildDropContrastProblem=Yi,exports.buildDropFinalConsonantProblem=Zi,exports.buildGradeSection=hl,exports.buildMonthChartData=hm,exports.buildMultiPartPosContrast=Ni,exports.buildPairIndex=lu,exports.buildPartOfSpeechSection=ml,exports.buildPositionSection=ih,exports.buildRemoveConsonantProblem=Ji,exports.buildSelectSection=nh,exports.buildSyllableMaskIndex=Qi,exports.buildSyllableSection=rh,exports.buildWordTypeSection=bl,exports.bulkSetImageExistence=Xd,exports.cardQuestionTitle=Du,exports.cellLabel=tb,exports.cellsForLabels=hb,exports.charToPronValue=_l,exports.checkImageExists=Yo,exports.classifyPairDifficulty=bi,exports.clearAudioExistsCache=Vd,exports.clearImageExistenceCache=hi,exports.clearPairIndexCache=Ai,exports.clearPassCardBgTheme=ga,exports.clearPromoBannerBgTheme=Nt,exports.closeTrainingPopup=Rb,exports.companyTypeLabel=lg,exports.composeSyllable=ca,exports.computeDailySelection=vs,exports.configureImageResolver=Kd,exports.configureNoiseSettingsStore=Ju,exports.configurePronunciationResolver=Ud,exports.configureStorage=ri,exports.configureTTS=Wd,exports.configureTrainingCategories=up,exports.convertComposition=yl,exports.copyText=ds,exports.createDecompCache=mi,exports.createTTSUrlResolver=tp,exports.createTrainingScenario=Ib,exports.cx=_e,exports.dateToDb=dp,exports.default=hk,exports.deriveNoiseContexts=Gb,exports.derivePassCard=Ml,exports.downloadCsvText=$u,exports.downloadSound=Lr,exports.draftValues=xb,exports.ensureTrainingDataLoaded=ys,exports.escapeCsvField=Mu,exports.expandSlashLabel=jn,exports.fileExists=ni,exports.filterContrastCandidates=Bi,exports.finalToPhoneme=Ur,exports.firstChoseongOf=gi,exports.fmtBytes=Kp,exports.formatCount=nr,exports.formatDateKo=ap,exports.formatDateLocale=rp,exports.formatDateLongKo=op,exports.formatDateLongLocale=np,exports.formatDatetimeKo=ip,exports.formatDuration=mb,exports.formatPhone=lp,exports.formatRelativeTime=Jr,exports.formatTimeHM=en,exports.formatYmd=Qr,exports.getAssetBaseUrl=ai,exports.getControlDateRange=gm,exports.getDailySelection=fp,exports.getElementAnalyser=Vo,exports.getErrorMessage=Kr,exports.getImageExistenceStats=Rr,exports.getImageExistsCached=pi,exports.getImageResolver=Ma,exports.getNoiseBaseUrl=ii,exports.getPairIndex=Za,exports.getPayloadTimestamp=On,exports.getPlanTier=$p,exports.getPromoBannerBgTheme=Ns,exports.getPronunciationResolver=ci,exports.getSavedFontScale=bs,exports.getSavedTheme=hs,exports.getSelectedFromPayload=Fb,exports.getSelectedText=Hb,exports.getSignedOrPublicUrl=Oo,exports.getStepPayload=Nc,exports.getSteppedPayload=Wb,exports.getTTSFallbackUrlResolver=li,exports.getTTSUrlResolver=Fo,exports.getTodayKst=Xr,exports.getTopicTypes=tn,exports.getTrainingPools=xs,exports.getTrainingTypes=ps,exports.getWordPool=vo,exports.hasQuestionWordConstraint=yu,exports.hasSel=ft,exports.hasStructureContrast=Ko,exports.initFontScale=bp,exports.initTheme=hp,exports.injectPassCardBgTheme=ba,exports.injectPromoBannerBgTheme=Bt,exports.isAllChoseong=vi,exports.isManualOnlyType=ku,exports.isNetworkErrorMessage=as,exports.isSelectionCorrect=Vb,exports.isSyllablePattern=Ci,exports.isThisWeekPick=zp,exports.isTrainingDataLoaded=vp,exports.isValidQuestionWord=wu,exports.itemCorrectness=is,exports.jamoToNamesForSpeech=ju,exports.labelsForSave=eb,exports.loadGameLeaderboard=Xu,exports.loadMyGameRanks=Zu,exports.loadNoiseSettings=ls,exports.loadTrainingData=Cs,exports.logCrossword=Fu,exports.logTrainingCompletion=ns,exports.logTrainingTime=rs,exports.lsBytes=cl,exports.markAfterClick=oc,exports.marksForSave=Dn,exports.matchSyllables=Qa,exports.matchesChoseongSearch=Jd,exports.matchesSyllablePattern=yi,exports.matchesWordQuery=ho,exports.meaningKey=fn,exports.mergeQuestionText=Gi,exports.minimalPairDistractors=Pr,exports.missesByType=cb,exports.nextFocus=ib,exports.nextMisses=lb,exports.normalizeDate=cp,exports.officialSoundPath=ep,exports.pageStartIndexes=ic,exports.parseSortValue=Lu,exports.parseSyllable=$e,exports.passCardBgIhabTheme=Ol,exports.passCardBgLeftColorGridTheme=Fl,exports.passCardBgTwoCircleTheme=Rl,exports.patternToComposition=ru,exports.phonemePartsOf=Nu,exports.pickEuRo=Hi,exports.pickEulReul=zi,exports.pickEunNeun=Oi,exports.pickIga=Ri,exports.pickWaGwa=Fi,exports.prewarmImageCache=Zd,exports.primarySelPart=tr,exports.printWordTable=$m,exports.promoBannerBgDarkTheme=Fs,exports.promoBannerBgDeepTheme=$s,exports.promoBannerBgDiagonalTheme=Gs,exports.promoBannerBgDotsTheme=Ys,exports.promoBannerBgInstagramTheme=tl,exports.promoBannerBgMainTheme=Ds,exports.promoBannerBgNaverTheme=Qs,exports.promoBannerBgOutlineTheme=Ks,exports.promoBannerBgRadialTheme=Ws,exports.promoBannerBgSoftSubTheme=Ps,exports.promoBannerBgSoftTheme=Es,exports.promoBannerBgSubTheme=Ls,exports.promoBannerBgSuccessTheme=Xs,exports.promoBannerBgWarmTheme=Is,exports.pronToCharValue=Cl,exports.readLevel=di,exports.recommendTables=ub,exports.regenerateUnpinned=vb,exports.removeItem=fb,exports.reorderArray=Wi,exports.reportAppliedNoiseSettings=ar,exports.resolveAssetUrl=zo,exports.resolveSoundPath=Tr,exports.resolveTrainingItems=zb,exports.resolveTrainingPopupMeta=Bc,exports.resumeAudioMeter=Wo,exports.reviewCells=Jm,exports.reviewSetPlan=db,exports.reviewTableName=Qm,exports.sample=Kt,exports.saveLocale=V0,exports.saveNoiseSettings=cs,exports.scoreKey=wr,exports.scoreSheetHeader=ab,exports.searchAndRankWords=iu,exports.setAssetBaseUrl=Fd,exports.setCrosswordLogger=Ou,exports.setGameLeaderboardLoader=qu,exports.setGameRanksLoader=Yu,exports.setGameScoreSubmitter=Uu,exports.setTrainingCompletionLogger=Iu,exports.setTrainingTimeLogger=zu,exports.setWordPool=Pu,exports.shouldConfirmDiscard=Mm,exports.shuffle=Ve,exports.sortToValue=Tu,exports.soundOf=qr,exports.speak=zd,exports.splitTrainingVariants=Pb,exports.stopSpeaking=Id,exports.submitGameScore=Ku,exports.summarize=Lm,exports.summarizeMisses=sb,exports.syllMatchesComp=$a,exports.syllableContrasts=eo,exports.syllableLength=bo,exports.syllablePron=Ui,exports.syllableToFilter=hn,exports.tableTrends=nb,exports.toBase64UrlSafe=Qu,exports.toChoseong=fi,exports.toDraft=bb,exports.toItemResults=ss,exports.toKstHm=sp,exports.toKstYmd=ka,exports.toStandardPronunciation=vu,exports.toStorageName=or,exports.toTrainingText=Ob,exports.toUserErrorMessage=Eu,exports.today=yo,exports.toggleAttributeFilter=sh,exports.togglePin=gb,exports.uncoveredLabels=pb,exports.useAnchoredMenu=ao,exports.useBarChartControl=ql,exports.useCacheManagement=Zp,exports.useCalendarMonth=Yl,exports.useComboboxSuggestions=Vl,exports.useDailyTrainingSelection=_h,exports.useDelayedHoverAnchor=wh,exports.useDeviceManagement=oh,exports.useDocumentTitle=sl,exports.useEscToClose=Al,exports.useFitScale=cc,exports.useFontScale=cn,exports.useHoverAnchor=ko,exports.useI18n=G0,exports.useMediaQuery=Qt,exports.usePagedList=kh,exports.usePasswordChange=qp,exports.useRelativeDay=Yp,exports.useSoundCompassExam=Bl,exports.useTablePaging=dl,exports.useTableSort=ul,exports.useToastLifecycle=Jl,exports.useToastState=vn,exports.useTrainingTypeLabels=Ah,exports.useVisitAllPanel=ah,exports.useVisitHistory=Qp,exports.useVisitSchedule=th,exports.useWindowEvent=pr,exports.useWordAttributeFilterKeys=pl,exports.useWordData=dg,exports.useWordDataStats=Xp,exports.useWordMeanings=yh,exports.useWordTableDisplaySettings=pc,exports.useWordTablePrint=Tn,exports.useWordTrainingDataGeneration=fh,exports.useWordTrainingFilter=gh,exports.validateSyllableSearchInput=nu,exports.valueToJamos=ma,exports.weakItems=rb,exports.withEuRo=Cu,exports.withEulReul=Ii,exports.withEunNeun=xu,exports.withIga=Pi,exports.withWaGwa=_u,exports.wordContainsChoseong=eu,exports.wordContainsJongseong=au,exports.wordContainsJungseong=tu,exports.wordHasNoCoda=xi,exports.wordHasSyllableMatching=_i,exports.wrongItems=Hu;