@ihabdevteam/core 0.222.0 → 0.223.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"},gv={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"}}},fv={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vv={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"}},xv={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Cv={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"},_v={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},yv={ariaLabel:"\uC120\uD0DD \uD0ED"},wv={ariaLabel:"\uD0ED"},kv={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Bv={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Av={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"}},Sv={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"}},Ev={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"}},Nv={manage:{unit:"\uAC74"}},Dv={cancelLabel:"\uCDE8\uC18C"},Tv={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jv={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"},Lv={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Mv={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"},$v={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Rv={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Pv={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},zv={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Iv={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"}},Ov={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Fv={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Hv={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Vv={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Wv={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Gv={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Uv={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},qv={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},Yv={common:L1,calendar:M1,passCard:$1,searchField:R1,rating:P1,colorPicker:z1,dropdown:I1,accordion:O1,header:F1,nav:H1,settings:V1,usage:W1,account:G1,help:U1,training:q1,trainingSettings:Y1,customers:K1,payment:Z1,coupons:X1,visits:J1,company:Q1,trainingType:ev,myWordTraining:tv,myWordTable:av,keyWords:ov,wordTable:rv,wordSearch:nv,wordPrint:iv,topic:sv,accessLinkManager:lv,login:cv,trainingPlanRun:dv,device:uv,manager:pv,wordPairs:hv,game:mv,footer:bv,landing:gv,date:fv,trainingSetPage:vv,wordTrainingPreview:xv,wordData:Cv,textField:_v,segmentedControl:yv,tabs:wv,fileUpload:kv,avatar:Bv,myHomework:Av,trainingStatus:Sv,store:Ev,homework:Nv,inquiry:Dv,progress:Tv,trainingMiss:jv,table:Lv,wordScore:Mv,topBanner:$v,datePicker:Rv,report:Pv,tooltip:zv,phonemeProfile:Iv,bulkBar:Ov,debug:Fv,badge:Hv,loader:Vv,soundCompass:Wv,breadcrumb:Gv,board:Uv,promoBannerBg:qv},Kv={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},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"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Zv={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",visitCount:"{{count}} visit(s)"},Xv={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"}},Jv={clearAriaLabel:"Clear search"},Qv={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},ex={selected:"selected"},tx={placeholder:"Select"},ax={collapse:"Collapse",expand:"Expand"},ox={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},rx={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",feedback:"Report a bug",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",badgeLabel:"{{label}}, {{count}}"},nx={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."}}},ix={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"}},sx={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},lx={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},cx={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",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",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",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",selectInOrder:"Select the cards in the order you heard.",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.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",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",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},dx={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"},ux={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"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},px={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},hx={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"}},mx={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},bx={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},gx={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."}},fx={comingSoon:"Word training is coming soon."},vx={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"},publishedBadge:"Published",sharedBadge:"Shared"},xx={title:"Key Words",empty:"No key words available."},Cx={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",topInfo:"Header",bottomInfo:"Footer",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)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",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"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},_x={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",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},yx={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},wx={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"}},kx={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"}},Bx={passwordPlaceholder:"Enter password"},Ax={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",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},Sx={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"}},Ex={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."]},Nx={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"}},Dx={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"},Tx={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"}}},jx={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lx={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Mx={answer:"Answer",distractor:"Distractor"},$x={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Rx={clearAriaLabel:"Clear input"},Px={ariaLabel:"Select tab"},zx={ariaLabel:"Tabs"},Ix={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ox={ariaLabel:"User avatar"},Fx={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"}},Hx={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"}},Vx={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)"}},Wx={manage:{unit:"item(s)"}},Gx={cancelLabel:"Cancel"},Ux={subtitle:"Select a topic to start listening practice."},qx={steps:"Step {{current}} of {{total}}"},Yx={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"},Kx={resetColumns:"Reset column widths"},Zx={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}}"},Xx={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Jx={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Qx={previewRegion:"Report preview \u2014 scrollable sideways"},eC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={clearSelection:"Clear selection"},oC={showResult:"Show {{type}} result"},rC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},nC={loading:"Loading"},iC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},sC={ariaLabel:"Breadcrumb"},lC={empty:"No items yet."},cC={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},dC={common:Kv,calendar:Zv,passCard:Xv,searchField:Jv,rating:Qv,colorPicker:ex,dropdown:tx,accordion:ax,header:ox,nav:rx,settings:nx,usage:ix,account:sx,help:lx,training:cx,trainingSettings:dx,customers:ux,payment:px,coupons:hx,visits:mx,company:bx,trainingType:gx,myWordTraining:fx,myWordTable:vx,keyWords:xx,wordTable:Cx,wordSearch:_x,wordPrint:yx,topic:wx,accessLinkManager:kx,login:Bx,device:Ax,manager:Sx,wordPairs:Ex,game:Nx,footer:Dx,landing:Tx,date:jx,trainingSetPage:Lx,wordTrainingPreview:Mx,wordData:$x,textField:Rx,segmentedControl:Px,tabs:zx,fileUpload:Ix,avatar:Ox,myHomework:Fx,trainingStatus:Hx,store:Vx,homework:Wx,inquiry:Gx,trainingPlanRun:Ux,progress:qx,trainingMiss:Yx,table:Kx,wordScore:Zx,topBanner:Xx,datePicker:Jx,report:Qx,tooltip:eC,phonemeProfile:tC,bulkBar:aC,debug:oC,badge:rC,loader:nC,soundCompass:iC,breadcrumb:sC,board:lC,promoBannerBg:cC};const En="0.222.0",Dr=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Bo="ko",cs="ihab_display_language";function Xu(){if(typeof window>"u")return Bo;try{const e=localStorage.getItem(cs);if(e&&Dr.some(t=>t.code===e))return e}catch{}return Bo}function uC(e){try{localStorage.setItem(cs,e)}catch{}}function Ju(e){try{document.documentElement.lang=e}catch{}}ht.on("languageChanged",Ju),Ju(Xu()),ht.use(ve.initReactI18next).init({resources:{ko:{translation:Yv},en:{translation:dC}},lng:Xu(),fallbackLng:Bo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qu=l.createContext({locale:Bo,supportedLocales:Dr});function pC(){return l.useContext(Qu)}function hC(e){const t=o=>Dr.some(n=>n.code===o);if(t(e))return e;const a=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(a)?a:Bo}function mC({locale:e=Bo,children:t}){const a=hC(e);return l.useEffect(()=>{ht.language!==a&&ht.changeLanguage(a)},[a]),r.jsx(Qu.Provider,{value:{locale:a,supportedLocales:Dr},children:t})}function Le(...e){return e.filter(Boolean).join(" ")}var bC=".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;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";oe(bC);const ep=new Set,tp=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Ua(e,...t){!tp||ep.has(e)||(ep.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"},Tx={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"}}},jx={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lx={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Mx={answer:"Answer",distractor:"Distractor"},$x={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Rx={clearAriaLabel:"Clear input"},Px={ariaLabel:"Select tab"},zx={ariaLabel:"Tabs"},Ix={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ox={ariaLabel:"User avatar"},Fx={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"}},Hx={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"}},Vx={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)"}},Wx={manage:{unit:"item(s)"}},Gx={cancelLabel:"Cancel"},Ux={subtitle:"Select a topic to start listening practice."},qx={steps:"Step {{current}} of {{total}}"},Yx={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"},Kx={resetColumns:"Reset column widths"},Zx={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}}"},Xx={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Jx={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Qx={previewRegion:"Report preview \u2014 scrollable sideways"},eC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={clearSelection:"Clear selection"},oC={showResult:"Show {{type}} result"},rC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},nC={loading:"Loading"},iC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},sC={ariaLabel:"Breadcrumb"},lC={empty:"No items yet."},cC={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},dC={common:Kv,calendar:Zv,passCard:Xv,searchField:Jv,rating:Qv,colorPicker:ex,dropdown:tx,accordion:ax,header:ox,nav:rx,settings:nx,usage:ix,account:sx,help:lx,training:cx,trainingSettings:dx,customers:ux,payment:px,coupons:hx,visits:mx,company:bx,trainingType:gx,myWordTraining:fx,myWordTable:vx,keyWords:xx,wordTable:Cx,wordSearch:_x,wordPrint:yx,topic:wx,accessLinkManager:kx,login:Bx,device:Ax,manager:Sx,wordPairs:Ex,game:Nx,footer:Dx,landing:Tx,date:jx,trainingSetPage:Lx,wordTrainingPreview:Mx,wordData:$x,textField:Rx,segmentedControl:Px,tabs:zx,fileUpload:Ix,avatar:Ox,myHomework:Fx,trainingStatus:Hx,store:Vx,homework:Wx,inquiry:Gx,trainingPlanRun:Ux,progress:qx,trainingMiss:Yx,table:Kx,wordScore:Zx,topBanner:Xx,datePicker:Jx,report:Qx,tooltip:eC,phonemeProfile:tC,bulkBar:aC,debug:oC,badge:rC,loader:nC,soundCompass:iC,breadcrumb:sC,board:lC,promoBannerBg:cC};const En="0.223.0",Dr=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Bo="ko",cs="ihab_display_language";function Xu(){if(typeof window>"u")return Bo;try{const e=localStorage.getItem(cs);if(e&&Dr.some(t=>t.code===e))return e}catch{}return Bo}function uC(e){try{localStorage.setItem(cs,e)}catch{}}function Ju(e){try{document.documentElement.lang=e}catch{}}ht.on("languageChanged",Ju),Ju(Xu()),ht.use(ve.initReactI18next).init({resources:{ko:{translation:Yv},en:{translation:dC}},lng:Xu(),fallbackLng:Bo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qu=l.createContext({locale:Bo,supportedLocales:Dr});function pC(){return l.useContext(Qu)}function hC(e){const t=o=>Dr.some(n=>n.code===o);if(t(e))return e;const a=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(a)?a:Bo}function mC({locale:e=Bo,children:t}){const a=hC(e);return l.useEffect(()=>{ht.language!==a&&ht.changeLanguage(a)},[a]),r.jsx(Qu.Provider,{value:{locale:a,supportedLocales:Dr},children:t})}function Le(...e){return e.filter(Boolean).join(" ")}var bC=".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;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";oe(bC);const ep=new Set,tp=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Ua(e,...t){!tp||ep.has(e)||(ep.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.
@@ -860,7 +860,7 @@ ${_.badge}`:_.badge:void 0;if(k&&d(_.code))return null;if(!_.badge&&!p)return h(
860
860
 
861
861
  /* !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
862
862
  \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
863
- \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-cell__visit-count{align-items:center;color:var(--color-main);display:none;gap:4px}.ihabdevteam-core-scope .calendar-cell__visit-dot{background:currentColor;border-radius:50%;flex-shrink:0;height:6px;width:6px}@container (max-width: 96px){.ihabdevteam-core-scope .calendar-cell__badges{display:none}.ihabdevteam-core-scope .calendar-cell__visit-count{display:inline-flex}}.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-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;oe(w9);function y0(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function k9(e,t){return new Date(e,t+1,0).getDate()}function B9(e,t){return new Date(e,t,1).getDay()}function w0({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:o,today:n}){const{t:i}=ve.useTranslation(),s=l.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Il(n),[d,u]=l.useState(()=>Number(c.slice(0,4))),[p,h]=l.useState(()=>Number(c.slice(5,7))-1),[m,b]=l.useState(null),x=l.useRef(null),f=l.useMemo(()=>{const B={};return e.forEach(k=>{B[k.date]||(B[k.date]=[]),B[k.date].push(k)}),B},[e]),C=l.useMemo(()=>{const B=k9(d,p),k=B9(d,p),A=[];for(let w=0;w<k;w++)A.push(null);for(let w=1;w<=B;w++)A.push(w);for(;A.length<35;)A.push(null);return A},[d,p]),v=l.useCallback(()=>{p===0?(u(B=>B-1),h(11)):h(B=>B-1)},[p]),g=l.useCallback(()=>{p===11?(u(B=>B+1),h(0)):h(B=>B+1)},[p]),y=B=>`${d}-${String(p+1).padStart(2,"0")}-${String(B).padStart(2,"0")}`,_=B=>y(B)===c;return r.jsxs("div",{children:[r.jsxs("div",{className:"calendar-nav",children:[r.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:r.jsx(Xe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),r.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),r.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:r.jsx(Xe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),r.jsxs("div",{className:"calendar-nav__legend",children:[r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),r.jsxs("div",{className:"calendar-grid",children:[s.map(B=>r.jsx("div",{className:"calendar-day-header body-3",children:B},B)),C.map((B,k)=>{if(B===null)return r.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const A=B,w=y(A),S=f[w]??[],E=m===w;return r.jsxs("div",{className:`calendar-cell${_(A)?" today":""}${E?" drag-over":""}${o?" calendar-cell--clickable":""}`,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?i("calendar.addOnDate",{date:w}):void 0,"aria-current":_(A)?"date":void 0,onClick:o?()=>o(w):void 0,onKeyDown:o?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),o(w)))}:void 0,onDragOver:a?$=>{$.preventDefault(),b(w)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||b(null)}:void 0,onDrop:a?$=>{$.preventDefault(),x.current!=null&&(a(x.current,w),x.current=null),b(null)}:void 0,children:[r.jsx("div",{className:"calendar-cell__number body-3",children:A}),S.length>0&&r.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:S.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[r.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),S.length]}),r.jsx("div",{className:"calendar-cell__badges",children:S.map(($,F)=>r.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{x.current=$.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{x.current=null,b(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t($)}:void 0,...y0(t?()=>t($):void 0),"aria-label":[$.time?Qn($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&r.jsx("span",{className:"calendar-visit-badge__time body-3",children:Qn($.time,i)}),r.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&r.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??F))})]},A)})]})]})}var A9=".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--in-grid{display:flex;flex-direction:column;min-width:0;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);min-width:0}.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;min-width:0}.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)}}";oe(A9);const S9={page:"h3",pagePopup:"h4",popup:"h5"};function Ho({type:e="page",title:t,headingLevel:a,icon:o,action:n,disc:i,children:s,inGrid:c=!1,className:d,style:u}){const p=S9[e],h=t||i||n||o,m=a?`h${a}`:"div";return r.jsxs("div",{className:Le("section",`section--${e}`,c&&"section--in-grid",d),style:u,children:[h&&r.jsxs("div",{className:"section__header",children:[r.jsxs("div",{className:"section__title-row",children:[o&&r.jsx(Xe,{icon:o,label:typeof t=="string"?t:void 0,className:"section__icon"}),r.jsxs("div",{className:"section__title-group",children:[t&&r.jsx(m,{className:`section__title ${p}`,children:t}),i&&r.jsx("div",{className:"section__disc body-3",children:i})]})]}),n&&r.jsx("div",{className:"section__action",children:n})]}),s]})}var E9=".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}@media (max-width:767px){.ihabdevteam-core-scope .training-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .training-list>*{min-width:0}.ihabdevteam-core-scope .training-list>*>.training-block-button,.ihabdevteam-core-scope .training-list>.training-block-button{width:100%}}.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}";oe(E9);let ru=null,k0=!1;function B0(){if(k0||typeof document>"u")return;k0=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(ru="keyboard")},!0);const e=()=>{ru="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}B0();function zi(){return B0(),ru==="keyboard"}const Ii=20;function A0(e){const{t}=ve.useTranslation(),{type:a,trainingDatas:o,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:b="page"}=e||{},[,x]=l.useState(0),f=typeof o<"u"?Array.isArray(o)?o:[]:[],C=f.length,[v,g]=l.useState(Math.min(C,Ii)),y=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{g(Math.min(C,Ii))},[C]),ln("speechear.data.updated",()=>x(A=>A+1));const _=l.useRef(null),B=l.useRef(null);function k(){const A=document.activeElement;B.current=zi()&&A&&A.closest?.(".training-block__more")?v:null,g(w=>Math.min(C,w+Ii))}return l.useEffect(()=>{const A=B.current;if(A==null)return;B.current=null;const w=document.activeElement;w&&w!==document.body||_.current?.querySelectorAll(".training-block-button")[A]?.focus()},[v]),r.jsxs(Ho,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[r.jsx("div",{className:"training-list",ref:_,children:(f||[]).slice(0,v).map((A,w)=>{const S=A;return r.jsx(Di,{index:w,type:a,trainingData:S,depth:y,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&S?.id!=null&&c.has(String(S.id))?()=>h(S):void 0,onComplete:typeof d=="function"&&S?.id!=null?()=>d(String(S.id)):void 0,onMore:typeof m=="function"?E=>m(S,E):void 0},S?.id!=null?`${a?.key||"t"}-${String(S.id)}`:`${a?.key||"t"}-${w}`)})}),C>Ii&&v<C&&r.jsx("div",{className:"training-block__more",children:r.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:k,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function nu(e){const t=l.useRef(null),[a,o]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;o(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>o(!1),[]),c=l.useCallback(()=>{o(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}var N9='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',D9='.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__text-face{align-items:center;color:#0b2b35;color:var(--color-black,#0b2b35);display:flex;font-size:48px;font-weight:700;height:100%;justify-content:center;line-height:1;text-align:center;width:100%;word-break:keep-all}.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__text-face{font-size:32px}.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}}';oe(D9);const T9=N9,Oi=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:o=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},p){const{t:h}=ve.useTranslation(),m=e.word||e.title||"",b=t||!m,x=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",C=e.colloquialLabel||"",[v,g]=l.useState({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});m&&(v.label!==m||v.subLabel!==f||v.colloquialLabel!==C||!Object.is(v.homonum,e.homonum))&&g({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});const y=l.useRef(null),_=na("(max-width: 767px)"),[B,k]=l.useState(!1),A=`${typeof x=="string"?x:x?.src??""}\0${m}`,[w,S]=l.useState({for:"",url:""}),E=w.for===A?w.url:"",$=$o(),F=e.textOnly??(!e.image&&!!v.label&&!!$&&$.entries.length>0&&!$.byWord.has(v.label)),j=F?"":io()?.(v.label,v.homonum)??e.image??"",{imgRef:z,loading:D,hasImage:T,onLoad:I,onError:G}=nu(j);l.useEffect(()=>{let W=!1;return(async()=>{if(x){if(typeof x=="string"){if(x.startsWith("http")||x.includes("/")){S({for:A,url:x});return}}else if(typeof x=="object"&&!Array.isArray(x)){const Z=x.src;if(Z){S({for:A,url:Z});return}}}const R=Pr();if(R&&m)try{const Z=await Promise.resolve(R(m));!W&&Z&&S({for:A,url:Z})}catch{}})(),()=>{W=!0}},[x,m,A]);const K=l.useRef(!0),H=l.useRef(null);l.useEffect(()=>(K.current=!0,()=>{K.current=!1,H.current&&Ni(H.current),H.current=null;try{y.current?.pause()}catch{}y.current=null}),[]);const V=l.useCallback(()=>new Promise(W=>{if(typeof window<"u"&&window.speechSynthesis&&m){k(!0),window.speechSynthesis.cancel();const R=new SpeechSynthesisUtterance(m);R.lang="ko-KR",R.onend=()=>{k(!1);try{a?.()}catch{}W()},R.onerror=()=>{k(!1),W()},window.speechSynthesis.speak(R)}else W()}),[m,a]),q=l.useCallback(W=>new Promise(R=>{let Z=!1;const ee=()=>{Z||(Z=!0,k(!1),R(!1))};try{const J=new Audio(W);y.current=J,J.onended=()=>{if(!Z){Z=!0,k(!1);try{a?.()}catch{}R(!0)}},J.onerror=ee,J.play().catch(ee)}catch{ee()}}),[a]),L=l.useCallback(async()=>{if(t||!K.current)return;const W=()=>{H.current===W&&(H.current=null);try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}k(!1)},R=Ei(W);H.current=W;try{window.speechSynthesis?.cancel()}catch{}try{if(E&&(k(!0),await q(E)))return;const Z=Ns();if(Z&&m)try{const ee=await Promise.resolve(Z(m));if(!K.current||H.current!==W||ee&&(k(!0),await q(ee)))return}catch{}if(!K.current||H.current!==W)return;await V()}finally{R(),H.current===W&&(H.current=null)}},[t,E,m,q,V]);l.useImperativeHandle(p,()=>({play:()=>L()}),[L]);const N=W=>W.stopPropagation(),O=l.useCallback(W=>{if(W.stopPropagation(),!t){if(B){try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}k(!1);return}L()}},[t,B,L]),P=Le("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",o?"training-word-card--selectable":"",n?"training-word-card--selected":"");return r.jsx("div",{className:P,onClick:o&&!t?i:void 0,role:o?"button":void 0,"aria-pressed":o?n:void 0,tabIndex:o&&!t?0:void 0,"aria-disabled":o&&t?!0:void 0,onKeyDown:o&&!t?W=>{W.target===W.currentTarget&&(W.key==="Enter"||W.key===" "||W.key==="Spacebar")&&(W.preventDefault(),i?.())}:void 0,children:r.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${s}ms`},children:[r.jsxs("div",{className:"training-word-card__front",children:[n&&r.jsx("div",{className:"training-word-card__selected-badge",onClick:N,children:r.jsx(Ct,{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")})}),r.jsx("div",{className:"training-word-card__image-wrap",children:F?r.jsx("div",{className:"training-word-card__text-face",children:v.label}):T?r.jsxs(r.Fragment,{children:[D&&r.jsx("div",{className:"training-word-card__spinner"}),r.jsx("img",{ref:z,className:"training-word-card__image",src:j,alt:v.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:D?0:1},onLoad:I,onError:G})]}):r.jsx("div",{className:"training-word-card__placeholder"})}),!c&&r.jsxs("div",{className:"training-word-card__body",children:[!F&&r.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&r.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&r.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!d&&r.jsx("div",{className:"training-word-card__bottom",onClick:o?N:void 0,children:r.jsx(pe,{htmlType:"button",size:_?40:48,type:_?"dot":"bar",icon:B?"pause":"play",label:_?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:O,disabled:t,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),r.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:r.jsx("img",{src:T9,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});var j9=".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-panel--xlarge{max-width:1320px;width:calc(100% - 80px)}.ihabdevteam-core-scope .popup-panel--has-height{height:var(--popup-height)}.ihabdevteam-core-scope .popup-panel--fill-body .popup-content{overflow:hidden}.ihabdevteam-core-scope .popup-panel--fill-body .popup-content__inner{display:flex;flex-direction:column;height:100%;min-height:0}.ihabdevteam-core-scope .popup-panel--fit{max-width:min(1140px,calc(100% - 40px));min-width:min(480px,calc(100% - 40px));width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .popup.popup--below-page-popup:not(.popup--inline){z-index:calc(var(--z-page-popup) - 1)}.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;flex-wrap:wrap;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 1 220px;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-segment{flex-shrink:0}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-left:auto;min-width:0}.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{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--fill>*{flex:1}.ihabdevteam-core-scope .popup-footer--between{justify-content:space-between;padding-left:var(--spacing-xl);padding-right:var(--spacing-xl)}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1 1 auto;max-width:200px;min-width:0}.ihabdevteam-core-scope .popup-footer--bar{flex-wrap:wrap;gap:var(--spacing-l);justify-content:space-between}.ihabdevteam-core-scope .popup-footer__start{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .popup-footer__end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto;min-width:0}.ihabdevteam-core-scope .popup-footer__end>*,.ihabdevteam-core-scope .popup-footer__start>*{min-width:0}.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--has-top .popup-content{padding-top:var(--spacing-l)}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin-bottom:20px}.ihabdevteam-core-scope .confirm-popup__top>*{max-width:100%}";oe(j9);const L9=260;function eo(e){const{t}=ve.useTranslation(),{title:a,subtitle:o,headerActions:n,headerSegment:i,children:s,buttons:c,footer:d,footerStart:u,footerEnd:p,footerClassName:h="",footerLayout:m="center",onClose:b,closeDisabled:x=!1,beforeClose:f,closeOnBackdrop:C=!0,className:v="",ariaLabel:g,useTitle:y=!0,inline:_=!1,size:B,layer:k="modal",height:A,fillBody:w=!1,resetScrollKey:S}=e||{},[E,$]=l.useState(!1),F=l.useRef(!1),j=l.useRef(null),z=l.useId(),D=l.useRef(null);l.useEffect(()=>{},[_,a,g,v]),l.useEffect(()=>{S!==void 0&&D.current&&(D.current.scrollTop=0)},[S]);const[T,I]=l.useState(!1);l.useEffect(()=>{const J=D.current;if(!J)return;const ue=()=>I(J.scrollHeight>J.clientHeight+1);if(ue(),typeof ResizeObserver>"u")return;const ne=new ResizeObserver(ue);ne.observe(J);const re=J.firstElementChild;return re&&ne.observe(re),()=>ne.disconnect()},[s,S]),l.useEffect(()=>{if(!_)return Hg()},[_]),l.useEffect(()=>{if(_)return;const J=document.activeElement,ue=j.current;return cc(ue,J),ue&&!ue.contains(document.activeElement)&&(ue.querySelector(Xa)??ue).focus(),()=>{const ne=document.activeElement;(!ne||ne===document.body||ue&&ue.contains(ne))&&dc(J)?.focus?.()}},[_]),sc(j,!_);const G=l.useRef(!0),K=uc(),H=l.useRef(null);l.useEffect(()=>(G.current=!0,()=>{G.current=!1,H.current&&(clearTimeout(H.current),H.current=null)}),[]);const V=l.useCallback(()=>{!G.current||!F.current||(F.current=!1,$(!1))},[]),q=l.useCallback((J,ue=!1)=>{if(ue&&!G.current||F.current)return;F.current=!0,$(!0);const ne=setTimeout(()=>{H.current===ne&&(H.current=null);let re;try{re=J?J():void 0}catch{V();return}re&&typeof re.then=="function"&&re.then(()=>{setTimeout(V,120)},V)},K?0:L9);ue&&(H.current=ne)},[V,K]),L=l.useCallback(()=>{x||f&&f()===!1||q(b,!0)},[q,b,x,f]),N=l.useRef(L);l.useEffect(()=>{N.current=L});const O=!_&&!!b;l.useEffect(()=>{if(O)return Ro(()=>N.current())},[O]);const P=O&&C,W=l.useRef(!1),R=J=>{W.current=J.target===J.currentTarget},Z=J=>{const ue=W.current;W.current=!1,ue&&J.target===J.currentTarget&&L()},ee=r.jsx("div",{className:`popup ${_?"popup--inline":""} ${k==="belowPagePopup"?"popup--below-page-popup":""} ${E?"popup--closing":""} ${v}`,onPointerDown:P?R:void 0,onClick:P?Z:void 0,onMouseDown:_?void 0:J=>{J.target===J.currentTarget&&J.preventDefault()},children:r.jsxs("div",{ref:j,className:`popup-panel${B?` popup-panel--${B}`:""}${A!=null?" popup-panel--has-height":""}${w?" popup-panel--fill-body":""}`,style:A!=null?{"--popup-height":typeof A=="number"?`${A}px`:A}:void 0,tabIndex:-1,role:_?void 0:"dialog","aria-modal":_?void 0:!0,"aria-labelledby":!_&&y&&a?z:void 0,"aria-label":!_&&!(y&&a)?g??(typeof a=="string"?a:void 0):void 0,children:[!y&&(n||b)?r.jsxs("div",{className:"popup-close-float",children:[n,b&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:x,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||b?r.jsxs("div",{className:`popup-header${o?" popup-header--with-subtitle":""}`,children:[r.jsxs("div",{className:"popup-header-main",children:[r.jsx("span",{id:z,className:"popup-title popup-title--left h2",children:a}),o&&r.jsx("span",{className:"popup-subtitle body-3",children:o})]}),i&&r.jsx("div",{className:"popup-header-segment",children:r.jsx(Ia,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(J=>({key:J.key,label:J.label,disabled:J.disabled})),value:i.value,onChange:i.onChange})}),r.jsxs("div",{className:"popup-header-actions",children:[n,b&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:x,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,r.jsx("div",{className:"popup-content",ref:D,tabIndex:T?0:void 0,children:r.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:q,closeWithAnimation:L}):s})}),u||p?r.jsxs("div",{className:`popup-footer popup-footer--bar${h?` ${h}`:""}`,children:[r.jsx("div",{className:"popup-footer__start",children:typeof u=="function"?u({animateThen:q,closeWithAnimation:L}):u}),r.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:q,closeWithAnimation:L}):p})]}):c?.length?r.jsx("div",{className:`popup-footer popup-footer--buttons${m!=="center"?` popup-footer--${m}`:""}`,children:c.map((J,ue)=>r.jsx(pe,{htmlType:"button",size:48,variant:J.variant??"default",label:J.label,disabled:J.disabled,onClick:()=>J.onClick?.({animateThen:q,closeWithAnimation:L})},ue))}):d?r.jsx("div",{className:`popup-footer${m!=="center"?` popup-footer--${m}`:""}${h?` ${h}`:""}`,children:typeof d=="function"?d({animateThen:q,closeWithAnimation:L}):d}):null]})});return _||typeof document>"u"?ee:ca.createPortal(ee,document.body)}function yn(e){return String(e)}const wn=["o","triangle","x"];function iu(e,t){return e===t?null:t}const su={o:"circle",triangle:"triangle",x:"x"},lu={o:"main",triangle:"warn",x:"danger"};function S0(e){let t=0,a=0,o=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&o++;const n=t+a+o;return{marked:n,o:t,triangle:a,x:o,rate:n===0?null:(t+a*.5)/n}}function Fi(e){const t={};for(const[a,o]of Object.entries(e))(o==="o"||o==="triangle"||o==="x")&&(t[a]=o);return t}function cu(e){const t=[];let a=0;for(const o of e)t.push(a),a+=o;return t}function E0(e,t){return!t&&e>0}var M9=`.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-block__content--page-number{padding-bottom:28px}.ihabdevteam-core-scope .word-table-block__content--page-number.word-table-block__content--cut-show{background-clip:content-box}.ihabdevteam-core-scope .word-table-block__content--page-number.word-table-block__content--outline:after{bottom:28px}.ihabdevteam-core-scope .word-table__page-number{bottom:4px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table-block__content--brand-top{padding-top:40px;padding-top:calc(var(--wt-band-top-height, 36px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom{padding-bottom:32px;padding-bottom:calc(var(--wt-band-bottom-height, 28px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom.word-table-block__content--cut-show,.ihabdevteam-core-scope .word-table-block__content--brand-top.word-table-block__content--cut-show{background-clip:content-box}.ihabdevteam-core-scope .word-table-block__content--brand-top.word-table-block__content--outline:after{top:40px;top:calc(var(--wt-band-top-height, 36px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom.word-table-block__content--outline:after{bottom:32px;bottom:calc(var(--wt-band-bottom-height, 28px) + 4px)}.ihabdevteam-core-scope .word-table__band{color:var(--color-gray);display:flex;font-weight:400;font-weight:var(--text-caption-1-weight,400);gap:12px;justify-content:space-between;left:0;pointer-events:none;position:absolute;right:0;z-index:2}.ihabdevteam-core-scope .word-table__band--top{align-items:center;align-items:var(--wt-band-top-align,center);font-size:13px;font-size:var(--wt-band-top-size,13px);height:36px;height:var(--wt-band-top-height,36px);line-height:1.35;top:0}.ihabdevteam-core-scope .word-table__band--bottom{align-items:center;align-items:var(--wt-band-bottom-align,center);bottom:0;color:var(--color-gray);font-size:11px;font-size:var(--wt-band-bottom-size,11px);height:28px;height:var(--wt-band-bottom-height,28px);line-height:1.35}.ihabdevteam-core-scope .word-table__brand-logo{display:block;flex-shrink:0;height:34px;height:var(--wt-brand-logo-height,34px);print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-logo--ihab{aspect-ratio:264/100;background-color:currentColor;display:block;flex-shrink:0;height:24px;height:var(--wt-brand-ihab-height,24px);-webkit-mask-image:url(../logo/Logo_IHAB_en_white.svg);mask-image:url(../logo/Logo_IHAB_en_white.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-logo--given{aspect-ratio:auto;background-color:transparent;-webkit-mask-image:none;mask-image:none;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-by{align-items:center;display:flex;gap:8px;gap:var(--wt-brand-gap,8px);min-width:0}.ihabdevteam-core-scope .word-table__copyright{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__band-end{align-items:center;display:flex;gap:12px;min-width:0}.ihabdevteam-core-scope .word-table__ident{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table__owner{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__ident-dot{flex-shrink:0}.ihabdevteam-core-scope .word-table__code{flex-shrink:0;white-space:nowrap}.ihabdevteam-core-scope .word-table__link,.ihabdevteam-core-scope .word-table__paper-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__link{color:var(--color-gray)}.ihabdevteam-core-scope .word-table__page-count{flex-shrink:0;white-space:nowrap}.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--dragging{box-shadow:var(--shadow-dropdown);opacity:.6;touch-action:none;transform:scale(.97);transition:transform .12s,opacity .12s;z-index:3}.ihabdevteam-core-scope .word-table-block__card-handle{cursor:grab;left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-handle:focus-visible,.ihabdevteam-core-scope .word-table-block__card-handle:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-handle,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-handle{opacity:1}.ihabdevteam-core-scope .word-table-block__card-actions,.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-actions{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .word-table-block__card-actions .word-table-block__card-close{opacity:1;position:static;right:auto;top:auto}.ihabdevteam-core-scope .word-table-block__card-actions:focus-within,.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-actions,.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-actions,.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--with-image .word-table-cell__inner{padding-bottom:48px}.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}@media (hover:none){.ihabdevteam-core-scope .word-table-block__card-actions,.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card-handle,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button{opacity:1}}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .word-table-block__card,.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card-handle{transition:none}.ihabdevteam-core-scope .word-table-block__card--dragging{transform:none;transition:none}}.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}
863
+ \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-cell__visit-count{align-items:center;color:var(--color-main);display:none;gap:4px}.ihabdevteam-core-scope .calendar-cell__visit-dot{background:currentColor;border-radius:50%;flex-shrink:0;height:6px;width:6px}@container (max-width: 96px){.ihabdevteam-core-scope .calendar-cell__badges{display:none}.ihabdevteam-core-scope .calendar-cell__visit-count{display:inline-flex}}.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-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;oe(w9);function y0(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function k9(e,t){return new Date(e,t+1,0).getDate()}function B9(e,t){return new Date(e,t,1).getDay()}function w0({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:o,today:n}){const{t:i}=ve.useTranslation(),s=l.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Il(n),[d,u]=l.useState(()=>Number(c.slice(0,4))),[p,h]=l.useState(()=>Number(c.slice(5,7))-1),[m,b]=l.useState(null),x=l.useRef(null),f=l.useMemo(()=>{const B={};return e.forEach(k=>{B[k.date]||(B[k.date]=[]),B[k.date].push(k)}),B},[e]),C=l.useMemo(()=>{const B=k9(d,p),k=B9(d,p),A=[];for(let w=0;w<k;w++)A.push(null);for(let w=1;w<=B;w++)A.push(w);for(;A.length<35;)A.push(null);return A},[d,p]),v=l.useCallback(()=>{p===0?(u(B=>B-1),h(11)):h(B=>B-1)},[p]),g=l.useCallback(()=>{p===11?(u(B=>B+1),h(0)):h(B=>B+1)},[p]),y=B=>`${d}-${String(p+1).padStart(2,"0")}-${String(B).padStart(2,"0")}`,_=B=>y(B)===c;return r.jsxs("div",{children:[r.jsxs("div",{className:"calendar-nav",children:[r.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:r.jsx(Xe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),r.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),r.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:r.jsx(Xe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),r.jsxs("div",{className:"calendar-nav__legend",children:[r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),r.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),r.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),r.jsxs("div",{className:"calendar-grid",children:[s.map(B=>r.jsx("div",{className:"calendar-day-header body-3",children:B},B)),C.map((B,k)=>{if(B===null)return r.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const A=B,w=y(A),S=f[w]??[],E=m===w;return r.jsxs("div",{className:`calendar-cell${_(A)?" today":""}${E?" drag-over":""}${o?" calendar-cell--clickable":""}`,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?i("calendar.addOnDate",{date:w}):void 0,"aria-current":_(A)?"date":void 0,onClick:o?()=>o(w):void 0,onKeyDown:o?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),o(w)))}:void 0,onDragOver:a?$=>{$.preventDefault(),b(w)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||b(null)}:void 0,onDrop:a?$=>{$.preventDefault(),x.current!=null&&(a(x.current,w),x.current=null),b(null)}:void 0,children:[r.jsx("div",{className:"calendar-cell__number body-3",children:A}),S.length>0&&r.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:S.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[r.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),S.length]}),r.jsx("div",{className:"calendar-cell__badges",children:S.map(($,F)=>r.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{x.current=$.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{x.current=null,b(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t($)}:void 0,...y0(t?()=>t($):void 0),"aria-label":[$.time?Qn($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&r.jsx("span",{className:"calendar-visit-badge__time body-3",children:Qn($.time,i)}),r.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&r.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??F))})]},A)})]})]})}var A9=".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--in-grid{display:flex;flex-direction:column;min-width:0;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);min-width:0}.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;min-width:0}.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)}}";oe(A9);const S9={page:"h3",pagePopup:"h4",popup:"h5"};function Ho({type:e="page",title:t,headingLevel:a,icon:o,action:n,disc:i,children:s,inGrid:c=!1,className:d,style:u}){const p=S9[e],h=t||i||n||o,m=a?`h${a}`:"div";return r.jsxs("div",{className:Le("section",`section--${e}`,c&&"section--in-grid",d),style:u,children:[h&&r.jsxs("div",{className:"section__header",children:[r.jsxs("div",{className:"section__title-row",children:[o&&r.jsx(Xe,{icon:o,label:typeof t=="string"?t:void 0,className:"section__icon"}),r.jsxs("div",{className:"section__title-group",children:[t&&r.jsx(m,{className:`section__title ${p}`,children:t}),i&&r.jsx("div",{className:"section__disc body-3",children:i})]})]}),n&&r.jsx("div",{className:"section__action",children:n})]}),s]})}var E9=".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}@media (max-width:767px){.ihabdevteam-core-scope .training-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .training-list>*{min-width:0}.ihabdevteam-core-scope .training-list>*>.training-block-button,.ihabdevteam-core-scope .training-list>.training-block-button{width:100%}}.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}";oe(E9);let ru=null,k0=!1;function B0(){if(k0||typeof document>"u")return;k0=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(ru="keyboard")},!0);const e=()=>{ru="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}B0();function zi(){return B0(),ru==="keyboard"}const Ii=20;function A0(e){const{t}=ve.useTranslation(),{type:a,trainingDatas:o,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:b="page"}=e||{},[,x]=l.useState(0),f=typeof o<"u"?Array.isArray(o)?o:[]:[],C=f.length,[v,g]=l.useState(Math.min(C,Ii)),y=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{g(Math.min(C,Ii))},[C]),ln("speechear.data.updated",()=>x(A=>A+1));const _=l.useRef(null),B=l.useRef(null);function k(){const A=document.activeElement;B.current=zi()&&A&&A.closest?.(".training-block__more")?v:null,g(w=>Math.min(C,w+Ii))}return l.useEffect(()=>{const A=B.current;if(A==null)return;B.current=null;const w=document.activeElement;w&&w!==document.body||_.current?.querySelectorAll(".training-block-button")[A]?.focus()},[v]),r.jsxs(Ho,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[r.jsx("div",{className:"training-list",ref:_,children:(f||[]).slice(0,v).map((A,w)=>{const S=A;return r.jsx(Di,{index:w,type:a,trainingData:S,depth:y,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&S?.id!=null&&c.has(String(S.id))?()=>h(S):void 0,onComplete:typeof d=="function"&&S?.id!=null?()=>d(String(S.id)):void 0,onMore:typeof m=="function"?E=>m(S,E):void 0},S?.id!=null?`${a?.key||"t"}-${String(S.id)}`:`${a?.key||"t"}-${w}`)})}),C>Ii&&v<C&&r.jsx("div",{className:"training-block__more",children:r.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:k,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function nu(e){const t=l.useRef(null),[a,o]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;o(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>o(!1),[]),c=l.useCallback(()=>{o(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}var N9='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',D9='.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__text-face{align-items:center;color:#0b2b35;color:var(--color-black,#0b2b35);display:flex;font-size:48px;font-weight:700;height:100%;justify-content:center;line-height:1;text-align:center;width:100%;word-break:keep-all}.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__text-face{font-size:32px}.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}}';oe(D9);const T9=N9,Oi=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:o=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},p){const{t:h}=ve.useTranslation(),m=e.word||e.title||"",b=t||!m,x=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",C=e.colloquialLabel||"",[v,g]=l.useState({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});m&&(v.label!==m||v.subLabel!==f||v.colloquialLabel!==C||!Object.is(v.homonum,e.homonum))&&g({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});const y=l.useRef(null),_=na("(max-width: 767px)"),[B,k]=l.useState(!1),A=`${typeof x=="string"?x:x?.src??""}\0${m}`,[w,S]=l.useState({for:"",url:""}),E=w.for===A?w.url:"",$=$o(),F=e.textOnly??(!e.image&&!!v.label&&!!$&&$.entries.length>0&&!$.byWord.has(v.label)),j=F?"":io()?.(v.label,v.homonum)??e.image??"",{imgRef:z,loading:D,hasImage:T,onLoad:I,onError:G}=nu(j);l.useEffect(()=>{let W=!1;return(async()=>{if(x){if(typeof x=="string"){if(x.startsWith("http")||x.includes("/")){S({for:A,url:x});return}}else if(typeof x=="object"&&!Array.isArray(x)){const Z=x.src;if(Z){S({for:A,url:Z});return}}}const R=Pr();if(R&&m)try{const Z=await Promise.resolve(R(m));!W&&Z&&S({for:A,url:Z})}catch{}})(),()=>{W=!0}},[x,m,A]);const K=l.useRef(!0),H=l.useRef(null);l.useEffect(()=>(K.current=!0,()=>{K.current=!1,H.current&&Ni(H.current),H.current=null;try{y.current?.pause()}catch{}y.current=null}),[]);const V=l.useCallback(()=>new Promise(W=>{if(typeof window<"u"&&window.speechSynthesis&&m){k(!0),window.speechSynthesis.cancel();const R=new SpeechSynthesisUtterance(m);R.lang="ko-KR",R.onend=()=>{k(!1);try{a?.()}catch{}W()},R.onerror=()=>{k(!1),W()},window.speechSynthesis.speak(R)}else W()}),[m,a]),q=l.useCallback(W=>new Promise(R=>{let Z=!1;const ee=()=>{Z||(Z=!0,k(!1),R(!1))};try{const J=new Audio(W);y.current=J,J.onended=()=>{if(!Z){Z=!0,k(!1);try{a?.()}catch{}R(!0)}},J.onerror=ee,J.play().catch(ee)}catch{ee()}}),[a]),L=l.useCallback(async()=>{if(t||!K.current)return;const W=()=>{H.current===W&&(H.current=null);try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}k(!1)},R=Ei(W);H.current=W;try{window.speechSynthesis?.cancel()}catch{}try{if(E&&(k(!0),await q(E)))return;const Z=Ns();if(Z&&m)try{const ee=await Promise.resolve(Z(m));if(!K.current||H.current!==W||ee&&(k(!0),await q(ee)))return}catch{}if(!K.current||H.current!==W)return;await V()}finally{R(),H.current===W&&(H.current=null)}},[t,E,m,q,V]);l.useImperativeHandle(p,()=>({play:()=>L()}),[L]);const N=W=>W.stopPropagation(),O=l.useCallback(W=>{if(W.stopPropagation(),!t){if(B){try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}k(!1);return}L()}},[t,B,L]),P=Le("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",o?"training-word-card--selectable":"",n?"training-word-card--selected":"");return r.jsx("div",{className:P,onClick:o&&!t?i:void 0,role:o?"button":void 0,"aria-pressed":o?n:void 0,tabIndex:o&&!t?0:void 0,"aria-disabled":o&&t?!0:void 0,onKeyDown:o&&!t?W=>{W.target===W.currentTarget&&(W.key==="Enter"||W.key===" "||W.key==="Spacebar")&&(W.preventDefault(),i?.())}:void 0,children:r.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${s}ms`},children:[r.jsxs("div",{className:"training-word-card__front",children:[n&&r.jsx("div",{className:"training-word-card__selected-badge",onClick:N,children:r.jsx(Ct,{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")})}),r.jsx("div",{className:"training-word-card__image-wrap",children:F?r.jsx("div",{className:"training-word-card__text-face",children:v.label}):T?r.jsxs(r.Fragment,{children:[D&&r.jsx("div",{className:"training-word-card__spinner"}),r.jsx("img",{ref:z,className:"training-word-card__image",src:j,alt:v.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:D?0:1},onLoad:I,onError:G})]}):r.jsx("div",{className:"training-word-card__placeholder"})}),!c&&r.jsxs("div",{className:"training-word-card__body",children:[!F&&r.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&r.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&r.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!d&&r.jsx("div",{className:"training-word-card__bottom",onClick:o?N:void 0,children:r.jsx(pe,{htmlType:"button",size:_?40:48,type:_?"dot":"bar",icon:B?"pause":"play",label:_?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:O,disabled:t,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),r.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:r.jsx("img",{src:T9,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});var j9=".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-panel--xlarge{max-width:1320px;width:calc(100% - 80px)}.ihabdevteam-core-scope .popup-panel--has-height{height:var(--popup-height)}.ihabdevteam-core-scope .popup-panel--fill-body .popup-content{overflow:hidden}.ihabdevteam-core-scope .popup-panel--fill-body .popup-content__inner{display:flex;flex-direction:column;height:100%;min-height:0}.ihabdevteam-core-scope .popup-panel--fit{max-width:min(1140px,calc(100% - 40px));min-width:min(480px,calc(100% - 40px));width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .popup.popup--below-page-popup:not(.popup--inline){z-index:calc(var(--z-page-popup) - 1)}.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;flex-wrap:wrap;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 1 220px;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-segment{flex-shrink:0}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-left:auto;min-width:0}.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{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--fill>*{flex:1}.ihabdevteam-core-scope .popup-footer--between{justify-content:space-between;padding-left:var(--spacing-xl);padding-right:var(--spacing-xl)}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1 1 auto;max-width:200px;min-width:0}.ihabdevteam-core-scope .popup-footer--bar{flex-wrap:wrap;gap:var(--spacing-l);justify-content:space-between}.ihabdevteam-core-scope .popup-footer__start{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .popup-footer__end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto;min-width:0}.ihabdevteam-core-scope .popup-footer__end>*,.ihabdevteam-core-scope .popup-footer__start>*{min-width:0}.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--has-top .popup-content{padding-top:var(--spacing-l)}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin-bottom:20px}.ihabdevteam-core-scope .confirm-popup__top>*{max-width:100%}";oe(j9);const L9=260;function eo(e){const{t}=ve.useTranslation(),{title:a,subtitle:o,headerActions:n,headerSegment:i,children:s,buttons:c,footer:d,footerStart:u,footerEnd:p,footerClassName:h="",footerLayout:m="center",onClose:b,closeDisabled:x=!1,beforeClose:f,closeOnBackdrop:C=!0,className:v="",ariaLabel:g,useTitle:y=!0,inline:_=!1,size:B,layer:k="modal",height:A,fillBody:w=!1,resetScrollKey:S}=e||{},[E,$]=l.useState(!1),F=l.useRef(!1),j=l.useRef(null),z=l.useId(),D=l.useRef(null);l.useEffect(()=>{},[_,a,g,v]),l.useEffect(()=>{S!==void 0&&D.current&&(D.current.scrollTop=0)},[S]);const[T,I]=l.useState(!1);l.useEffect(()=>{const J=D.current;if(!J)return;const ue=()=>I(J.scrollHeight>J.clientHeight+1);if(ue(),typeof ResizeObserver>"u")return;const ne=new ResizeObserver(ue);ne.observe(J);const re=J.firstElementChild;return re&&ne.observe(re),()=>ne.disconnect()},[s,S]),l.useEffect(()=>{if(!_)return Hg()},[_]),l.useEffect(()=>{if(_)return;const J=document.activeElement,ue=j.current;return cc(ue,J),ue&&!ue.contains(document.activeElement)&&(ue.querySelector(Xa)??ue).focus(),()=>{const ne=document.activeElement;(!ne||ne===document.body||ue&&ue.contains(ne))&&dc(J)?.focus?.()}},[_]),sc(j,!_);const G=l.useRef(!0),K=uc(),H=l.useRef(null);l.useEffect(()=>(G.current=!0,()=>{G.current=!1,H.current&&(clearTimeout(H.current),H.current=null)}),[]);const V=l.useCallback(()=>{!G.current||!F.current||(F.current=!1,$(!1))},[]),q=l.useCallback((J,ue=!1)=>{if(ue&&!G.current||F.current)return;F.current=!0,$(!0);const ne=setTimeout(()=>{H.current===ne&&(H.current=null);let re;try{re=J?J():void 0}catch{V();return}re&&typeof re.then=="function"&&re.then(()=>{setTimeout(V,120)},V)},K?0:L9);ue&&(H.current=ne)},[V,K]),L=l.useCallback(()=>{x||f&&f()===!1||q(b,!0)},[q,b,x,f]),N=l.useRef(L);l.useEffect(()=>{N.current=L});const O=!_&&!!b;l.useEffect(()=>{if(O)return Ro(()=>N.current())},[O]);const P=O&&C,W=l.useRef(!1),R=J=>{W.current=J.target===J.currentTarget},Z=J=>{const ue=W.current;W.current=!1,ue&&J.target===J.currentTarget&&L()},ee=r.jsx("div",{className:`popup ${_?"popup--inline":""} ${k==="belowPagePopup"?"popup--below-page-popup":""} ${E?"popup--closing":""} ${v}`,onPointerDown:P?R:void 0,onClick:P?Z:void 0,onMouseDown:_?void 0:J=>{J.target===J.currentTarget&&J.preventDefault()},children:r.jsxs("div",{ref:j,className:`popup-panel${B?` popup-panel--${B}`:""}${A!=null?" popup-panel--has-height":""}${w?" popup-panel--fill-body":""}`,style:A!=null?{"--popup-height":typeof A=="number"?`${A}px`:A}:void 0,tabIndex:-1,role:_?void 0:"dialog","aria-modal":_?void 0:!0,"aria-labelledby":!_&&y&&a?z:void 0,"aria-label":!_&&!(y&&a)?g??(typeof a=="string"?a:void 0):void 0,children:[!y&&(n||b)?r.jsxs("div",{className:"popup-close-float",children:[n,b&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:x,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||b?r.jsxs("div",{className:`popup-header${o?" popup-header--with-subtitle":""}`,children:[r.jsxs("div",{className:"popup-header-main",children:[r.jsx("span",{id:z,className:"popup-title popup-title--left h2",children:a}),o&&r.jsx("span",{className:"popup-subtitle body-3",children:o})]}),i&&r.jsx("div",{className:"popup-header-segment",children:r.jsx(Ia,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(J=>({key:J.key,label:J.label,disabled:J.disabled})),value:i.value,onChange:i.onChange})}),r.jsxs("div",{className:"popup-header-actions",children:[n,b&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:x,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,r.jsx("div",{className:"popup-content",ref:D,tabIndex:T?0:void 0,children:r.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:q,closeWithAnimation:L}):s})}),u||p?r.jsxs("div",{className:`popup-footer popup-footer--bar${h?` ${h}`:""}`,children:[r.jsx("div",{className:"popup-footer__start",children:typeof u=="function"?u({animateThen:q,closeWithAnimation:L}):u}),r.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:q,closeWithAnimation:L}):p})]}):c?.length?r.jsx("div",{className:`popup-footer popup-footer--buttons${m!=="center"?` popup-footer--${m}`:""}`,children:c.map((J,ue)=>r.jsx(pe,{htmlType:"button",size:48,variant:J.variant??"default",label:J.label,disabled:J.disabled,onClick:()=>J.onClick?.({animateThen:q,closeWithAnimation:L})},ue))}):d?r.jsx("div",{className:`popup-footer${m!=="center"?` popup-footer--${m}`:""}${h?` ${h}`:""}`,children:typeof d=="function"?d({animateThen:q,closeWithAnimation:L}):d}):null]})});return _||typeof document>"u"?ee:ca.createPortal(ee,document.body)}function yn(e){return String(e)}const wn=["o","triangle","x"];function iu(e,t){return e===t?null:t}const su={o:"circle",triangle:"triangle",x:"x"},lu={o:"main",triangle:"warn",x:"danger"};function S0(e){let t=0,a=0,o=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&o++;const n=t+a+o;return{marked:n,o:t,triangle:a,x:o,rate:n===0?null:(t+a*.5)/n}}function Fi(e){const t={};for(const[a,o]of Object.entries(e))(o==="o"||o==="triangle"||o==="x")&&(t[a]=o);return t}function cu(e){const t=[];let a=0;for(const o of e)t.push(a),a+=o;return t}function E0(e,t){return!t&&e>0}var M9=`.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-block__content--page-number{padding-bottom:28px}.ihabdevteam-core-scope .word-table-block__content--page-number.word-table-block__content--cut-show{background-clip:content-box}.ihabdevteam-core-scope .word-table-block__content--page-number.word-table-block__content--outline:after{bottom:28px}.ihabdevteam-core-scope .word-table__page-number{bottom:4px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table-block__content--brand-top{padding-top:40px;padding-top:calc(var(--wt-band-top-height, 36px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom{padding-bottom:32px;padding-bottom:calc(var(--wt-band-bottom-height, 28px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom.word-table-block__content--cut-show,.ihabdevteam-core-scope .word-table-block__content--brand-top.word-table-block__content--cut-show{background-clip:content-box}.ihabdevteam-core-scope .word-table-block__content--brand-top.word-table-block__content--outline:after{top:40px;top:calc(var(--wt-band-top-height, 36px) + 4px)}.ihabdevteam-core-scope .word-table-block__content--brand-bottom.word-table-block__content--outline:after{bottom:32px;bottom:calc(var(--wt-band-bottom-height, 28px) + 4px)}.ihabdevteam-core-scope .word-table__band{color:var(--color-gray);display:flex;font-weight:400;font-weight:var(--text-caption-1-weight,400);gap:12px;justify-content:space-between;left:0;pointer-events:none;position:absolute;right:0;z-index:2}.ihabdevteam-core-scope .word-table__band--top{align-items:flex-end;align-items:var(--wt-band-top-align,flex-end);font-size:13px;font-size:var(--wt-band-top-size,13px);height:36px;height:var(--wt-band-top-height,36px);line-height:1.35;top:0}.ihabdevteam-core-scope .word-table__band--bottom .word-table__band-end,.ihabdevteam-core-scope .word-table__band--bottom .word-table__copyright{position:relative;top:1px;top:var(--wt-band-bottom-nudge,1px)}.ihabdevteam-core-scope .word-table__band--bottom{align-items:center;align-items:var(--wt-band-bottom-align,center);bottom:0;color:var(--color-gray);font-size:11px;font-size:var(--wt-band-bottom-size,11px);height:28px;height:var(--wt-band-bottom-height,28px);line-height:1.35}.ihabdevteam-core-scope .word-table__brand-logo{display:block;flex-shrink:0;height:34px;height:var(--wt-brand-logo-height,34px);print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-logo--ihab{aspect-ratio:264/100;background-color:currentColor;display:block;flex-shrink:0;height:24px;height:var(--wt-brand-ihab-height,24px);-webkit-mask-image:url(../logo/Logo_IHAB_en_white.svg);mask-image:url(../logo/Logo_IHAB_en_white.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-logo--given{aspect-ratio:auto;background-color:transparent;-webkit-mask-image:none;mask-image:none;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:auto}.ihabdevteam-core-scope .word-table__brand-by{align-items:center;display:flex;gap:14px;gap:var(--wt-brand-gap,14px);min-width:0}.ihabdevteam-core-scope .word-table__copyright{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__band-end{align-items:center;display:flex;gap:12px;min-width:0}.ihabdevteam-core-scope .word-table__ident{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table__owner{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__ident-dot{flex-shrink:0}.ihabdevteam-core-scope .word-table__code{flex-shrink:0;white-space:nowrap}.ihabdevteam-core-scope .word-table__link,.ihabdevteam-core-scope .word-table__paper-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .word-table__link{color:var(--color-gray)}.ihabdevteam-core-scope .word-table__page-count{flex-shrink:0;white-space:nowrap}.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--dragging{box-shadow:var(--shadow-dropdown);opacity:.6;touch-action:none;transform:scale(.97);transition:transform .12s,opacity .12s;z-index:3}.ihabdevteam-core-scope .word-table-block__card-handle{cursor:grab;left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-handle:focus-visible,.ihabdevteam-core-scope .word-table-block__card-handle:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-handle,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-handle{opacity:1}.ihabdevteam-core-scope .word-table-block__card-actions,.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-actions{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .word-table-block__card-actions .word-table-block__card-close{opacity:1;position:static;right:auto;top:auto}.ihabdevteam-core-scope .word-table-block__card-actions:focus-within,.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-actions,.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-actions,.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--with-image .word-table-cell__inner{padding-bottom:48px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);font-weight:var(--wt-cell-word-weight,var(--text-h0-weight));text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);font-weight:var(--wt-cell-sub-weight,var(--text-h3-weight));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}@media (hover:none){.ihabdevteam-core-scope .word-table-block__card-actions,.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card-handle,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button{opacity:1}}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .word-table-block__card,.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card-handle{transition:none}.ihabdevteam-core-scope .word-table-block__card--dragging{transform:none;transition:none}}.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}
864
864
 
865
865
  /* !important \uD544\uC694: WordTable.tsx\uAC00 \uD654\uBA74 \uD45C\uC2DC\uC6A9 scale/marginLeft\uB97C \uC778\uB77C\uC778 style\uB85C
866
866
  \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
@@ -1059,7 +1059,7 @@ ${_.badge}`:_.badge:void 0;if(k&&d(_.code))return null;if(!_.badge&&!p)return h(
1059
1059
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1060
1060
  `).map((s,c,d)=>r.jsxs(l.Fragment,{children:[s,c<d.length-1&&r.jsx("br",{})]},c))})}),r.jsxs("div",{className:"site-footer__links",children:[r.jsxs("div",{className:"site-footer__column",children:[r.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),r.jsx("li",{children:r.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),r.jsx("li",{children:r.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")})}),r.jsx("li",{children:r.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")})}),r.jsx("li",{children:r.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")})})]})]}),r.jsxs("div",{className:"site-footer__column",children:[r.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),r.jsxs("ul",{children:[r.jsx("li",{children:r.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")})}),r.jsx("li",{children:r.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),r.jsx("li",{children:r.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"})})]})]}),r.jsxs("div",{className:"site-footer__column",children:[r.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),r.jsx("li",{children:r.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")})})]})]})]})]}),r.jsx("hr",{className:"site-footer__rule"}),r.jsxs("div",{className:"site-footer__bottom",children:[r.jsx("div",{className:"site-footer__brand",children:r.jsx("img",{src:jd,alt:"IHAB",className:"site-footer__logo"})}),r.jsxs("div",{className:"site-footer__meta",children:[r.jsxs("div",{children:[r.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),r.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),r.jsxs("div",{children:[r.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),r.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")})]}),r.jsxs("div",{children:[r.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),r.jsxs("span",{className:"footer-meta caption-1",children:[o," \xA0 ",n]})]})]})]}),r.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var uB='.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}}';oe(uB);function Sf({logo:e,logoAlt:t="",logoHref:a,links:o=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d}){const{t:u}=ve.useTranslation(),p=d??{open:u("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:u("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[h,m]=l.useState(!1),b=l.useId(),x=l.useRef(null);l.useEffect(()=>{if(!h)return;const v=Ro(()=>{const _=document.getElementById(b);_&&_.contains(document.activeElement)&&x.current?.focus(),m(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,y=_=>{_.matches&&m(!1)};return g&&(g.matches&&m(!1),g.addEventListener?.("change",y)),()=>{v(),g?.removeEventListener?.("change",y)}},[h,b]);const f=s?`${s} landing-header__inner`:"landing-header__inner",C=(v,g)=>c?c(v,{onClick:g}):r.jsx("a",{href:v.href,onClick:g,"aria-current":v.current?"page":void 0,children:v.label});return r.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[r.jsxs("div",{className:f,children:[e!=null&&(()=>{const v=typeof e=="string"?r.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?r.jsx("a",{href:a,className:"landing-header__brand",children:v}):r.jsx("div",{className:"landing-header__brand",children:v})})(),o.length>0&&r.jsx("nav",{className:"landing-header__links",children:o.map((v,g)=>r.jsx("span",{children:C(v)},`${g}:${v.href}`))}),r.jsxs("div",{className:"landing-header__actions",children:[n,o.length>0&&r.jsx("button",{ref:x,type:"button",onClick:()=>m(v=>!v),"aria-expanded":h,"aria-controls":b,"aria-label":h?p.close:p.open,className:h?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:r.jsxs("span",{className:"landing-header__burger",children:[r.jsx("span",{}),r.jsx("span",{}),r.jsx("span",{})]})})]})]}),o.length>0&&r.jsx("nav",{id:b,hidden:!h,className:"landing-header__drawer",children:r.jsx("div",{className:s??void 0,children:o.map((v,g)=>r.jsx("span",{className:"landing-header__drawer-item",children:C(v,()=>m(!1))},`${g}:${v.href}`))})})]})}var pB=".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}}";oe(pB);function Ef({children:e,action:t,onClick:a,className:o}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return r.jsx("div",{className:o?`bottom-sticky ${o}`:"bottom-sticky",children:r.jsxs("div",{className:n,onClick:a,...y0(a),children:[r.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const Go=9,Nf=e=>Math.round(Math.min(Go,Math.max(0,e))/Go*100),Df=e=>e/100*Go,wr=2,vu=.1,hB=e=>Math.min(wr,Math.max(0,e)),mB=.1,bB=e=>Math.round(e*1e6)/1e6;function kr(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return hB(t);const a=Math.min(Go,Math.max(0,Number(e.level)||0))/Go,o=Number(e.mainVolume);return o>0?a>0?bB(Math.min(wr,Math.max(mB,a/o))):0:1}const Tf=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function xu(e){return Tf(e)}function qi(e){return Tf(e)*kr(e)}function Yi(e,t=jn()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,qi(e)/a)}function Br(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=kr({level:a.level,mainVolume:a.mainVolume})),a}const Ar={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ki=l.createContext(null);function kn(){return l.useContext(Ki)}const Cu=e=>`${Ss()}/${e}`,jf=e=>Array.from({length:10},(t,a)=>Cu(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Zi={get defaultNoise(){return Cu("noise1.mp3")},get street(){return jf("noise2")},get restaurant(){return jf("noise3")},get buzz(){return Cu("noise4.mp3")}};function gB(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Zi.defaultNoise;case"street":return Zi.street[t];case"restaurant":return Zi.restaurant[t];case"buzz":return Zi.buzz;default:return null}}function fB({noisePlayer:e,audioRef:t,playbackStateRef:a}){const o=l.useRef(e?.registerAnalyser);o.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),p=l.useRef(null),h=l.useRef(0),m=l.useRef(null),b=l.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),x=l.useCallback((y,_=250)=>{const B=n.current;if(!B)return;const k=d.current;if(k){d.current=null;try{B.pause()}catch{}B.src=k,B.load()}if(!B.src)return;h.current+=1,b();try{Ir(),Zo(B).then(E=>{if(n.current===B)try{o.current?.("noise",E)}catch{}})}catch{}const A=B.paused?0:Xo(B);B.paused&&Ta(B,0),B.play().catch(()=>{});const w=performance.now(),S=()=>{const E=Math.min(1,(performance.now()-w)/_);try{Ta(B,A+(y-A)*E)}catch{}E<1?p.current=requestAnimationFrame(S):p.current=null};p.current=requestAnimationFrame(S)},[b]),f=l.useCallback((y=250,_)=>{const B=n.current;if(!B||B.paused){_?.();return}const k=++h.current;b();const A=performance.now(),w=Xo(B),S=()=>{const E=Math.min(1,(performance.now()-A)/y);try{Ta(B,w*(1-E))}catch{}if(E<1)p.current=requestAnimationFrame(S);else{p.current=null,m.current!==null&&(clearTimeout(m.current),m.current=null);try{B.pause()}catch{}_?.()}};p.current=requestAnimationFrame(S),m.current=setTimeout(()=>{if(m.current=null,h.current===k){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{B.paused||(Ta(B,0),B.pause(),_?.())}catch{}}},y+150)},[b]);l.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",n.current=y,()=>{b();try{y.pause(),y.src=""}catch{}n.current=null,c.current=null,d.current=null}},[b]);const C=e?Yi(e.settings):0,v=!!e?.settings.enabled&&C>0;l.useEffect(()=>{if(!v)return;let y=0;const _=setInterval(()=>{const B=n.current;if(!B||B.paused){y=0;return}const k=t.current;if(k&&!k.paused&&!k.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,f())},400);return()=>clearInterval(_)},[f,v,t,a]),l.useEffect(()=>{const y=()=>{const _=n.current;if(document.hidden){if(_&&!_.paused){b();try{_.pause()}catch{}}return}if(!_||!_.paused)return;const B=t.current,k=!!B&&!B.paused&&!B.ended||a.current==="playing",A=u.current;k&&A?.enabled&&A.volume>0&&x(A.volume)};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[b,x,t,a]),l.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:C,type:e.settings.type}:null},[e,e?.settings.enabled,C,e?.settings.type]);const g=l.useRef(null);return l.useEffect(()=>()=>{g.current?.(),g.current=null},[]),l.useEffect(()=>{const y=e?.settings,_=n.current;if(!_)return;const B=y?Yi(y):0;if(!y||!y.enabled||B===0){f();return}if(c.current!==y.type){const k=gB(y.type);k&&(c.current=y.type,s(k),d.current=k,f(150,()=>{if(d.current!==k)return;d.current=null,_.src=k,_.load();const A=t.current;if(A&&!A.paused){g.current?.();const w=()=>{_.removeEventListener("canplay",w),g.current===S&&(g.current=null);const E=t.current,$=u.current;E&&!E.paused&&!E.ended&&$?.enabled&&$.volume>0&&x($.volume)},S=()=>_.removeEventListener("canplay",w);g.current=S,_.addEventListener("canplay",w)}}))}else{const k=t.current,A=!!k&&!k.paused&&!k.ended||a.current==="playing";if(A&&d.current)x(B);else if(A&&_.paused&&_.src)x(B);else if(!_.paused)if(!A)f();else{b();const w=Xo(_),S=performance.now(),E=()=>{const $=Math.min(1,(performance.now()-S)/150);try{Ta(_,w+(B-w)*$)}catch{}$<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)}}},[e?.settings,e?.settings.enabled,C,e?.settings.type,b,x,f,t,a,u]),l.useEffect(()=>{const y=n.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:b,fadeInNoise:x,fadeOutNoise:f}}function vB({ttsText:e,playbackRate:t,mainVolume:a,fillRef:o,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:p,onDoneRef:h,handleEndRef:m}){const b=l.useRef(null),x=l.useRef(0),f=l.useRef(null),C=l.useRef(0),v=l.useRef(!1);l.useEffect(()=>()=>{C.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),v.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}v.current=!1}}catch{}},[]);const g=(B,k=1)=>{try{const A=(B||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(B||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,k)))}catch{return 1200}},y=l.useCallback(B=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!1)}catch{}return}const k=window.speechSynthesis,A=++C.current;try{try{k.cancel()}catch{}const w=B??e,S=Array.isArray(w)?w.filter(D=>!!D):[w||""];S.length===0&&S.push("");const E=Math.max(.3,Math.min(3,t));x.current=S.reduce((D,T)=>D+g(T,E||1),0),b.current=performance.now(),i(0),s("playing"),c("playMode");const $=p.current;$?.enabled&&($?.volume??0)>0&&d($.volume);const F=()=>{try{const D=b.current||performance.now(),T=performance.now()-D,I=x.current||1200,G=Math.min(1,T/I);try{o.current&&(o.current.style.left=`${G*100}%`),n.current&&n.current.style.setProperty("--progress",String(G))}catch{}G<1&&(f.current=requestAnimationFrame(F))}catch{}},j=()=>{if(A===C.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),s("stopped");try{m.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},z=D=>{const T=new SpeechSynthesisUtterance(S[D]);try{T.rate=E}catch{}try{T.volume=Math.max(0,Math.min(1,a))}catch{}T.onend=()=>{if(A===C.current){if(D<S.length-1){try{z(D+1)}catch{j()}return}j()}},T.onerror=()=>{j()},T.onstart=()=>{if(!(D>0))try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(F)}catch{}},v.current=!0,k.speak(T)};try{z(0)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,t,a,d,o,n,i,s,c,p,h,m]),_=l.useCallback(()=>{C.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),u(),b.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:y,stopTTS:_}}var xB='.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%;height:var(--wave-h,90%);position:absolute;transition:height .35s cubic-bezier(.22,.9,.3,1)}.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) backwards;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%;height:var(--wave-h1,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;transition:transform .35s cubic-bezier(.22,.9,.3,1);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%;height:var(--wave-h1,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;transition:transform .35s cubic-bezier(.22,.9,.3,1);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%;height:var(--wave-h1,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;transition:transform .35s cubic-bezier(.22,.9,.3,1);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) backwards;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%}.ihabdevteam-core-scope .audio-player__buttons .button--variant-transparent-white[aria-pressed=true]:not(:hover):not(:focus-visible){background:transparent;color:#fbfdff}';oe(xB);async function CB(e,t,a){let o=null;try{const n=window.AudioContext||window.webkitAudioContext;o=new n;const i=await o.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;return new Array(t).fill(0).map((p,h)=>{const m=h*u,b=Math.min(m+u,d);let x=0;for(let f=m;f<b;f++){const C=Math.abs(s[f]);C>x&&(x=C)}return x})}catch{return null}finally{try{o?.close?.()}catch{}}}async function Lf(e,t,a){try{const o=await fetch(e);if(o.ok===!1)return null;const n=await o.arrayBuffer();return await CB(n,t,a)}catch(o){try{const n=Jr(o)}catch{}return null}}const _u=45,Mf=74,$f=2;function Sr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function Xi(e){return Sr(e)/45}const Rf=4;function _B(e){const{src:t,segments:a,progress:o=0,waveProgressRef:n,noiseSrc:i,noiseRatio:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:p,showSoundWaveForm:h=!0}=e,m=l.useRef(null),b=l.useRef(null),[x,f]=l.useState(null),[C,v]=l.useState(!1),[g,y]=l.useState(null),[_,B]=l.useState(2),[k,A]=l.useState(0),[w,S]=l.useState(null),[E,$]=l.useState(!1),[F,j]=l.useState(!1),z=3,D=3,T=1,I=300,G=l.useRef(0),K=l.useCallback(()=>{const se=m.current,U=b&&b.current?b.current:se?se.closest(".audio-player__wave"):null,le=U?U.getBoundingClientRect():se?se.getBoundingClientRect():null,me=le?le.width:0,_e=le?Math.max(100,le.width):320,xe=le?le.height:0,ce=Math.max(T,Math.min(I,Math.floor((_e+D)/(z+D)))),Ce=ce*z,Ae=Math.max(0,ce-1),X=Math.max(0,Ae>0?(_e-Ce)/Ae:D);return{bars:ce,gap:X,height:xe,width:me}},[]),H=l.useRef(void 0),V=l.useRef(null),q=l.useCallback(async(se,U,{quiet:le=!1}={})=>{const me=++G.current,_e=()=>G.current===me;try{if(le||v(!1),H.current=se,!se){_e()&&f(null);return}let xe=U;if(!xe)try{for(let Ae=0;Ae<4&&!(m.current||b.current);Ae++)await new Promise(X=>requestAnimationFrame(X));await new Promise(Ae=>requestAnimationFrame(Ae));const Ce=K();Ce.height>0&&A(Ce.height),xe=Ce.bars,B(Ce.gap)}catch{xe=120}V.current=xe;const ce=await Lf(se,xe);if(!_e())return;if(!ce){f(null),v(!1);return}f(ce),y(xe),v(!0)}catch{if(!_e())return;f(null),v(!1)}},[v,f,A,B,y,K]);l.useEffect(()=>{const se=b.current;if(!se||typeof ResizeObserver>"u")return;let U=null;const le=new ResizeObserver(()=>{U!==null&&cancelAnimationFrame(U),U=requestAnimationFrame(()=>{U=null;try{const me=K();if(me.width<=0||(me.height>0&&A(me.height),V.current===null||me.bars===V.current))return;const _e=H.current;B(me.gap),_e?q(_e,me.bars,{quiet:!0}).catch(()=>{}):V.current=me.bars}catch{}})});return le.observe(se),()=>{le.disconnect(),U!==null&&cancelAnimationFrame(U)}},[K,q]),l.useEffect(()=>{const se=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;q(typeof se=="string"?se:void 0).catch(()=>{}),j(!1)},[t,a,q]),l.useEffect(()=>{let se=!1;if($(!1),!i||!g){S(null);return}const U=d>0?d*(c||1):void 0;return Lf(i,g,U).then(le=>{se||(S(le),le||$(!0))}).catch(()=>{se||(S(null),$(!0))}),()=>{se=!0}},[i,g,d,c]);const L=Math.max(0,Math.min(1,u)),N=l.useMemo(()=>x&&x.length&&Math.max(...x)||1,[x]),O=g||40,P=l.useMemo(()=>Array.from({length:O}).map((se,U)=>{const le=x&&x[U]!=null?x[U]:null,me=le==null?null:Math.min(1,le/N*L),_e=me!=null&&k>0&&Sr(me)<=Rf,xe=me==null?.15:_e?0:Xi(me),ce=O>1?U/(O-1):0;return r.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":xe,"--i":U,"--mix":ce}},U)}),[O,x,N,L,k]),W={"--progress":String(Math.max(0,Math.min(1,o)))},R=i?Math.max(1,s):1,Z={"--bar-gap":`${_}px`,"--wave-h":`${Sr(R)}px`,"--wave-h1":`${_u}px`},ee=L*Math.max(0,s)/jn(),J=C&&(i?!!w||E:!0);l.useEffect(()=>{J&&j(!0)},[J]);const ue=F?C:J;l.useEffect(()=>{p?.(ue)},[ue,p]);const ne=g||40,re=l.useMemo(()=>Array.from({length:ne}).map((se,U)=>{const le=w&&w[U]!=null?w[U]:null,me=le==null?0:le/N*ee,_e=k>0&&Sr(me)<=Rf,xe=_e?0:Xi(me),ce=ne>1?U/(ne-1):0;return r.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":xe,"--i":U,"--mix":ce}},U)}),[ne,w,N,ee,k]);return r.jsxs("div",{className:"audio-player__wave",ref:b,style:Z,children:[i&&r.jsx("div",{className:`audio-player__wave-noise ${J?"is-ready":""}`,"aria-hidden":"true",children:re}),h&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ue?"is-ready":""}`,ref:m,children:P}),r.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ue?"is-ready":""}`,ref:n,style:W,children:P})]})]})}const yB={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 yu(e,t){return new Promise((a,o)=>{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?o(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 wB=2e3;function Pf(e,t=wB){return new Promise(a=>{let o=!1;const n=()=>{o||(o=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function kB({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const o=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(o.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const p of u)p(!0)},[]),s=l.useCallback(()=>{o.current=!1},[]),c=l.useCallback(()=>!e&&!t||o.current?Promise.resolve(!0):new Promise(d=>{const u=h=>{clearTimeout(p),n.current=n.current.filter(m=>m!==u),d(h)},p=setTimeout(()=>u(!0),a);n.current.push(u)}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function BB(){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})},[]),o=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:o}}function AB({offsetY:e=8}={}){const t=l.useRef(null),[a,o]=l.useState(null),n=l.useCallback(()=>o(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;o({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 SB({currentTime:e,sources:t,index:a,audioDuration:o}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||o||0:o||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function EB(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function NB({ended:e,completedByEnd:t}){return!!e||!!t}function DB(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function TB(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function jB(e,t,a){const o=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of o)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 LB(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const o=a.end(a.length-1);if(Number.isFinite(o)&&o>0)return o}}catch{}return null}function MB({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:o,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 p=e.current,h=Array.isArray(o.current)?o.current[n.current||0]:void 0,m=h&&Number.isFinite(h.duration)&&(h.duration??0)>0?0:LB(p),b=t.current;if(m===null)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const x=SB({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:o.current,index:n.current,audioDuration:m});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${x*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(x))}catch{}}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,o,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.visibility="",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 Bn({btnLabel:e,soundSrc:t,bucketPath:a,onDone:o,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=ve.useTranslation(),p=e,h=kn(),m=l.useRef(h?.registerAnalyser);l.useEffect(()=>{m.current=h?.registerAnalyser});const b=l.useRef(null),x=l.useRef(null),f=l.useRef(null),C=BB(),v=l.useRef(null),g=l.useRef(!1),y=l.useRef(0),_=l.useRef(null),{ref:B,rect:k,show:A,hide:w}=AB();l.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[S,E]=l.useState(!1),[$,F]=l.useState("idle"),[j,z]=l.useState("stopped"),D=l.useRef("stopped");l.useEffect(()=>{D.current=j},[j]);const[T,I]=l.useState(0),[G,K]=l.useState("active"),H=l.useRef(!1);l.useEffect(()=>{if(G!=="playMode"||!H.current)return;H.current=!1;const Y=typeof document<"u"?document.activeElement:null;if(Y&&Y!==document.body)return;const de=f.current?.querySelectorAll("button")[1];try{de?.focus()}catch{}},[G]);const[V,q]=l.useState(null),[L,N]=l.useState(null),[O,P]=l.useState(0),[W,R]=l.useState(!1),[Z,ee]=l.useState(0),J=h?.playbackRate??1,ue=h?.mainVolume??1,ne=h?qi(h.settings):0,re=h?xu(h.settings):ue,[se,U]=l.useState("idle"),[le,me]=l.useState(""),[_e]=l.useState("top"),xe=l.useRef(null),ce=l.useRef(0),Ce=l.useRef(null),{start:Ae,stop:X,settleTo:ye}=MB({audioRef:b,fillRef:x,waveProgressRef:Ce,sourcesRef:xe,currentIndexRef:ce}),{onReadyChange:be,waitForReady:ae,markNotReady:ge}=kB({showSoundWaveForm:c,showNoiseWaveForm:d}),Re=l.useRef(null),Pe=l.useRef(n),ke=l.useRef(o),De=l.useRef(null),Fe=l.useRef(!1),[Te,tt]=l.useState(!1),Ue=l.useCallback(Y=>{Fe.current=Y,tt(Y)},[]),Qe=l.useRef(null),{activeNoiseUrl:je,noiseSettingsRef:$e,fadeInNoise:Ne,fadeOutNoise:Oe}=fB({noisePlayer:h,audioRef:b,playbackStateRef:D}),{startTTS:Ye,stopTTS:_t}=vB({ttsText:i,playbackRate:J,mainVolume:re,fillRef:x,waveProgressRef:Ce,setProgress:I,setPlaybackState:z,setStateLocal:K,fadeInNoise:Ne,fadeOutNoise:Oe,noiseSettingsRef:$e,onDoneRef:ke,handleEndRef:Qe});l.useEffect(()=>{bt.current=_t});const jt=Y=>{if(typeof window>"u"||!window.speechSynthesis){try{me(u("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Ye(Y);return}Mt("tts"),Ye(Y)},Pt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Lt=(!Pt||Pt.length===0)&&!!i,st=Array.isArray(V)&&V.length>0?V:Array.isArray(L)&&L.length>0?L:null,Je=Math.max(Array.isArray(st)?st.length:0,Pt.length),it=l.useRef(!0);l.useEffect(()=>(it.current=!0,()=>{it.current=!1}),[]);const ct=l.useRef(0),Ke=()=>{ct.current+=1,y.current+=1},bt=l.useRef(null),Ze=l.useRef(null),yt=l.useRef(null),Ft=l.useRef(null);Ft.current||(Ft.current=()=>{yt.current=null;const Y=b.current;if(Ze.current==="audio"&&Y&&!Y.paused){ct.current+=1,y.current+=1;try{Y.pause()}catch{}it.current&&z("paused")}else if(Ze.current==="tts")try{bt.current?.()}catch{}});const Mt=Y=>{Ze.current=Y,yt.current=Ei(Ft.current)},ft=()=>{yt.current?.(),yt.current=null};l.useEffect(()=>()=>{Ft.current&&Ni(Ft.current)},[]);const dt=l.useCallback(async(Y,de=3,he=50)=>{const Be=ct.current;for(let Se=0;Se<de;Se++){if(!it.current||Be!==ct.current)return!1;try{return Mt("audio"),await Y.play(),!0}catch(ze){if((ze instanceof Error||typeof ze=="object"&&ze&&"name"in ze?ze.name:void 0)==="AbortError"){if(Be!==ct.current)return!1;await new Promise(rt=>setTimeout(rt,he));continue}try{me(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{me(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),Ve=l.useCallback(()=>{const Y=b.current;if(!Y)return;const de=()=>{z("playing"),K("playMode"),R(!0),Ae();try{Ir(),Zo(Y).then(ze=>{if(it.current)try{m.current?.("main",ze)}catch{}})}catch{}const Se=$e.current;Se?.enabled&&(Se?.volume??0)>0&&Ne(Se.volume)},he=()=>{NB({ended:!!Y?.ended,completedByEnd:Fe.current})||(z("paused"),X(),Oe())},Be=()=>{try{const Se=xe.current,ze=EB(Se,ce.current);if(ze!==null){ce.current=ze,P(ze),R(!0);const rt=Se?.[ze]&&Se[ze].src;if(rt&&Y){Y.src=rt,Y.load(),dt(Y).catch(()=>{});return}}}catch{}z("stopped"),I(1);try{if(Y)try{Y.currentTime=0}catch{}}catch{}X(),R(!1),Oe();try{!Pe.current&&Qe.current&&Qe.current()}catch{}};return Y.addEventListener("play",de),Y.addEventListener("pause",he),Y.addEventListener("ended",Be),()=>{try{Y.removeEventListener("play",de),Y.removeEventListener("pause",he),Y.removeEventListener("ended",Be),X()}catch{}}},[Ne,Oe,dt,$e,Ae,X]);l.useEffect(()=>Ve(),[Ve]),l.useEffect(()=>{Pe.current=n},[n]),l.useEffect(()=>{ke.current=o},[o]),l.useEffect(()=>{if(n||G!=="active")return;const Y=_.current;if(!Y)return;let de=null;const he=requestAnimationFrame(()=>{try{const Be=Y.getTotalLength();if(!Be)return;const Se=Be*.2;Y.style.strokeDasharray=`${Be-Se} ${Se}`;const ze="triFlow_"+Math.random().toString(36).slice(2);de=document.createElement("style"),de.textContent=`@keyframes ${ze}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Be}}}`,document.head.appendChild(de),Y.style.animation=`${ze} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(he),de?.remove()}},[G,n]),l.useEffect(()=>{xe.current=V},[V]),l.useEffect(()=>{ce.current=O},[O]),l.useEffect(()=>{const Y=f.current,de=v.current;if(!Y||!de)return;let he=null;const Be=32,Se=60,ze=()=>{try{const wt=Array.from(Y.querySelectorAll(":scope > .button"));let ut=0;wt.forEach(Me=>{if(Me===de)return;const Ge=Me.getBoundingClientRect();ut+=Ge.width});const At=Y.getBoundingClientRect().width,Kt=Math.max(0,Math.floor(At-ut-8)),Wt=Je;if(!Wt||Kt<=0){Array.from(de.children).forEach(Me=>{try{Me.style.width=""}catch{}});return}let va=Math.floor(Kt/Wt);va>Se&&(va=Se),va<Be&&(va=Math.max(Be,Math.floor(Kt/Wt))),Array.from(de.querySelectorAll(".button")).forEach(Me=>{try{Me.style.width=`${va}px`}catch{}})}catch{}},rt=requestAnimationFrame(ze);try{he=new ResizeObserver(()=>{requestAnimationFrame(ze)}),he.observe(Y),he.observe(de),window.addEventListener("resize",ze)}catch{}return()=>{try{cancelAnimationFrame(rt)}catch{}try{he&&(he.disconnect(),he=null)}catch{}try{window.removeEventListener("resize",ze)}catch{}}},[V,L,Je]),l.useEffect(()=>()=>{try{Re.current&&(clearTimeout(Re.current),Re.current=null),De.current&&(clearTimeout(De.current),De.current=null)}catch{}},[]);const ot=(Y,de)=>{q(Y),ee(de),ge(),N(DB(Y)),xe.current=Y},vt=async(Y,de)=>{Ue(!1),g.current=!1,Y.src=de,Y.load(),await Pf(Y),await ae()!==!1&&(E(!1),await dt(Y),K("playMode"),P(0),R(!0))},Xt=async(Y,de=!1)=>{const he=b.current;E(!0),F("measuring_duration");try{const Be=await yu(Y,{timeoutMs:1e4,rejectOnError:!0});ot([{src:Y,objectUrl:null,duration:Be}],Be),F("ready"),de&&he&&await vt(he,Y)}finally{g.current=!1,E(!1)}},at=async(Y,de=!1)=>{const he=b.current;E(!0),F("measuring_duration");try{const Be=await Promise.all(Y.map(ze=>yu(ze,{timeoutMs:1e4})));if(!it.current)return;const Se=Y.map((ze,rt)=>({src:ze,objectUrl:null,duration:Be[rt]||0}));ot(Se,TB(Se)),F("ready"),de&&he&&Se.length>0&&await vt(he,Se[0].src)}finally{g.current=!1,E(!1)}},Ht=async(Y=!1,de=!0)=>{const he=b.current,Be=t?Array.isArray(t)?t:[t]:[];if(!Be||Be.length===0||!Be.some(Boolean))return!1;if(g.current)return null;g.current=!0,de&&E(!0),F("resolving");try{const Se=jB(t,a,Dn),ze=[];let rt=0;for(const wt of Se){let ut=wt.src??null,At=null;if(!ut&&wt.resolvedPath){try{F("getting_signed_url"),ut=await Rr(wt.resolvedPath)}catch{ut=null}if(!it.current)return!1;if(!ut)try{F("downloading");const Wt=await Tn(wt.resolvedPath);if(!it.current)return!1;if(Wt){const va=Wt instanceof Blob?Wt:new Blob([Wt]);At=C.track(URL.createObjectURL(va)),ut=At}}catch{F("error");try{me(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),K("active")}catch{}}}if(!ut)continue;let Kt=0;try{F("measuring_duration"),Kt=await yu(ut,{timeoutMs:3e3})}catch{Kt=0}if(!it.current){if(At)try{URL.revokeObjectURL(At)}catch{}for(const Wt of ze)if(Wt.objectUrl)try{URL.revokeObjectURL(Wt.objectUrl)}catch{}return!1}rt+=Kt||0,ze.push({...wt,src:ut,objectUrl:At,duration:Kt})}if(ot(ze,rt),ze.length>0&&Y&&he){const wt=ze[0];Ue(!1);try{C.keepOnly(ze.map(ut=>ut.objectUrl))}catch{}if(F("ready"),g.current=!1,wt.src&&he)try{if(he.src=wt.src,he.load(),await Pf(he),await ae()===!1)return!1;de&&E(!1),he&&await dt(he)}catch{de&&E(!1)}else de&&E(!1);K("playMode"),P(0),R(!0)}return ze.length>0}finally{g.current=!1,de&&E(!1),F(Se=>Se==="ready"?"ready":"idle")}},sa=async()=>{const Y=b.current;if(!(!Y&&!Lt)){if(Lt){const de=window.speechSynthesis;if(G==="active"){const he=Pr(),Be=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(he&&Be.length>0){K("load"),E(!0),F("resolving"),g.current=!0;try{const Se=await Promise.all(Be.map(ze=>Promise.resolve(he(ze))));Se.length>1?await at(Se,!0):await Xt(Se[0],!0)}catch{g.current=!1,E(!1),K("active"),jt(Be.length>0?Be:void 0)}return}jt(Be.length>0?Be:void 0);return}if(G==="playMode"){const he=!!de&&(de.speaking||de.paused)&&!(Y&&(Y.currentSrc||Y.getAttribute("src")));if(Y&&!he){if(Y.paused){if(Fe.current){await Vt();return}await dt(Y),z("playing")}else Ke(),Y.pause(),z("paused");return}try{if(de&&de.paused)try{Mt("tts"),de.resume(),z("playing")}catch{}else try{de.pause(),z("paused")}catch{}}catch{}}return}if(G==="active"){if(n&&Array.isArray(xe.current)&&xe.current.length>0){const he=xe.current[0];try{if(he.src&&Y)try{Y.src=he.src,Y.load(),Y&&await dt(Y)}catch{}K("playMode"),P(0),R(!0);return}catch{}}K("load");let de;try{de=await Ht(!0)}catch{de=!1}if(de===!1&&it.current){try{me(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}K("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{if(Y&&Y.paused){if(Fe.current){await Vt();return}Y&&await dt(Y),z("playing")}else Y&&(Ke(),Y.pause(),z("paused"))}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},Vt=async()=>{const Y=b.current;if(Y)try{const de=xe.current;if(Array.isArray(de)&&de.length>1){await oo(0);return}Ue(!1);try{Y.currentTime=0}catch{}Y&&await dt(Y),z("playing"),K("playMode")}catch{}},Sa=()=>{if(Ke(),ft(),Lt){_t();return}const Y=b.current;try{if(Y){try{Y.pause()}catch{}try{Y.currentTime=0}catch{}}}catch{}Oe(),z("stopped"),K("active"),I(0),R(!1)},Ea=async(Y,{sameSegment:de=!1}={})=>{const he=++y.current,Be=b.current,Se=xe.current?.[Y]?.src;try{if(Ue(!1),P(Y),R(!0),ce.current=Y,!Se||!Be||(de||ge(),Be.src=Se,Be.load(),!de&&await ae()===!1)||he!==y.current||(await dt(Be),he!==y.current))return;z("playing"),K("playMode")}catch{}},Na=async()=>{const Y=xe.current,de=ce.current||0;if(!Y||de<=0){await Vt();return}await Ea(de-1)},yo=async()=>{const Y=xe.current,de=ce.current||0;if(!Y||de>=Y.length-1){Sa();return}await Ea(de+1)},Da=()=>{if(Fe.current)return;const Y=200,de=340;Ue(!0),Ke(),ft();try{I(1)}catch{}ye(1);try{U("hold")}catch{}try{const he=b.current,Be=Lt&&!!he?.src;if(!Lt||Be){if(he){he.pause();try{he.currentTime=0}catch{}}}else _t();Oe()}catch{}try{z("stopped")}catch{}if(R(!1),!Pe.current)try{De.current&&(clearTimeout(De.current),De.current=null),De.current=setTimeout(()=>{try{U("out")}catch{}De.current=setTimeout(()=>{try{typeof ke.current=="function"&&ke.current(!0)}catch{}try{U("idle")}catch{}De.current=null},de)},Y)}catch{}};l.useEffect(()=>{Qe.current=Da});const wo=l.useCallback(()=>me(""),[]),oo=async Y=>{(xe.current||[])[Y]&&await Ea(Y,{sameSegment:Y===ce.current})},$t=j==="playing",Ha=l.useMemo(()=>{if(!L||L.length<=1)return L;const Y=L[O];return Y?[Y]:L},[L,O]),Jt=n===!0;l.useEffect(()=>{try{const Y=b.current;Y&&typeof Y.playbackRate=="number"&&(Y.playbackRate=J||1)}catch{}},[J]);const la=l.useRef({raf:null,timer:null});l.useEffect(()=>{const Y=b.current;if(!Y)return;const de=Math.max(0,Math.min(1,re)),he=la.current,Be=()=>{he.raf!==null&&(cancelAnimationFrame(he.raf),he.raf=null),he.timer!==null&&(clearTimeout(he.timer),he.timer=null)};Be();const Se=Xo(Y);if(Y.paused||Math.abs(Se-de)<.001||typeof requestAnimationFrame!="function"){try{Ta(Y,de)}catch{}return}const ze=performance.now(),rt=()=>{const wt=Math.min(1,(performance.now()-ze)/150);try{Ta(Y,Se+(de-Se)*wt)}catch{}he.raf=wt<1?requestAnimationFrame(rt):null};return he.raf=requestAnimationFrame(rt),he.timer=setTimeout(()=>{Be();try{Ta(Y,de)}catch{}},200),Be},[re]);const Va=se==="hold",ha=se==="out",Wa=G==="playMode"&&!S&&!Te||Va||ha,ko=j!=="stopped"||Va||ha,Ga=j==="paused",ie=Math.max(0,Math.min(100,(T||0)*100)),we=Le("audio-player__fill",Wa?"is-visible":"",ko?"is-expanded":"",Ga?"is-paused":"",ha?"is-out":"");return r.jsxs("div",{className:`audio-player ${Jt?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[r.jsxs("div",{className:`audio-player__panel ${$t?"is-playing":""} ${S?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[S?r.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[r.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),r.jsx("span",{className:"audio-player__loading-text",children:u(`training.audioStatus.${$}`,{defaultValue:yB[$]})})]}):null,G==="active"?r.jsx("button",{className:"audio-player__button",type:"button",disabled:Jt,onClick:()=>{H.current=zi(),w(),sa()},"aria-label":typeof p=="string"?p:u("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:w,onFocus:A,onBlur:w,children:r.jsx("span",{ref:B,className:"audio-player__button-triangle-wrap",children:r.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:r.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,k&&r.jsx(ka,{anchorRect:k,text:typeof p=="string"&&p?p:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),r.jsxs("div",{className:`audio-player__play ${G==="playMode"||$t?"is-visible":""}`,inert:!(G==="playMode"||$t)||void 0,children:[r.jsxs("div",{ref:f,className:"audio-player__buttons",children:[r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Na,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:$t?"pause":"play",onClick:sa,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":$t,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Sa,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),Je>1?r.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:Je}).map((Y,de)=>r.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{oo(de)}catch{}},ariaLabel:u("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:W&&O===de,disabled:G!=="playMode"||!(Array.isArray(V)&&V[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(V)||V.length<=1?r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Vt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:yo,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Da,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),r.jsxs("div",{className:"audio-player__slider",children:[r.jsx("div",{className:we,ref:x,style:{left:`${ie}%`},"aria-hidden":"true"}),(c||d)&&r.jsx(_B,{segments:Ha,progress:T,totalDuration:Z,waveProgressRef:Ce,showSoundWaveForm:c,noiseSrc:d&&h?.settings.enabled&&ne>0?je:null,noiseRatio:h?kr(h.settings):0,noiseSpeed:h?.settings.speed??1,mainVolume:ue,onReadyChange:be})]})]}),r.jsx("audio",{ref:b,crossOrigin:"anonymous",preload:"auto"})]}),!c&&r.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[r.jsx(Xe,{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.")]}),r.jsx(Fo,{message:le,position:_e,onClose:wo})]})}var $B=".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)}";oe($B);function Er(e){const{t}=ve.useTranslation(),{text:a,label:o,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:p,decrease:h,canIncrease:m,canDecrease:b,fontSize:x,lineHeight:f}=hi({storageKey:"tooltip-fontScale"}),C=l.useCallback(()=>u(B=>B==="dark"?"light":"dark"),[]),v=l.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],y={fontSize:`${x}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},_=r.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[r.jsxs("div",{className:"tooltip-textbox__box",children:[o&&r.jsx("div",{className:"tooltip-textbox__label body-2b",children:o}),r.jsx("div",{className:"tooltip-textbox__text body-1",style:y,children:g.map((B,k)=>r.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?r.jsx("div",{className:"tooltip-textbox__marker",children:r.jsx("span",{className:"tooltip-textbox__line-number button-1",children:k+1})}):null,r.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},k))})]}),r.jsxs("div",{className:"tooltip-textbox__buttons",children:[r.jsx(pe,{htmlType:"button",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:!b}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!m}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:C,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),r.jsx(pe,{htmlType:"button",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?r.jsx(ga,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:o||t("tooltip.textbox","\uBCF8\uBB38"),children:_}):r.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:_})}var RB=".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 .pp-bottom__meters--floating{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-trigger{display:inline-flex;flex-shrink:0}.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}";oe(RB);var PB='.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}}';oe(PB);function wu({state:e="disabled"}){const{t}=ve.useTranslation();return r.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[r.jsx("div",{className:"bullet__dot",children:r.jsx(Xe,{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})}),r.jsx("div",{className:"ts-bullet__line"})]})}function zf(e,t,a){const o=l.useRef(t),n=l.useRef(a);l.useEffect(()=>{o.current=t,n.current=a}),l.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,s=10;const c=()=>{i=null;const d=o.current(),u=d?Array.from(d.querySelectorAll(Xa)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(u){try{u.focus()}catch{}if(document.activeElement===u)return}--s>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const u=n.current();if(u)try{u.focus()}catch{}}}},[e])}var zB=".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)}";oe(zB);function ku({title:e,children:t,className:a="",state:o="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:p=!1}){const{t:h}=ve.useTranslation(),m=na("(max-width: 767px)"),b=`training-step__title h4 ${c&&o==="disabled"?"training-step__title--faded":""} ${a}`.trim(),x=`training-step__title-row training-step__title-row--${o}`.trim(),f=l.useRef(null),[C,v]=l.useState(!1),[g,y]=l.useState(null),[_,B]=l.useState(null);zf(C&&!!g,()=>{if(typeof document>"u")return null;const E=Array.from(document.querySelectorAll(".tooltip-content"));for(let $=E.length-1;$>=0;$--)if(E[$].querySelector(".tooltip-textbox__root"))return E[$];return null},()=>f.current?.querySelector("button")??null);const k=l.useRef(i);l.useEffect(()=>{k.current=i});const A=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(E=>typeof E=="string"||typeof E=="number")?s.join(""):"",[s]),w=l.useCallback(()=>{v(!1),y(null),B(null)},[]);l.useEffect(()=>{if(!C)return;let E;try{typeof k.current=="function"&&(E=k.current())}catch{}if(E===!1){w();return}B(typeof E<"u"&&E!==null?E:null)},[A]);const S=l.useCallback(()=>{let E;try{typeof i=="function"&&(E=i())}catch{}if(E!==!1){if(B(typeof E<"u"&&E!==null?E:s),!f.current){v($=>!$);return}if(C)v(!1),y(null),B(null);else{const $=f.current.getBoundingClientRect();y($),v(!0)}}},[i,s,C]);return r.jsxs("div",{className:x,children:[r.jsx("p",{className:b,children:r.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?r.jsxs("div",{className:"title-controls",children:[r.jsxs("div",{className:"title-buttons",children:[d&&r.jsx(pe,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:u,variant:o==="disabled"?"disabled":"default",disabled:o==="disabled"||p,onDisabledClick:p&&o!=="disabled"?()=>{}:void 0}),n&&r.jsx("div",{ref:f,children:r.jsx(pe,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:S,className:C?"is-selected":void 0,"aria-expanded":C,"aria-haspopup":"dialog",variant:o==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),C&&r.jsx(Er,{text:_??s,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:w,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Bu(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Co({index:e,stepIndex:t,isLast:a=!1,title:o="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=ve.useTranslation(),[p,h]=l.useState(()=>Bu(e,t));l.useEffect(()=>{const B=Bu(e,t);if(B!==p){const k=setTimeout(()=>h(B),0);return()=>clearTimeout(k)}},[e,t,p]);const m=l.useCallback((...B)=>{Bu(e,t)==="done"||p==="done"||typeof c=="function"&&c(...B)},[e,t,p,c]),[b,x]=l.useState(!1),[f,C]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=l.useCallback(B=>{if(!B)return null;try{const k=B;if(typeof B=="object"&&(k.currentTarget||k.target)&&(k.nativeEvent||k.type)){const S=k.currentTarget??k.target;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect()}if(B instanceof DOMRect)return B;const A=B;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const w=B?.current;return w&&typeof w.getBoundingClientRect=="function"?w.getBoundingClientRect():null}catch{return null}},[]),g=l.useCallback((B,{text:k="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:w=!1,alignX:S="center",alignY:E="top"}={})=>{const $=v(B);C({text:k,label:A,anchorRect:$,backdrop:w,alignX:S,alignY:E}),x(!0)},[v]),y=l.useCallback(()=>{x(!1),C(B=>({...B,anchorRect:null}))},[]),_=l.Children.map(i,B=>{if(l.isValidElement(B)){const k=B;if(typeof k.type=="string")return k;const A=k.props??{},w=typeof A.onDone=="function"?A.onDone:m,S=typeof A.disabled=="boolean";let E=p==="disabled";return S&&(E=!!A.disabled),l.cloneElement(k,{onDone:w,disabled:E,showTooltip:g,hideTooltip:y})}return B});return r.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${s}`,"aria-current":p==="active",children:[r.jsx(wu,{state:p}),r.jsxs("div",{className:"training-step__content",children:[r.jsx(ku,{state:p,title:o,...n,useFaded:d}),_]}),b?r.jsx(ga,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:y,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:r.jsx(Er,{text:f.text,onClose:y})}):null]})}var IB='.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)}';oe(IB);function Au({context:e,state:t="disabled",theme:a="light"}){const{t:o}=ve.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(j=>j==="dark"?"light":"dark"),{increase:u,decrease:p,canIncrease:h,canDecrease:m,fontSize:b,lineHeight:x}=hi({storageKey:"textbox_fontScale"}),[f,C]=l.useState(""),v=l.useRef(null),g=l.useRef(!1),y=l.useCallback(()=>{g.current=zi()&&!!v.current&&v.current.contains(document.activeElement),i("active")},[]),_=l.useCallback(()=>C(""),[]),B=j=>{try{C(j)}catch{}},k=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const j=setTimeout(()=>i(t),0);return()=>clearTimeout(j)}},[t]);const A=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[w,S]=l.useState(A);w!==A&&(S(A),i("disabled"));const E=t==="disabled"?n:t,$=E==="disabled"?"training-text-box--disabled":E==="active"?"training-text-box--active":E==="done"?"training-text-box--done":"",F=l.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${x}px`}),[b,x]);return l.useEffect(()=>{if(E==="disabled"||!g.current)return;g.current=!1;const j=document.activeElement;j&&j!==document.body||v.current?.querySelector(".training-text-box__buttons button")?.focus()},[E]),r.jsxs("div",{ref:v,className:`training-text-box ${$} ${E!=="disabled"&&s==="dark"?"is-dark":""}`,children:[E==="disabled"&&r.jsx("div",{className:"training-text-box__preview",children:r.jsx(pe,{htmlType:"button",size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:o("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:o("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),r.jsx("div",{className:"training-text-box__area","aria-hidden":E==="disabled",children:r.jsx("span",{className:"training-text-box__inner h3",style:F,children:A})}),E!=="disabled"&&r.jsxs("div",{className:"training-text-box__buttons","aria-hidden":E==="disabled",children:[r.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>B(o("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:o("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!k&&{width:"60px"}}),r.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:u,onDisabledClick:()=>B(o("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:o("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!k&&{width:"60px"}}),r.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:o("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),r.jsx(Fo,{message:f,position:"top",onClose:_})]})}function Ji({index:e,stepIndex:t,isLast:a=!1,title:o,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:m=!1,choiceIcons:b,shuffleChoices:x=!0}){const{t:f}=ve.useTranslation(),C=o??f("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,g=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",y=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,_=d?d.join("||"):"",B=u?u.join("||"):"",[k,A]=l.useState(()=>Array.isArray(y)?x?et(y):y.slice():void 0);l.useEffect(()=>{Array.isArray(y)&&y.length?A(x?et(y):y.slice()):A(void 0)},[c,_,B,x]);const[w,S]=l.useState(null),[E,$]=l.useState(()=>new Set);l.useEffect(()=>{S(null),$(new Set)},[B,c,_]);const F=l.useRef(void 0);l.useEffect(()=>{const D=F.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&(S(null),$(new Set)),F.current=t},[t,e]);const j=l.useCallback(D=>{if(g!=="active")return;const T=k?.[D];if(T==null)return;const I=T,G=g==="active"||g==="done";if(p){const K=new Set(E),H=K.has(I);H?K.delete(I):K.add(I),$(K),typeof s=="function"&&s({selectedValues:[...K],__ts:Date.now()}),G&&(typeof h=="number"&&h>0?K.size>=h:!H)&&typeof i=="function"&&g==="active"&&i({selectedValues:[...K],__ts:Date.now()})}else S(I),typeof s=="function"&&s({selectedIndex:D,selectedValue:I,__ts:Date.now()}),G&&typeof i=="function"&&g==="active"&&i({selectedIndex:D,selectedValue:I,__ts:Date.now()})},[k,g,p,s,i,h,E]),z=`training-step__buttons${Array.isArray(k)&&k.length>3?" training-step__buttons--wrap-3":""}`;return r.jsx(Co,{index:e,stepIndex:t,isLast:a,title:C,useTitleFaded:n,children:r.jsx("div",{className:z,children:Array.isArray(k)&&k.length>0?k.map((D,T)=>r.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>j(T),ariaLabel:String(D),label:D,useLabel:!0,icon:b?b[String(D)]:void 0,variant:"default",disabled:g==="disabled",selected:p?E.has(D):w===D,useDisabledCovered:m,minWidth:0},String(D))):null})})}function Qi({index:e,stepIndex:t,isLast:a=!1,title:o,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=ve.useTranslation(),u=o??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",m=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",b=s&&typeof s=="object"?s.choices:void 0,[x,f]=l.useState(c??null),C=`${String(m)}\0${JSON.stringify(b??null)}`,[v,g]=l.useState(C);v!==C&&(g(C),c==null&&f(null));const[y,_]=l.useState(c);Object.is(y,c)||(_(c),f(c??null));const B=l.useRef(void 0);l.useEffect(()=>{const S=B.current;typeof S=="number"&&typeof t=="number"&&typeof e=="number"&&S>=e&&t<e&&c==null&&f(null),B.current=t},[t,e,c]);const k=l.useCallback(S=>{const E=typeof S=="object"&&S!==null?Object.assign({},S,{__ts:Date.now()}):{value:S,__ts:Date.now()};typeof i=="function"&&i(E),h==="active"&&typeof n=="function"&&n(E)},[i,h,n]),A=l.useCallback(()=>{h==="active"&&(f(!1),k(!1))},[k,h]),w=l.useCallback(()=>{h==="active"&&(f(!0),k(!0))},[k,h]);return r.jsxs(Co,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[r.jsx(Au,{context:s,state:h}),r.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((S,E)=>r.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{h==="active"&&(f(E),k&&k(E))},disabled:h==="disabled",ariaLabel:String(S),label:S,variant:h,selected:x===E},E)):r.jsxs(r.Fragment,{children:[r.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:A,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:x===!1}),r.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:w,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:x===!0})]})})]})}function es({index:e,stepIndex:t,isLast:a=!1,title:o,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:p,disabled:h,_pageIndex:m,showSoundWaveForm:b,showNoiseWaveForm:x}){const{t:f}=ve.useTranslation(),C=o??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=h??(typeof t=="number"&&typeof e=="number"?e>t:!1);return r.jsx(Co,{index:e,stepIndex:t,isLast:a,title:C,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:p},children:r.jsx(Bn,{soundSrc:s,ttsText:s?null:u??C,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:x},`audio-p${m??0}-s${e}`)})}var OB=".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--full{max-width:none;padding:0}.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%}";oe(OB);var FB=".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}";oe(FB);const HB=[];function ts({index:e,stepIndex:t,isLast:a=!1,title:o,onDone:n,onChange:i,context:s=HB}){const{t:c}=ve.useTranslation(),d=o??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||"")||"",[p,h]=l.useState(Array.isArray(s)?s:[]),[m,b]=l.useState(()=>(p||[]).map((L,N)=>({id:N,text:u(L)}))),x=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),f=x!=="disabled",C=l.useRef(void 0);l.useEffect(()=>{if(C.current===s)return;C.current=s;const L=Array.isArray(s)?s:[];h(L);const N=(O=>{const P=(O||[]).map((ee,J)=>({id:J,text:u(ee)}));if(P.length<=1)return P;const W=(ee,J)=>{if(ee.length!==J.length)return!1;for(let ue=0;ue<ee.length;ue++)if(ee[ue].text!==J[ue].text)return!1;return!0};let R=et(P),Z=0;for(;W(R,P)&&Z<20;)R=et(P),Z+=1;return R})(L);b(N);try{if(typeof i=="function"){const O=N.filter((P,W)=>P.text===u(L[W])).length;i({shuffled:N,score:O,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&x==="active"){const O=N.filter((P,W)=>P.text===u(L[W])).length;n({shuffled:N,score:O,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const v=(L,N)=>{const O=[...m],P=L+N;if(P<0||P>=O.length)return;const W=O[P];O[P]=O[L],O[L]=W,T(O);try{if(typeof n=="function"&&x==="active"){const R=O.filter((Z,ee)=>Z.text===u(p[ee])).length;n({shuffled:O,score:R,total:(p||[]).length,__ts:Date.now()})}}catch{}},[g,y]=l.useState(null),_=l.useRef(null),B=l.useRef(null),k=l.useRef(null),A=l.useRef(null),w=l.useRef(null),S=l.useRef({x:0,y:0}),E=l.useRef(null),$=l.useRef({dx:0,dy:0}),F=()=>{if(E.current!==null)return;const L=()=>{if(!_.current){E.current=null;return}E.current=requestAnimationFrame(L);const N=S.current,O=$.current||{dx:0,dy:0};_.current&&(_.current.style.transform=`translate3d(${N.x-O.dx}px, ${N.y-O.dy}px, 0)`)};E.current=requestAnimationFrame(L)},j=l.useRef(new Map),z=l.useRef(new Map),D=()=>{const L=new Map;return j.current.forEach((N,O)=>{N&&N.getBoundingClientRect&&L.set(O,N.getBoundingClientRect())}),L},T=L=>{const N=D();b(L);try{if(typeof i=="function"){const O=L.filter((P,W)=>P.text===u(p[W])).length;i({shuffled:L,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const O=D();L.forEach(P=>{const W=N.get(P.id),R=O.get(P.id),Z=j.current.get(P.id);if(!Z||!W||!R)return;const ee=W.top-R.top;ee&&(Z.style.transition="none",Z.style.transform=`translateY(${ee}px)`,requestAnimationFrame(()=>{Z.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Z.style.transform="";const J=()=>{Z.style.transition="",Z.removeEventListener("transitionend",J)};Z.addEventListener("transitionend",J)}))})})},I=(L,N)=>{try{try{N.dataTransfer?.setData("text/plain",String(L))}catch{}try{N.dataTransfer&&(N.dataTransfer.effectAllowed="move")}catch{}try{const O=document.createElement("div");O.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(O),N.dataTransfer?.setDragImage(O,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(O)}catch{}})}catch{}}catch{}y(L);try{const O=m[L],P=document.createElement("div");P.className="order-list__dragging-object order-list__dragging-object--visible",P.textContent=O&&O.text?O.text:"",document.body.appendChild(P),_.current=P;const W=j.current.get(O.id);let R=N.clientX||0,Z=N.clientY||0;try{if(W&&W.getBoundingClientRect){const se=W.getBoundingClientRect();R=se.left+se.width/2,Z=se.top+se.height/2}}catch{}const ee=P.getBoundingClientRect(),J=ee.width/2,ue=ee.height/2;$.current={dx:J,dy:ue},P.style.transition="none",S.current={x:R,y:Z},P.style.transform=`translate3d(${R-J}px, ${Z-ue}px, 0)`,requestAnimationFrame(()=>{try{P.style.transition=""}catch{}F()});const ne=se=>{const U=se;S.current={x:U.clientX,y:U.clientY},F()};k.current=ne,document.addEventListener("mousemove",ne);const re=se=>{const U=se;S.current={x:U.clientX,y:U.clientY},F()};B.current=re,document.addEventListener("dragover",re);try{N.dataTransfer?.setData("text/plain",String(L));try{N.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},G=(L,N)=>{N.preventDefault();try{N.dataTransfer&&(N.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const O=N.currentTarget&&N.currentTarget.closest?N.currentTarget.closest(".order-list__item"):null;if(O&&A.current!==O){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{O.classList.add("drag-over")}catch{}A.current=O}}catch{}},K=(L,N)=>{N.preventDefault();const O=N.dataTransfer?.getData("text/plain")||"",P=O?parseInt(O,10):g,W=L;if(typeof P!="number"||isNaN(P)||P===W){y(null),q(),H();return}const R=fl(m,P,W);T(R),y(null),H();try{if(typeof n=="function"&&x==="active"){const Z=R.filter((ee,J)=>ee.text===u(p[J])).length;n({shuffled:R,score:Z,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Z=document.querySelectorAll(".order-list .order-list__item")[W];if(!Z)return;const ee=Z.querySelector(".order-list__slot")||Z;try{ee.classList.add("pulse"),ee.offsetHeight,ee.classList.add("to-dark");const J=()=>{ee.classList.remove("pulse","to-dark"),ee.removeEventListener("transitionend",J)};ee.addEventListener("transitionend",J)}catch{}})}catch{}q()},H=()=>{if(_.current){try{document.body.removeChild(_.current)}catch{}_.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),k.current&&(document.removeEventListener("mousemove",k.current),k.current=null),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)},V=()=>{y(null),q(),H()};l.useEffect(()=>()=>H(),[]);const q=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.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,(m||[]).length);m.forEach((N,O)=>{const P=z.current.get(N.id);if(!P)return;let W=50;L>1&&(W=Math.round(O/(L-1)*100));try{P.style.setProperty("--marker-pos",W+"%")}catch{}})}catch{}},[m]),l.useEffect(()=>()=>{H(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),r.jsx(Co,{index:e,stepIndex:t,isLast:a,title:d,children:r.jsx("div",{className:"order-list",children:m.map((L,N)=>{const O=Math.max(1,(m||[]).length),P=O>1?Math.round(N/(O-1)*100):50;return r.jsx("div",{className:"order-list__item",children:r.jsxs("div",{className:"order-list__slot","data-disabled":x==="disabled","aria-disabled":x==="disabled",children:[x!=="disabled"?r.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":P+"%"},ref:W=>{const R=z.current;W?R.set(L.id,W):R.delete(L.id)},children:r.jsx("span",{className:"order-list__slot-number button-1",children:N+1})}):null,r.jsxs("div",{ref:W=>{const R=j.current;W?R.set(L.id,W):R.delete(L.id)},className:`order-list__draggable ${g===N?"dragging":""}`,"data-disabled":x==="disabled","aria-disabled":x==="disabled",tabIndex:x==="disabled"?-1:0,draggable:f,onDragStart:f?W=>I(N,W):void 0,onDragEnter:f?W=>G(N,W):void 0,onDragOver:f?W=>G(N,W):void 0,onDragLeave:f?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const W=document.querySelectorAll(".order-list .order-list__item");W&&W[N]&&(W[N].classList.remove("drag-over"),A.current===W[N]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?W=>K(N,W):void 0,onDragEnd:f?V:void 0,children:[r.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f?r.jsxs("span",{className:"order-list__item-buttons",children:[r.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>v(N,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:N===0,useBorder:!1,useDisabledInvisible:!0}),r.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>v(N,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:N===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var VB="";oe(VB);const WB=8e3;function GB(e,t){return new Promise(a=>{let o=!1;const n=()=>{o||(o=!0,a())};e.then(n,n),setTimeout(n,t)})}function Su({index:e,stepIndex:t,isLast:a=!1,title:o,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:p}){const{t:h}=ve.useTranslation(),m=o??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),b=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),x=p??3,f=(b||[]).slice(0,x);(b||[]).length>x&&console.warn(`TrainingStepCard: ${b.length} items passed but only ${x} shown`);const C=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":C<t?"done":C===t?"active":"disabled",[g,y]=l.useState(null),_=l.useRef([]),[B,k]=l.useState(!1),A=l.useRef(null),w=l.useRef(!0);l.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);const S=l.useMemo(()=>b.map(z=>z?.id??z?.word??"").join("|"),[b]);l.useEffect(()=>{y(null)},[S]);const E=l.useRef(void 0);l.useEffect(()=>{const z=E.current;typeof z=="number"&&typeof t=="number"&&typeof e=="number"&&z>=e&&t<e&&y(null),E.current=t},[t,e]);const $=l.useCallback((z,D)=>{if(c)return;const T={item:z,index:D,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[c,i,v,n]),F=l.useCallback(async()=>{if(B||v==="disabled")return;k(!0);let z=!1;const D=new Promise(T=>{A.current=()=>{z=!0,T()}});try{for(let T=0;T<f.length&&!(!w.current||z);T++){const I=_.current[T];I&&await Promise.race([GB(I.play(),WB),D])}}finally{A.current=null,k(!1)}},[B,v,f.length]),j=l.useCallback((z,D)=>{if(v!=="active")return;y(D);const T={selectedValue:z.word||z.title||"",selectedIndex:D,item:z,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[i,v,n]);return r.jsx(Co,{index:e,stepIndex:t,isLast:a,title:m,onDone:n,titleProps:{usePlayAllBtn:!u&&f.length>0,onPlayAll:F,playAllActive:B},children:r.jsx("div",{className:"training-step__cards",onClickCapture:z=>{const D=A.current;if(!D)return;const T=z.target;T&&typeof T.closest=="function"&&T.closest(".training-word-card__bottom")&&D()},children:f.length===0?r.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((z,D)=>r.jsx(Oi,{ref:T=>{_.current[D]=T},item:z,disabled:v==="disabled",onPlayDone:()=>$(z,D),selectable:c,selected:c&&g===D,onSelect:c?()=>j(z,D):void 0,flipDelay:D*120,hideLabel:d,hideAudio:u},z&&z.id||D))})})}const UB=160;var qB=".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--compact-rows .panel-row{min-height:46px;padding-bottom:3px;padding-top:3px}.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__body--gutter-stable{scrollbar-gutter:stable}.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--fill .panel-row__right{align-items:center;display:flex}.ihabdevteam-core-scope .panel-row--fill .panel-row__right>*,.ihabdevteam-core-scope .panel-row--fill>.dropdown,.ihabdevteam-core-scope .panel-row--fill>.form-input,.ihabdevteam-core-scope .panel-row--fill>.text-field{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}}";oe(qB);const YB={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function KB(e,t){const a=YB[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const If=()=>{};function to(e){const t=l.useId();if(!("variant"in e)){const{label:v,sub:g,onClick:y,children:_,align:B="horizontal",icon:k,useFullWidth:A=!1}=e,w=S=>{y&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),y())};return r.jsxs("div",{className:Le("panel-row",B==="vertical"?"panel-row--vertical":"",A?"panel-row--label-fixed panel-row--fill":"",y?"panel-row--clickable":""),onClick:y,onKeyDown:y?w:void 0,role:y?"button":void 0,tabIndex:y?0:void 0,children:[k!=null&&r.jsx("div",{className:"panel-row__icon",children:k}),v!=null&&r.jsxs("div",{className:"panel-row__left",children:[r.jsx("div",{className:"panel-row__label body-3",children:v}),g&&r.jsx("div",{className:"panel-row__sub caption-1",children:g})]}),r.jsx("div",{className:"panel-row__right",children:_})]})}if(e.variant==="description")return r.jsx("div",{className:"panel-row panel-row--block",children:r.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return r.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return r.jsx("div",{className:"panel-row panel-row--loading",children:r.jsx(xr,{size:28})});if(e.variant==="custom"&&!e.label)return r.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:o,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:p}=e,h=a==="button"?void 0:i;let m=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,x=c?`panel-error-${t}`:void 0;if(a==="toggle"){const v=e;m=r.jsx(Hd,{checked:v.checked,onChange:v.onChange,id:b})}else if(a==="segmented"){const v=e;m=r.jsx(Ia,{options:v.options,value:v.value,onChange:v.onChange,size:v.size??40,ariaLabel:o})}else if(a==="dropdown"){const v=e,g=v.dropdowns?.length?r.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:v.dropdowns.map((y,_)=>r.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:r.jsx(fa,{options:y.options,value:y.value,onChange:y.onChange,placeholder:y.placeholder,block:u,error:!!c,ariaDescribedBy:x,ariaLabel:y.ariaLabel??([o,y.placeholder].filter(Boolean).join(" ")||void 0)})},_))}):r.jsx(fa,{options:v.options??[],value:v.value??"",onChange:v.onChange??If,block:u,error:!!c,ariaLabel:o,ariaDescribedBy:x});m=c?r.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[g,r.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:c})]}):g}else if(a==="button"){const v=e;v.buttons?.length?m=r.jsx("div",{className:"panel-row__button-group",children:v.buttons.map((g,y)=>r.jsx(pe,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.label},y))}):m=r.jsx(pe,{htmlType:"button",size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.buttonLabel})}else if(a==="text"){const v=e;m=r.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:v.valueColor?{color:v.valueColor}:void 0,children:v.value})}else if(a==="input"){const v=e;m=r.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[r.jsx(xo,{value:v.value,onChange:v.onChange??If,onKeyDown:v.onKeyDown,onEnter:v.onEnter,placeholder:v.placeholder,ghostText:v.ghostText,ghostHint:v.ghostHint,inputMode:v.inputMode,readOnly:v.readOnly,disabled:v.disabled,type:v.type,autoComplete:v.autoComplete,maxLength:v.maxLength,showCount:v.showCount,multiline:v.multiline,rows:v.rows,fullWidth:u,error:c,ariaLabel:o,required:s}),v.helperText&&r.jsx("div",{className:"panel-row__helper caption-1",children:v.helperText})]})}else a==="custom"&&(m=e.children);c&&a!=="input"&&a!=="dropdown"&&(m=r.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[m,r.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,C=v=>{h&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),h())};return r.jsxs("div",{className:Le("panel-row",d==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",h?"panel-row--clickable":""),onClick:h,onKeyDown:h?C:void 0,role:h?"button":void 0,tabIndex:h?0:void 0,children:[p!=null&&r.jsx("div",{className:"panel-row__icon",children:p}),r.jsxs("div",{className:"panel-row__left",children:[b?r.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[o,s&&r.jsx("span",{className:"required-mark",children:"*"})]}):r.jsxs("div",{className:"panel-row__label body-3",children:[o,s&&r.jsx("span",{className:"required-mark",children:"*"})]}),n&&r.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),r.jsx("div",{className:"panel-row__right",children:m})]})}function Of(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(o=>!!o&&o!==t);return[...new Set(a)].join(" \xB7 ")}function Ff({devices:e,onRelease:t,emptyLabel:a}){const{t:o}=ve.useTranslation();return r.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(n=>{const i=e[n],s=n==="\uC88C"?o("device.direction.left","\uC88C"):o("device.direction.right","\uC6B0");return r.jsxs("div",{className:"panel-row__device-column",children:[r.jsxs("div",{className:"panel-row__device-head",children:[r.jsx("span",{className:"panel-row__device-side body-2b",children:s}),i&&t&&r.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${s} ${o("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:o("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(n)})]}),i?r.jsxs("div",{className:"panel-row__device-info",children:[r.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&r.jsx(Ct,{size:"small",variant:x0(i.device),fill:"soft",label:KB(i.device,o)}),Of(i)&&r.jsx("span",{className:"panel-row__device-detail body-3",children:Of(i)})]}),r.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),ou(i.wornYear,i.wornMonth,i.wornDay)&&r.jsx("span",{className:"panel-row__device-date caption-1",children:o("customers.device.wornSince",{date:ou(i.wornYear,i.wornMonth,i.wornDay)})})]}):r.jsx("span",{className:"panel-row__device-empty body-3",children:a??o("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},n)})})}function An({title:e,icon:t,disc:a,actions:o,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,scrollbarGutter:u="auto",compactRows:p=!1,useBorder:h=!0,useBg:m=!0,useRowBorder:b=!0,labelWidth:x,form:f=!1,loading:C,empty:v,children:g}){const y=Le("panel",`panel--${n}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",m?"":"panel--no-bg",b?"":"panel--no-row-border",p?"panel--compact-rows":"",c),_={};return i!==void 0&&(_.minHeight=i),s!==void 0&&(_.maxWidth=typeof s=="number"?`${s}px`:s),x!==void 0&&(_["--panel-label-width"]=typeof x=="number"?`${x}px`:x),r.jsxs("div",{className:y,style:Object.keys(_).length?_:void 0,children:[(e!=null||a!=null)&&r.jsxs("div",{className:Le("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&r.jsx(Xe,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),r.jsxs("div",{className:"panel__title-group",children:[e!=null&&r.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&r.jsx("p",{className:"panel__disc caption-1",children:a})]}),o&&r.jsx("div",{className:"panel__actions",children:o})]}),C?r.jsx(to,{variant:"loading"}):v!=null&&l.Children.toArray(g).length===0?r.jsx(to,{variant:"empty",children:v}):d?r.jsx("div",{className:Le("panel__body--scroll",u==="stable"&&"panel__body--gutter-stable"),children:g}):g]})}function Hf({cols:e=2,children:t}){return r.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function ZB(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 Vf(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"}]}ZB(ht.t.bind(ht)),Vf(ht.t.bind(ht));var XB='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:0 20px 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}';oe(XB);const Eu="none",JB=.5,QB=1.5,eA=.25;function Nu({title:e,valueLabel:t,value:a,min:o,max:n,step:i,tickStep:s,size:c,onChange:d}){return r.jsxs(to,{variant:"custom",label:e,useFullWidth:!0,children:[r.jsx(Xd,{value:a,onChange:d,min:o,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),r.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Du({anchorRect:e,onClose:t}){const{t:a}=ve.useTranslation(),o=na("(max-width: 767px)")?40:24,n=kn(),i=kr(n?.settings??Ar),s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=n?.playbackRate??1,u=n?.mainVolume??1,p=Math.round(u*100),h=l.useCallback(f=>{try{n?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[n]),m=l.useCallback(f=>{try{n?.setPlaybackRate(f)}catch{}},[n]),b=l.useCallback(f=>{const C=Math.min(wr,Math.max(0,Math.round(f*10)/10));try{n?.setSettings({noiseRatio:C})}catch{}},[n]),x=l.useCallback(f=>{try{f===Eu?n?.setSettings({enabled:!1}):n?.setSettings({type:f,enabled:!0})}catch{}},[n]);return r.jsx(ga,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:r.jsxs("div",{className:"noise-settings__header",children:[r.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),r.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:r.jsxs(An,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[r.jsx(Nu,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:o,onChange:h}),r.jsx(Nu,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:JB,max:QB,step:eA,size:o,onChange:m}),r.jsx(to,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:r.jsx(Ia,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Eu,label:a("training.noise.type.none","\uC5C6\uC74C")},...Vf(a).map(f=>({key:f.value,label:f.label}))],value:c?s:Eu,onChange:x})}),r.jsx(Nu,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:wr,step:vu,size:o,onChange:b})]})})}var tA=".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 .pp-bottom__meters--floating{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-trigger{display:inline-flex;flex-shrink:0}";oe(tA);function Tu({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:o,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1,resultOpen:d=!1}){const{t:u}=ve.useTranslation(),[p,h]=l.useState(!1),[m,b]=l.useState(null),[x,f]=l.useState(!1),C=l.useRef(null),v=l.useRef(null),g=kn(),y=c>0,_=y&&s<c-1,B=!y||s>=c-1,k=n===Math.max(0,i);l.useEffect(()=>{e||(h(!1),b(null))},[e]);const A=l.useCallback(()=>{h(!1),b(null)},[]),w=l.useCallback(()=>{if(p){h(!1),b(null);return}const I=C?.current?.getBoundingClientRect();I&&b(I),t?.(),h(!0)},[p,t]),S=l.useCallback(()=>{if(p){h(!1),b(null);return}const I=v?.current?.getBoundingClientRect();I&&b(I),t?.(),h(!0)},[p,t]),E=na("(max-width: 767px)"),$=l.useRef(null),[F,j]=l.useState(null),z=l.useCallback(()=>{f(I=>{const G=!I;return j(G?$.current?.getBoundingClientRect()??null:null),G})},[]),D=l.useCallback(()=>{f(!1),j(null)},[]);l.useEffect(()=>{d&&(f(!1),j(null))},[d]);const T=r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"pp-bottom__meter",children:[r.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),r.jsx(Ri,{analyser:g?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),r.jsxs("div",{className:"pp-bottom__meter",children:[r.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),r.jsx(Ri,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]});return zf(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[C.current,v.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??C.current?.querySelector("button")??null),r.jsxs("div",{className:"pp-bottom",children:[r.jsxs("div",{className:"pp-bottom__left",children:[e?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pp-bottom__settings--desktop",children:r.jsx("div",{ref:C,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:r.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:w,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),r.jsx("div",{className:"pp-bottom__settings--mobile",children:r.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:r.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:S,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815")})})})]}):null,e&&r.jsx("div",{ref:$,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:r.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:z,selected:x,"aria-expanded":E?x:void 0,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&x&&!E&&r.jsx("div",{className:"pp-bottom__meters",children:T})]}),e&&x&&E&&F&&r.jsx(ga,{anchorRect:F,onClose:D,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:r.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:T})}),r.jsxs("div",{className:"pp-bottom__right",children:[B&&r.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof o=="function"?o:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!k}),_&&r.jsx(pe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!k})]}),e&&p&&r.jsx(Du,{anchorRect:m,onClose:A})]})}var aA=".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}}";oe(aA);function ju({title:e,subtitle:t,desc:a,depth:o,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:p,onBack:h,onClose:m}){const{t:b}=ve.useTranslation(),x=na("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,C=Number.isInteger(u)?u:d||0,v=h||m,g=Array.isArray(o)?x?o[o.length-1]:o.join(" / "):o,y=typeof e=="string"?e.trim():e,_=typeof t=="string"?t.trim():t,B=!!(y||_),k=B?y||_:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=g||(y?t:void 0),w=x&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,S=l.useMemo(()=>{const E=i&&typeof i=="object"?{...i}:{};return!("width"in E)&&!("height"in E)&&(E.width="40px",E.height="40px"),E},[i]);return r.jsxs("header",{className:"pp-title training-popup-title",children:[r.jsxs("div",{className:"pp-title__left",children:[v?r.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,r.jsx("div",{children:n?r.jsx(Ig,{icon:n,label:e,tooltip:s,wrapperStyle:S}):null}),r.jsxs("div",{className:"pp-title__text",children:[w?r.jsx("span",{className:"pp-title__depth caption-1",children:w}):null,r.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:k}),a?r.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),r.jsx(tu,{max:Math.max(0,C??0),index:Math.max(0,f??0)})]})}function Wf(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Gf(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)]}const Uf=(e,t)=>{if(!t)return t;const a=typeof ht?.t=="function"?ht.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Lu(e,t,a){const o=e,n=o?.title||o?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=ei().find(c=>c.key===(o?.category_0||o?.category_main_code)),s=i?.subs?.find(c=>c.key===(o?.category_1||o?.category_sub_code));return{title:n,label:o?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?Uf(`topic.${i.key}`,i.label):void 0,s?Uf(`topic.sub.${s.key}`,s.label):void 0].filter(Boolean).join(" / ")||void 0}}function as(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function qf(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Yf({idPrefix:e,trainingData:t,depth:a,fallbackTitle:o="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Lu(t,a,o),u=typeof c=="function"?c(d)||{}:c||{},p=t?.id||t?.title||n.length;return{id:`${e}:${p}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function Kf(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Zf(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 Xf(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 Mu(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function Jf(e,t,a,o){return Mu(e,t*a+o)}function Qf({payload:e,selected:t,choices:a=[],correctAnswers:o=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return o.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>o.includes(i));if(typeof n.correct=="boolean")return n.correct}if(o.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return o.some(n=>String(n)===String(a[t]));if(typeof t<"u")return o.some(n=>String(n)===String(t))}}function e1(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 t1=l.createContext(null);function oA(){const e=l.useContext(t1);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function rA({index:e,stepIndex:t,isLast:a=!1,title:o,choices:n=[],onDone:i,onChange:s}){const{t:c}=ve.useTranslation(),d=typeof e=="number"?e:-1,u=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,h]=l.useState(()=>n.map(()=>null)),m=JSON.stringify(n),b=n.length;l.useEffect(()=>{h(Array.from({length:b},()=>null))},[m]);const x=l.useRef(void 0);l.useEffect(()=>{const g=x.current;typeof g=="number"&&typeof t=="number"&&typeof e=="number"&&g>=e&&t<e&&h(Array.from({length:b},()=>null)),x.current=t},[t,e,b]);const f=l.useMemo(()=>p.filter(g=>g!==null).length+1,[p]),C=l.useCallback(g=>{if(u!=="active")return;const y=p;let _;if(y[g]!=null){const k=y[g];_=y.map(A=>A!==null&&A>=k?null:A)}else _=[...y],_[g]=f;h(_);const B={selectedOrder:_,words:n,__ts:Date.now()};try{typeof s=="function"&&s(B)}catch{}if(y[g]==null&&_.length>0&&_.every(k=>k!==null))try{typeof i=="function"&&i(B)}catch{}},[u,p,f,s,i,n]),v=o??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return r.jsx(Co,{index:e,stepIndex:t,isLast:a,title:v,onDone:i,children:r.jsx("div",{className:"training-step__cards",children:n.map((g,y)=>r.jsx(Oi,{item:{word:g},disabled:u==="disabled",selectable:!0,selected:p[y]!==null,orderRank:p[y],onSelect:()=>C(y),flipDelay:y*120,hideLabel:!1,hideAudio:!0},`${g}-${y}`))})})}function Sn(e){return null}Sn.__isTrainingPage=!0;function Nr(e,t){const a=oA();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:o=>a.handleStepDone(o,e),onChange:o=>a.handleStepChange(o,e)}}function $u({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s}=Nr(e,t);return r.jsx(es,{...a,index:o,stepIndex:n,isLast:i,onDone:s})}function Ru({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s,onChange:c}=Nr(e,t);return r.jsx(Ji,{...a,index:o,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Pu({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s,onChange:c}=Nr(e,t);return r.jsx(Qi,{...a,index:o,stepIndex:n,isLast:i,onDone:s,onChange:c})}function zu({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s,onChange:c}=Nr(e,t);return r.jsx(ts,{...a,index:o,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Iu({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s,onChange:c}=Nr(e,t);return r.jsx(Su,{...a,index:o,stepIndex:n,isLast:i,onDone:s,onChange:c})}function nA({_stepIndex:e,_totalSteps:t,...a}){const{index:o,stepIndex:n,isLast:i,onDone:s,onChange:c}=Nr(e,t);return r.jsx(rA,{...a,index:o,stepIndex:n,isLast:i,onDone:s,onChange:c})}var iA=`.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)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{flex-wrap:wrap}.ihabdevteam-core-scope .trp-actions__reason{flex-basis:100%;margin:0;text-align:center}@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}
1061
1061
  /* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
1062
- \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}}`;oe(iA);function Ou(...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,o=[a.text,a.label,a.value];for(const n of o){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function sA(e){return Ou(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function a1(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=Ou(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(o=>a.includes(o)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(o=>a.includes(o)))return!1}}function Fu(e){const{score:t,contextsLength:a,results:o=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1,pending:d=!1}=e||{},{t:u}=ve.useTranslation(),p=l.useId(),h=l.useCallback(()=>!d,[d]);l.useEffect(()=>{const g=a??0;if(t!=null&&g>0&&t/g>.5){const y=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(y)}},[t,a]);const m=l.useCallback(g=>{const y=a1(g),_=Ou(g?.wording,g?.label);return y===!0?{variant:"main",label:_??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:y===!1?{variant:"danger",label:_??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:_??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),b=a??0,x=t??0,f=l.useMemo(()=>Array.isArray(o)?o:[],[o]),C=l.useMemo(()=>f.map(g=>{const y=g??{},_=sA(y)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:k}=m(y),A=Array.isArray(y.corrects)?y.corrects:[],w=A.length?A.join(", "):y.answer!=null&&y.answer!==""?String(y.answer):null,S=typeof y.selectedText=="string"?y.selectedText:null,E=a1(y)===!0;return{problem:_,variant:B,label:k,answer:w,selectedText:S,isCorrect:E}}),[f,m,u]),v=l.useMemo(()=>C.some(g=>g.answer!==null||g.selectedText!==null),[C]);return r.jsx(eo,{onClose:s,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:h,footerClassName:"trp-result__foot",footer:({animateThen:g,closeWithAnimation:y})=>r.jsxs(r.Fragment,{children:[d&&r.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:u("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),r.jsxs("div",{className:"trp-actions",children:[r.jsx(pe,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>g(i)}),r.jsx(pe,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:y,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),children:()=>r.jsxs("div",{className:"trp-result is-on",children:[r.jsxs("header",{className:"trp-result__head",children:[r.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),r.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&r.jsx("p",{className:"trp-result__subtitle body-3",children:n}),r.jsx("div",{className:"trp-score",children:r.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:x,total:b}),children:[r.jsx("span",{className:"trp-score__big",children:x}),r.jsx("span",{className:"trp-score__sep",children:"/"}),r.jsx("span",{className:"trp-score__total",children:b})]})})]}),C.length>0&&r.jsx("section",{className:"trp-result__body",children:r.jsxs("div",{className:`result-table${v?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[r.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[r.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),v&&r.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),r.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((g,y)=>r.jsxs("div",{className:"result-table__row",role:"row",children:[r.jsxs("div",{className:"trp-row__problem",children:[r.jsx("span",{className:"trp-row__no caption-1",children:String(y+1).padStart(2,"0")}),r.jsx("div",{className:"trp-row__q body-2",children:g.problem})]}),v&&r.jsxs("div",{className:"trp-row__answers",children:[g.answer!==null&&r.jsxs("div",{className:"trp-row__answer-line",children:[r.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),r.jsx("span",{className:"trp-row__answer-value body-2",children:g.answer})]}),r.jsxs("div",{className:"trp-row__answer-line",children:[r.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${g.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),r.jsx("span",{className:`trp-row__answer-value body-2 ${g.isCorrect?"is-correct":"is-wrong"}`,children:g.selectedText??"\u2014"})]})]}),r.jsx("div",{className:"trp-row__judge",children:r.jsx(Ct,{variant:g.variant,label:g.label,fill:"soft",minWidth:80})})]},y))]})})]})})}function lA(e){l.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,o=null,n=0,i=0;const s=()=>{const p=Date.now();a==null&&(a=p),o==null&&(o=p)},c=()=>{o!=null&&(n+=Date.now()-o,o=null)};t()&&s();const d=()=>{if(c(),a==null||n-i<1e3||i===0&&n<5e3)return;const p=a+i;i=n,Ll({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+n).toISOString()})},u=()=>{t()?s():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",u),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",u),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Hu(e,t){return e&&e.id||`page-${t??0}`}function Vu(e,t){return e&&e.key||`step-${t??0}`}function os(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function cA(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const dA=300,uA=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},_o=Object.freeze({}),o1=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function r1(e){const t=e,a=t?.results||t?.answers||[],o=Array.isArray(a)&&a.length>0?a.length:null,n=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:o!=null?n:null,total:o}}const pA=e=>r.jsx(Fu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function hA(e){const{scenario:t,title:a,subTitle:o,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:p,stepCount:h,onBack:m,onComplete:b,onNext:x,onSettings:f,useNoiseSetting:C=!0,children:v,ariaLabel:g,label:y,buildResults:_,onResult:B,typeKey:k,entryPoint:A,dailyTotal:w,itemRef:S,renderResultPopup:E,noiseOverride:$}=e;lA(k&&!o1.has(k)?k:"");const F=l.useRef(0);l.useEffect(()=>{F.current=Date.now()},[]);const{t:j}=ve.useTranslation(),z=B,D=!!t,T=t?.id||null,I=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],K=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],H=K.length>0,V=ie=>ie===Sn||ie?.__isTrainingPage===!0,q=H&&K.some(ie=>V(ie.type)),L=q?K.filter(ie=>V(ie.type)).map((ie,we)=>{const Y=ie.props||{};return{id:`children-page-${we}`,steps:l.Children.toArray(Y.children).filter(l.isValidElement),pageTop:Y.pageTop||Y.top||null,pageBottom:Y.pageBottom||Y.bottom||null}}):[{id:"children-page-0",steps:K}],N=H&&!D&&typeof v!="function",O=N?Math.max(1,L.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 ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const we=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;we>0?ie.dataset.ihabTrainingPopupCount=String(we):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return h6()},[]);const[P,W]=l.useState({...Ar,enabled:!1}),R=l.useRef(P);l.useEffect(()=>{R.current=P},[P]);const Z=l.useRef($),ee=l.useRef(!1),J=l.useRef(null);l.useEffect(()=>{let ie=!1;const we=Y=>{if(ie)return;ee.current=!0;const de=Y?Br({...Ar,enabled:!1},Y):{...Ar},he=J.current;J.current=null;const Be=he?Br(de,he):de;R.current=Be,W(Be),he&&!Z.current&&Yn(Be),ir(Be);const Se=Z.current;if(Se){const ze=typeof Se=="function"?Se(Be):Se,rt=Br(Be,ze);R.current=rt,W(rt),ir(rt)}};return Pl().then(we),()=>{ie=!0}},[]);const[ue,ne]=l.useState(null),[re,se]=l.useState(null),U=l.useCallback((ie,we)=>{ie==="main"?ne(we):se(we)},[]),le=l.useRef(null),me=l.useRef(null),_e=l.useCallback(()=>{me.current!==null&&(clearTimeout(me.current),me.current=null);const ie=le.current;le.current=null,ie&&Yn(ie)},[]);l.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&_e()};return window.addEventListener("pagehide",_e),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",_e),document.removeEventListener("visibilitychange",ie),_e()}},[_e]);const xe=l.useCallback(ie=>{const we=Br(R.current,ie);if(R.current=we,W(we),!ee.current){J.current={...J.current??{},...ie},ir(we);return}Z.current||(le.current=we,me.current!==null&&clearTimeout(me.current),me.current=setTimeout(_e,dA)),ir(we)},[_e]),ce=P.mainSpeed,Ce=P.mainVolume,Ae=l.useCallback(ie=>xe({mainSpeed:ie}),[xe]),X=l.useCallback(ie=>xe({mainVolume:ie}),[xe]),ye=l.useMemo(()=>({settings:P,setSettings:xe,registerAnalyser:U,mainAnalyser:ue,noiseAnalyser:re,playbackRate:ce,setPlaybackRate:Ae,mainVolume:Ce,setMainVolume:X}),[P,xe,U,ue,re,ce,Ae,Ce,X]),be=l.useRef(null),[ae,ge]=l.useState(0),Re=l.useRef([]),[Pe,ke]=l.useState("center"),[De,Fe]=l.useState(!1),Te=l.useRef(!1),tt=l.useRef(null),Ue=l.useCallback(ie=>{Te.current||(Te.current=!0,Fe(!0),tt.current=setTimeout(()=>{try{ie()}catch{Te.current=!1,Fe(!1)}},uA()?0:UB))},[]);l.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Qe=l.useRef(m);l.useEffect(()=>{Qe.current=m}),l.useEffect(()=>{const ie=be.current,we=document.activeElement;if(cc(ie,we),ie){const Y=Array.from(ie.querySelectorAll(Xa)).filter(de=>!de.closest('[aria-hidden="true"]'))[0];if(Y)try{Y.focus()}catch{}}return()=>{const Y=document.activeElement;if(!Y||Y===document.body||ie&&ie.contains(Y))try{dc(we)?.focus?.()}catch{}}},[]),l.useEffect(()=>Ro(()=>Ue(()=>{const ie=Qe.current;typeof ie=="function"&&ie()})),[Ue]),sc(be,!0);const[je,$e]=l.useState(!1),Ne=l.useRef(!1),[Oe,Ye]=l.useState(null),_t=l.useRef(0),jt=()=>{_t.current+=1,Ye(null)},[Pt,Lt]=l.useState(""),[st,Je]=l.useState(()=>os()),it=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!D&&!N||(Je(os()),jt())},[D,T,N]),l.useEffect(()=>{N&&Je(ie=>{const we=Math.max(0,Math.min(ie.pageIndex,Math.max(0,O-1)));return we!==ie.pageIndex?{...ie,pageIndex:we,stepIndex:0}:ie})},[N,O]);const ct=N?Math.max(0,Math.min(st.pageIndex,O-1)):0,Ke=N?L[ct]:null,bt=N&&Ke&&Array.isArray(Ke.steps)?Ke.steps:[],Ze=D?st.pageIndex:N?ct:typeof d=="number"?d:0,yt=D?G[Math.max(0,Math.min(st.pageIndex,Math.max(0,G.length-1)))]:null,Ft=D&&yt&&Array.isArray(yt.steps)?yt.steps:[],Mt=D?Ft.length:N?bt.length:typeof h=="number"?h:0,ft=D||N?Math.max(0,Math.min(st.stepIndex,Math.max(0,Mt))):typeof p=="number"?p:0,dt=D?G.length:N?O:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ie=it.current;if(typeof Ze=="number"&&ie!==null&&Ze!==ie&&Ze>ie)try{Lt(j("training.problemNotice",{n:Ze+1}))}catch{}it.current=typeof Ze=="number"?Ze:it.current},[Ze,d,j]),l.useLayoutEffect(()=>{const ie=be.current;if(!ie)return;const we=()=>ie.querySelector(".page-popup__scroll");let Y=null,de=null,he=null;const Be=ut=>{const At=we();if(!At)return;const Kt=At.scrollHeight<=At.clientHeight;if(ke(Kt?"center":"top"),ut&&!Ne.current){Ne.current=!0;try{$e(!0)}catch{}try{rt.disconnect()}catch{}}},Se=()=>{Y!==null&&cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{de!==null&&clearTimeout(de),de=setTimeout(()=>Be(!0),60)})},ze=()=>{he!==null&&cancelAnimationFrame(he),he=requestAnimationFrame(()=>Be(!1))};Se(),window.addEventListener("resize",ze);const rt=new MutationObserver(Se);rt.observe(ie,{childList:!0,subtree:!0,attributes:!0});const wt=setTimeout(()=>{Ne.current||Be(!0)},400);return()=>{window.removeEventListener("resize",ze),Y!==null&&cancelAnimationFrame(Y),de!==null&&clearTimeout(de),he!==null&&cancelAnimationFrame(he),clearTimeout(wt);try{rt.disconnect()}catch{}}},[be]);const Ve=l.useCallback(ie=>{be.current&&(be.current._childOnNext=ie)},[]),ot=l.useCallback(ie=>{be.current&&(be.current._childOnResult=ie)},[]),vt=l.useCallback((ie,we,Y)=>{Je(de=>{const he=de.answersByPage[ie]||{},Be=he[we],Se=as(Y),ze=as(Be);return Be&&ze>Se?de:{...de,answersByPage:{...de.answersByPage,[ie]:{...he,[we]:Y}}}})},[Je]),Xt=l.useCallback((ie,we,Y)=>{const de=Hu(yt,Ze),he=Vu(ie,we);vt(de,he,Y)},[yt,Ze,vt]),at=l.useCallback((ie,we,Y)=>{const de=Hu(yt,Ze),he=Vu(ie,we);vt(de,he,Y),!Y?.allowChange&&ie?.autoAdvance!==!1&&Je(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,we+1)}))},[yt,Ze,vt,Je]),Ht=l.useCallback((ie,we)=>{const Y=Ke?.id||`children-page-${Ze??0}`,de=typeof we=="number"?we:ft??0,he=`step-${de}`;vt(Y,he,ie),ie?.allowChange||Je(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,de+1)}))},[Ke,Ze,ft,vt,Je]),sa=l.useCallback((ie,we)=>{const Y=Ke?.id||`children-page-${Ze??0}`,de=`step-${typeof we=="number"?we:ft??0}`;vt(Y,de,ie)},[Ke,Ze,ft,vt]),Vt=N?{currentPageIndex:Ze??0,currentStepIndex:ft??0,totalStepsInPage:bt.length,handleStepDone:Ht,handleStepChange:sa}:null,Sa=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:st,answersByPage:st.answersByPage})):null;return typeof z=="function"&&await Promise.resolve(z(ie))||ie},Ea=async()=>{const ie=Ke?.id||`children-page-${st.pageIndex}`,we=st.answersByPage[ie]||{},Y=q?(()=>{const Be={};let Se=0;return L.forEach(ze=>{const rt=st.answersByPage[ze.id]||{},wt=Array.isArray(ze.steps)?ze.steps.length:0;for(let ut=0;ut<wt;ut+=1){const At=rt[`step-${ut}`];typeof At<"u"&&(Be[`step-${Se+ut}`]=At)}Se+=wt}),Be})():we;if(typeof _=="function"){const Be=await Promise.resolve(_(Y,{pageAnswers:we,answersByPage:st.answersByPage,pages:L,currentPageId:ie}));return typeof z=="function"&&await Promise.resolve(z(Be))||Be}const de=Object.entries(we).map(([Be,Se],ze)=>({index:ze,key:Be,payload:Se})),he={results:de,answers:de,score:0};return typeof z=="function"&&await Promise.resolve(z(he))||he},Na=()=>{const ie=++_t.current,we=()=>ie!==_t.current;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(D){const he=Sa();Ye(_o);const Be=he;Promise.resolve(Be).then(Se=>{we()||Ye(Se||{isEmpty:!0})}).catch(Se=>{!we()&&Ye({isEmpty:!0})});return}if(N){const he=Ea();Ye(_o);const Be=he;Promise.resolve(Be).then(Se=>{we()||Ye(Se||{isEmpty:!0})}).catch(Se=>{!we()&&Ye({isEmpty:!0})});return}const Y=be.current&&be.current._childOnResult,de=he=>{try{return he?he():void 0}catch{return}};if(typeof Y=="function"){const he=de(Y);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}he&&typeof he.then!="function"?Ye(he):Ye(he&&typeof he.then=="function"?_o:{});const Be=()=>{we()||Ye(Se=>Se===_o?{}:Se)};Promise.resolve(he).then(Se=>{Se&&!we()?Ye(Se):Be()}).catch(Se=>{Be()});return}if(typeof z=="function"){const he=de(z);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}he&&typeof he.then!="function"?Ye(he):Ye(he&&typeof he.then=="function"?_o:{});const Be=()=>{we()||Ye(Se=>Se===_o?{}:Se)};Promise.resolve(he).then(Se=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Se&&!we()?Ye(Se):Be()}).catch(Se=>{console.error("viewResults external handler failed",Se),Be()});return}},yo=()=>{if(D){if(typeof Ze=="number"&&typeof dt=="number"&&Ze<dt-1){Je(we=>({...we,pageIndex:we.pageIndex+1,stepIndex:0}));return}return Na()}if(N){const we=bt.length;if(typeof ft=="number"&&ft<we-1){Je(Y=>({...Y,stepIndex:Y.stepIndex+1}));return}if(typeof Ze=="number"&&typeof dt=="number"&&Ze<dt-1){Je(Y=>({...Y,pageIndex:Y.pageIndex+1,stepIndex:0}));return}return Na()}if(typeof x=="function"){try{x()}catch{}return}const ie=be.current&&be.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},Da=D?I.title||I.label||g||j("common.popup","\uD31D\uC5C5"):a||y||(Array.isArray(n)?n[n.length-1]:void 0)||g||j("common.popup","\uD31D\uC5C5"),wo=g||Da,oo=D?I.title??I.label??Da:a??y??Da,$t=(ie,we)=>{const Y=Hu(yt,Ze),de=Vu(ie,we),he=st.answersByPage[Y]?.[de],Be=cA(ie,{page:yt,pageIndex:Ze,step:ie,stepIndex:we,storedPayload:he,answersByPage:st.answersByPage,flowState:st}),Se={key:de,index:we,stepIndex:ft,isLast:we===Ft.length-1};switch(ie?.type){case"listen":return r.jsx(es,{...Se,...Be,onDone:ze=>at(ie,we,ze)});case"confirm":return r.jsx(Ji,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});case"confirmWithText":return r.jsx(Qi,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});case"orderList":return r.jsx(ts,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});default:return null}},Ha=l.useRef(void 0);l.useEffect(()=>{const ie=Ha.current;if(Ha.current=Ze,ie===void 0||ie===Ze||!zi())return;const we=be.current;if(!we)return;const Y=document.activeElement;if(!(!Y||Y===document.body||!we.contains(Y)||Y.disabled===!0))return;const de=we.querySelector(`.training-steps ${Xa.split(", ").join(", .training-steps ")}`)??Array.from(we.querySelectorAll(Xa)).find(he=>!he.closest('[aria-hidden="true"]'));try{de?.focus()}catch{}},[Ze]);const Jt=D?G.length>0?r.jsx("div",{className:"training-steps",children:Ft.map((ie,we)=>$t(ie,we))},`replay-${ae}`):r.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:r.jsx("div",{className:"pp-empty",children:t?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,la=N?r.jsxs(t1.Provider,{value:Vt,children:[Ke?.pageTop?r.jsx("div",{className:"training-page-top",children:Ke.pageTop}):null,r.jsx("div",{className:"training-steps",children:bt.map((ie,we)=>{const Y=ie;return l.cloneElement(Y,{...Y.props,_stepIndex:we,_totalSteps:bt.length,_stepKey:`step-${we}`,_pageIndex:Ze})})},`replay-${ae}`),Ke?.pageBottom?r.jsx("div",{className:"training-page-bottom",children:Ke.pageBottom}):null]}):null,Va=l.useCallback(()=>{let ie;if(k){const we=Oe,{results:Y,correct:de,total:he}=r1(Oe);Ml({items:Rl(Y),category:o1.has(k)?"sentence":"word",trainingType:k,entryPoint:A??"sentence",itemRef:S??null,correct:de,total:he,score:typeof we?.score=="number"?we.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:w??null}),ie={correct:de,total:he,attempt:Re.current.length+1,previousAttempts:[...Re.current]}}jt(),Ue(()=>{typeof b=="function"&&b(ie),typeof m=="function"&&m()})},[b,m,k,A,w,S,Oe,Ye,Ue]),ha=l.useCallback(()=>Lt(""),[Lt]),Wa=l.useCallback(()=>{Ue(()=>{typeof m=="function"&&m()})},[m,Ue]),ko=r.jsxs("div",{className:`page-popup${De?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":wo,children:[r.jsxs("div",{ref:be,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${Pe==="center"?"page-popup__panel--center":Pe==="top"?"page-popup__panel--top":""}`,children:[r.jsx(ju,{title:oo,subtitle:D?I.subtitle||I.label:Array.isArray(n)?n.join(" / "):void 0,desc:D?void 0:o,depth:D?I.depth:n,icon:D?I.icon:i,wrapperStyle:D?I.wrapperStyle:s,iconTooltip:D?I.iconTooltip:c,progressMax:dt,progressIndex:Ze,pageIndex:Ze,pageCount:dt,onBack:Wa,onClose:Wa}),r.jsx("div",{className:"page-popup__scroll",children:r.jsx("div",{className:`page-popup__content ${Pe==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:N?la:D?Jt:typeof v=="function"?v({registerOnNext:Ve,registerOnResult:ot,panelRef:be,setResultOverlay:Ye}):v})}),r.jsx(Tu,{onSettings:f,onNext:yo,onResult:Na,useNoiseSettingBtn:!!(D?I.useNoiseSetting??!0:C),stepIndex:ft,stepCount:Mt,pageIndex:Ze,pageCount:dt,resultOpen:!!(Oe&&!Oe.isEmpty)})]}),Oe&&!Oe.isEmpty&&(E??pA)({score:Oe.score,results:Oe.results||Oe.answers||[],contextsLength:Oe.results?Oe.results.length:Oe.answers?Oe.answers.length:0,onReplay:()=>{if(F.current=Date.now(),Oe!==_o){const{correct:ie,total:we}=r1(Oe);Re.current.push({correct:ie,total:we})}if(jt(),ge(ie=>ie+1),D){if(Je(os()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(N){Je(os());return}try{const ie=be.current&&be.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Va,pending:Oe===_o}),Oe?.isEmpty&&r.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:r.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[r.jsx("div",{className:"page-popup__scroll",children:r.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:r.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),r.jsx("div",{className:"page-popup__bottom",children:r.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:Va,label:j("training.result.done","\uC644\uB8CC")})})]})}),r.jsx(Fo,{message:Pt,position:"top",onClose:ha})]}),Ga=r.jsx(Ki.Provider,{value:ye,children:ko});return typeof document<"u"&&document.body?ca.createPortal(Ga,document.body):Ga}const ao=hA;ao.Page=Sn,ao.ListenStep=$u,ao.ConfirmStep=Ru,ao.ConfirmWithTextStep=Pu,ao.OrderListStep=zu,ao.CardStep=Iu,ao.CardOrderStep=nA;var mA=".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);display:flex;flex-direction:column;gap:var(--spacing-m);padding:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__head{align-items:center;-moz-column-gap:var(--spacing-xs);column-gap:var(--spacing-xs);display:flex;flex-wrap:wrap;row-gap:0}.ihabdevteam-core-scope .word-search-result-block__head-main{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .word-search-result-block__head-icon{color:var(--color-gray);flex-shrink:0}.ihabdevteam-core-scope .word-search-result-block__title{min-width:0;text-align:left}.ihabdevteam-core-scope .word-search-result-block__head-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .word-search-result-block__head-disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.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}";oe(mA);var bA='.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}';oe(bA);function gA({label:e,homonum:t}){const a=io()?.(e,t)??"",{imgRef:o,loading:n,hasImage:i,onLoad:s,onError:c}=nu(a);return i?r.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&r.jsx("div",{className:"tooltip-word-image__spinner"}),r.jsx("img",{ref:o,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):r.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:r.jsx("span",{children:e})})}function Wu({words:e,anchorRect:t}){const a=l.useRef(null),[o,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:ca.createPortal(r.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:o?"visible":"hidden",left:o?.left??0,top:o?.top??-9999},children:r.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>r.jsx(gA,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const fA=new Intl.Collator("ko");function n1({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:o,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:p,onPrintEmpty:h,className:m,emptyHint:b,sectionType:x="page",disc:f}){const{t:C,i18n:v}=ve.useTranslation(),g=v.language?.startsWith("ko")??!1,{anchorRect:y,openAt:_,close:B}=Io(),[k,A]=l.useState(null),w=l.useCallback(()=>{B(),A(null)},[B]);gd(w,!!k);const S=(o??"").trim(),E=/^[^,[\]\s]+$/.test(S)?S:"",$=E.length>0,F=o===void 0&&t===void 0,j=$?"match":F?"original":"ganada",[z,D]=l.useState(()=>j),[T,I]=l.useState("50"),[G,K]=l.useState(1),[H,V]=l.useState($);H!==$&&(V($),D(j));const q=z==="match"&&!$||z==="original"&&!F?j:z,L=l.useMemo(()=>[...$?[{value:"match",label:C("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:C("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:C("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:C("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:C("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:C("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:C("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:C("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[C,$,F]),N=l.useMemo(()=>["10","25","50","100"].map(ce=>({value:ce,label:C("wordSearch.pageSize",{count:Number(ce),defaultValue:`${ce}\uAC1C\uC529 \uBCF4\uAE30`})})),[C]),O=ce=>ce.words?.[0],P=l.useMemo(()=>{const ce=[...E].length,Ce=Ws(E),Ae=new Map;return X=>{let ye=Ae.get(X);return ye===void 0&&(ye=Ce((X.words?.[0]?.label??"").slice(0,ce))?0:1,Ae.set(X,ye)),ye}},[E]),W=l.useCallback((ce,Ce)=>{const Ae=be=>O(be)?.label??"",X=be=>O(be)?.syllables??[...Ae(be)].length,ye=be=>(be.words??[]).reduce((ae,ge)=>{const Re=parseInt(ge.grade??"",10);return Number.isFinite(Re)&&Re<ae?Re:ae},999);switch(q){case"match":return P(ce)-P(Ce)||fA.compare(Ae(ce),Ae(Ce));case"ganada":return Ae(ce).localeCompare(Ae(Ce),"ko");case"ganada_desc":return Ae(Ce).localeCompare(Ae(ce),"ko");case"syllable":return X(ce)-X(Ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"syllable_desc":return X(Ce)-X(ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"grade":return ye(ce)-ye(Ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"grade_desc":return ye(Ce)-ye(ce)||Ae(ce).localeCompare(Ae(Ce),"ko");default:return 0}},[q,P]),R=l.useMemo(()=>n.slice().sort(W),[n,W]),Z=Number(T)||10,ee=l.useMemo(()=>(i??[]).flatMap(ce=>ce.items.slice().sort(W).map(Ce=>({item:Ce,label:ce.label}))),[i,W]),J=i?ee.length:R.length,ue=Math.max(1,Math.ceil(J/Z)),ne=Math.min(G,ue),re=l.useMemo(()=>R.slice((ne-1)*Z,ne*Z),[R,ne,Z]),se=l.useMemo(()=>{if(!i)return null;const ce=ee.slice((ne-1)*Z,ne*Z),Ce=new Map;for(const{item:Ae,label:X}of ce)Ce.has(X)||Ce.set(X,[]),Ce.get(X).push(Ae);return[...Ce.entries()].map(([Ae,X])=>({label:Ae,items:X}))},[i,ee,ne,Z]);l.useEffect(()=>{K(1)},[z,T,J,o]);const U=J>0?r.jsxs("div",{className:"word-search-result-block__toolbar",children:[r.jsx(fa,{size:40,options:L,value:q,onChange:D,ariaLabel:C("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),r.jsx(fa,{size:40,options:N,value:T,onChange:I,ariaLabel:C("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),r.jsx(_n,{page:ne,totalPages:ue,onChange:K})]}):void 0,le=ce=>{c&&c(ce)},me=t!==void 0&&a?r.jsxs(r.Fragment,{children:[C("wordSearch.resultTitlePrefix","\uCD1D "),r.jsx("span",{style:{color:"var(--color-main)"},children:t}),C("wordSearch.resultTitleSuffix",{unit:g?ul(a):a})]}):void 0,_e=t!==void 0&&t>0&&d!==void 0&&a?C("wordSearch.resultDisc",{unit:g?hl(a):a,max:d,selected:s.length}):void 0,xe=f??_e;return r.jsxs(Ho,{type:x,className:Le("word-search-result-block",m),children:[r.jsxs("div",{className:"word-search-result-block__inner",children:[(me||U||xe)&&r.jsxs("div",{className:"word-search-result-block__head",children:[r.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&r.jsx(Xe,{icon:e,className:"word-search-result-block__head-icon"}),me&&r.jsx("span",{className:"word-search-result-block__title h3",children:me})]}),U&&r.jsx("div",{className:"word-search-result-block__head-actions",children:U}),xe&&r.jsx("div",{className:"word-search-result-block__head-disc body-3",children:xe})]}),(i?i.length===0:n.length===0)&&r.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[r.jsx("p",{className:"word-search-result-block__empty body-3",children:C("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&r.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(se??[]).map(ce=>r.jsx("div",{className:"word-search-result-block__group",children:r.jsx("div",{className:"word-search-result-block__items",children:ce.items.map(Ce=>{const Ae=s.includes(Ce.id);return r.jsx("div",{onMouseEnter:X=>{_(X.currentTarget),A(Ce.words??[])},onMouseLeave:w,children:r.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(Ce.words??[]).map(X=>X.label),subLabel:(Ce.words??[]).some(X=>X.subLabel)?(Ce.words??[]).map(X=>X.subLabel):void 0,selected:Ae,onClick:()=>le(Ce.id),minWidth:200})},Ce.id)})})},ce.label)):r.jsx("div",{className:"word-search-result-block__items",children:re.map(ce=>{const Ce=s.includes(ce.id);return r.jsx("div",{onMouseEnter:Ae=>{_(Ae.currentTarget),A(ce.words??[])},onMouseLeave:w,children:r.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(Ae=>Ae.label),subLabel:(ce.words??[]).some(Ae=>Ae.subLabel)?(ce.words??[]).map(Ae=>Ae.subLabel):void 0,selected:Ce,onClick:()=>le(ce.id),minWidth:200})},ce.id)})}),k&&y&&r.jsx(Wu,{words:k,anchorRect:y})]}),ue>1&&r.jsx("div",{className:"word-search-result-block__pagination-bottom",children:r.jsx(_n,{page:ne,totalPages:ue,onChange:K})}),(u||p)&&r.jsxs("div",{className:"word-search-result-block__actions",children:[u&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:C("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),p&&r.jsx("div",{onClick:s.length===0?h:void 0,children:r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:C("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:p})})]})]})}var vA='.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-group{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-group>.phoneme-select-block__cell{flex:1 1 auto;min-width:0;width:auto}.ihabdevteam-core-scope .phoneme-select-block__cell{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';oe(vA);function xA(e,t){return t.map(a=>{const o=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:o,value:e[o]??"",displayLabel:n}})}function i1({sections:e,selectedList:t,count:a,onCountChange:o,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:p,title:h,titleIcon:m,disc:b,showInfoButton:x=!0,onClearPhoneme:f,onSearch:C,onSearchEmpty:v,searchDisabled:g=!1,searchLabel:y,searchChecking:_=!1,pairMode:B=!1,sectionType:k="page",beforeSearchContent:A,beforeContent:w,afterContent:S,hideCountControl:E=!1,ordinal:$=!1}){const{t:F}=ve.useTranslation(),j=l.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),z=l.useMemo(()=>Array.from({length:n-i+1},(P,W)=>{const R=i+W;return{key:String(R),label:F("wordPairs.count",{n:R})}}),[F,n,i]),D=l.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),T=l.useCallback(P=>$?F("wordPairs.phonemeOrdinalLabel",{ordinal:D[P-1]??P}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:P}),[$,D,a,F]),I=l.useCallback(P=>$?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:D[P-1]??P}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:P}),[$,D,a,F]),G=l.useCallback((P,W)=>W?r.jsxs(r.Fragment,{children:[P,r.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:K,toggleAt:H,close:V}=Io(),q=l.useCallback(P=>o(Number(P)),[o]),L=na("(max-width: 767px)"),N=l.useCallback(P=>xA(P,e).map(({label:W,value:R,displayLabel:Z})=>{const ee=!!R&&R!=="\uC5C6\uC74C";return r.jsxs("span",{className:Le("phoneme-select-block__cell-jamo-part",R?"":"phoneme-select-block__cell-jamo-part--empty",ee?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[r.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${R==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:R==="\uC5C6\uC74C"?"x":R||u}),ee&&r.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Z??W})]},W)}),[e,u]),O=r.jsxs(r.Fragment,{children:[r.jsx("div",{"data-tooltip-ignore":!0,children:r.jsx(pe,{htmlType:"button",size:40,type:L?"dot":void 0,icon:"info",label:L?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:K?"is-selected":void 0,"aria-expanded":!!K,"aria-haspopup":"dialog",onClick:P=>H(P.currentTarget)})}),K&&r.jsx(go,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:K,onClose:V})]});return r.jsxs(Ho,{type:k,title:h,icon:m,disc:b,action:x?O:void 0,className:Le("phoneme-select-block",p),children:[w,!E&&r.jsx("div",{className:"phoneme-select-block__controls",children:r.jsx(Ia,{options:z,value:String(a),onChange:q,size:40,className:"phoneme-select-block__count-control"})}),r.jsx("div",{className:"phoneme-select-block__cells",children:B?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2]??{};return r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(R)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(W+1)})]},W)})}),r.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),r.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2+1]??{};return r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(R)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(W+1)})]},W)})})]}):t.map((P,W)=>r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(P)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(W+1)})]},W))}),(s||c)&&r.jsx("div",{className:"phoneme-select-block__panels",children:r.jsx("div",{className:"phoneme-select-block__detail",children:B?r.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[r.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2]??{};return r.jsx(Fa,{title:G(T(W+1),W===0),sections:c?c(R,W*2):s,selected:R,onSelect:d?.(W*2),align:"newline"},W)})}),r.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2+1]??{};return r.jsx(Fa,{title:I(W+1),sections:c?c(R,W*2+1):s,selected:R,onSelect:d?.(W*2+1),align:"newline"},W)})})]}):t.map((P,W)=>r.jsx(Fa,{title:G(T(W+1),W===0),sections:c?c(P,W):s,selected:P,onSelect:d?.(W),align:"newline"},W))})}),A&&r.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(f||C||_)&&(()=>{const P=t.every(W=>Object.entries(W).every(([R,Z])=>!Z||R==="\uC885\uC131"&&Z==="\uC5C6\uC74C"));return r.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?v:void 0,children:[f&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:f}),C?r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:_?r.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:y??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||g||_,onDisabledClick:_?()=>{}:void 0,"aria-busy":_||void 0,onClick:C}):_?r.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[r.jsx("div",{className:"phoneme-select-block__spinner"}),r.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:y??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),S]})}function s1({title:e,sections:t,selected:a,onSelect:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,headerAction:u,className:p}){const{t:h}=ve.useTranslation();return r.jsx(Fa,{className:p,title:e??h("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,headerAction:u,align:"inline"})}function l1({title:e,headerAction:t,sections:a,selected:o,onSelect:n,className:i}){const{t:s}=ve.useTranslation();return a.length===0?null:r.jsx(Fa,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:o,onSelect:n,align:"newline"})}function c1({title:e,mode:t,onModeChange:a,matchMode:o,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:p}=ve.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=C=>p("wordPairs.count",{n:C}),b=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:r.jsx(vr,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:r.jsx(vr,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:r.jsx(vr,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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.")]})}],x={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:o==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},f=(C,v)=>{v===h.searchMode?a(C===h.explicit?"explicit":C===h.pick?"pick":"include"):v===h.phonemeOrder?n(C===h.orderMatch?"ordered":"unordered"):v===h.count?s(C===m(2)?2:1):v===h.inputMode&&d(C===h.pronInput?"phoneme":"word")};return r.jsx(Fa,{className:u,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:x,onSelect:f,align:"inline"})}var CA=".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}";oe(CA);function d1(e){const{title:t,items:a,columns:o,gridTemplateColumns:n,mobileGridTemplateColumns:i,searchPlaceholder:s,searchFn:c,defaultSortKey:d,defaultSortAsc:u=!0,selectedId:p,selectedIds:h,onSelect:m,onClose:b,pageSizeOptions:x=[10,25,50,100],initialPageSize:f,emptyText:C,countLabel:v,topContent:g,className:y=""}=e,{t:_}=ve.useTranslation(),B=s??_("common.search","\uAC80\uC0C9"),k=C??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[A,w]=l.useState(""),[S,E]=l.useState(d??o[0]?.key??""),[$,F]=l.useState(u),[j,z]=l.useState(String(f??x[0]??10)),[D,T]=l.useState(1);l.useEffect(()=>{T(1)},[A,j]);const I=c!==null,G=l.useCallback((R,Z)=>{if(!Z)return!0;const ee=Z.toLowerCase();return o.some(J=>{const ue=R[J.key];return ue==null?!1:String(ue).toLowerCase().includes(ee)})},[o]),K=c??G,H=l.useMemo(()=>{const R=I?a.filter(Z=>K(Z,A)):a;return S?[...R].sort((Z,ee)=>{const J=Z[S],ue=ee[S];return J===ue?0:Kc(J,ue,$)}):R},[a,A,S,$,I,K]),V=Math.max(1,Math.ceil(H.length/Number(j)));D>V&&T(V);const q=Math.min(D,V),L=H.slice((q-1)*Number(j),q*Number(j)),N=l.useCallback(R=>{S===R?F(Z=>!Z):(E(R),F(!0)),T(1)},[S]),O=l.useMemo(()=>{if(typeof v=="function"){const R=H.length,Z=v(R);if(typeof Z=="string"){const ee=Z.lastIndexOf(String(R));if(ee>=0)return{prefix:Z.slice(0,ee),suffix:Z.slice(ee+String(R).length)}}return{label:Z}}if(typeof v=="string"&&v.includes("{n}")){const[R,Z]=v.split("{n}");return{prefix:R,suffix:Z}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,H.length,_]),P=l.useMemo(()=>o.map(R=>({label:R.label,onClick:R.sortable!==!1?()=>N(R.key):void 0,className:R.className,sortDir:R.sortable!==!1&&S===R.key?$?"asc":"desc":null})),[o,S,$,N]),W=l.useMemo(()=>x.map(R=>({value:String(R),label:_("common.pageSizeLabel",{n:R})})),[x,_]);return r.jsxs(eo,{className:`popup-list ${y}`,title:t,onClose:b,children:[g,"label"in O&&r.jsx("p",{className:"toolbar__count body-1",children:O.label}),r.jsx(Ti,{count:"label"in O?void 0:{value:H.length,prefix:O.prefix,suffix:O.suffix},search:I?{value:A,onChange:w,placeholder:B}:void 0,pageSize:{options:W,value:j,onChange:z},pagination:{page:q,total:V,onChange:T}}),r.jsx(Pi,{size:"medium",gridTemplateColumns:n,mobileGridTemplateColumns:i,resizable:!0,fields:P,items:L,onRowClick:m,renderRow:R=>{const Z=h!=null?R.id!=null&&h.has(R.id):p!=null&&R.id===p;return o.map(ee=>({content:ee.render?ee.render(R):R[ee.key]??"",className:Le(ee.className,Z&&"popup-list__row--selected")}))},empty:k})]})}function Gu(e){const{title:t,message:a,topContent:o,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:b=!0,onClose:x,inline:f,size:C="small",className:v,initialFocus:g="close"}=e,{t:y}=ve.useTranslation(),_=l.useRef(null);l.useEffect(()=>{if(f||g==="close")return;const E=_.current?.closest(".popup-panel"),$=Array.from(E?.querySelectorAll(".popup-footer--buttons button")??[]),F=g==="confirm"?$[$.length-1]:d?void 0:$[u?1:0];F&&!F.disabled&&F.focus()},[]);const B=l.useRef(!1),[k,A]=l.useState(!1),w=E=>{let $=!1;return{close:()=>{$=!0,E()},\uB2EB\uC558\uB098:()=>$}},S=async E=>{if(B.current)return;B.current=!0;const $=typeof document<"u"?document.activeElement:null;A(!0);let F=!1;try{F=await E()}catch(j){typeof console<"u"&&console.error(j)}finally{F||(B.current=!1,A(!1),requestAnimationFrame(()=>{const j=document.activeElement;(!j||j===document.body)&&$?.isConnected&&$.focus()}))}};return r.jsxs(eo,{title:t,onClose:x,closeDisabled:k,inline:f,size:C,className:Le("confirm-popup",o!=null&&"confirm-popup--has-top",v),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||k,onClick:async({closeWithAnimation:E})=>{await S(async()=>{const $=w(E);await u.onClick($.close);const F=u.closeOnClick??!0;return F&&E(),F||$.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:c??y("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:k,onClick:({closeWithAnimation:E})=>E()}],{label:s??y("common.confirm","\uD655\uC778"),variant:p,disabled:h||k,onClick:async({closeWithAnimation:E})=>{await S(async()=>{const $=w(E);return await m($.close),b&&E(),b||$.\uB2EB\uC558\uB098()})}}],children:[o!=null&&r.jsx("div",{className:"confirm-popup__top",children:o}),n&&n.length>0&&r.jsx(An,{children:n.map((E,$)=>r.jsx(to,{label:E.label,children:r.jsx("span",{className:"panel-row__text body-2",children:E.value})},$))}),r.jsx("p",{ref:_,className:"body-2 confirm-popup__message",children:a}),i]})}function u1(e,t,a={}){const{t:o}=ve.useTranslation(),[n,i]=l.useState(!1),s=l.useRef(!1),c=l.useCallback(()=>{s.current=!0},[]),d=l.useCallback(()=>s.current?(s.current=!1,!0):e?(i(!0),!1):!0,[e]),u=n?r.jsx(Gu,{title:a.title??o("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??o("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??o("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:u,allowClose:c}}var _A=".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}";oe(_A);function p1({onApply:e,onCancel:t}){const{t:a}=ve.useTranslation(),[o,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const p=l.useCallback(async b=>{const x=o.trim();if(x){s(!0),d(null);try{await e(x),b()}catch(f){d(Jr(f)),s(!1),requestAnimationFrame(()=>u.current?.focus())}}},[o,e]),h=l.useCallback((b,x)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(x)},[p]),m=b=>{n(b.target.value),d(null)};return r.jsx(eo,{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:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!o.trim()||i,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>r.jsxs(r.Fragment,{children:[r.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:o,onChange:m,onKeyDown:x=>h(x,b),disabled:i,autoComplete:"off",spellCheck:!1}),c&&r.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var yA=".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}";oe(yA);const h1=["var(--color-main)","var(--color-sub)"],wA=2e3;function kA(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function rs({active:e=!1,count:t=40,duration:a=2e3,strength:o=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const f=Math.floor(t/2),C=t-f,v=(g,y)=>Array.from({length:g}).map((_,B)=>{const k=6+Math.random()*12,A=Math.round(Math.min(18,k*Math.min(1.5,1+o*.4))),w=h1[Math.floor(Math.random()*h1.length)],S=Math.random()*300,E=(360+Math.random()*260)*o*1.2,$=(y==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos($)*E,j=Math.sin($)*E*1.35,z=Math.random()*720-360,D=(1200+Math.random()*3e3)*Math.min(1.6,1+o*.3),T=Math.random()>.7?"50%":"3px";return{id:`${y}-${B}`,side:y,size:A,color:w,delay:S,vx:F,vy:j,angularVel:z,life:D,borderRadius:T}});return[...v(f,"left"),...v(C,"right")]},[t,o]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),p=l.useRef(n);l.useEffect(()=>{p.current=n},[n]);const h=l.useRef(null),m=l.useRef(null),b=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&m.current==null&&(m.current=b()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const V=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(V)}const f=1200,C=performance.now(),v=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),y=V=>Math.max(40,(V||window.innerWidth)*.02),_=v?.width||window.innerWidth||375,B=v?.height||window.innerHeight||812,k=V=>{const q=[...V].sort((L,N)=>L-N);return q[Math.floor(q.length/2)]||1},A=k(s.map(V=>Math.abs(V.vy))),w=k(s.map(V=>Math.abs(V.vx))),S=Math.sqrt(2*f*(B*.72+g))/A,E=A*S/f,$=_*.5/(w*E),F=(V,q,L)=>Math.min(L,Math.max(q,V)),j=F(S,.8,2.4),z=F($,.7,2.2),D=a>0?a/wA:1,T=s.map(V=>({...V,life:V.life*D,vx:V.vx*z,vy:V.vy*j,startTime:C+V.delay,ended:!1})),I=v?{x:v.left-y(v.width),y:v.top+v.height+g}:{x:-y(window.innerWidth),y:window.innerHeight+g},G=v?{x:v.left+v.width+y(v.width),y:v.top+v.height+g}:{x:window.innerWidth+y(window.innerWidth),y:window.innerHeight+g},K=V=>{let q=!1;for(const L of T){const N=d.current[L.id];if(!N||!N)continue;if(V<L.startTime){N.style.display="none",q=!0;continue}if(!L._inited){const re=L.side==="left"?I.x:G.x,se=L.side==="left"?I.y:G.y;N.style.left=`${re}px`,N.style.top=`${se}px`,N.style.transform="translate3d(0px, 0px, 0)",N.style.display="block",N.style.zIndex="100000",typeof L.color=="string"&&L.color.startsWith("var(")&&(N.style.background=kA(N,L.color)??"#FF0060"),L._inited=!0}const O=(V-L.startTime)/1e3;if(O<0)continue;const P=L.life/1e3;if(O>=P){N.style.opacity="0",N.style.display="none",L.ended=!0;continue}q=!0;const W=L.side==="left"?I.x:G.x,R=L.side==="left"?I.y:G.y,Z=W+L.vx*O,ee=R+L.vy*O+.5*f*O*O,J=(L.angularVel||0)*O,ue=Z-W,ne=ee-R;N.style.transform=`translate3d(${ue}px, ${ne}px, 0) rotate(${J}deg)`,N.style.opacity=`${Math.max(0,1-O/P)}`}q?u.current=requestAnimationFrame(K):p.current?.()};u.current=requestAnimationFrame(K);const H=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const V=document.createElement("div");V.className="party-container",V.style.position="fixed",V.style.inset="0",V.style.pointerEvents="none",V.style.overflow="visible",V.style.zIndex="2147483647";for(const q of s){const L=document.createElement("span");L.className=`confetti confetti--${q.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${q.size}px`,L.style.height=`${Math.max(4,q.size*.6)}px`,L.style.background=q.color,L.style.borderRadius=q.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",V.appendChild(L),d.current[q.id]=L}(document.body||m.current).appendChild(V),h.current=V}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(H),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,s]),!e)return null;const x=r.jsx("div",{className:"party-container",ref:c,children:s.map(f=>r.jsx("span",{"aria-hidden":!0,ref:C=>{d.current[f.id]=C},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?ca.createPortal(x,m.current||document.body):x}const Uu=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function m1({trigger:e=0,active:t=!1}){const[a,o]=l.useState(null);l.useEffect(()=>{if(typeof window>"u")return;const i=s=>{const c=s.detail??{};o(d=>({n:(d?.n??0)+1,count:Uu(c.count),strength:Uu(c.strength),duration:Uu(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const n=l.useCallback(()=>o(null),[]);return r.jsxs(r.Fragment,{children:[r.jsx(rs,{active:t,trigger:e}),a&&r.jsx(rs,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:n})]})}var BA=".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:center;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}.ihabdevteam-core-scope .page-title--wrap{flex-wrap:wrap}.ihabdevteam-core-scope .page-title--wrap .page-title__main{min-width:min(320px,100%)}";oe(BA);function b1({title:e,sub:t,rightAction:a,titleAction:o,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d,wrap:u=!1}){const{t:p}=ve.useTranslation();Uc(typeof e=="string"?e:s??null);const h=d??p("common.back","\uB4A4\uB85C");return r.jsxs("div",{className:u?"page-title page-title--wrap":"page-title",children:[r.jsxs("div",{className:"page-title__main",children:[r.jsxs("div",{className:"page-title__title-row",children:[c&&r.jsx(pe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),r.jsx("h1",{className:"page-title__title h1",children:e}),n&&r.jsx("div",{className:"page-title__badge",children:r.jsx(Ct,{label:n,size:"small",variant:i,fill:"outline"})}),o?r.jsx("div",{className:"page-title__title-action",children:o}):null]}),t&&r.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?r.jsx("div",{className:"page-title__action",children:a}):null]})}function g1(e){return e??""}const f1=l.createContext({words:[],loading:!1});function v1(){return l.useContext(f1)}function x1({words:e,loading:t,error:a,statusMessage:o,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return r.jsx(f1.Provider,{value:{words:e,loading:t,error:a,statusMessage:o,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var AA=".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)}";oe(AA);function C1({items:e,actions:t,columns:a,flat:o=!1,className:n,style:i}){const s=a??e.length;return r.jsx("section",{className:Le("summary-strip",o&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:r.jsxs("div",{className:"summary-strip__row",children:[r.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>r.jsxs("div",{className:"summary-strip__item",children:[r.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),r.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},d))}),t&&r.jsx("div",{className:"summary-strip__actions",children:t})]})})}var SA='.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}.ihabdevteam-core-scope .report-doc__measure{height:0;overflow:hidden}.ihabdevteam-core-scope .report-doc__measure>*{flex-shrink:0}}';oe(SA);const EA=(e,t)=>`${e} / ${t}`;function _1({blocks:e,sectionTitles:t,logo:a,footer:o,pageLabel:n=EA,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:p}=ve.useTranslation(),h=l.useRef(null),m=l.useRef(null),b=l.useRef(null),x=l.useRef(null),[f,C]=l.useState(null),[v,g]=l.useState(!1);l.useEffect(()=>{const D=h.current;if(!D)return;const T=()=>g(D.scrollWidth>D.clientWidth+1);if(T(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(T);return I.observe(D),()=>I.disconnect()},[f]);const y=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join(""),_=f&&f.shape===y?f.pages:null,[B,k]=l.useState(0);l.useEffect(()=>{const D=x.current;if(!D||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>k(D.offsetHeight));return T.observe(D),()=>T.disconnect()},[]);const[A,w]=l.useState(0);l.useEffect(()=>{const D=m.current;if(!D||typeof ResizeObserver>"u")return;let T=null;const I=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),K=new ResizeObserver(()=>{T==null&&(T=I(()=>{T=null,w(H=>H+1)}))});return Array.from(D.children).forEach(H=>K.observe(H)),()=>{K.disconnect(),T!=null&&G(T)}},[y]),l.useLayoutEffect(()=>{const D=m.current,T=x.current;if(!D||!T)return;const I=P=>P.getBoundingClientRect().height||P.offsetHeight,G=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(P=>{G.set(P.dataset.chromeSection??"",I(P))});const K=P=>I(T)-(G.get(P??"")??0),H=Array.from(D.children).map(P=>I(P)),V=[];e.forEach((P,W)=>{const R=V[V.length-1],Z=R?e[R[0]]:void 0;Z&&P.group!=null&&Z.group===P.group&&Z.section===P.section?R.push(W):V.push([W])});const q=[];let L=[],N=0;const O=()=>{L.length&&q.push(L),L=[],N=0};V.forEach(P=>{const W=P.reduce((Z,ee)=>Z+H[ee],0),R=K(e[P[0]].section);L.length&&e[L[0]].section!==e[P[0]].section&&O(),W>R?P.forEach(Z=>{L.length&&N+H[Z]>R+.01&&O(),L.push(Z),N+=H[Z]}):(L.length&&N+W>R+.01&&O(),P.forEach(Z=>L.push(Z)),N+=W)}),O(),C(P=>P&&P.shape===y&&JSON.stringify(P.pages)===JSON.stringify(q)?P:{shape:y,pages:q})},[y,B,i,s,c,A]);const S=jd,E=S,$=o??r.jsxs(r.Fragment,{children:[r.jsx("img",{src:E,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(D,T,I)=>({header:r.jsxs("div",{className:"report-doc__header",children:[r.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&t?.[I]||null}),a]}),footer:r.jsxs("div",{className:"report-doc__footer caption-1",children:[r.jsx("span",{className:"report-doc__footer-left",children:$}),r.jsx("span",{className:"report-doc__page-no",children:n(D,T)})]})}),j=Array.from(new Set(e.map(D=>D.section??""))),z={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return r.jsxs("div",{ref:h,className:Le("report-doc",d),style:z,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[r.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[r.jsx("div",{ref:x,className:"report-doc__ruler"}),r.jsx("div",{ref:b,children:j.map(D=>{const T=F(1,1,D||void 0);return r.jsxs("div",{"data-chrome-section":D,children:[T.header,T.footer]},D)})}),r.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(D=>r.jsx("div",{children:D.content},D.id))})]}),_&&r.jsx("div",{className:"report-doc__pages",children:_.map((D,T)=>{const{header:I,footer:G}=F(T+1,_.length,e[D[0]].section);return r.jsxs("section",{className:"report-doc__page",children:[I,D.map(K=>r.jsx("div",{children:e[K].content},e[K].id)),G]},T)})})]})}var NA=".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}";oe(NA);function y1({title:e,fields:t,columns:a=4,className:o,style:n}){return r.jsxs("div",{className:Le("report-info",o),style:{"--report-info-cols":String(a),...n},children:[e&&r.jsx("p",{className:"report-info__title h5b",children:e}),r.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>r.jsxs("div",{className:"report-info__field body-2",children:[r.jsx("span",{className:"report-info__label body-3",children:i.label}),r.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}const Uo=new Map;let ns=null;const DA=12;function TA(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function is(){const e=new Map;for(const t of Uo.keys()){if(!t.isConnected)continue;const a=TA(t),o=e.get(a)??[];o.push(t),e.set(a,o)}for(const t of e.values()){t.sort((o,n)=>o.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const o of t){a>0?o.style.setProperty("--update-alert-stack-offset",`${a}px`):o.style.removeProperty("--update-alert-stack-offset");const n=o.getBoundingClientRect().height;n>0&&(a+=n+DA)}}}function jA(e){return typeof window>"u"?()=>{}:(Uo.set(e,(Uo.get(e)??0)+1),Uo.get(e)===1&&typeof ResizeObserver<"u"&&(ns??(ns=new ResizeObserver(()=>is())),ns.observe(e)),is(),()=>{const t=(Uo.get(e)??1)-1;if(t>0){Uo.set(e,t),is();return}Uo.delete(e),ns?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),is()})}var LA=".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;top:calc(16px + var(--update-alert-stack-offset, 0px));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;top:auto;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%}";oe(LA);function w1({title:e,message:t,actionLabel:a,onAction:o,icon:n,onClose:i,className:s=""}){const{t:c}=ve.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),u=l.useRef(null),p=l.useRef(!1);return l.useLayoutEffect(()=>{const h=u.current,m=h?.parentElement?.closest(".update-alert-stack")??h,b=m?jA(m):null;return()=>{b?.(),p.current&&h&&h.contains(document.activeElement)&&ci(h)}},[]),r.jsxs("div",{ref:u,className:Le("update-alert",s),role:"alert",children:[i&&r.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),r.jsxs("div",{className:"update-alert__top",children:[r.jsx("div",{className:"update-alert__icon",children:n??r.jsx(cp,{size:20,strokeWidth:2})}),r.jsxs("div",{className:"update-alert__body",children:[r.jsx("div",{className:"update-alert__title h4",children:e}),r.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),o&&r.jsx(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:o,children:d})]})}var MA=".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}";oe(MA);function k1({title:e,description:t,topActions:a,children:o,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:p}){const h=n!=null||i!=null,m=o!=null&&o!==!1,b=l.useCallback(x=>{s&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),s())},[s]);return r.jsxs("div",{className:Le("training-card",s?"training-card--clickable":"",p),onClick:s,onKeyDown:s?b:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[r.jsxs("div",{className:"training-card__header",children:[r.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?r.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&r.jsx("div",{className:"training-card__top-actions",onClick:x=>x.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?r.jsx("p",{className:"training-card__description body-3",children:t}):t:r.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&r.jsx("div",{className:"training-card__body",children:o}),h&&r.jsxs("div",{className:"training-card__footer",children:[n!=null&&r.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&r.jsx("div",{className:"training-card__meta",children:i})]})]})}var $A=".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}";oe($A);function B1({title:e,count:t,collapsed:a=!1,onToggle:o,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:p,onDrop:h,children:m,className:b}){const{t:x}=ve.useTranslation(),f=o!=null,C=Le("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",b);return r.jsxs("div",{className:C,onDragOver:u,onDragLeave:p,onDrop:h,children:[r.jsxs("header",{className:"training-card-group__header",children:[f&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?x("common.expand","\uD3BC\uCE58\uAE30"):x("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:o}),typeof e=="string"?r.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&r.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&r.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[n&&r.jsx(fa,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?r.jsx("div",{className:"training-card-group__empty body-3",children:c}):r.jsx("div",{className:"training-card-group__grid",children:m}))]})}var RA=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:auto}.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-right{margin-left:0}.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}}";oe(RA);const PA="speechear:saved_word_tables";function zA(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 IA(){try{const e=localStorage.getItem(PA);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(zA):[]}catch{return[]}}function A1(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function qu(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function OA(e){const t=new Set;return e.map(a=>{let o=a.id;for(let n=2;t.has(o);n++)o=`${a.id}~${n}`;return t.add(o),o===a.id?a:{...a,id:o}})}function S1({title:e,titleIcon:t,disc:a,filterTitle:o,filterCollapsible:n,filterDefaultCollapsed:i,filterCollapsed:s,onFilterCollapsedChange:c,filterHeaderSummary:d,brand:u,code:p,items:h,onSaveComplete:m,onLoad:b,onRemoveItem:x,onReset:f,resetLabel:C,saveButtonLabel:v,secondarySaveButtonLabel:g,onReorder:y,showCellCount:_,onAddItem:B,className:k,renderSavePopup:A,renderWordSearch:w,hideControls:S,saveOnly:E,tableName:$,nameValue:F,onNameChange:j,descriptionValue:z,onDescriptionChange:D,namePlaceholder:T,descriptionPlaceholder:I,existingNames:G,editingName:K,onCancel:H,initialItemsPerPage:V,renderCellAction:q,actionsLeftExtra:L}){const{t:N}=ve.useTranslation(),O=C??N("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),P=h===void 0,W=!!j,[R,Z]=l.useState([]),ee=(F??"").trim(),J=ee||(T??"").trim(),ue=(z??"").trim()||(I??"").trim(),ne=(G??[]).map(Me=>Me.trim().toLowerCase()),re=[K?.trim().toLowerCase(),...R].filter(Me=>!!Me),se=[...ne];for(const Me of re){const Ge=se.indexOf(Me);Ge!==-1&&se.splice(Ge,1)}const U=ee!==""&&se.includes(ee.toLowerCase()),[le,me]=l.useState(Array(4).fill(null)),[_e,xe]=l.useState(4),[ce,Ce]=l.useState(null),Ae=le.slice(0,_e),X=!!u?.show,[ye,be]=l.useState(!0),[ae,ge]=l.useState(!0),Re=u&&{...u,top:ye,bottom:ae},[Pe,ke]=l.useState("landscape"),[De,Fe]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Te,tt]=l.useState("\uD45C\uC2DC"),[Ue,Qe]=l.useState(!0),[je,$e]=l.useState(!0),Ne=l.useRef(null),Oe=l.useRef([]),[Ye,_t]=l.useState(V==="all"?Number.POSITIVE_INFINITY:V??8),[jt,Pt]=l.useState("right"),[Lt,st]=l.useState(!1),[Je,it]=l.useState(!1),{toastMessage:ct,toastType:Ke,showWarning:bt,clearToast:Ze}=wi("warning"),yt=l.useCallback(()=>Ce(null),[Ce]);B&&!P&&!_&&Ua("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ft,Mt]=l.useState(()=>Math.max(h?.length??1,1)),ft=P?_e:_?Math.max(Ft,h?.length??1,1):Math.max(h?.length??0,1),{width:dt,height:Ve}=Vo[Pe],ot=!P&&!_,vt=h?.length??0,Xt=Math.min(Ye,Math.max(vt,1)),at=ot?Xt:ft,Ht=ot?D0(h??[],at):null,sa=!!Ht&&Ht.length>1,Vt=P?Ae.some(Me=>Me!==null&&Me.length>1):(h??[]).some(Me=>(Me.words??[]).length>1),Sa=$?.trim()||`${Jn(ba())} ${Vt?N("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):N("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Ea=l.useCallback(()=>sa?Oe.current.filter(Me=>Me!==null):Ne.current?[Ne.current]:[],[sa]),{print:Na,openNewWindow:yo,downloadHtml:Da}=Gi({getElements:Ea,paperW:dt,paperH:Ve,fileName:Sa,onPopupBlocked:()=>{bt(N("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."))}}),wo=Me=>{xe(Me),me(Ge=>Ge.length>=Me?Ge:[...Ge,...Array(Me-Ge.length).fill(null)]),Ce(null)},oo=Me=>{me(Ge=>{const St=[...Ge];return St[Me]=null,St}),ce===Me&&Ce(null)},$t=Me=>{if(ce===null)return;const Ge=ce;me(Qt=>{const ea=[...Qt];return ea[Ge]=Me.length>0?Me:null,ea});const St=Ae.findIndex((Qt,ea)=>ea>Ge&&Qt===null);Ce(St!==-1?St:null)},Ha=P?Ae.some(Me=>Me?.some(Ge=>!!Ge.colloquialPronunciation)):(h??[]).some(Me=>(Me.words??[]).some(Ge=>!!Ge.colloquialLabel)),Jt=l.useMemo(()=>io()?P?le.slice(0,_e).flatMap(Me=>(Me??[]).map(Ge=>[Ge.word,Ge.homonum])):(h??[]).flatMap(Me=>(Me.words??[]).map(Ge=>[Ge.label,Ge.homonum])):[],[P,le,_e,h]),[la,Va]=l.useState(!1);l.useEffect(()=>{if(Jt.length===0)return;let Me=!1;return Promise.all(Jt.map(([Ge,St])=>Hr(Ge,St))).then(Ge=>{Me||Va(Ge.some(Boolean))},()=>{}),()=>{Me=!0}},[Jt]);const ha=Jt.length>0&&la,Wa=l.useMemo(()=>[...P||_?[{label:N("wordTable.filter.columns","\uCE78 \uC218"),items:J9.map(Me=>({value:`${Me}\uCE78`,displayLabel:N("wordTable.filter.column",{count:Me})})),display:"segmented"}]:[],...ot&&(h?.length??0)>0?[W0(N,{hasPairs:Vt,itemCount:vt})]:[],...sa?[Q9(N)]:[]],[N,P,_,ot,h?.length,Vt,vt,sa]),ko={...P||_?{[N("wordTable.filter.columns","\uCE78 \uC218")]:`${ft}\uCE78`}:{},...ot&&(h?.length??0)>0?{[N(Vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Xt}\uAC1C`}:{},...sa?{[N("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:U0[jt]}:{}},Ga=(Me,Ge)=>{Ge===N("wordTable.filter.columns","\uCE78 \uC218")?P?wo(parseInt(Me)):Mt(parseInt(Me)):Ge===N(Vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?_t(G0(parseInt(Me),vt)):Ge===N("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Pt(q0(Me))},ie=P?OA(Ae.filter(Me=>Me!==null&&Me.length>0).map(Me=>({id:qu(Me),words:Me.map(A1)}))):h??[],we=()=>{P&&me(Me=>Me.length>_e?Me.slice(0,_e):Me)},Y=(Me=!1)=>{if(it(Me),W&&m){const Ge=J.trim().toLowerCase();Ge&&Z(St=>St.includes(Ge)?St:[...St,Ge]),m(J,ie,ue||void 0,Me),we();return}if(E&&m){m("",ie,void 0,Me),we();return}if(m){st(!0);return}Da()},[de,he]=l.useState(!1),[Be,Se]=l.useState(""),ze=Be.trim(),rt=ze!==""&&ne.includes(ze.toLowerCase()),wt=()=>{Se(J?N("wordTable.save.copyName",{name:J,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),he(!0)},ut=()=>{!ze||rt||!m||(m(ze,ie,ue||void 0,!0),we(),he(!1))},At=ie.length===0,Kt=At||W&&(J===""||U),Wt=()=>{if(At){bt(N("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(W&&J===""){bt(N("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}W&&U&&bt(N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},va=r.jsx(Wo,{items:ie,orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:ft});return r.jsxs(r.Fragment,{children:[r.jsxs(Ho,{type:"page",icon:t,title:e,disc:a,className:Le("word-table-block",k),children:[de&&r.jsx(eo,{size:"small",title:g??N("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>he(!1),footer:({closeWithAnimation:Me})=>r.jsxs(r.Fragment,{children:[r.jsx(pe,{htmlType:"button",size:48,type:"bar",label:N("common.cancel","\uCDE8\uC18C"),onClick:Me}),r.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:N("common.save","\uC800\uC7A5"),disabled:!ze||rt,onClick:ut})]}),children:r.jsx(xo,{label:N("wordTable.save.nameLabel","\uC774\uB984"),value:Be,onChange:Se,placeholder:N("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:ut,error:rt?N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Lt&&m&&A?.({defaultName:typeof e=="string"?e:N("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:va,previewW:dt,previewH:Ve,items:ie,existingNames:IA().map(Me=>Me.name),saveAsNew:Je,onSave:(Me,Ge)=>{m(Me,ie,Ge,Je),we(),st(!1)},onCancel:()=>st(!1)}),(P||B)&&ce!==null&&w?.({cellIndex:ce,onConfirm:P?$t:Me=>{if(B){const Ge=Me[0];if(Ge){const St=new Set((h??[]).map(ea=>ea.id));let Qt=qu([Ge]);for(let ea=2;St.has(Qt);ea++)Qt=`${qu([Ge])}~${ea}`;B({id:Qt,words:[A1(Ge)]})}}Ce(null)},onClose:yt}),!S&&r.jsx(Vi,{title:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,hasImage:ha,hasColloquial:Ha,contentTypes:De,orientation:Pe,showOutline:Ue,cutLine:Te,showDivLine:je,setters:{setContentTypes:Fe,setOrientation:ke,setShowOutline:Qe,setCutLine:tt,setShowDivLine:$e,setShowTopInfo:be,setShowBottomInfo:ge},showCutLine:(ot?at:ft)>1,showDivLine2:Vt,middleSections:Wa,extraSelected:ko,onExtraSelect:Ga,showPaperBands:X,showTopInfo:ye,showBottomInfo:ae}),sa&&Ht?r.jsx("div",{className:"word-table-block__pages",children:Ht.map((Me,Ge)=>r.jsx(Wo,{orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:at,items:Me,onRemoveItem:x,onReorder:y&&((St,Qt)=>y(St+Ge*at,Qt+Ge*at)),renderCellAction:q&&((St,Qt)=>q(St+Ge*at,Qt)),brand:Re,code:p,contentRef:St=>{Oe.current[Ge]=St},pageNumber:{current:Ge+1,total:Ht.length},pageNumberPosition:jt},Ge))}):r.jsx(Wo,{orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:ft,items:P?void 0:h??[],editCells:P?Ae:void 0,activeCell:ce,onActivateCell:P||B?Ce:void 0,onRemoveCell:P?oo:void 0,onRemoveItem:P?void 0:x,onReorder:P?void 0:y,renderCellAction:P?void 0:q,brand:Re,code:p,showFillerAdd:!!B,contentRef:Ne}),W&&!S&&r.jsxs(An,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[r.jsx(to,{variant:"custom",label:N("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:r.jsx(xo,{required:!0,value:F??"",onChange:j,placeholder:T?T+N("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):N("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:N("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:U?N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Me=>{(Me.key==="Tab"&&!Me.shiftKey||Me.key===" ")&&!(F??"").trim()&&(T??"").trim()&&(Me.preventDefault(),j?.(T??""))}})}),r.jsx(to,{variant:"custom",label:N("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:r.jsx(xo,{value:z??"",onChange:D,placeholder:I?I+N("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):N("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:N("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Me=>{(Me.key==="Tab"&&!Me.shiftKey||Me.key===" ")&&!(z??"").trim()&&(I??"").trim()&&(Me.preventDefault(),D?.(I??""))}})})]})]}),!S&&r.jsxs("div",{className:"word-table-block__actions",children:[r.jsxs("div",{className:"word-table-block__actions-left",children:[!E&&f&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:O,onClick:f}),!E&&L,!E&&b&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:N("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:b}),!E&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:yo})]}),r.jsxs("div",{className:"word-table-block__actions-right",children:[H&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:N("common.cancel","\uCDE8\uC18C"),onClick:H}),!E&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Na}),g&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>W?wt():Y(!0),disabled:At,onDisabledClick:()=>{bt(N("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v??N("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Y(!1),disabled:Kt,onDisabledClick:Wt})]})]}),r.jsx(Fo,{message:ct,type:Ke,onClose:Ze})]})}var FA=".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%}";oe(FA);function Yu({items:e,className:t}){const a=e.length,o=a<=3?1:2,n=Math.ceil(a/o)||1,i=o*n;return r.jsx("div",{className:Le("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${o}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?r.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((u,p)=>r.jsxs(l.Fragment,{children:[p>0&&r.jsx("span",{className:"word-table-thumb__divider"}),r.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},p))},c):r.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var HA=".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-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table-button__code{color:var(--color-text-primary);flex-shrink:0;font-family:var(--font-mono);white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-left .word-table-button__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}";oe(HA);function E1({items:e,name:t,description:a,createdAt:o,code:n,published:i,publishedLabel:s,shared:c,sharedLabel:d,isNew:u,publisherName:p,publishedAt:h,likeCount:m,downloadCount:b,onPublisherClick:x,selected:f,onClick:C,onMore:v,titleNode:g,className:y}){const{t:_}=ve.useTranslation(),B=g!=null,k=p!=null||h!=null||m!=null||b!=null,A=w=>{w.target===w.currentTarget&&!B&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C?.())};return r.jsxs("div",{className:Le("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":n?`${t} (${n})`:t,onClick:B?void 0:C,onKeyDown:A,children:[u&&r.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),r.jsx(Yu,{items:e,className:"word-table-button__thumb"}),r.jsxs("div",{className:"word-table-button__info",children:[r.jsxs("div",{className:"word-table-button__info-text",children:[g??r.jsx("div",{className:"word-table-button__title h4",children:t}),a&&r.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!B&&r.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:t}),onClick:w=>{w.stopPropagation(),v(w)}})]}),(n||o||i||c)&&r.jsxs("div",{className:"word-table-button__meta-row",children:[r.jsxs("span",{className:"word-table-button__meta-left",children:[n&&r.jsx("span",{className:"word-table-button__code caption-1",children:n}),r.jsx("span",{className:"word-table-button__meta caption-1",children:o?Xn(o,_):""})]}),r.jsxs("span",{className:"word-table-button__badges",children:[i&&r.jsx(Ct,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),c&&r.jsx(Ct,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),k&&r.jsxs("div",{className:"word-table-button__footer",children:[r.jsxs("span",{className:"word-table-button__store-by",children:[p&&r.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:w=>{w.stopPropagation(),x?.()},children:p}),h&&r.jsx("span",{className:"training-card__date body-4",children:Xn(h,_)})]}),r.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&r.jsx(Ct,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),b!=null&&r.jsx(Ct,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b)})]})]})]})}/**
1062
+ \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}}`;oe(iA);function Ou(...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,o=[a.text,a.label,a.value];for(const n of o){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function sA(e){return Ou(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function a1(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=Ou(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(o=>a.includes(o)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(o=>a.includes(o)))return!1}}function Fu(e){const{score:t,contextsLength:a,results:o=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1,pending:d=!1}=e||{},{t:u}=ve.useTranslation(),p=l.useId(),h=l.useCallback(()=>!d,[d]);l.useEffect(()=>{const g=a??0;if(t!=null&&g>0&&t/g>.5){const y=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(y)}},[t,a]);const m=l.useCallback(g=>{const y=a1(g),_=Ou(g?.wording,g?.label);return y===!0?{variant:"main",label:_??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:y===!1?{variant:"danger",label:_??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:_??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),b=a??0,x=t??0,f=l.useMemo(()=>Array.isArray(o)?o:[],[o]),C=l.useMemo(()=>f.map(g=>{const y=g??{},_=sA(y)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:k}=m(y),A=Array.isArray(y.corrects)?y.corrects:[],w=A.length?A.join(", "):y.answer!=null&&y.answer!==""?String(y.answer):null,S=typeof y.selectedText=="string"?y.selectedText:null,E=a1(y)===!0;return{problem:_,variant:B,label:k,answer:w,selectedText:S,isCorrect:E}}),[f,m,u]),v=l.useMemo(()=>C.some(g=>g.answer!==null||g.selectedText!==null),[C]);return r.jsx(eo,{onClose:s,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:h,footerClassName:"trp-result__foot",footer:({animateThen:g,closeWithAnimation:y})=>r.jsxs(r.Fragment,{children:[d&&r.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:u("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),r.jsxs("div",{className:"trp-actions",children:[r.jsx(pe,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>g(i)}),r.jsx(pe,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:y,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),children:()=>r.jsxs("div",{className:"trp-result is-on",children:[r.jsxs("header",{className:"trp-result__head",children:[r.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),r.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&r.jsx("p",{className:"trp-result__subtitle body-3",children:n}),r.jsx("div",{className:"trp-score",children:r.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:x,total:b}),children:[r.jsx("span",{className:"trp-score__big",children:x}),r.jsx("span",{className:"trp-score__sep",children:"/"}),r.jsx("span",{className:"trp-score__total",children:b})]})})]}),C.length>0&&r.jsx("section",{className:"trp-result__body",children:r.jsxs("div",{className:`result-table${v?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[r.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[r.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),v&&r.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),r.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((g,y)=>r.jsxs("div",{className:"result-table__row",role:"row",children:[r.jsxs("div",{className:"trp-row__problem",children:[r.jsx("span",{className:"trp-row__no caption-1",children:String(y+1).padStart(2,"0")}),r.jsx("div",{className:"trp-row__q body-2",children:g.problem})]}),v&&r.jsxs("div",{className:"trp-row__answers",children:[g.answer!==null&&r.jsxs("div",{className:"trp-row__answer-line",children:[r.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),r.jsx("span",{className:"trp-row__answer-value body-2",children:g.answer})]}),r.jsxs("div",{className:"trp-row__answer-line",children:[r.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${g.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),r.jsx("span",{className:`trp-row__answer-value body-2 ${g.isCorrect?"is-correct":"is-wrong"}`,children:g.selectedText??"\u2014"})]})]}),r.jsx("div",{className:"trp-row__judge",children:r.jsx(Ct,{variant:g.variant,label:g.label,fill:"soft",minWidth:80})})]},y))]})})]})})}function lA(e){l.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,o=null,n=0,i=0;const s=()=>{const p=Date.now();a==null&&(a=p),o==null&&(o=p)},c=()=>{o!=null&&(n+=Date.now()-o,o=null)};t()&&s();const d=()=>{if(c(),a==null||n-i<1e3||i===0&&n<5e3)return;const p=a+i;i=n,Ll({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+n).toISOString()})},u=()=>{t()?s():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",u),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",u),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Hu(e,t){return e&&e.id||`page-${t??0}`}function Vu(e,t){return e&&e.key||`step-${t??0}`}function os(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function cA(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const dA=300,uA=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},_o=Object.freeze({}),o1=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function r1(e){const t=e,a=t?.results||t?.answers||[],o=Array.isArray(a)&&a.length>0?a.length:null,n=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:o!=null?n:null,total:o}}const pA=e=>r.jsx(Fu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function hA(e){const{scenario:t,title:a,subTitle:o,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:p,stepCount:h,onBack:m,onComplete:b,onNext:x,onSettings:f,useNoiseSetting:C=!0,children:v,ariaLabel:g,label:y,buildResults:_,onResult:B,typeKey:k,entryPoint:A,dailyTotal:w,itemRef:S,renderResultPopup:E,noiseOverride:$}=e;lA(k&&!o1.has(k)?k:"");const F=l.useRef(0);l.useEffect(()=>{F.current=Date.now()},[]);const{t:j}=ve.useTranslation(),z=B,D=!!t,T=t?.id||null,I=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],K=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],H=K.length>0,V=ie=>ie===Sn||ie?.__isTrainingPage===!0,q=H&&K.some(ie=>V(ie.type)),L=q?K.filter(ie=>V(ie.type)).map((ie,we)=>{const Y=ie.props||{};return{id:`children-page-${we}`,steps:l.Children.toArray(Y.children).filter(l.isValidElement),pageTop:Y.pageTop||Y.top||null,pageBottom:Y.pageBottom||Y.bottom||null}}):[{id:"children-page-0",steps:K}],N=H&&!D&&typeof v!="function",O=N?Math.max(1,L.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 ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const we=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;we>0?ie.dataset.ihabTrainingPopupCount=String(we):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return h6()},[]);const[P,W]=l.useState({...Ar,enabled:!1}),R=l.useRef(P);l.useEffect(()=>{R.current=P},[P]);const Z=l.useRef($),ee=l.useRef(!1),J=l.useRef(null);l.useEffect(()=>{let ie=!1;const we=Y=>{if(ie)return;ee.current=!0;const de=Y?Br({...Ar,enabled:!1},Y):{...Ar},he=J.current;J.current=null;const Be=he?Br(de,he):de;R.current=Be,W(Be),he&&!Z.current&&Yn(Be),ir(Be);const Se=Z.current;if(Se){const ze=typeof Se=="function"?Se(Be):Se,rt=Br(Be,ze);R.current=rt,W(rt),ir(rt)}};return Pl().then(we),()=>{ie=!0}},[]);const[ue,ne]=l.useState(null),[re,se]=l.useState(null),U=l.useCallback((ie,we)=>{ie==="main"?ne(we):se(we)},[]),le=l.useRef(null),me=l.useRef(null),_e=l.useCallback(()=>{me.current!==null&&(clearTimeout(me.current),me.current=null);const ie=le.current;le.current=null,ie&&Yn(ie)},[]);l.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&_e()};return window.addEventListener("pagehide",_e),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",_e),document.removeEventListener("visibilitychange",ie),_e()}},[_e]);const xe=l.useCallback(ie=>{const we=Br(R.current,ie);if(R.current=we,W(we),!ee.current){J.current={...J.current??{},...ie},ir(we);return}Z.current||(le.current=we,me.current!==null&&clearTimeout(me.current),me.current=setTimeout(_e,dA)),ir(we)},[_e]),ce=P.mainSpeed,Ce=P.mainVolume,Ae=l.useCallback(ie=>xe({mainSpeed:ie}),[xe]),X=l.useCallback(ie=>xe({mainVolume:ie}),[xe]),ye=l.useMemo(()=>({settings:P,setSettings:xe,registerAnalyser:U,mainAnalyser:ue,noiseAnalyser:re,playbackRate:ce,setPlaybackRate:Ae,mainVolume:Ce,setMainVolume:X}),[P,xe,U,ue,re,ce,Ae,Ce,X]),be=l.useRef(null),[ae,ge]=l.useState(0),Re=l.useRef([]),[Pe,ke]=l.useState("center"),[De,Fe]=l.useState(!1),Te=l.useRef(!1),tt=l.useRef(null),Ue=l.useCallback(ie=>{Te.current||(Te.current=!0,Fe(!0),tt.current=setTimeout(()=>{try{ie()}catch{Te.current=!1,Fe(!1)}},uA()?0:UB))},[]);l.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Qe=l.useRef(m);l.useEffect(()=>{Qe.current=m}),l.useEffect(()=>{const ie=be.current,we=document.activeElement;if(cc(ie,we),ie){const Y=Array.from(ie.querySelectorAll(Xa)).filter(de=>!de.closest('[aria-hidden="true"]'))[0];if(Y)try{Y.focus()}catch{}}return()=>{const Y=document.activeElement;if(!Y||Y===document.body||ie&&ie.contains(Y))try{dc(we)?.focus?.()}catch{}}},[]),l.useEffect(()=>Ro(()=>Ue(()=>{const ie=Qe.current;typeof ie=="function"&&ie()})),[Ue]),sc(be,!0);const[je,$e]=l.useState(!1),Ne=l.useRef(!1),[Oe,Ye]=l.useState(null),_t=l.useRef(0),jt=()=>{_t.current+=1,Ye(null)},[Pt,Lt]=l.useState(""),[st,Je]=l.useState(()=>os()),it=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!D&&!N||(Je(os()),jt())},[D,T,N]),l.useEffect(()=>{N&&Je(ie=>{const we=Math.max(0,Math.min(ie.pageIndex,Math.max(0,O-1)));return we!==ie.pageIndex?{...ie,pageIndex:we,stepIndex:0}:ie})},[N,O]);const ct=N?Math.max(0,Math.min(st.pageIndex,O-1)):0,Ke=N?L[ct]:null,bt=N&&Ke&&Array.isArray(Ke.steps)?Ke.steps:[],Ze=D?st.pageIndex:N?ct:typeof d=="number"?d:0,yt=D?G[Math.max(0,Math.min(st.pageIndex,Math.max(0,G.length-1)))]:null,Ft=D&&yt&&Array.isArray(yt.steps)?yt.steps:[],Mt=D?Ft.length:N?bt.length:typeof h=="number"?h:0,ft=D||N?Math.max(0,Math.min(st.stepIndex,Math.max(0,Mt))):typeof p=="number"?p:0,dt=D?G.length:N?O:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ie=it.current;if(typeof Ze=="number"&&ie!==null&&Ze!==ie&&Ze>ie)try{Lt(j("training.problemNotice",{n:Ze+1}))}catch{}it.current=typeof Ze=="number"?Ze:it.current},[Ze,d,j]),l.useLayoutEffect(()=>{const ie=be.current;if(!ie)return;const we=()=>ie.querySelector(".page-popup__scroll");let Y=null,de=null,he=null;const Be=ut=>{const At=we();if(!At)return;const Kt=At.scrollHeight<=At.clientHeight;if(ke(Kt?"center":"top"),ut&&!Ne.current){Ne.current=!0;try{$e(!0)}catch{}try{rt.disconnect()}catch{}}},Se=()=>{Y!==null&&cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{de!==null&&clearTimeout(de),de=setTimeout(()=>Be(!0),60)})},ze=()=>{he!==null&&cancelAnimationFrame(he),he=requestAnimationFrame(()=>Be(!1))};Se(),window.addEventListener("resize",ze);const rt=new MutationObserver(Se);rt.observe(ie,{childList:!0,subtree:!0,attributes:!0});const wt=setTimeout(()=>{Ne.current||Be(!0)},400);return()=>{window.removeEventListener("resize",ze),Y!==null&&cancelAnimationFrame(Y),de!==null&&clearTimeout(de),he!==null&&cancelAnimationFrame(he),clearTimeout(wt);try{rt.disconnect()}catch{}}},[be]);const Ve=l.useCallback(ie=>{be.current&&(be.current._childOnNext=ie)},[]),ot=l.useCallback(ie=>{be.current&&(be.current._childOnResult=ie)},[]),vt=l.useCallback((ie,we,Y)=>{Je(de=>{const he=de.answersByPage[ie]||{},Be=he[we],Se=as(Y),ze=as(Be);return Be&&ze>Se?de:{...de,answersByPage:{...de.answersByPage,[ie]:{...he,[we]:Y}}}})},[Je]),Xt=l.useCallback((ie,we,Y)=>{const de=Hu(yt,Ze),he=Vu(ie,we);vt(de,he,Y)},[yt,Ze,vt]),at=l.useCallback((ie,we,Y)=>{const de=Hu(yt,Ze),he=Vu(ie,we);vt(de,he,Y),!Y?.allowChange&&ie?.autoAdvance!==!1&&Je(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,we+1)}))},[yt,Ze,vt,Je]),Ht=l.useCallback((ie,we)=>{const Y=Ke?.id||`children-page-${Ze??0}`,de=typeof we=="number"?we:ft??0,he=`step-${de}`;vt(Y,he,ie),ie?.allowChange||Je(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,de+1)}))},[Ke,Ze,ft,vt,Je]),sa=l.useCallback((ie,we)=>{const Y=Ke?.id||`children-page-${Ze??0}`,de=`step-${typeof we=="number"?we:ft??0}`;vt(Y,de,ie)},[Ke,Ze,ft,vt]),Vt=N?{currentPageIndex:Ze??0,currentStepIndex:ft??0,totalStepsInPage:bt.length,handleStepDone:Ht,handleStepChange:sa}:null,Sa=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:st,answersByPage:st.answersByPage})):null;return typeof z=="function"&&await Promise.resolve(z(ie))||ie},Ea=async()=>{const ie=Ke?.id||`children-page-${st.pageIndex}`,we=st.answersByPage[ie]||{},Y=q?(()=>{const Be={};let Se=0;return L.forEach(ze=>{const rt=st.answersByPage[ze.id]||{},wt=Array.isArray(ze.steps)?ze.steps.length:0;for(let ut=0;ut<wt;ut+=1){const At=rt[`step-${ut}`];typeof At<"u"&&(Be[`step-${Se+ut}`]=At)}Se+=wt}),Be})():we;if(typeof _=="function"){const Be=await Promise.resolve(_(Y,{pageAnswers:we,answersByPage:st.answersByPage,pages:L,currentPageId:ie}));return typeof z=="function"&&await Promise.resolve(z(Be))||Be}const de=Object.entries(we).map(([Be,Se],ze)=>({index:ze,key:Be,payload:Se})),he={results:de,answers:de,score:0};return typeof z=="function"&&await Promise.resolve(z(he))||he},Na=()=>{const ie=++_t.current,we=()=>ie!==_t.current;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(D){const he=Sa();Ye(_o);const Be=he;Promise.resolve(Be).then(Se=>{we()||Ye(Se||{isEmpty:!0})}).catch(Se=>{!we()&&Ye({isEmpty:!0})});return}if(N){const he=Ea();Ye(_o);const Be=he;Promise.resolve(Be).then(Se=>{we()||Ye(Se||{isEmpty:!0})}).catch(Se=>{!we()&&Ye({isEmpty:!0})});return}const Y=be.current&&be.current._childOnResult,de=he=>{try{return he?he():void 0}catch{return}};if(typeof Y=="function"){const he=de(Y);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}he&&typeof he.then!="function"?Ye(he):Ye(he&&typeof he.then=="function"?_o:{});const Be=()=>{we()||Ye(Se=>Se===_o?{}:Se)};Promise.resolve(he).then(Se=>{Se&&!we()?Ye(Se):Be()}).catch(Se=>{Be()});return}if(typeof z=="function"){const he=de(z);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}he&&typeof he.then!="function"?Ye(he):Ye(he&&typeof he.then=="function"?_o:{});const Be=()=>{we()||Ye(Se=>Se===_o?{}:Se)};Promise.resolve(he).then(Se=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:ma&&ma.tagName.toUpperCase()==="SCRIPT"&&ma.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Se&&!we()?Ye(Se):Be()}).catch(Se=>{console.error("viewResults external handler failed",Se),Be()});return}},yo=()=>{if(D){if(typeof Ze=="number"&&typeof dt=="number"&&Ze<dt-1){Je(we=>({...we,pageIndex:we.pageIndex+1,stepIndex:0}));return}return Na()}if(N){const we=bt.length;if(typeof ft=="number"&&ft<we-1){Je(Y=>({...Y,stepIndex:Y.stepIndex+1}));return}if(typeof Ze=="number"&&typeof dt=="number"&&Ze<dt-1){Je(Y=>({...Y,pageIndex:Y.pageIndex+1,stepIndex:0}));return}return Na()}if(typeof x=="function"){try{x()}catch{}return}const ie=be.current&&be.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},Da=D?I.title||I.label||g||j("common.popup","\uD31D\uC5C5"):a||y||(Array.isArray(n)?n[n.length-1]:void 0)||g||j("common.popup","\uD31D\uC5C5"),wo=g||Da,oo=D?I.title??I.label??Da:a??y??Da,$t=(ie,we)=>{const Y=Hu(yt,Ze),de=Vu(ie,we),he=st.answersByPage[Y]?.[de],Be=cA(ie,{page:yt,pageIndex:Ze,step:ie,stepIndex:we,storedPayload:he,answersByPage:st.answersByPage,flowState:st}),Se={key:de,index:we,stepIndex:ft,isLast:we===Ft.length-1};switch(ie?.type){case"listen":return r.jsx(es,{...Se,...Be,onDone:ze=>at(ie,we,ze)});case"confirm":return r.jsx(Ji,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});case"confirmWithText":return r.jsx(Qi,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});case"orderList":return r.jsx(ts,{...Se,...Be,onDone:ze=>at(ie,we,ze),onChange:ze=>Xt(ie,we,ze)});default:return null}},Ha=l.useRef(void 0);l.useEffect(()=>{const ie=Ha.current;if(Ha.current=Ze,ie===void 0||ie===Ze||!zi())return;const we=be.current;if(!we)return;const Y=document.activeElement;if(!(!Y||Y===document.body||!we.contains(Y)||Y.disabled===!0))return;const de=we.querySelector(`.training-steps ${Xa.split(", ").join(", .training-steps ")}`)??Array.from(we.querySelectorAll(Xa)).find(he=>!he.closest('[aria-hidden="true"]'));try{de?.focus()}catch{}},[Ze]);const Jt=D?G.length>0?r.jsx("div",{className:"training-steps",children:Ft.map((ie,we)=>$t(ie,we))},`replay-${ae}`):r.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:r.jsx("div",{className:"pp-empty",children:t?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,la=N?r.jsxs(t1.Provider,{value:Vt,children:[Ke?.pageTop?r.jsx("div",{className:"training-page-top",children:Ke.pageTop}):null,r.jsx("div",{className:"training-steps",children:bt.map((ie,we)=>{const Y=ie;return l.cloneElement(Y,{...Y.props,_stepIndex:we,_totalSteps:bt.length,_stepKey:`step-${we}`,_pageIndex:Ze})})},`replay-${ae}`),Ke?.pageBottom?r.jsx("div",{className:"training-page-bottom",children:Ke.pageBottom}):null]}):null,Va=l.useCallback(()=>{let ie;if(k){const we=Oe,{results:Y,correct:de,total:he}=r1(Oe);Ml({items:Rl(Y),category:o1.has(k)?"sentence":"word",trainingType:k,entryPoint:A??"sentence",itemRef:S??null,correct:de,total:he,score:typeof we?.score=="number"?we.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:w??null}),ie={correct:de,total:he,attempt:Re.current.length+1,previousAttempts:[...Re.current]}}jt(),Ue(()=>{typeof b=="function"&&b(ie),typeof m=="function"&&m()})},[b,m,k,A,w,S,Oe,Ye,Ue]),ha=l.useCallback(()=>Lt(""),[Lt]),Wa=l.useCallback(()=>{Ue(()=>{typeof m=="function"&&m()})},[m,Ue]),ko=r.jsxs("div",{className:`page-popup${De?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":wo,children:[r.jsxs("div",{ref:be,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${Pe==="center"?"page-popup__panel--center":Pe==="top"?"page-popup__panel--top":""}`,children:[r.jsx(ju,{title:oo,subtitle:D?I.subtitle||I.label:Array.isArray(n)?n.join(" / "):void 0,desc:D?void 0:o,depth:D?I.depth:n,icon:D?I.icon:i,wrapperStyle:D?I.wrapperStyle:s,iconTooltip:D?I.iconTooltip:c,progressMax:dt,progressIndex:Ze,pageIndex:Ze,pageCount:dt,onBack:Wa,onClose:Wa}),r.jsx("div",{className:"page-popup__scroll",children:r.jsx("div",{className:`page-popup__content ${Pe==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:N?la:D?Jt:typeof v=="function"?v({registerOnNext:Ve,registerOnResult:ot,panelRef:be,setResultOverlay:Ye}):v})}),r.jsx(Tu,{onSettings:f,onNext:yo,onResult:Na,useNoiseSettingBtn:!!(D?I.useNoiseSetting??!0:C),stepIndex:ft,stepCount:Mt,pageIndex:Ze,pageCount:dt,resultOpen:!!(Oe&&!Oe.isEmpty)})]}),Oe&&!Oe.isEmpty&&(E??pA)({score:Oe.score,results:Oe.results||Oe.answers||[],contextsLength:Oe.results?Oe.results.length:Oe.answers?Oe.answers.length:0,onReplay:()=>{if(F.current=Date.now(),Oe!==_o){const{correct:ie,total:we}=r1(Oe);Re.current.push({correct:ie,total:we})}if(jt(),ge(ie=>ie+1),D){if(Je(os()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(N){Je(os());return}try{const ie=be.current&&be.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Va,pending:Oe===_o}),Oe?.isEmpty&&r.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:r.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[r.jsx("div",{className:"page-popup__scroll",children:r.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:r.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),r.jsx("div",{className:"page-popup__bottom",children:r.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:Va,label:j("training.result.done","\uC644\uB8CC")})})]})}),r.jsx(Fo,{message:Pt,position:"top",onClose:ha})]}),Ga=r.jsx(Ki.Provider,{value:ye,children:ko});return typeof document<"u"&&document.body?ca.createPortal(Ga,document.body):Ga}const ao=hA;ao.Page=Sn,ao.ListenStep=$u,ao.ConfirmStep=Ru,ao.ConfirmWithTextStep=Pu,ao.OrderListStep=zu,ao.CardStep=Iu,ao.CardOrderStep=nA;var mA=".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);display:flex;flex-direction:column;gap:var(--spacing-m);padding:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__head{align-items:center;-moz-column-gap:var(--spacing-xs);column-gap:var(--spacing-xs);display:flex;flex-wrap:wrap;row-gap:0}.ihabdevteam-core-scope .word-search-result-block__head-main{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .word-search-result-block__head-icon{color:var(--color-gray);flex-shrink:0}.ihabdevteam-core-scope .word-search-result-block__title{min-width:0;text-align:left}.ihabdevteam-core-scope .word-search-result-block__head-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .word-search-result-block__head-disc{color:var(--color-gray);flex:0 0 100%;margin:0;min-width:0}.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}";oe(mA);var bA='.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}';oe(bA);function gA({label:e,homonum:t}){const a=io()?.(e,t)??"",{imgRef:o,loading:n,hasImage:i,onLoad:s,onError:c}=nu(a);return i?r.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&r.jsx("div",{className:"tooltip-word-image__spinner"}),r.jsx("img",{ref:o,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):r.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:r.jsx("span",{children:e})})}function Wu({words:e,anchorRect:t}){const a=l.useRef(null),[o,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:ca.createPortal(r.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:o?"visible":"hidden",left:o?.left??0,top:o?.top??-9999},children:r.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>r.jsx(gA,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const fA=new Intl.Collator("ko");function n1({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:o,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:p,onPrintEmpty:h,className:m,emptyHint:b,sectionType:x="page",disc:f}){const{t:C,i18n:v}=ve.useTranslation(),g=v.language?.startsWith("ko")??!1,{anchorRect:y,openAt:_,close:B}=Io(),[k,A]=l.useState(null),w=l.useCallback(()=>{B(),A(null)},[B]);gd(w,!!k);const S=(o??"").trim(),E=/^[^,[\]\s]+$/.test(S)?S:"",$=E.length>0,F=o===void 0&&t===void 0,j=$?"match":F?"original":"ganada",[z,D]=l.useState(()=>j),[T,I]=l.useState("50"),[G,K]=l.useState(1),[H,V]=l.useState($);H!==$&&(V($),D(j));const q=z==="match"&&!$||z==="original"&&!F?j:z,L=l.useMemo(()=>[...$?[{value:"match",label:C("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:C("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:C("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:C("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:C("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:C("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:C("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:C("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[C,$,F]),N=l.useMemo(()=>["10","25","50","100"].map(ce=>({value:ce,label:C("wordSearch.pageSize",{count:Number(ce),defaultValue:`${ce}\uAC1C\uC529 \uBCF4\uAE30`})})),[C]),O=ce=>ce.words?.[0],P=l.useMemo(()=>{const ce=[...E].length,Ce=Ws(E),Ae=new Map;return X=>{let ye=Ae.get(X);return ye===void 0&&(ye=Ce((X.words?.[0]?.label??"").slice(0,ce))?0:1,Ae.set(X,ye)),ye}},[E]),W=l.useCallback((ce,Ce)=>{const Ae=be=>O(be)?.label??"",X=be=>O(be)?.syllables??[...Ae(be)].length,ye=be=>(be.words??[]).reduce((ae,ge)=>{const Re=parseInt(ge.grade??"",10);return Number.isFinite(Re)&&Re<ae?Re:ae},999);switch(q){case"match":return P(ce)-P(Ce)||fA.compare(Ae(ce),Ae(Ce));case"ganada":return Ae(ce).localeCompare(Ae(Ce),"ko");case"ganada_desc":return Ae(Ce).localeCompare(Ae(ce),"ko");case"syllable":return X(ce)-X(Ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"syllable_desc":return X(Ce)-X(ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"grade":return ye(ce)-ye(Ce)||Ae(ce).localeCompare(Ae(Ce),"ko");case"grade_desc":return ye(Ce)-ye(ce)||Ae(ce).localeCompare(Ae(Ce),"ko");default:return 0}},[q,P]),R=l.useMemo(()=>n.slice().sort(W),[n,W]),Z=Number(T)||10,ee=l.useMemo(()=>(i??[]).flatMap(ce=>ce.items.slice().sort(W).map(Ce=>({item:Ce,label:ce.label}))),[i,W]),J=i?ee.length:R.length,ue=Math.max(1,Math.ceil(J/Z)),ne=Math.min(G,ue),re=l.useMemo(()=>R.slice((ne-1)*Z,ne*Z),[R,ne,Z]),se=l.useMemo(()=>{if(!i)return null;const ce=ee.slice((ne-1)*Z,ne*Z),Ce=new Map;for(const{item:Ae,label:X}of ce)Ce.has(X)||Ce.set(X,[]),Ce.get(X).push(Ae);return[...Ce.entries()].map(([Ae,X])=>({label:Ae,items:X}))},[i,ee,ne,Z]);l.useEffect(()=>{K(1)},[z,T,J,o]);const U=J>0?r.jsxs("div",{className:"word-search-result-block__toolbar",children:[r.jsx(fa,{size:40,options:L,value:q,onChange:D,ariaLabel:C("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),r.jsx(fa,{size:40,options:N,value:T,onChange:I,ariaLabel:C("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),r.jsx(_n,{page:ne,totalPages:ue,onChange:K})]}):void 0,le=ce=>{c&&c(ce)},me=t!==void 0&&a?r.jsxs(r.Fragment,{children:[C("wordSearch.resultTitlePrefix","\uCD1D "),r.jsx("span",{style:{color:"var(--color-main)"},children:t}),C("wordSearch.resultTitleSuffix",{unit:g?ul(a):a})]}):void 0,_e=t!==void 0&&t>0&&d!==void 0&&a?C("wordSearch.resultDisc",{unit:g?hl(a):a,max:d,selected:s.length}):void 0,xe=f??_e;return r.jsxs(Ho,{type:x,className:Le("word-search-result-block",m),children:[r.jsxs("div",{className:"word-search-result-block__inner",children:[(me||U||xe)&&r.jsxs("div",{className:"word-search-result-block__head",children:[r.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&r.jsx(Xe,{icon:e,className:"word-search-result-block__head-icon"}),me&&r.jsx("span",{className:"word-search-result-block__title h3",children:me})]}),U&&r.jsx("div",{className:"word-search-result-block__head-actions",children:U}),xe&&r.jsx("div",{className:"word-search-result-block__head-disc body-3",children:xe})]}),(i?i.length===0:n.length===0)&&r.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[r.jsx("p",{className:"word-search-result-block__empty body-3",children:C("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&r.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(se??[]).map(ce=>r.jsx("div",{className:"word-search-result-block__group",children:r.jsx("div",{className:"word-search-result-block__items",children:ce.items.map(Ce=>{const Ae=s.includes(Ce.id);return r.jsx("div",{onMouseEnter:X=>{_(X.currentTarget),A(Ce.words??[])},onMouseLeave:w,children:r.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(Ce.words??[]).map(X=>X.label),subLabel:(Ce.words??[]).some(X=>X.subLabel)?(Ce.words??[]).map(X=>X.subLabel):void 0,selected:Ae,onClick:()=>le(Ce.id),minWidth:200})},Ce.id)})})},ce.label)):r.jsx("div",{className:"word-search-result-block__items",children:re.map(ce=>{const Ce=s.includes(ce.id);return r.jsx("div",{onMouseEnter:Ae=>{_(Ae.currentTarget),A(ce.words??[])},onMouseLeave:w,children:r.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(Ae=>Ae.label),subLabel:(ce.words??[]).some(Ae=>Ae.subLabel)?(ce.words??[]).map(Ae=>Ae.subLabel):void 0,selected:Ce,onClick:()=>le(ce.id),minWidth:200})},ce.id)})}),k&&y&&r.jsx(Wu,{words:k,anchorRect:y})]}),ue>1&&r.jsx("div",{className:"word-search-result-block__pagination-bottom",children:r.jsx(_n,{page:ne,totalPages:ue,onChange:K})}),(u||p)&&r.jsxs("div",{className:"word-search-result-block__actions",children:[u&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:C("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),p&&r.jsx("div",{onClick:s.length===0?h:void 0,children:r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:C("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:p})})]})]})}var vA='.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-group{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-group>.phoneme-select-block__cell{flex:1 1 auto;min-width:0;width:auto}.ihabdevteam-core-scope .phoneme-select-block__cell{flex-shrink:0;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';oe(vA);function xA(e,t){return t.map(a=>{const o=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:o,value:e[o]??"",displayLabel:n}})}function i1({sections:e,selectedList:t,count:a,onCountChange:o,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:p,title:h,titleIcon:m,disc:b,showInfoButton:x=!0,onClearPhoneme:f,onSearch:C,onSearchEmpty:v,searchDisabled:g=!1,searchLabel:y,searchChecking:_=!1,pairMode:B=!1,sectionType:k="page",beforeSearchContent:A,beforeContent:w,afterContent:S,hideCountControl:E=!1,ordinal:$=!1}){const{t:F}=ve.useTranslation(),j=l.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),z=l.useMemo(()=>Array.from({length:n-i+1},(P,W)=>{const R=i+W;return{key:String(R),label:F("wordPairs.count",{n:R})}}),[F,n,i]),D=l.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),T=l.useCallback(P=>$?F("wordPairs.phonemeOrdinalLabel",{ordinal:D[P-1]??P}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:P}),[$,D,a,F]),I=l.useCallback(P=>$?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:D[P-1]??P}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:P}),[$,D,a,F]),G=l.useCallback((P,W)=>W?r.jsxs(r.Fragment,{children:[P,r.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:K,toggleAt:H,close:V}=Io(),q=l.useCallback(P=>o(Number(P)),[o]),L=na("(max-width: 767px)"),N=l.useCallback(P=>xA(P,e).map(({label:W,value:R,displayLabel:Z})=>{const ee=!!R&&R!=="\uC5C6\uC74C";return r.jsxs("span",{className:Le("phoneme-select-block__cell-jamo-part",R?"":"phoneme-select-block__cell-jamo-part--empty",ee?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[r.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${R==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:R==="\uC5C6\uC74C"?"x":R||u}),ee&&r.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Z??W})]},W)}),[e,u]),O=r.jsxs(r.Fragment,{children:[r.jsx("div",{"data-tooltip-ignore":!0,children:r.jsx(pe,{htmlType:"button",size:40,type:L?"dot":void 0,icon:"info",label:L?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:K?"is-selected":void 0,"aria-expanded":!!K,"aria-haspopup":"dialog",onClick:P=>H(P.currentTarget)})}),K&&r.jsx(go,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:K,onClose:V})]});return r.jsxs(Ho,{type:k,title:h,icon:m,disc:b,action:x?O:void 0,className:Le("phoneme-select-block",p),children:[w,!E&&r.jsx("div",{className:"phoneme-select-block__controls",children:r.jsx(Ia,{options:z,value:String(a),onChange:q,size:40,className:"phoneme-select-block__count-control"})}),r.jsx("div",{className:"phoneme-select-block__cells",children:B?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2]??{};return r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(R)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(W+1)})]},W)})}),r.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),r.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2+1]??{};return r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(R)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(W+1)})]},W)})})]}):t.map((P,W)=>r.jsxs("div",{className:"phoneme-select-block__cell",children:[r.jsx("div",{className:"phoneme-select-block__cell-circle",children:r.jsx("div",{className:"phoneme-select-block__cell-jamo",children:N(P)})}),r.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(W+1)})]},W))}),(s||c)&&r.jsx("div",{className:"phoneme-select-block__panels",children:r.jsx("div",{className:"phoneme-select-block__detail",children:B?r.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[r.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2]??{};return r.jsx(Fa,{title:G(T(W+1),W===0),sections:c?c(R,W*2):s,selected:R,onSelect:d?.(W*2),align:"newline"},W)})}),r.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,W)=>{const R=t[W*2+1]??{};return r.jsx(Fa,{title:I(W+1),sections:c?c(R,W*2+1):s,selected:R,onSelect:d?.(W*2+1),align:"newline"},W)})})]}):t.map((P,W)=>r.jsx(Fa,{title:G(T(W+1),W===0),sections:c?c(P,W):s,selected:P,onSelect:d?.(W),align:"newline"},W))})}),A&&r.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(f||C||_)&&(()=>{const P=t.every(W=>Object.entries(W).every(([R,Z])=>!Z||R==="\uC885\uC131"&&Z==="\uC5C6\uC74C"));return r.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?v:void 0,children:[f&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:f}),C?r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:_?r.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:y??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||g||_,onDisabledClick:_?()=>{}:void 0,"aria-busy":_||void 0,onClick:C}):_?r.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[r.jsx("div",{className:"phoneme-select-block__spinner"}),r.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:y??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),S]})}function s1({title:e,sections:t,selected:a,onSelect:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,headerAction:u,className:p}){const{t:h}=ve.useTranslation();return r.jsx(Fa,{className:p,title:e??h("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,headerAction:u,align:"inline"})}function l1({title:e,headerAction:t,sections:a,selected:o,onSelect:n,className:i}){const{t:s}=ve.useTranslation();return a.length===0?null:r.jsx(Fa,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:o,onSelect:n,align:"newline"})}function c1({title:e,mode:t,onModeChange:a,matchMode:o,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:p}=ve.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=C=>p("wordPairs.count",{n:C}),b=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:r.jsx(vr,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:r.jsx(vr,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:r.jsx(vr,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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.")]})}],x={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:o==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},f=(C,v)=>{v===h.searchMode?a(C===h.explicit?"explicit":C===h.pick?"pick":"include"):v===h.phonemeOrder?n(C===h.orderMatch?"ordered":"unordered"):v===h.count?s(C===m(2)?2:1):v===h.inputMode&&d(C===h.pronInput?"phoneme":"word")};return r.jsx(Fa,{className:u,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:x,onSelect:f,align:"inline"})}var CA=".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}";oe(CA);function d1(e){const{title:t,items:a,columns:o,gridTemplateColumns:n,mobileGridTemplateColumns:i,searchPlaceholder:s,searchFn:c,defaultSortKey:d,defaultSortAsc:u=!0,selectedId:p,selectedIds:h,onSelect:m,onClose:b,pageSizeOptions:x=[10,25,50,100],initialPageSize:f,emptyText:C,countLabel:v,topContent:g,className:y=""}=e,{t:_}=ve.useTranslation(),B=s??_("common.search","\uAC80\uC0C9"),k=C??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[A,w]=l.useState(""),[S,E]=l.useState(d??o[0]?.key??""),[$,F]=l.useState(u),[j,z]=l.useState(String(f??x[0]??10)),[D,T]=l.useState(1);l.useEffect(()=>{T(1)},[A,j]);const I=c!==null,G=l.useCallback((R,Z)=>{if(!Z)return!0;const ee=Z.toLowerCase();return o.some(J=>{const ue=R[J.key];return ue==null?!1:String(ue).toLowerCase().includes(ee)})},[o]),K=c??G,H=l.useMemo(()=>{const R=I?a.filter(Z=>K(Z,A)):a;return S?[...R].sort((Z,ee)=>{const J=Z[S],ue=ee[S];return J===ue?0:Kc(J,ue,$)}):R},[a,A,S,$,I,K]),V=Math.max(1,Math.ceil(H.length/Number(j)));D>V&&T(V);const q=Math.min(D,V),L=H.slice((q-1)*Number(j),q*Number(j)),N=l.useCallback(R=>{S===R?F(Z=>!Z):(E(R),F(!0)),T(1)},[S]),O=l.useMemo(()=>{if(typeof v=="function"){const R=H.length,Z=v(R);if(typeof Z=="string"){const ee=Z.lastIndexOf(String(R));if(ee>=0)return{prefix:Z.slice(0,ee),suffix:Z.slice(ee+String(R).length)}}return{label:Z}}if(typeof v=="string"&&v.includes("{n}")){const[R,Z]=v.split("{n}");return{prefix:R,suffix:Z}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,H.length,_]),P=l.useMemo(()=>o.map(R=>({label:R.label,onClick:R.sortable!==!1?()=>N(R.key):void 0,className:R.className,sortDir:R.sortable!==!1&&S===R.key?$?"asc":"desc":null})),[o,S,$,N]),W=l.useMemo(()=>x.map(R=>({value:String(R),label:_("common.pageSizeLabel",{n:R})})),[x,_]);return r.jsxs(eo,{className:`popup-list ${y}`,title:t,onClose:b,children:[g,"label"in O&&r.jsx("p",{className:"toolbar__count body-1",children:O.label}),r.jsx(Ti,{count:"label"in O?void 0:{value:H.length,prefix:O.prefix,suffix:O.suffix},search:I?{value:A,onChange:w,placeholder:B}:void 0,pageSize:{options:W,value:j,onChange:z},pagination:{page:q,total:V,onChange:T}}),r.jsx(Pi,{size:"medium",gridTemplateColumns:n,mobileGridTemplateColumns:i,resizable:!0,fields:P,items:L,onRowClick:m,renderRow:R=>{const Z=h!=null?R.id!=null&&h.has(R.id):p!=null&&R.id===p;return o.map(ee=>({content:ee.render?ee.render(R):R[ee.key]??"",className:Le(ee.className,Z&&"popup-list__row--selected")}))},empty:k})]})}function Gu(e){const{title:t,message:a,topContent:o,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:b=!0,onClose:x,inline:f,size:C="small",className:v,initialFocus:g="close"}=e,{t:y}=ve.useTranslation(),_=l.useRef(null);l.useEffect(()=>{if(f||g==="close")return;const E=_.current?.closest(".popup-panel"),$=Array.from(E?.querySelectorAll(".popup-footer--buttons button")??[]),F=g==="confirm"?$[$.length-1]:d?void 0:$[u?1:0];F&&!F.disabled&&F.focus()},[]);const B=l.useRef(!1),[k,A]=l.useState(!1),w=E=>{let $=!1;return{close:()=>{$=!0,E()},\uB2EB\uC558\uB098:()=>$}},S=async E=>{if(B.current)return;B.current=!0;const $=typeof document<"u"?document.activeElement:null;A(!0);let F=!1;try{F=await E()}catch(j){typeof console<"u"&&console.error(j)}finally{F||(B.current=!1,A(!1),requestAnimationFrame(()=>{const j=document.activeElement;(!j||j===document.body)&&$?.isConnected&&$.focus()}))}};return r.jsxs(eo,{title:t,onClose:x,closeDisabled:k,inline:f,size:C,className:Le("confirm-popup",o!=null&&"confirm-popup--has-top",v),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||k,onClick:async({closeWithAnimation:E})=>{await S(async()=>{const $=w(E);await u.onClick($.close);const F=u.closeOnClick??!0;return F&&E(),F||$.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:c??y("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:k,onClick:({closeWithAnimation:E})=>E()}],{label:s??y("common.confirm","\uD655\uC778"),variant:p,disabled:h||k,onClick:async({closeWithAnimation:E})=>{await S(async()=>{const $=w(E);return await m($.close),b&&E(),b||$.\uB2EB\uC558\uB098()})}}],children:[o!=null&&r.jsx("div",{className:"confirm-popup__top",children:o}),n&&n.length>0&&r.jsx(An,{children:n.map((E,$)=>r.jsx(to,{label:E.label,children:r.jsx("span",{className:"panel-row__text body-2",children:E.value})},$))}),r.jsx("p",{ref:_,className:"body-2 confirm-popup__message",children:a}),i]})}function u1(e,t,a={}){const{t:o}=ve.useTranslation(),[n,i]=l.useState(!1),s=l.useRef(!1),c=l.useCallback(()=>{s.current=!0},[]),d=l.useCallback(()=>s.current?(s.current=!1,!0):e?(i(!0),!1):!0,[e]),u=n?r.jsx(Gu,{title:a.title??o("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??o("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??o("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:u,allowClose:c}}var _A=".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}";oe(_A);function p1({onApply:e,onCancel:t}){const{t:a}=ve.useTranslation(),[o,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const p=l.useCallback(async b=>{const x=o.trim();if(x){s(!0),d(null);try{await e(x),b()}catch(f){d(Jr(f)),s(!1),requestAnimationFrame(()=>u.current?.focus())}}},[o,e]),h=l.useCallback((b,x)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(x)},[p]),m=b=>{n(b.target.value),d(null)};return r.jsx(eo,{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:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!o.trim()||i,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>r.jsxs(r.Fragment,{children:[r.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:o,onChange:m,onKeyDown:x=>h(x,b),disabled:i,autoComplete:"off",spellCheck:!1}),c&&r.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var yA=".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}";oe(yA);const h1=["var(--color-main)","var(--color-sub)"],wA=2e3;function kA(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function rs({active:e=!1,count:t=40,duration:a=2e3,strength:o=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const f=Math.floor(t/2),C=t-f,v=(g,y)=>Array.from({length:g}).map((_,B)=>{const k=6+Math.random()*12,A=Math.round(Math.min(18,k*Math.min(1.5,1+o*.4))),w=h1[Math.floor(Math.random()*h1.length)],S=Math.random()*300,E=(360+Math.random()*260)*o*1.2,$=(y==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos($)*E,j=Math.sin($)*E*1.35,z=Math.random()*720-360,D=(1200+Math.random()*3e3)*Math.min(1.6,1+o*.3),T=Math.random()>.7?"50%":"3px";return{id:`${y}-${B}`,side:y,size:A,color:w,delay:S,vx:F,vy:j,angularVel:z,life:D,borderRadius:T}});return[...v(f,"left"),...v(C,"right")]},[t,o]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),p=l.useRef(n);l.useEffect(()=>{p.current=n},[n]);const h=l.useRef(null),m=l.useRef(null),b=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&m.current==null&&(m.current=b()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const V=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(V)}const f=1200,C=performance.now(),v=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),y=V=>Math.max(40,(V||window.innerWidth)*.02),_=v?.width||window.innerWidth||375,B=v?.height||window.innerHeight||812,k=V=>{const q=[...V].sort((L,N)=>L-N);return q[Math.floor(q.length/2)]||1},A=k(s.map(V=>Math.abs(V.vy))),w=k(s.map(V=>Math.abs(V.vx))),S=Math.sqrt(2*f*(B*.72+g))/A,E=A*S/f,$=_*.5/(w*E),F=(V,q,L)=>Math.min(L,Math.max(q,V)),j=F(S,.8,2.4),z=F($,.7,2.2),D=a>0?a/wA:1,T=s.map(V=>({...V,life:V.life*D,vx:V.vx*z,vy:V.vy*j,startTime:C+V.delay,ended:!1})),I=v?{x:v.left-y(v.width),y:v.top+v.height+g}:{x:-y(window.innerWidth),y:window.innerHeight+g},G=v?{x:v.left+v.width+y(v.width),y:v.top+v.height+g}:{x:window.innerWidth+y(window.innerWidth),y:window.innerHeight+g},K=V=>{let q=!1;for(const L of T){const N=d.current[L.id];if(!N||!N)continue;if(V<L.startTime){N.style.display="none",q=!0;continue}if(!L._inited){const re=L.side==="left"?I.x:G.x,se=L.side==="left"?I.y:G.y;N.style.left=`${re}px`,N.style.top=`${se}px`,N.style.transform="translate3d(0px, 0px, 0)",N.style.display="block",N.style.zIndex="100000",typeof L.color=="string"&&L.color.startsWith("var(")&&(N.style.background=kA(N,L.color)??"#FF0060"),L._inited=!0}const O=(V-L.startTime)/1e3;if(O<0)continue;const P=L.life/1e3;if(O>=P){N.style.opacity="0",N.style.display="none",L.ended=!0;continue}q=!0;const W=L.side==="left"?I.x:G.x,R=L.side==="left"?I.y:G.y,Z=W+L.vx*O,ee=R+L.vy*O+.5*f*O*O,J=(L.angularVel||0)*O,ue=Z-W,ne=ee-R;N.style.transform=`translate3d(${ue}px, ${ne}px, 0) rotate(${J}deg)`,N.style.opacity=`${Math.max(0,1-O/P)}`}q?u.current=requestAnimationFrame(K):p.current?.()};u.current=requestAnimationFrame(K);const H=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const V=document.createElement("div");V.className="party-container",V.style.position="fixed",V.style.inset="0",V.style.pointerEvents="none",V.style.overflow="visible",V.style.zIndex="2147483647";for(const q of s){const L=document.createElement("span");L.className=`confetti confetti--${q.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${q.size}px`,L.style.height=`${Math.max(4,q.size*.6)}px`,L.style.background=q.color,L.style.borderRadius=q.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",V.appendChild(L),d.current[q.id]=L}(document.body||m.current).appendChild(V),h.current=V}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(H),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,s]),!e)return null;const x=r.jsx("div",{className:"party-container",ref:c,children:s.map(f=>r.jsx("span",{"aria-hidden":!0,ref:C=>{d.current[f.id]=C},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?ca.createPortal(x,m.current||document.body):x}const Uu=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function m1({trigger:e=0,active:t=!1}){const[a,o]=l.useState(null);l.useEffect(()=>{if(typeof window>"u")return;const i=s=>{const c=s.detail??{};o(d=>({n:(d?.n??0)+1,count:Uu(c.count),strength:Uu(c.strength),duration:Uu(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const n=l.useCallback(()=>o(null),[]);return r.jsxs(r.Fragment,{children:[r.jsx(rs,{active:t,trigger:e}),a&&r.jsx(rs,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:n})]})}var BA=".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:center;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}.ihabdevteam-core-scope .page-title--wrap{flex-wrap:wrap}.ihabdevteam-core-scope .page-title--wrap .page-title__main{min-width:min(320px,100%)}";oe(BA);function b1({title:e,sub:t,rightAction:a,titleAction:o,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d,wrap:u=!1}){const{t:p}=ve.useTranslation();Uc(typeof e=="string"?e:s??null);const h=d??p("common.back","\uB4A4\uB85C");return r.jsxs("div",{className:u?"page-title page-title--wrap":"page-title",children:[r.jsxs("div",{className:"page-title__main",children:[r.jsxs("div",{className:"page-title__title-row",children:[c&&r.jsx(pe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),r.jsx("h1",{className:"page-title__title h1",children:e}),n&&r.jsx("div",{className:"page-title__badge",children:r.jsx(Ct,{label:n,size:"small",variant:i,fill:"outline"})}),o?r.jsx("div",{className:"page-title__title-action",children:o}):null]}),t&&r.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?r.jsx("div",{className:"page-title__action",children:a}):null]})}function g1(e){return e??""}const f1=l.createContext({words:[],loading:!1});function v1(){return l.useContext(f1)}function x1({words:e,loading:t,error:a,statusMessage:o,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return r.jsx(f1.Provider,{value:{words:e,loading:t,error:a,statusMessage:o,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var AA=".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)}";oe(AA);function C1({items:e,actions:t,columns:a,flat:o=!1,className:n,style:i}){const s=a??e.length;return r.jsx("section",{className:Le("summary-strip",o&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:r.jsxs("div",{className:"summary-strip__row",children:[r.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>r.jsxs("div",{className:"summary-strip__item",children:[r.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),r.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},d))}),t&&r.jsx("div",{className:"summary-strip__actions",children:t})]})})}var SA='.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}.ihabdevteam-core-scope .report-doc__measure{height:0;overflow:hidden}.ihabdevteam-core-scope .report-doc__measure>*{flex-shrink:0}}';oe(SA);const EA=(e,t)=>`${e} / ${t}`;function _1({blocks:e,sectionTitles:t,logo:a,footer:o,pageLabel:n=EA,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:p}=ve.useTranslation(),h=l.useRef(null),m=l.useRef(null),b=l.useRef(null),x=l.useRef(null),[f,C]=l.useState(null),[v,g]=l.useState(!1);l.useEffect(()=>{const D=h.current;if(!D)return;const T=()=>g(D.scrollWidth>D.clientWidth+1);if(T(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(T);return I.observe(D),()=>I.disconnect()},[f]);const y=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join(""),_=f&&f.shape===y?f.pages:null,[B,k]=l.useState(0);l.useEffect(()=>{const D=x.current;if(!D||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>k(D.offsetHeight));return T.observe(D),()=>T.disconnect()},[]);const[A,w]=l.useState(0);l.useEffect(()=>{const D=m.current;if(!D||typeof ResizeObserver>"u")return;let T=null;const I=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),K=new ResizeObserver(()=>{T==null&&(T=I(()=>{T=null,w(H=>H+1)}))});return Array.from(D.children).forEach(H=>K.observe(H)),()=>{K.disconnect(),T!=null&&G(T)}},[y]),l.useLayoutEffect(()=>{const D=m.current,T=x.current;if(!D||!T)return;const I=P=>P.getBoundingClientRect().height||P.offsetHeight,G=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(P=>{G.set(P.dataset.chromeSection??"",I(P))});const K=P=>I(T)-(G.get(P??"")??0),H=Array.from(D.children).map(P=>I(P)),V=[];e.forEach((P,W)=>{const R=V[V.length-1],Z=R?e[R[0]]:void 0;Z&&P.group!=null&&Z.group===P.group&&Z.section===P.section?R.push(W):V.push([W])});const q=[];let L=[],N=0;const O=()=>{L.length&&q.push(L),L=[],N=0};V.forEach(P=>{const W=P.reduce((Z,ee)=>Z+H[ee],0),R=K(e[P[0]].section);L.length&&e[L[0]].section!==e[P[0]].section&&O(),W>R?P.forEach(Z=>{L.length&&N+H[Z]>R+.01&&O(),L.push(Z),N+=H[Z]}):(L.length&&N+W>R+.01&&O(),P.forEach(Z=>L.push(Z)),N+=W)}),O(),C(P=>P&&P.shape===y&&JSON.stringify(P.pages)===JSON.stringify(q)?P:{shape:y,pages:q})},[y,B,i,s,c,A]);const S=jd,E=S,$=o??r.jsxs(r.Fragment,{children:[r.jsx("img",{src:E,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(D,T,I)=>({header:r.jsxs("div",{className:"report-doc__header",children:[r.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&t?.[I]||null}),a]}),footer:r.jsxs("div",{className:"report-doc__footer caption-1",children:[r.jsx("span",{className:"report-doc__footer-left",children:$}),r.jsx("span",{className:"report-doc__page-no",children:n(D,T)})]})}),j=Array.from(new Set(e.map(D=>D.section??""))),z={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return r.jsxs("div",{ref:h,className:Le("report-doc",d),style:z,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[r.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[r.jsx("div",{ref:x,className:"report-doc__ruler"}),r.jsx("div",{ref:b,children:j.map(D=>{const T=F(1,1,D||void 0);return r.jsxs("div",{"data-chrome-section":D,children:[T.header,T.footer]},D)})}),r.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(D=>r.jsx("div",{children:D.content},D.id))})]}),_&&r.jsx("div",{className:"report-doc__pages",children:_.map((D,T)=>{const{header:I,footer:G}=F(T+1,_.length,e[D[0]].section);return r.jsxs("section",{className:"report-doc__page",children:[I,D.map(K=>r.jsx("div",{children:e[K].content},e[K].id)),G]},T)})})]})}var NA=".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}";oe(NA);function y1({title:e,fields:t,columns:a=4,className:o,style:n}){return r.jsxs("div",{className:Le("report-info",o),style:{"--report-info-cols":String(a),...n},children:[e&&r.jsx("p",{className:"report-info__title h5b",children:e}),r.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>r.jsxs("div",{className:"report-info__field body-2",children:[r.jsx("span",{className:"report-info__label body-3",children:i.label}),r.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}const Uo=new Map;let ns=null;const DA=12;function TA(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function is(){const e=new Map;for(const t of Uo.keys()){if(!t.isConnected)continue;const a=TA(t),o=e.get(a)??[];o.push(t),e.set(a,o)}for(const t of e.values()){t.sort((o,n)=>o.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const o of t){a>0?o.style.setProperty("--update-alert-stack-offset",`${a}px`):o.style.removeProperty("--update-alert-stack-offset");const n=o.getBoundingClientRect().height;n>0&&(a+=n+DA)}}}function jA(e){return typeof window>"u"?()=>{}:(Uo.set(e,(Uo.get(e)??0)+1),Uo.get(e)===1&&typeof ResizeObserver<"u"&&(ns??(ns=new ResizeObserver(()=>is())),ns.observe(e)),is(),()=>{const t=(Uo.get(e)??1)-1;if(t>0){Uo.set(e,t),is();return}Uo.delete(e),ns?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),is()})}var LA=".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;top:calc(16px + var(--update-alert-stack-offset, 0px));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;top:auto;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%}";oe(LA);function w1({title:e,message:t,actionLabel:a,onAction:o,icon:n,onClose:i,className:s=""}){const{t:c}=ve.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),u=l.useRef(null),p=l.useRef(!1);return l.useLayoutEffect(()=>{const h=u.current,m=h?.parentElement?.closest(".update-alert-stack")??h,b=m?jA(m):null;return()=>{b?.(),p.current&&h&&h.contains(document.activeElement)&&ci(h)}},[]),r.jsxs("div",{ref:u,className:Le("update-alert",s),role:"alert",children:[i&&r.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),r.jsxs("div",{className:"update-alert__top",children:[r.jsx("div",{className:"update-alert__icon",children:n??r.jsx(cp,{size:20,strokeWidth:2})}),r.jsxs("div",{className:"update-alert__body",children:[r.jsx("div",{className:"update-alert__title h4",children:e}),r.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),o&&r.jsx(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:o,children:d})]})}var MA=".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}";oe(MA);function k1({title:e,description:t,topActions:a,children:o,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:p}){const h=n!=null||i!=null,m=o!=null&&o!==!1,b=l.useCallback(x=>{s&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),s())},[s]);return r.jsxs("div",{className:Le("training-card",s?"training-card--clickable":"",p),onClick:s,onKeyDown:s?b:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[r.jsxs("div",{className:"training-card__header",children:[r.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?r.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&r.jsx("div",{className:"training-card__top-actions",onClick:x=>x.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?r.jsx("p",{className:"training-card__description body-3",children:t}):t:r.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&r.jsx("div",{className:"training-card__body",children:o}),h&&r.jsxs("div",{className:"training-card__footer",children:[n!=null&&r.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&r.jsx("div",{className:"training-card__meta",children:i})]})]})}var $A=".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}";oe($A);function B1({title:e,count:t,collapsed:a=!1,onToggle:o,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:p,onDrop:h,children:m,className:b}){const{t:x}=ve.useTranslation(),f=o!=null,C=Le("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",b);return r.jsxs("div",{className:C,onDragOver:u,onDragLeave:p,onDrop:h,children:[r.jsxs("header",{className:"training-card-group__header",children:[f&&r.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?x("common.expand","\uD3BC\uCE58\uAE30"):x("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:o}),typeof e=="string"?r.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&r.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&r.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[n&&r.jsx(fa,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?r.jsx("div",{className:"training-card-group__empty body-3",children:c}):r.jsx("div",{className:"training-card-group__grid",children:m}))]})}var RA=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-right{margin-left:auto}.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-right{margin-left:0}.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}}";oe(RA);const PA="speechear:saved_word_tables";function zA(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 IA(){try{const e=localStorage.getItem(PA);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(zA):[]}catch{return[]}}function A1(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function qu(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function OA(e){const t=new Set;return e.map(a=>{let o=a.id;for(let n=2;t.has(o);n++)o=`${a.id}~${n}`;return t.add(o),o===a.id?a:{...a,id:o}})}function S1({title:e,titleIcon:t,disc:a,filterTitle:o,filterCollapsible:n,filterDefaultCollapsed:i,filterCollapsed:s,onFilterCollapsedChange:c,filterHeaderSummary:d,brand:u,code:p,items:h,onSaveComplete:m,onLoad:b,onRemoveItem:x,onReset:f,resetLabel:C,saveButtonLabel:v,secondarySaveButtonLabel:g,onReorder:y,showCellCount:_,onAddItem:B,className:k,renderSavePopup:A,renderWordSearch:w,hideControls:S,saveOnly:E,tableName:$,nameValue:F,onNameChange:j,descriptionValue:z,onDescriptionChange:D,namePlaceholder:T,descriptionPlaceholder:I,existingNames:G,editingName:K,onCancel:H,initialItemsPerPage:V,renderCellAction:q,actionsLeftExtra:L}){const{t:N}=ve.useTranslation(),O=C??N("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),P=h===void 0,W=!!j,[R,Z]=l.useState([]),ee=(F??"").trim(),J=ee||(T??"").trim(),ue=(z??"").trim()||(I??"").trim(),ne=(G??[]).map(Me=>Me.trim().toLowerCase()),re=[K?.trim().toLowerCase(),...R].filter(Me=>!!Me),se=[...ne];for(const Me of re){const Ge=se.indexOf(Me);Ge!==-1&&se.splice(Ge,1)}const U=ee!==""&&se.includes(ee.toLowerCase()),[le,me]=l.useState(Array(4).fill(null)),[_e,xe]=l.useState(4),[ce,Ce]=l.useState(null),Ae=le.slice(0,_e),X=!!u?.show,[ye,be]=l.useState(!0),[ae,ge]=l.useState(!0),Re=u&&{...u,top:ye,bottom:ae},[Pe,ke]=l.useState("landscape"),[De,Fe]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Te,tt]=l.useState("\uD45C\uC2DC"),[Ue,Qe]=l.useState(!0),[je,$e]=l.useState(!0),Ne=l.useRef(null),Oe=l.useRef([]),[Ye,_t]=l.useState(V==="all"?Number.POSITIVE_INFINITY:V??8),[jt,Pt]=l.useState("right"),[Lt,st]=l.useState(!1),[Je,it]=l.useState(!1),{toastMessage:ct,toastType:Ke,showWarning:bt,clearToast:Ze}=wi("warning"),yt=l.useCallback(()=>Ce(null),[Ce]);B&&!P&&!_&&Ua("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ft,Mt]=l.useState(()=>Math.max(h?.length??1,1)),ft=P?_e:_?Math.max(Ft,h?.length??1,1):Math.max(h?.length??0,1),{width:dt,height:Ve}=Vo[Pe],ot=!P&&!_,vt=h?.length??0,Xt=Math.min(Ye,Math.max(vt,1)),at=ot?Xt:ft,Ht=ot?D0(h??[],at):null,sa=!!Ht&&Ht.length>1,Vt=P?Ae.some(Me=>Me!==null&&Me.length>1):(h??[]).some(Me=>(Me.words??[]).length>1),Sa=$?.trim()||`${Jn(ba())} ${Vt?N("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):N("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Ea=l.useCallback(()=>sa?Oe.current.filter(Me=>Me!==null):Ne.current?[Ne.current]:[],[sa]),{print:Na,openNewWindow:yo,downloadHtml:Da}=Gi({getElements:Ea,paperW:dt,paperH:Ve,fileName:Sa,onPopupBlocked:()=>{bt(N("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."))}}),wo=Me=>{xe(Me),me(Ge=>Ge.length>=Me?Ge:[...Ge,...Array(Me-Ge.length).fill(null)]),Ce(null)},oo=Me=>{me(Ge=>{const St=[...Ge];return St[Me]=null,St}),ce===Me&&Ce(null)},$t=Me=>{if(ce===null)return;const Ge=ce;me(Qt=>{const ea=[...Qt];return ea[Ge]=Me.length>0?Me:null,ea});const St=Ae.findIndex((Qt,ea)=>ea>Ge&&Qt===null);Ce(St!==-1?St:null)},Ha=P?Ae.some(Me=>Me?.some(Ge=>!!Ge.colloquialPronunciation)):(h??[]).some(Me=>(Me.words??[]).some(Ge=>!!Ge.colloquialLabel)),Jt=l.useMemo(()=>io()?P?le.slice(0,_e).flatMap(Me=>(Me??[]).map(Ge=>[Ge.word,Ge.homonum])):(h??[]).flatMap(Me=>(Me.words??[]).map(Ge=>[Ge.label,Ge.homonum])):[],[P,le,_e,h]),[la,Va]=l.useState(!1);l.useEffect(()=>{if(Jt.length===0)return;let Me=!1;return Promise.all(Jt.map(([Ge,St])=>Hr(Ge,St))).then(Ge=>{Me||Va(Ge.some(Boolean))},()=>{}),()=>{Me=!0}},[Jt]);const ha=Jt.length>0&&la,Wa=l.useMemo(()=>[...P||_?[{label:N("wordTable.filter.columns","\uCE78 \uC218"),items:J9.map(Me=>({value:`${Me}\uCE78`,displayLabel:N("wordTable.filter.column",{count:Me})})),display:"segmented"}]:[],...ot&&(h?.length??0)>0?[W0(N,{hasPairs:Vt,itemCount:vt})]:[],...sa?[Q9(N)]:[]],[N,P,_,ot,h?.length,Vt,vt,sa]),ko={...P||_?{[N("wordTable.filter.columns","\uCE78 \uC218")]:`${ft}\uCE78`}:{},...ot&&(h?.length??0)>0?{[N(Vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Xt}\uAC1C`}:{},...sa?{[N("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:U0[jt]}:{}},Ga=(Me,Ge)=>{Ge===N("wordTable.filter.columns","\uCE78 \uC218")?P?wo(parseInt(Me)):Mt(parseInt(Me)):Ge===N(Vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?_t(G0(parseInt(Me),vt)):Ge===N("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Pt(q0(Me))},ie=P?OA(Ae.filter(Me=>Me!==null&&Me.length>0).map(Me=>({id:qu(Me),words:Me.map(A1)}))):h??[],we=()=>{P&&me(Me=>Me.length>_e?Me.slice(0,_e):Me)},Y=(Me=!1)=>{if(it(Me),W&&m){const Ge=J.trim().toLowerCase();Ge&&Z(St=>St.includes(Ge)?St:[...St,Ge]),m(J,ie,ue||void 0,Me),we();return}if(E&&m){m("",ie,void 0,Me),we();return}if(m){st(!0);return}Da()},[de,he]=l.useState(!1),[Be,Se]=l.useState(""),ze=Be.trim(),rt=ze!==""&&ne.includes(ze.toLowerCase()),wt=()=>{Se(J?N("wordTable.save.copyName",{name:J,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),he(!0)},ut=()=>{!ze||rt||!m||(m(ze,ie,ue||void 0,!0),we(),he(!1))},At=ie.length===0,Kt=At||W&&(J===""||U),Wt=()=>{if(At){bt(N("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(W&&J===""){bt(N("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}W&&U&&bt(N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},va=r.jsx(Wo,{items:ie,orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:ft});return r.jsxs(r.Fragment,{children:[r.jsxs(Ho,{type:"page",icon:t,title:e,disc:a,className:Le("word-table-block",k),children:[de&&r.jsx(eo,{size:"small",title:g??N("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>he(!1),footer:({closeWithAnimation:Me})=>r.jsxs(r.Fragment,{children:[r.jsx(pe,{htmlType:"button",size:48,type:"bar",label:N("common.cancel","\uCDE8\uC18C"),onClick:Me}),r.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:N("common.save","\uC800\uC7A5"),disabled:!ze||rt,onClick:ut})]}),children:r.jsx(xo,{label:N("wordTable.save.nameLabel","\uC774\uB984"),value:Be,onChange:Se,placeholder:N("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:ut,error:rt?N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Lt&&m&&A?.({defaultName:typeof e=="string"?e:N("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:va,previewW:dt,previewH:Ve,items:ie,existingNames:IA().map(Me=>Me.name),saveAsNew:Je,onSave:(Me,Ge)=>{m(Me,ie,Ge,Je),we(),st(!1)},onCancel:()=>st(!1)}),(P||B)&&ce!==null&&w?.({cellIndex:ce,onConfirm:P?$t:Me=>{if(B){const Ge=Me[0];if(Ge){const St=new Set((h??[]).map(ea=>ea.id));let Qt=qu([Ge]);for(let ea=2;St.has(Qt);ea++)Qt=`${qu([Ge])}~${ea}`;B({id:Qt,words:[A1(Ge)]})}}Ce(null)},onClose:yt}),!S&&r.jsx(Vi,{title:o,collapsible:n,defaultCollapsed:i,collapsed:s,onCollapsedChange:c,headerSummary:d,hasImage:ha,hasColloquial:Ha,contentTypes:De,orientation:Pe,showOutline:Ue,cutLine:Te,showDivLine:je,setters:{setContentTypes:Fe,setOrientation:ke,setShowOutline:Qe,setCutLine:tt,setShowDivLine:$e,setShowTopInfo:be,setShowBottomInfo:ge},showCutLine:(ot?at:ft)>1,showDivLine2:Vt,middleSections:Wa,extraSelected:ko,onExtraSelect:Ga,showPaperBands:X,showTopInfo:ye,showBottomInfo:ae}),sa&&Ht?r.jsx("div",{className:"word-table-block__pages",children:Ht.map((Me,Ge)=>r.jsx(Wo,{orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:at,items:Me,onRemoveItem:x,onReorder:y&&((St,Qt)=>y(St+Ge*at,Qt+Ge*at)),renderCellAction:q&&((St,Qt)=>q(St+Ge*at,Qt)),brand:Re,code:p,contentRef:St=>{Oe.current[Ge]=St},pageNumber:{current:Ge+1,total:Ht.length},pageNumberPosition:jt},Ge))}):r.jsx(Wo,{orientation:Pe,contentTypes:De,cutLine:Te,showOutline:Ue,showDivLine:je,count:ft,items:P?void 0:h??[],editCells:P?Ae:void 0,activeCell:ce,onActivateCell:P||B?Ce:void 0,onRemoveCell:P?oo:void 0,onRemoveItem:P?void 0:x,onReorder:P?void 0:y,renderCellAction:P?void 0:q,brand:Re,code:p,showFillerAdd:!!B,contentRef:Ne}),W&&!S&&r.jsxs(An,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[r.jsx(to,{variant:"custom",label:N("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:r.jsx(xo,{required:!0,value:F??"",onChange:j,placeholder:T?T+N("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):N("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:N("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:U?N("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Me=>{(Me.key==="Tab"&&!Me.shiftKey||Me.key===" ")&&!(F??"").trim()&&(T??"").trim()&&(Me.preventDefault(),j?.(T??""))}})}),r.jsx(to,{variant:"custom",label:N("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:r.jsx(xo,{value:z??"",onChange:D,placeholder:I?I+N("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):N("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:N("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Me=>{(Me.key==="Tab"&&!Me.shiftKey||Me.key===" ")&&!(z??"").trim()&&(I??"").trim()&&(Me.preventDefault(),D?.(I??""))}})})]})]}),!S&&r.jsxs("div",{className:"word-table-block__actions",children:[r.jsxs("div",{className:"word-table-block__actions-left",children:[!E&&f&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:O,onClick:f}),!E&&L,!E&&b&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:N("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:b}),!E&&r.jsx(pe,{htmlType:"button",size:40,type:"bar",label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:yo})]}),r.jsxs("div",{className:"word-table-block__actions-right",children:[H&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:N("common.cancel","\uCDE8\uC18C"),onClick:H}),!E&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Na}),g&&r.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>W?wt():Y(!0),disabled:At,onDisabledClick:()=>{bt(N("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),r.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v??N("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Y(!1),disabled:Kt,onDisabledClick:Wt})]})]}),r.jsx(Fo,{message:ct,type:Ke,onClose:Ze})]})}var FA=".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%}";oe(FA);function Yu({items:e,className:t}){const a=e.length,o=a<=3?1:2,n=Math.ceil(a/o)||1,i=o*n;return r.jsx("div",{className:Le("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${o}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?r.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((u,p)=>r.jsxs(l.Fragment,{children:[p>0&&r.jsx("span",{className:"word-table-thumb__divider"}),r.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},p))},c):r.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var HA=".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-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .word-table-button__meta-right{align-items:center;display:flex;flex-shrink:0;gap:8px;min-width:0}.ihabdevteam-core-scope .word-table-button__code{color:var(--color-text-primary);flex-shrink:0;font-family:var(--font-mono);white-space:nowrap}.ihabdevteam-core-scope .word-table-button__meta-left .word-table-button__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}";oe(HA);function E1({items:e,name:t,description:a,createdAt:o,code:n,published:i,publishedLabel:s,shared:c,sharedLabel:d,isNew:u,publisherName:p,publishedAt:h,likeCount:m,downloadCount:b,onPublisherClick:x,selected:f,onClick:C,onMore:v,titleNode:g,className:y}){const{t:_}=ve.useTranslation(),B=g!=null,k=p!=null||h!=null||m!=null||b!=null,A=w=>{w.target===w.currentTarget&&!B&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C?.())};return r.jsxs("div",{className:Le("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":n?`${t} (${n})`:t,onClick:B?void 0:C,onKeyDown:A,children:[u&&r.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),r.jsx(Yu,{items:e,className:"word-table-button__thumb"}),r.jsxs("div",{className:"word-table-button__info",children:[r.jsxs("div",{className:"word-table-button__info-text",children:[g??r.jsx("div",{className:"word-table-button__title h4",children:t}),a&&r.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!B&&r.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:t}),onClick:w=>{w.stopPropagation(),v(w)}})]}),(n||o||i||c)&&r.jsxs("div",{className:"word-table-button__meta-row",children:[r.jsx("span",{className:"word-table-button__meta-left",children:r.jsx("span",{className:"word-table-button__meta caption-1",children:o?Xn(o,_):""})}),r.jsxs("span",{className:"word-table-button__meta-right",children:[n&&r.jsx("span",{className:"word-table-button__code caption-1",children:n}),(i||c)&&r.jsxs("span",{className:"word-table-button__badges",children:[i&&r.jsx(Ct,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),c&&r.jsx(Ct,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]})]}),k&&r.jsxs("div",{className:"word-table-button__footer",children:[r.jsxs("span",{className:"word-table-button__store-by",children:[p&&r.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:w=>{w.stopPropagation(),x?.()},children:p}),h&&r.jsx("span",{className:"training-card__date body-4",children:Xn(h,_)})]}),r.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&r.jsx(Ct,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),b!=null&&r.jsx(Ct,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b)})]})]})]})}/**
1063
1063
  * @license lucide-react v1.38.0 - ISC
1064
1064
  *
1065
1065
  * This source code is licensed under the ISC license.