@ihabdevteam/core 0.126.0 → 0.128.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.
- package/CHANGELOG.md +76 -0
- package/dist/components.cjs.js +172 -172
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +19 -19
- package/dist/ihabdevteam-core.d.ts +9 -1
- package/dist/packages/core/src/components/Header.css +8 -0
- package/dist/packages/core/src/components/Popup/Popup.d.ts +8 -0
- package/dist/packages/core/src/components/Popup/Popup.js +21 -2
- package/dist/packages/core/src/components/SideNav.css +16 -7
- package/dist/packages/core/src/components/SideNav.js +11 -1
- package/dist/packages/core/src/components/Training/AudioPlayerWaveForm.js +5 -2
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
|
@@ -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"},E1={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"}}},T1={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},L1={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},M1={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},$1={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"},R1={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},P1={ariaLabel:"\uC120\uD0DD \uD0ED"},z1={ariaLabel:"\uD0ED"},I1={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},O1={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},F1={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"}},H1={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"}},V1={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"}},W1={manage:{unit:"\uAC74"}},G1={cancelLabel:"\uCDE8\uC18C"},U1={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Y1={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"},q1={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},K1={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"},Z1={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},X1={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},J1={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Q1={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},e0={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"}},t0={common:qg,calendar:Kg,passCard:Zg,searchField:Xg,rating:Jg,colorPicker:Qg,dropdown:e1,accordion:t1,header:a1,nav:o1,settings:r1,usage:n1,account:i1,help:s1,training:l1,trainingSettings:c1,customers:d1,payment:u1,coupons:p1,visits:h1,company:m1,trainingType:b1,myWordTraining:g1,myWordTable:f1,keyWords:v1,wordTable:x1,wordSearch:_1,wordPrint:C1,topic:y1,accessLinkManager:w1,login:k1,trainingPlanRun:A1,device:S1,manager:B1,wordPairs:N1,game:D1,footer:j1,landing:E1,date:T1,trainingSetPage:L1,wordTrainingPreview:M1,wordData:$1,textField:R1,segmentedControl:P1,tabs:z1,fileUpload:I1,avatar:O1,myHomework:F1,trainingStatus:H1,store:V1,homework:W1,inquiry:G1,progress:U1,trainingMiss:Y1,table:q1,wordScore:K1,topBanner:Z1,datePicker:X1,report:J1,tooltip:Q1,phonemeProfile:e0},a0={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}}},o0={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"},r0={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"}},n0={clearAriaLabel:"Clear search"},i0={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},s0={selected:"selected"},l0={placeholder:"Select"},c0={collapse:"Collapse",expand:"Expand"},d0={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},u0={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu"},p0={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."}}},h0={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"}},m0={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password"},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},b0={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},g0={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",diffPhonemeCount:"Total differing phonemes",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",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",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},f0={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"},v0={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"}},x0={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},_0={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"}},C0={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},y0={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},w0={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."}},k0={comingSoon:"Word training is coming soon."},A0={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"}},S0={title:"Key Words",empty:"No key words available."},B0={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},N0={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},D0={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},j0={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"}},E0={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"}},T0={passwordPlaceholder:"Enter password"},L0={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},M0={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},$0={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."]},R0={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"}},P0={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"},z0={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"}}},I0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},O0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},F0={answer:"Answer",distractor:"Distractor"},H0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},V0={clearAriaLabel:"Clear input"},W0={ariaLabel:"Select tab"},G0={ariaLabel:"Tabs"},U0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Y0={ariaLabel:"User avatar"},q0={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"}},K0={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"}},Z0={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)"}},X0={manage:{unit:"item(s)"}},J0={cancelLabel:"Cancel"},Q0={subtitle:"Select a topic to start listening practice."},ef={steps:"Step {{current}} of {{total}}"},tf={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"},af={resetColumns:"Reset column widths"},of={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}}"},rf={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},nf={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},sf={previewRegion:"Report preview \u2014 scrollable sideways"},lf={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},cf={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},df={common:a0,calendar:o0,passCard:r0,searchField:n0,rating:i0,colorPicker:s0,dropdown:l0,accordion:c0,header:d0,nav:u0,settings:p0,usage:h0,account:m0,help:b0,training:g0,trainingSettings:f0,customers:v0,payment:x0,coupons:_0,visits:C0,company:y0,trainingType:w0,myWordTraining:k0,myWordTable:A0,keyWords:S0,wordTable:B0,wordSearch:N0,wordPrint:D0,topic:j0,accessLinkManager:E0,login:T0,device:L0,manager:M0,wordPairs:$0,game:R0,footer:P0,landing:z0,date:I0,trainingSetPage:O0,wordTrainingPreview:F0,wordData:H0,textField:V0,segmentedControl:W0,tabs:G0,fileUpload:U0,avatar:Y0,myHomework:q0,trainingStatus:K0,store:Z0,homework:X0,inquiry:J0,trainingPlanRun:Q0,progress:ef,trainingMiss:tf,table:af,wordScore:of,topBanner:rf,datePicker:nf,report:sf,tooltip:lf,phonemeProfile:cf};const Lr="0.
|
|
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"},z0={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"}}},I0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},O0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},F0={answer:"Answer",distractor:"Distractor"},H0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},V0={clearAriaLabel:"Clear input"},W0={ariaLabel:"Select tab"},G0={ariaLabel:"Tabs"},U0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Y0={ariaLabel:"User avatar"},q0={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"}},K0={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"}},Z0={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)"}},X0={manage:{unit:"item(s)"}},J0={cancelLabel:"Cancel"},Q0={subtitle:"Select a topic to start listening practice."},ef={steps:"Step {{current}} of {{total}}"},tf={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"},af={resetColumns:"Reset column widths"},of={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}}"},rf={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},nf={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},sf={previewRegion:"Report preview \u2014 scrollable sideways"},lf={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},cf={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},df={common:a0,calendar:o0,passCard:r0,searchField:n0,rating:i0,colorPicker:s0,dropdown:l0,accordion:c0,header:d0,nav:u0,settings:p0,usage:h0,account:m0,help:b0,training:g0,trainingSettings:f0,customers:v0,payment:x0,coupons:_0,visits:C0,company:y0,trainingType:w0,myWordTraining:k0,myWordTable:A0,keyWords:S0,wordTable:B0,wordSearch:N0,wordPrint:D0,topic:j0,accessLinkManager:E0,login:T0,device:L0,manager:M0,wordPairs:$0,game:R0,footer:P0,landing:z0,date:I0,trainingSetPage:O0,wordTrainingPreview:F0,wordData:H0,textField:V0,segmentedControl:W0,tabs:G0,fileUpload:U0,avatar:Y0,myHomework:q0,trainingStatus:K0,store:Z0,homework:X0,inquiry:J0,trainingPlanRun:Q0,progress:ef,trainingMiss:tf,table:af,wordScore:of,topBanner:rf,datePicker:nf,report:sf,tooltip:lf,phonemeProfile:cf};const Lr="0.128.0",Io=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],bo="ko",Zn="ihab_display_language";function id(){try{const e=localStorage.getItem(Zn);if(e&&Io.some(t=>t.code===e))return e}catch{}return bo}function uf(e){try{localStorage.setItem(Zn,e)}catch{}}function sd(e){try{document.documentElement.lang=e}catch{}}Sa.on("languageChanged",sd),sd(id()),Sa.use(he.initReactI18next).init({resources:{ko:{translation:t0},en:{translation:df}},lng:id(),fallbackLng:bo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const ld=l.createContext({locale:bo,supportedLocales:Io});function pf(){return l.useContext(ld)}function hf({locale:e=bo,children:t}){return l.useEffect(()=>{const a=Io.find(r=>r.code===e)?e:bo;Sa.language!==a&&Sa.changeLanguage(a)},[e]),o.jsx(ld.Provider,{value:{locale:e,supportedLocales:Io},children:t})}function _e(...e){return e.filter(Boolean).join(" ")}var mf=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__emoji{font-size:40px;line-height:1}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);height:40px;width:40px}.ihabdevteam-core-scope .empty-state__title{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__message{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__hint{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}.ihabdevteam-core-scope .empty-state--compact{padding:var(--spacing-page) var(--spacing-m);padding-block:56px}";ae(mf);const cd=new Set,dd=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Xn(e,...t){!dd||cd.has(e)||(cd.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.
|
|
@@ -27,12 +27,12 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
|
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
29
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var
|
|
30
|
+
*/var Jn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
31
31
|
* @license lucide-react v1.38.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/const ff=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vf=l.createContext({}),xf=()=>l.useContext(vf),_f=l.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:n="",children:i,iconNode:s,...c},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:h="currentColor",className:
|
|
35
|
+
*/const ff=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vf=l.createContext({}),xf=()=>l.useContext(vf),_f=l.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:n="",children:i,iconNode:s,...c},d)=>{const{size:u=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:h="currentColor",className:f=""}=xf()??{},g=r??p?Number(a??m)*24/Number(t??u):a??m;return l.createElement("svg",{ref:d,...Jn,width:t??u??Jn.width,height:t??u??Jn.height,stroke:e??h,strokeWidth:g,className:ud("lucide",f,n),...!i&&!ff(c)&&{"aria-hidden":"true"},...c},[...s.map(([b,x])=>l.createElement(b,x)),...Array.isArray(i)?i:[i]])});/**
|
|
36
36
|
* @license lucide-react v1.38.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
@@ -647,7 +647,7 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
|
|
|
647
647
|
*
|
|
648
648
|
* This source code is licensed under the ISC license.
|
|
649
649
|
* See the LICENSE file in the root directory of this source tree.
|
|
650
|
-
*/const P_=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],
|
|
650
|
+
*/const P_=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Qn=q("user",P_);/**
|
|
651
651
|
* @license lucide-react v1.38.0 - ISC
|
|
652
652
|
*
|
|
653
653
|
* This source code is licensed under the ISC license.
|
|
@@ -807,9 +807,9 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
|
|
|
807
807
|
*
|
|
808
808
|
* This source code is licensed under the ISC license.
|
|
809
809
|
* See the LICENSE file in the root directory of this source tree.
|
|
810
|
-
*/const FC=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],HC=q("thumbs-up",FC),Nd={"alert-triangle":hd,"align-start-vertical":wf,anchor:tC,armchair:oC,"arrow-down":Af,"arrow-left":Bf,"arrow-right":Df,"arrow-right-left":Ef,"arrow-up-a-z":nC,"audio-lines":Lf,baby:$f,ban:Pf,"bar-chart-2":sC,bell:If,"book-marked":Ff,"book-open":Vf,"bow-arrow":Gf,braces:Yf,bug:Kf,calendar:Ad,"calendar-check":Xf,"calendar-days":Qf,camera:tv,car:dC,"chart-column":ov,"chart-line":nv,"chart-pie":sv,check:md,"chevron-down":Sd,"chevron-left":bd,"chevron-right":gd,"chevron-up":Bd,circle:MC,"clipboard-list":pv,coffee:pC,combine:mv,copy:gv,"chevrons-left-right-ellipsis":vv,"credit-card":_v,database:fd,diff:wv,download:vd,ear:Sv,edit:Nv,"edit-2":jv,"edit-3":Tv,ellipsis:xd,eraser:$v,"external-link":Pv,eye:Iv,"file-text":Fv,"flip-horizontal":Vv,"folder-open":Gv,"folder-plus":Yv,gamepad:Kv,"gamepad-2":mC,gavel:Xv,"git-merge":_d,globe:ex,headphones:ax,heart:rx,home:ix,inbox:gC,info:lx,"key-round":dx,landmark:px,layers:mx,"layout-dashboard":gx,leaf:vx,lightbulb:_x,link:yx,"link-2":kx,"link-2-off":Sx,list:Nx,"list-checks":jx,"list-ordered":Tx,"list-tree":vC,loader:Mx,lock:Rx,"log-out":zx,mail:Ox,"map-pin":Hx,menu:zC,"message-circle":Wx,"message-circle-question-mark":Ux,"message-square":qx,"message-square-more":_C,"message-square-text":Zx,minus:yC,"minus-circle":Jx,moon:OC,"more-horizontal":xd,package:e2,palette:a2,"party-popper":r2,pause:i2,pencil:l2,phone:d2,play:p2,"play-circle":m2,plus:g2,printer:v2,"refresh-cw":_2,repeat:y2,replace:k2,rocket:S2,"rotate-ccw":N2,"rotate-cw":j2,salad:T2,"scan-search":M2,search:z2,"circle-alert":Cd,"alert-circle":Cd,"check-circle":yd,scissors:O2,"search-x":H2,send:W2,settings:U2,"share-2":kC,"shield-check":q2,"shopping-cart":Z2,shuffle:J2,"skip-back":e_,"skip-forward":a_,sparkles:SC,square:r_,star:i_,store:l_,"sun-medium":d_,table:p_,"table-2":m_,tag:g_,terminal:v_,"text-cursor-input":__,"text-initial":y_,"thumbs-up":HC,ticket:k_,trash:N_,triangle:RC,"trash-2":S_,"trending-up":j_,"triangle-alert":hd,trophy:T_,type:NC,unlink:M_,upload:R_,user:
|
|
811
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e,t){return qC(e)||KC(e,t)||JC(e,t)||ZC()}function JC(e,t){if(e){if(typeof e=="string")return Ed(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ed(e,t):void 0}}const Td=Object.entries,Ld=Object.setPrototypeOf,QC=Object.isFrozen,ey=Object.getPrototypeOf,ty=Object.getOwnPropertyDescriptor;let ht=Object.freeze,ft=Object.seal,go=Object.create,Md=typeof Reflect<"u"&&Reflect,Qn=Md.apply,ei=Md.construct;ht||(ht=function(t){return t}),ft||(ft=function(t){return t}),Qn||(Qn=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),ei||(ei=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const to=ut(Array.prototype.forEach),ay=ut(Array.prototype.lastIndexOf),$d=ut(Array.prototype.pop),Oo=ut(Array.prototype.push),oy=ut(Array.prototype.splice),fo=Array.isArray,Fo=ut(String.prototype.toLowerCase),ti=ut(String.prototype.toString),Rd=ut(String.prototype.match),Ho=ut(String.prototype.replace),Pd=ut(String.prototype.indexOf),ry=ut(String.prototype.trim),ny=ut(Number.prototype.toString),iy=ut(Boolean.prototype.toString),zd=typeof BigInt>"u"?null:ut(BigInt.prototype.toString),Id=typeof Symbol>"u"?null:ut(Symbol.prototype.toString),Rt=ut(Object.prototype.hasOwnProperty),Vo=ut(Object.prototype.toString),Ct=ut(RegExp.prototype.test),ao=sy(TypeError);function ut(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Qn(e,t,r)}}function sy(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return ei(e,a)}}function Ye(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fo;if(Ld&&Ld(e,null),!fo(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(QC(t)||(t[r]=i),n=i)}e[n]=!0}return e}function ly(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function It(e){const t=go(null);for(const r of Td(e)){var a=XC(r,2);const n=a[0],i=a[1];Rt(e,n)&&(fo(i)?t[n]=ly(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=It(i):t[n]=i)}return t}function cy(e){switch(typeof e){case"string":return e;case"number":return ny(e);case"boolean":return iy(e);case"bigint":return zd?zd(e):"0";case"symbol":return Id?Id(e):"Symbol()";case"undefined":return Vo(e);case"function":case"object":{if(e===null)return Vo(e);const t=e,a=ea(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Vo(r)}return Vo(e)}default:return Vo(e)}}function ea(e,t){for(;e!==null;){const r=ty(e,t);if(r){if(r.get)return ut(r.get);if(typeof r.value=="function")return ut(r.value)}e=ey(e)}function a(){return null}return a}function dy(e){try{return Ct(e,""),!0}catch{return!1}}const Od=ht(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ai=ht(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oi=ht(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uy=ht(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ri=ht(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),py=ht(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fd=ht(["#text"]),Hd=ht(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ni=ht(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=ht(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mr=ht(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hy=ft(/{{[\w\W]*|^[\w\W]*}}/g),my=ft(/<%[\w\W]*|^[\w\W]*%>/g),by=ft(/\${[\w\W]*/g),gy=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),fy=ft(/^aria-[\-\w]+$/),Wd=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vy=ft(/^(?:\w+script|data):/i),xy=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_y=ft(/^html$/i),Cy=ft(/^[a-z][.\w]*(-[.\w]+)+$/i),Gd=ft(/<[/\w!]/g),Ud=ft(/<[/\w]/g),yy=ft(/<\/no(script|embed|frames)/i),wy=ft(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yd=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ky=ht(Ye({},Yd)),Ay=(function(){const e={};return to(Yd,t=>{e[t]=ft(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ht(e)})(),Sy=function(){return typeof window>"u"?null:window},By=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},qd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Pa=function(t,a,r,n){return Rt(t,a)&&fo(t[a])?Ye(n.base?It(n.base):{},t[a],n.transform):r},ii=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?It(n):r()};function Kd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sy();const t=ue=>Kd(ue);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,h=c.prototype,g=ea(h,"cloneNode"),f=ea(h,"remove"),b=ea(h,"nextSibling"),x=ea(h,"childNodes"),v=ea(h,"parentNode"),C=ea(h,"shadowRoot"),y=ea(h,"attributes"),_=s&&s.prototype?ea(s.prototype,"nodeType"):null,k=s&&s.prototype?ea(s.prototype,"nodeName"):null,w=s&&s.prototype?ea(s.prototype,"ownerDocument"):null,A=function(j){return _?_(j):j.nodeType},T=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const ue=a.createElement("template");ue.content&&ue.content.ownerDocument&&(a=ue.content.ownerDocument)}let S,D="",H,R=!1,E=0;const $=function(){if(E>0)throw ao('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},B=function(j){$(),E++;try{return S.createHTML(j)}finally{E--}},F=function(j){$(),E++;try{return S.createScriptURL(j)}finally{E--}},X=function(){return R||(H=By(p,n),R=!0),H},Q=a,ee=Q.implementation,N=Q.createNodeIterator,L=Q.createDocumentFragment,P=Q.getElementsByTagName,V=r.importNode;let W=qd();t.isSupported=typeof Td=="function"&&typeof v=="function"&&ee&&ee.createHTMLDocument!==void 0;const te=hy,O=my,Y=by,I=gy,ce=fy,pe=vy,me=xy,ye=Cy;let be=Wd,M=null;const U=Ye({},[...Od,...ai,...oi,...ri,...Fd]);let oe=null;const we=Ye({},[...Hd,...ni,...Vd,...Mr]);let de=Object.seal(go(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,K=null;const Z=Object.seal(go(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,je=!0,Fe=!1,Le=!0,Te=!1,Ee=!0,Be=!1,Ue=!1,at=null,fe=null,Oe=!1,Re=!1,Ke=!1,Xe=!1,Je=!0,Ve=!1;const vt="user-content-";let gt=!0,qe=!1,dt={},Pe=null;const ze=Ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let it=null;const Bt=Ye({},["audio","video","img","source","image","track"]);let et=null;const tt=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_t="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let jt=rt,Wt=!1,wa=null;const Ra=Ye({},[_t,Vt,rt],ti),Jt=ht(["mi","mo","mn","ms","mtext"]);let la=Ye({},Jt);const ca=ht(["annotation-xml"]);let Et=Ye({},ca);const Ja=Ye({},["title","style","font","a","script"]);let Tt=null;const Qa=["application/xhtml+xml","text/html"],ka="text/html";let Qe=null,Gt=null;const Lt=a.createElement("form"),Aa=function(j){return j instanceof RegExp||j instanceof Function},Qt=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===j)return;(!j||typeof j!="object")&&(j={}),j=It(j),Tt=Qa.indexOf(j.PARSER_MEDIA_TYPE)===-1?ka:j.PARSER_MEDIA_TYPE,Qe=Tt==="application/xhtml+xml"?ti:Fo,M=Pa(j,"ALLOWED_TAGS",U,{transform:Qe}),oe=Pa(j,"ALLOWED_ATTR",we,{transform:Qe}),wa=Pa(j,"ALLOWED_NAMESPACES",Ra,{transform:ti}),et=Pa(j,"ADD_URI_SAFE_ATTR",tt,{transform:Qe,base:tt}),it=Pa(j,"ADD_DATA_URI_TAGS",Bt,{transform:Qe,base:Bt}),Pe=Pa(j,"FORBID_CONTENTS",ze,{transform:Qe}),z=Pa(j,"FORBID_TAGS",It({}),{transform:Qe}),K=Pa(j,"FORBID_ATTR",It({}),{transform:Qe}),dt=Rt(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?It(j.USE_PROFILES):j.USE_PROFILES:!1,ge=j.ALLOW_ARIA_ATTR!==!1,je=j.ALLOW_DATA_ATTR!==!1,Fe=j.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=j.SAFE_FOR_TEMPLATES||!1,Ee=j.SAFE_FOR_XML!==!1,Be=j.WHOLE_DOCUMENT||!1,Re=j.RETURN_DOM||!1,Ke=j.RETURN_DOM_FRAGMENT||!1,Xe=j.RETURN_TRUSTED_TYPE||!1,Oe=j.FORCE_BODY||!1,Je=j.SANITIZE_DOM!==!1,Ve=j.SANITIZE_NAMED_PROPS||!1,gt=j.KEEP_CONTENT!==!1,qe=j.IN_PLACE||!1,be=dy(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Wd,jt=typeof j.NAMESPACE=="string"?j.NAMESPACE:rt,la=ii(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ye({},Jt)),Et=ii(j,"HTML_INTEGRATION_POINTS",()=>Ye({},ca));const G=ii(j,"CUSTOM_ELEMENT_HANDLING",()=>go(null));if(de=go(null),Rt(G,"tagNameCheck")&&Aa(G.tagNameCheck)&&(de.tagNameCheck=G.tagNameCheck),Rt(G,"attributeNameCheck")&&Aa(G.attributeNameCheck)&&(de.attributeNameCheck=G.attributeNameCheck),Rt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),ft(de),Te&&(je=!1),Ke&&(Re=!0),dt&&(M=Ye({},Fd),oe=go(null),dt.html===!0&&(Ye(M,Od),Ye(oe,Hd)),dt.svg===!0&&(Ye(M,ai),Ye(oe,ni),Ye(oe,Mr)),dt.svgFilters===!0&&(Ye(M,oi),Ye(oe,ni),Ye(oe,Mr)),dt.mathMl===!0&&(Ye(M,ri),Ye(oe,Vd),Ye(oe,Mr))),Z.tagCheck=null,Z.attributeCheck=null,Rt(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Z.tagCheck=j.ADD_TAGS:fo(j.ADD_TAGS)&&(M===U&&(M=It(M)),Ye(M,j.ADD_TAGS,Qe))),Rt(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Z.attributeCheck=j.ADD_ATTR:fo(j.ADD_ATTR)&&(oe===we&&(oe=It(oe)),Ye(oe,j.ADD_ATTR,Qe))),Rt(j,"ADD_FORBID_CONTENTS")&&fo(j.ADD_FORBID_CONTENTS)&&(Pe===ze&&(Pe=It(Pe)),Ye(Pe,j.ADD_FORBID_CONTENTS,Qe)),gt&&(M["#text"]=!0),Be&&Ye(M,["html","head","body"]),M.table&&(Ye(M,["tbody"]),delete z.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const se=S;S=j.TRUSTED_TYPES_POLICY;try{D=B("")}catch(Ae){throw S=se,Ae}}else j.TRUSTED_TYPES_POLICY===null?(S=void 0,D=""):(S===void 0&&(S=X()),S&&typeof D=="string"&&(D=B("")));ht&&ht(j),Gt=j},Ut=Ye({},[...ai,...oi,...uy]),da=Ye({},[...ri,...py]),le=function(j,G,se){return G.namespaceURI===rt?j==="svg":G.namespaceURI===_t?j==="svg"&&(se==="annotation-xml"||la[se]):!!Ut[j]},ve=function(j,G,se){return G.namespaceURI===rt?j==="math":G.namespaceURI===Vt?j==="math"&&Et[se]:!!da[j]},xe=function(j,G,se){return G.namespaceURI===Vt&&!Et[se]||G.namespaceURI===_t&&!la[se]?!1:!da[j]&&(Ja[j]||!Ut[j])},Ne=function(j){let G=v(j);(!G||!G.tagName)&&(G={namespaceURI:jt,tagName:"template"});const se=Fo(j.tagName),Ae=Fo(G.tagName);return wa[j.namespaceURI]?j.namespaceURI===Vt?le(se,G,Ae):j.namespaceURI===_t?ve(se,G,Ae):j.namespaceURI===rt?xe(se,G,Ae):!!(Tt==="application/xhtml+xml"&&wa[j.namespaceURI]):!1},J=function(j){Oo(t.removed,{element:j});try{v(j).removeChild(j)}catch{if(f(j),!v(j))throw ao("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ne=function(j,G,se){try{j.removeAttributeNode(G)}catch{try{j.removeAttribute(se)}catch{}}},Ce=function(j){re(j);const G=x(j);if(G){const Ae=[];to(G,De=>{Oo(Ae,De)}),to(Ae,De=>{try{f(De)}catch{}})}const se=y(j);if(se)for(let Ae=se.length-1;Ae>=0;--Ae){const De=se[Ae],Ie=De&&De.name;typeof Ie=="string"&&ne(j,De,Ie)}},ke=function(j,G,se){if(!se)try{se=G.getAttributeNode(j)}catch{se=null}Oo(t.removed,{attribute:se||null,from:G});try{se?G.removeAttributeNode(se):G.removeAttribute(j)}catch{try{G.removeAttribute(j)}catch{}}if(j==="is")if(Re||Ke)try{J(G)}catch{}else try{G.setAttribute(j,"")}catch{}},Me=function(j){const G=y(j);if(G)for(let se=G.length-1;se>=0;--se){const Ae=G[se],De=Ae&&Ae.name;typeof De!="string"||oe[Qe(De)]||ne(j,Ae,De)}},re=function(j){const G=[j];for(;G.length>0;){const se=G.pop();A(se)===Ot.element&&Me(se);const De=x(se);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)G.push(De[Ie])}},Se=function(j,G){return Ee?j==="patchsrc"?!0:j==="for"&&G!=="label"&&G!=="output":!1},We=function(j){if(!Ee)return;const G=[j];for(;G.length>0;){const se=G.pop(),Ae=A(se);if(Ae===Ot.processingInstruction||Ae===Ot.comment&&Ct(Ud,se.data)){try{f(se)}catch{}continue}if(Ae===Ot.element){const Ie=se,ot=Qe(T(se));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&Se("for",ot)&&Ie.removeAttribute("for")}catch{}}const De=x(se);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)G.push(De[Ie])}},nt=function(j){let G=null,se=null;if(Oe)j="<remove></remove>"+j;else{const Ie=Rd(j,/^[\r\n\t ]+/);se=Ie&&Ie[0]}Tt==="application/xhtml+xml"&&jt===rt&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Ae=S?B(j):j;if(jt===rt)try{G=new m().parseFromString(Ae,Tt)}catch{}if(!G||!G.documentElement){G=ee.createDocument(jt,"template",null);try{G.documentElement.innerHTML=Wt?D:Ae}catch{}}const De=G.body||G.documentElement;return j&&se&&De.insertBefore(a.createTextNode(se),De.childNodes[0]||null),jt===rt?P.call(G,Be?"html":"body")[0]:Be?G.documentElement:De},Nt=function(j){const G=w?w(j):j.ownerDocument;return N.call(G||j,j,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Pt=function(j){return j=Ho(j,te," "),j=Ho(j,O," "),j=Ho(j,Y," "),j},Yt=function(j){var G;j.normalize();const se=w?w(j):j.ownerDocument,Ae=N.call(se||j,j,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let De=Ae.nextNode();for(;De;)De.data=Pt(De.data),De=Ae.nextNode();const Ie=(G=j.querySelectorAll)===null||G===void 0?void 0:G.call(j,"template");Ie&&to(Ie,ot=>{zt(ot.content)&&Yt(ot.content)})},qt=function(j){const G=k?k(j):null;return typeof G!="string"||Qe(G)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==y(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==_(j)||j.childNodes!==x(j)},zt=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return _(j)===Ot.documentFragment}catch{return!1}},eo=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return typeof _(j)=="number"}catch{return!1}};function ua(ue,j,G){ue.length!==0&&to(ue,se=>{se.call(t,j,G,Gt)})}const Hg=function(j,G){return!!(Ee&&j.hasChildNodes()&&!eo(j.firstElementChild)&&Ct(Gd,j.textContent)&&Ct(Gd,j.innerHTML)||Ee&&j.namespaceURI===rt&&ky[G]&&(eo(j.firstElementChild)||typeof j.textContent=="string"&&Ct(Ay[G],j.textContent))||j.nodeType===Ot.processingInstruction||Ee&&j.nodeType===Ot.comment&&Ct(Ud,j.data))},Er=function(j,G){if(j instanceof RegExp)return Ct(j,G);if(j instanceof Function){for(var se=arguments.length,Ae=new Array(se>2?se-2:0),De=2;De<se;De++)Ae[De-2]=arguments[De];return!!j(G,...Ae)}return!1},Vg=function(j,G,se){if(!z[G]&&rd(G)&&Er(de.tagNameCheck,G))return!1;if(gt&&!Pe[G]){const Ae=v(j),De=x(j);if(De&&Ae){const Ie=De.length;for(let ot=Ie-1;ot>=0;--ot){const st=j===se?g(De[ot],!0):De[ot];Ae.insertBefore(st,b(j))}}}return J(j),!0},ed=function(j,G,se,Ae){return j.length===0?G:G===se||G===Ae?It(G):G},td=function(j,G){return j===G||v(j)!==null?!1:(qe&&re(j),!0)},ad=function(j,G){if(ua(W.beforeSanitizeElements,j,null),td(j,G))return!0;if(qt(j))return J(j),!0;const se=Qe(T(j));if(M=ed(W.uponSanitizeElement,M,U,at),ua(W.uponSanitizeElement,j,{tagName:se,allowedTags:M}),td(j,G))return!0;if(Hg(j,se))return J(j),!0;if(z[se]||!(Z.tagCheck instanceof Function&&Z.tagCheck(se))&&!M[se]){const De=Vg(j,se,G);return De===!1&&ua(W.afterSanitizeElements,j,null),De}if(A(j)===Ot.element&&!Ne(j)||(se==="noscript"||se==="noembed"||se==="noframes")&&Ct(yy,j.innerHTML))return J(j),!0;if(Te&&j.nodeType===Ot.text){const De=Pt(j.textContent);j.textContent!==De&&(Oo(t.removed,{element:j.cloneNode()}),j.textContent=De)}return ua(W.afterSanitizeElements,j,null),!1},od=function(j,G,se){if(K[G]||Se(G,j)||Je&&(G==="id"||G==="name")&&(se in a||se in Lt))return!1;const Ae=oe[G]||Z.attributeCheck instanceof Function&&Z.attributeCheck(G,j);return je&&Ct(I,G)||ge&&Ct(ce,G)?!0:Ae?et[G]||Ct(be,Ho(se,me,""))||(G==="src"||G==="xlink:href"||G==="href")&&j!=="script"&&Pd(se,"data:")===0&&it[j]||Fe&&!Ct(pe,Ho(se,me,""))?!0:!se:rd(j)&&Er(de.tagNameCheck,j)&&Er(de.attributeNameCheck,G,j)||G==="is"&&de.allowCustomizedBuiltInElements&&Er(de.tagNameCheck,se)},Wg=Ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),rd=function(j){return!Wg[Fo(j)]&&Ct(ye,j)},Gg=function(j,G,se,Ae){if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!se)switch(p.getAttributeType(j,G)){case"TrustedHTML":return B(Ae);case"TrustedScriptURL":return F(Ae)}return Ae},Ug=function(j,G,se,Ae){try{se?j.setAttributeNS(se,G,Ae):j.setAttribute(G,Ae),qt(j)?J(j):$d(t.removed)}catch{ke(G,j)}},nd=function(j){ua(W.beforeSanitizeAttributes,j,null);const G=j.attributes;if(!G||qt(j))return;oe=ed(W.uponSanitizeAttribute,oe,we,fe);const se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0};let Ae=G.length;const De=Qe(j.nodeName);for(;Ae--;){const Ie=G[Ae],ot=Ie.name,st=Ie.namespaceURI,Mt=Ie.value,$t=Qe(ot),qn=Mt;let Dt=ot==="value"?qn:ry(qn);if(se.attrName=$t,se.attrValue=Dt,se.keepAttr=!0,se.forceKeepAttr=void 0,ua(W.uponSanitizeAttribute,j,se),Dt=se.attrValue,Ve&&($t==="id"||$t==="name")&&Pd(Dt,vt)!==0&&(ke(ot,j,Ie),Dt=vt+Dt),Ee&&Ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dt)){ke(ot,j,Ie);continue}if($t==="attributename"&&Rd(Dt,"href")){ke(ot,j,Ie);continue}if(!se.forceKeepAttr){if(!se.keepAttr){ke(ot,j,Ie);continue}if(!Le&&Ct(wy,Dt)){ke(ot,j,Ie);continue}if(Te&&(Dt=Pt(Dt)),!od(De,$t,Dt)){ke(ot,j,Ie);continue}Dt=Gg(De,$t,st,Dt),Dt!==qn&&Ug(j,ot,st,Dt)}}ua(W.afterSanitizeAttributes,j,null)},Tr=function(j){let G=null;const se=Nt(j);for(ua(W.beforeSanitizeShadowDOM,j,null);G=se.nextNode();)if(ua(W.uponSanitizeShadowNode,G,null),ad(G,j),nd(G),zt(G.content)&&Tr(G.content),A(G)===Ot.element){const Ae=C(G);zt(Ae)&&(Yn(Ae),Tr(Ae))}ua(W.afterSanitizeShadowDOM,j,null)},Yn=function(j){const G=[{node:j,shadow:null}];for(;G.length>0;){const se=G.pop();if(se.shadow){Tr(se.shadow);continue}const Ae=se.node,Ie=A(Ae)===Ot.element,ot=x(Ae);if(ot)for(let st=ot.length-1;st>=0;--st)G.push({node:ot[st],shadow:null});if(Ie){const st=k?k(Ae):null;if(typeof st=="string"&&Qe(st)==="template"){const Mt=Ae.content;zt(Mt)&&G.push({node:Mt,shadow:null})}}if(Ie){const st=C(Ae);zt(st)&&G.push({node:null,shadow:st},{node:st,shadow:null})}}};return t.sanitize=function(ue){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,se=null,Ae=null,De=null;if(Wt=!ue,Wt&&(ue="<!-->"),typeof ue!="string"&&!eo(ue)&&(ue=cy(ue),typeof ue!="string"))throw ao("dirty is not a string, aborting");if(!t.isSupported)return ue;Ue?(M=at,oe=fe):Qt(j),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&(M=It(M)),W.uponSanitizeAttribute.length>0&&(oe=It(oe)),t.removed=[];const Ie=qe&&typeof ue!="string"&&eo(ue);if(Ie){We(ue);const Mt=T(ue);if(typeof Mt=="string"){const $t=Qe(Mt);if(!M[$t]||z[$t])throw Ce(ue),ao("root node is forbidden and cannot be sanitized in-place")}if(qt(ue))throw Ce(ue),ao("root node is clobbered and cannot be sanitized in-place");try{Yn(ue)}catch($t){throw Ce(ue),$t}}else if(eo(ue))G=nt("<!---->"),se=G.ownerDocument.importNode(ue,!0),se.nodeType===Ot.element&&se.nodeName==="BODY"||se.nodeName==="HTML"?G=se:G.appendChild(se),Yn(se);else{if(!Re&&!Te&&!Be&&ue.indexOf("<")===-1)return S&&Xe?B(ue):ue;if(G=nt(ue),!G)return Re?null:Xe?D:""}G&&Oe&&J(G.firstChild);const ot=Ie?ue:G;try{const Mt=Nt(ot);for(;Ae=Mt.nextNode();)ad(Ae,ot),nd(Ae),zt(Ae.content)&&Tr(Ae.content)}catch(Mt){throw Ie&&(Ce(ue),to(t.removed,$t=>{$t.element&&re($t.element)})),Mt}if(Ie)return to(t.removed,Mt=>{Mt.element&&re(Mt.element)}),Te&&Yt(ue),ue;if(Re){if(Te&&Yt(G),Ke)for(De=L.call(G.ownerDocument);G.firstChild;)De.appendChild(G.firstChild);else De=G;return(oe.shadowroot||oe.shadowrootmode)&&(De=V.call(r,De,!0)),De}let st=Be?G.outerHTML:G.innerHTML;return Be&&M["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&Ct(_y,G.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
812
|
-
`+st),Te&&(st=Pt(st)),
|
|
810
|
+
*/const FC=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],HC=q("thumbs-up",FC),Nd={"alert-triangle":hd,"align-start-vertical":wf,anchor:tC,armchair:oC,"arrow-down":Af,"arrow-left":Bf,"arrow-right":Df,"arrow-right-left":Ef,"arrow-up-a-z":nC,"audio-lines":Lf,baby:$f,ban:Pf,"bar-chart-2":sC,bell:If,"book-marked":Ff,"book-open":Vf,"bow-arrow":Gf,braces:Yf,bug:Kf,calendar:Ad,"calendar-check":Xf,"calendar-days":Qf,camera:tv,car:dC,"chart-column":ov,"chart-line":nv,"chart-pie":sv,check:md,"chevron-down":Sd,"chevron-left":bd,"chevron-right":gd,"chevron-up":Bd,circle:MC,"clipboard-list":pv,coffee:pC,combine:mv,copy:gv,"chevrons-left-right-ellipsis":vv,"credit-card":_v,database:fd,diff:wv,download:vd,ear:Sv,edit:Nv,"edit-2":jv,"edit-3":Tv,ellipsis:xd,eraser:$v,"external-link":Pv,eye:Iv,"file-text":Fv,"flip-horizontal":Vv,"folder-open":Gv,"folder-plus":Yv,gamepad:Kv,"gamepad-2":mC,gavel:Xv,"git-merge":_d,globe:ex,headphones:ax,heart:rx,home:ix,inbox:gC,info:lx,"key-round":dx,landmark:px,layers:mx,"layout-dashboard":gx,leaf:vx,lightbulb:_x,link:yx,"link-2":kx,"link-2-off":Sx,list:Nx,"list-checks":jx,"list-ordered":Tx,"list-tree":vC,loader:Mx,lock:Rx,"log-out":zx,mail:Ox,"map-pin":Hx,menu:zC,"message-circle":Wx,"message-circle-question-mark":Ux,"message-square":qx,"message-square-more":_C,"message-square-text":Zx,minus:yC,"minus-circle":Jx,moon:OC,"more-horizontal":xd,package:e2,palette:a2,"party-popper":r2,pause:i2,pencil:l2,phone:d2,play:p2,"play-circle":m2,plus:g2,printer:v2,"refresh-cw":_2,repeat:y2,replace:k2,rocket:S2,"rotate-ccw":N2,"rotate-cw":j2,salad:T2,"scan-search":M2,search:z2,"circle-alert":Cd,"alert-circle":Cd,"check-circle":yd,scissors:O2,"search-x":H2,send:W2,settings:U2,"share-2":kC,"shield-check":q2,"shopping-cart":Z2,shuffle:J2,"skip-back":e_,"skip-forward":a_,sparkles:SC,square:r_,star:i_,store:l_,"sun-medium":d_,table:p_,"table-2":m_,tag:g_,terminal:v_,"text-cursor-input":__,"text-initial":y_,"thumbs-up":HC,ticket:k_,trash:N_,triangle:RC,"trash-2":S_,"trending-up":j_,"triangle-alert":hd,trophy:T_,type:NC,unlink:M_,upload:R_,user:Qn,"user-plus":I_,"user-round":F_,"user-round-check":V_,users:G_,"users-round":Y_,volume:jC,"volume-2":wd,wrench:Z_,x:kd,zap:Q_};function VC(e){return Nd[e]??null}const Dd=new Set;function WC(e){return dd&&!(e in Nd)&&!Dd.has(e)&&(Dd.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const GC=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function UC(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?GC(a):null}const jd=new Map;function YC(e){const t=typeof e=="string"?UC(e):null,a=t?VC(t)??jd.get(t)??null:null,[r,n]=l.useState(null);return l.useEffect(()=>{if(!t||a)return;let i=!1;return WC(t).then(s=>{jd.set(t,s),i||n(s)}),()=>{i=!0}},[t,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function Ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function qC(e){if(Array.isArray(e))return e}function KC(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,n,i,s,c=[],d=!0,u=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(d=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){u=!0,n=m}finally{try{if(!d&&a.return!=null&&(s=a.return(),Object(s)!==s))return}finally{if(u)throw n}}return c}}function ZC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
811
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e,t){return qC(e)||KC(e,t)||JC(e,t)||ZC()}function JC(e,t){if(e){if(typeof e=="string")return Ed(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ed(e,t):void 0}}const Td=Object.entries,Ld=Object.setPrototypeOf,QC=Object.isFrozen,ey=Object.getPrototypeOf,ty=Object.getOwnPropertyDescriptor;let ht=Object.freeze,ft=Object.seal,go=Object.create,Md=typeof Reflect<"u"&&Reflect,ei=Md.apply,ti=Md.construct;ht||(ht=function(t){return t}),ft||(ft=function(t){return t}),ei||(ei=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),ti||(ti=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const to=ut(Array.prototype.forEach),ay=ut(Array.prototype.lastIndexOf),$d=ut(Array.prototype.pop),Oo=ut(Array.prototype.push),oy=ut(Array.prototype.splice),fo=Array.isArray,Fo=ut(String.prototype.toLowerCase),ai=ut(String.prototype.toString),Rd=ut(String.prototype.match),Ho=ut(String.prototype.replace),Pd=ut(String.prototype.indexOf),ry=ut(String.prototype.trim),ny=ut(Number.prototype.toString),iy=ut(Boolean.prototype.toString),zd=typeof BigInt>"u"?null:ut(BigInt.prototype.toString),Id=typeof Symbol>"u"?null:ut(Symbol.prototype.toString),Rt=ut(Object.prototype.hasOwnProperty),Vo=ut(Object.prototype.toString),Ct=ut(RegExp.prototype.test),ao=sy(TypeError);function ut(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return ei(e,t,r)}}function sy(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return ti(e,a)}}function Ye(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fo;if(Ld&&Ld(e,null),!fo(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(QC(t)||(t[r]=i),n=i)}e[n]=!0}return e}function ly(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function It(e){const t=go(null);for(const r of Td(e)){var a=XC(r,2);const n=a[0],i=a[1];Rt(e,n)&&(fo(i)?t[n]=ly(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=It(i):t[n]=i)}return t}function cy(e){switch(typeof e){case"string":return e;case"number":return ny(e);case"boolean":return iy(e);case"bigint":return zd?zd(e):"0";case"symbol":return Id?Id(e):"Symbol()";case"undefined":return Vo(e);case"function":case"object":{if(e===null)return Vo(e);const t=e,a=ea(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Vo(r)}return Vo(e)}default:return Vo(e)}}function ea(e,t){for(;e!==null;){const r=ty(e,t);if(r){if(r.get)return ut(r.get);if(typeof r.value=="function")return ut(r.value)}e=ey(e)}function a(){return null}return a}function dy(e){try{return Ct(e,""),!0}catch{return!1}}const Od=ht(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oi=ht(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ri=ht(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uy=ht(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ni=ht(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),py=ht(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fd=ht(["#text"]),Hd=ht(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ii=ht(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=ht(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mr=ht(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hy=ft(/{{[\w\W]*|^[\w\W]*}}/g),my=ft(/<%[\w\W]*|^[\w\W]*%>/g),by=ft(/\${[\w\W]*/g),gy=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),fy=ft(/^aria-[\-\w]+$/),Wd=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vy=ft(/^(?:\w+script|data):/i),xy=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_y=ft(/^html$/i),Cy=ft(/^[a-z][.\w]*(-[.\w]+)+$/i),Gd=ft(/<[/\w!]/g),Ud=ft(/<[/\w]/g),yy=ft(/<\/no(script|embed|frames)/i),wy=ft(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yd=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ky=ht(Ye({},Yd)),Ay=(function(){const e={};return to(Yd,t=>{e[t]=ft(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ht(e)})(),Sy=function(){return typeof window>"u"?null:window},By=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},qd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Pa=function(t,a,r,n){return Rt(t,a)&&fo(t[a])?Ye(n.base?It(n.base):{},t[a],n.transform):r},si=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?It(n):r()};function Kd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sy();const t=ue=>Kd(ue);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,h=c.prototype,f=ea(h,"cloneNode"),g=ea(h,"remove"),b=ea(h,"nextSibling"),x=ea(h,"childNodes"),v=ea(h,"parentNode"),C=ea(h,"shadowRoot"),y=ea(h,"attributes"),_=s&&s.prototype?ea(s.prototype,"nodeType"):null,k=s&&s.prototype?ea(s.prototype,"nodeName"):null,w=s&&s.prototype?ea(s.prototype,"ownerDocument"):null,S=function(j){return _?_(j):j.nodeType},L=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const ue=a.createElement("template");ue.content&&ue.content.ownerDocument&&(a=ue.content.ownerDocument)}let B,D="",H,$=!1,E=0;const R=function(){if(E>0)throw ao('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},N=function(j){R(),E++;try{return B.createHTML(j)}finally{E--}},V=function(j){R(),E++;try{return B.createScriptURL(j)}finally{E--}},J=function(){return $||(H=By(p,n),$=!0),H},Q=a,ee=Q.implementation,A=Q.createNodeIterator,T=Q.createDocumentFragment,P=Q.getElementsByTagName,F=r.importNode;let W=qd();t.isSupported=typeof Td=="function"&&typeof v=="function"&&ee&&ee.createHTMLDocument!==void 0;const te=hy,O=my,Y=by,I=gy,ce=fy,pe=vy,me=xy,ye=Cy;let be=Wd,M=null;const U=Ye({},[...Od,...oi,...ri,...ni,...Fd]);let oe=null;const we=Ye({},[...Hd,...ii,...Vd,...Mr]);let de=Object.seal(go(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,K=null;const Z=Object.seal(go(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,je=!0,Fe=!1,Le=!0,Te=!1,Ee=!0,Be=!1,Ue=!1,at=null,fe=null,Oe=!1,Re=!1,Ke=!1,Xe=!1,Je=!0,Ve=!1;const vt="user-content-";let gt=!0,qe=!1,dt={},Pe=null;const ze=Ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let it=null;const Bt=Ye({},["audio","video","img","source","image","track"]);let et=null;const tt=Ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_t="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let jt=rt,Wt=!1,wa=null;const Ra=Ye({},[_t,Vt,rt],ai),Jt=ht(["mi","mo","mn","ms","mtext"]);let la=Ye({},Jt);const ca=ht(["annotation-xml"]);let Et=Ye({},ca);const Ja=Ye({},["title","style","font","a","script"]);let Tt=null;const Qa=["application/xhtml+xml","text/html"],ka="text/html";let Qe=null,Gt=null;const Lt=a.createElement("form"),Aa=function(j){return j instanceof RegExp||j instanceof Function},Qt=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Gt&&Gt===j)return;(!j||typeof j!="object")&&(j={}),j=It(j),Tt=Qa.indexOf(j.PARSER_MEDIA_TYPE)===-1?ka:j.PARSER_MEDIA_TYPE,Qe=Tt==="application/xhtml+xml"?ai:Fo,M=Pa(j,"ALLOWED_TAGS",U,{transform:Qe}),oe=Pa(j,"ALLOWED_ATTR",we,{transform:Qe}),wa=Pa(j,"ALLOWED_NAMESPACES",Ra,{transform:ai}),et=Pa(j,"ADD_URI_SAFE_ATTR",tt,{transform:Qe,base:tt}),it=Pa(j,"ADD_DATA_URI_TAGS",Bt,{transform:Qe,base:Bt}),Pe=Pa(j,"FORBID_CONTENTS",ze,{transform:Qe}),z=Pa(j,"FORBID_TAGS",It({}),{transform:Qe}),K=Pa(j,"FORBID_ATTR",It({}),{transform:Qe}),dt=Rt(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?It(j.USE_PROFILES):j.USE_PROFILES:!1,ge=j.ALLOW_ARIA_ATTR!==!1,je=j.ALLOW_DATA_ATTR!==!1,Fe=j.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=j.SAFE_FOR_TEMPLATES||!1,Ee=j.SAFE_FOR_XML!==!1,Be=j.WHOLE_DOCUMENT||!1,Re=j.RETURN_DOM||!1,Ke=j.RETURN_DOM_FRAGMENT||!1,Xe=j.RETURN_TRUSTED_TYPE||!1,Oe=j.FORCE_BODY||!1,Je=j.SANITIZE_DOM!==!1,Ve=j.SANITIZE_NAMED_PROPS||!1,gt=j.KEEP_CONTENT!==!1,qe=j.IN_PLACE||!1,be=dy(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Wd,jt=typeof j.NAMESPACE=="string"?j.NAMESPACE:rt,la=si(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ye({},Jt)),Et=si(j,"HTML_INTEGRATION_POINTS",()=>Ye({},ca));const G=si(j,"CUSTOM_ELEMENT_HANDLING",()=>go(null));if(de=go(null),Rt(G,"tagNameCheck")&&Aa(G.tagNameCheck)&&(de.tagNameCheck=G.tagNameCheck),Rt(G,"attributeNameCheck")&&Aa(G.attributeNameCheck)&&(de.attributeNameCheck=G.attributeNameCheck),Rt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),ft(de),Te&&(je=!1),Ke&&(Re=!0),dt&&(M=Ye({},Fd),oe=go(null),dt.html===!0&&(Ye(M,Od),Ye(oe,Hd)),dt.svg===!0&&(Ye(M,oi),Ye(oe,ii),Ye(oe,Mr)),dt.svgFilters===!0&&(Ye(M,ri),Ye(oe,ii),Ye(oe,Mr)),dt.mathMl===!0&&(Ye(M,ni),Ye(oe,Vd),Ye(oe,Mr))),Z.tagCheck=null,Z.attributeCheck=null,Rt(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Z.tagCheck=j.ADD_TAGS:fo(j.ADD_TAGS)&&(M===U&&(M=It(M)),Ye(M,j.ADD_TAGS,Qe))),Rt(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Z.attributeCheck=j.ADD_ATTR:fo(j.ADD_ATTR)&&(oe===we&&(oe=It(oe)),Ye(oe,j.ADD_ATTR,Qe))),Rt(j,"ADD_FORBID_CONTENTS")&&fo(j.ADD_FORBID_CONTENTS)&&(Pe===ze&&(Pe=It(Pe)),Ye(Pe,j.ADD_FORBID_CONTENTS,Qe)),gt&&(M["#text"]=!0),Be&&Ye(M,["html","head","body"]),M.table&&(Ye(M,["tbody"]),delete z.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const se=B;B=j.TRUSTED_TYPES_POLICY;try{D=N("")}catch(Ae){throw B=se,Ae}}else j.TRUSTED_TYPES_POLICY===null?(B=void 0,D=""):(B===void 0&&(B=J()),B&&typeof D=="string"&&(D=N("")));ht&&ht(j),Gt=j},Ut=Ye({},[...oi,...ri,...uy]),da=Ye({},[...ni,...py]),le=function(j,G,se){return G.namespaceURI===rt?j==="svg":G.namespaceURI===_t?j==="svg"&&(se==="annotation-xml"||la[se]):!!Ut[j]},ve=function(j,G,se){return G.namespaceURI===rt?j==="math":G.namespaceURI===Vt?j==="math"&&Et[se]:!!da[j]},xe=function(j,G,se){return G.namespaceURI===Vt&&!Et[se]||G.namespaceURI===_t&&!la[se]?!1:!da[j]&&(Ja[j]||!Ut[j])},Ne=function(j){let G=v(j);(!G||!G.tagName)&&(G={namespaceURI:jt,tagName:"template"});const se=Fo(j.tagName),Ae=Fo(G.tagName);return wa[j.namespaceURI]?j.namespaceURI===Vt?le(se,G,Ae):j.namespaceURI===_t?ve(se,G,Ae):j.namespaceURI===rt?xe(se,G,Ae):!!(Tt==="application/xhtml+xml"&&wa[j.namespaceURI]):!1},X=function(j){Oo(t.removed,{element:j});try{v(j).removeChild(j)}catch{if(g(j),!v(j))throw ao("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ne=function(j,G,se){try{j.removeAttributeNode(G)}catch{try{j.removeAttribute(se)}catch{}}},Ce=function(j){re(j);const G=x(j);if(G){const Ae=[];to(G,De=>{Oo(Ae,De)}),to(Ae,De=>{try{g(De)}catch{}})}const se=y(j);if(se)for(let Ae=se.length-1;Ae>=0;--Ae){const De=se[Ae],Ie=De&&De.name;typeof Ie=="string"&&ne(j,De,Ie)}},ke=function(j,G,se){if(!se)try{se=G.getAttributeNode(j)}catch{se=null}Oo(t.removed,{attribute:se||null,from:G});try{se?G.removeAttributeNode(se):G.removeAttribute(j)}catch{try{G.removeAttribute(j)}catch{}}if(j==="is")if(Re||Ke)try{X(G)}catch{}else try{G.setAttribute(j,"")}catch{}},Me=function(j){const G=y(j);if(G)for(let se=G.length-1;se>=0;--se){const Ae=G[se],De=Ae&&Ae.name;typeof De!="string"||oe[Qe(De)]||ne(j,Ae,De)}},re=function(j){const G=[j];for(;G.length>0;){const se=G.pop();S(se)===Ot.element&&Me(se);const De=x(se);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)G.push(De[Ie])}},Se=function(j,G){return Ee?j==="patchsrc"?!0:j==="for"&&G!=="label"&&G!=="output":!1},We=function(j){if(!Ee)return;const G=[j];for(;G.length>0;){const se=G.pop(),Ae=S(se);if(Ae===Ot.processingInstruction||Ae===Ot.comment&&Ct(Ud,se.data)){try{g(se)}catch{}continue}if(Ae===Ot.element){const Ie=se,ot=Qe(L(se));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&Se("for",ot)&&Ie.removeAttribute("for")}catch{}}const De=x(se);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)G.push(De[Ie])}},nt=function(j){let G=null,se=null;if(Oe)j="<remove></remove>"+j;else{const Ie=Rd(j,/^[\r\n\t ]+/);se=Ie&&Ie[0]}Tt==="application/xhtml+xml"&&jt===rt&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Ae=B?N(j):j;if(jt===rt)try{G=new m().parseFromString(Ae,Tt)}catch{}if(!G||!G.documentElement){G=ee.createDocument(jt,"template",null);try{G.documentElement.innerHTML=Wt?D:Ae}catch{}}const De=G.body||G.documentElement;return j&&se&&De.insertBefore(a.createTextNode(se),De.childNodes[0]||null),jt===rt?P.call(G,Be?"html":"body")[0]:Be?G.documentElement:De},Nt=function(j){const G=w?w(j):j.ownerDocument;return A.call(G||j,j,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Pt=function(j){return j=Ho(j,te," "),j=Ho(j,O," "),j=Ho(j,Y," "),j},Yt=function(j){var G;j.normalize();const se=w?w(j):j.ownerDocument,Ae=A.call(se||j,j,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let De=Ae.nextNode();for(;De;)De.data=Pt(De.data),De=Ae.nextNode();const Ie=(G=j.querySelectorAll)===null||G===void 0?void 0:G.call(j,"template");Ie&&to(Ie,ot=>{zt(ot.content)&&Yt(ot.content)})},qt=function(j){const G=k?k(j):null;return typeof G!="string"||Qe(G)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==y(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==_(j)||j.childNodes!==x(j)},zt=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return _(j)===Ot.documentFragment}catch{return!1}},eo=function(j){if(!_||typeof j!="object"||j===null)return!1;try{return typeof _(j)=="number"}catch{return!1}};function ua(ue,j,G){ue.length!==0&&to(ue,se=>{se.call(t,j,G,Gt)})}const Hg=function(j,G){return!!(Ee&&j.hasChildNodes()&&!eo(j.firstElementChild)&&Ct(Gd,j.textContent)&&Ct(Gd,j.innerHTML)||Ee&&j.namespaceURI===rt&&ky[G]&&(eo(j.firstElementChild)||typeof j.textContent=="string"&&Ct(Ay[G],j.textContent))||j.nodeType===Ot.processingInstruction||Ee&&j.nodeType===Ot.comment&&Ct(Ud,j.data))},Er=function(j,G){if(j instanceof RegExp)return Ct(j,G);if(j instanceof Function){for(var se=arguments.length,Ae=new Array(se>2?se-2:0),De=2;De<se;De++)Ae[De-2]=arguments[De];return!!j(G,...Ae)}return!1},Vg=function(j,G,se){if(!z[G]&&rd(G)&&Er(de.tagNameCheck,G))return!1;if(gt&&!Pe[G]){const Ae=v(j),De=x(j);if(De&&Ae){const Ie=De.length;for(let ot=Ie-1;ot>=0;--ot){const st=j===se?f(De[ot],!0):De[ot];Ae.insertBefore(st,b(j))}}}return X(j),!0},ed=function(j,G,se,Ae){return j.length===0?G:G===se||G===Ae?It(G):G},td=function(j,G){return j===G||v(j)!==null?!1:(qe&&re(j),!0)},ad=function(j,G){if(ua(W.beforeSanitizeElements,j,null),td(j,G))return!0;if(qt(j))return X(j),!0;const se=Qe(L(j));if(M=ed(W.uponSanitizeElement,M,U,at),ua(W.uponSanitizeElement,j,{tagName:se,allowedTags:M}),td(j,G))return!0;if(Hg(j,se))return X(j),!0;if(z[se]||!(Z.tagCheck instanceof Function&&Z.tagCheck(se))&&!M[se]){const De=Vg(j,se,G);return De===!1&&ua(W.afterSanitizeElements,j,null),De}if(S(j)===Ot.element&&!Ne(j)||(se==="noscript"||se==="noembed"||se==="noframes")&&Ct(yy,j.innerHTML))return X(j),!0;if(Te&&j.nodeType===Ot.text){const De=Pt(j.textContent);j.textContent!==De&&(Oo(t.removed,{element:j.cloneNode()}),j.textContent=De)}return ua(W.afterSanitizeElements,j,null),!1},od=function(j,G,se){if(K[G]||Se(G,j)||Je&&(G==="id"||G==="name")&&(se in a||se in Lt))return!1;const Ae=oe[G]||Z.attributeCheck instanceof Function&&Z.attributeCheck(G,j);return je&&Ct(I,G)||ge&&Ct(ce,G)?!0:Ae?et[G]||Ct(be,Ho(se,me,""))||(G==="src"||G==="xlink:href"||G==="href")&&j!=="script"&&Pd(se,"data:")===0&&it[j]||Fe&&!Ct(pe,Ho(se,me,""))?!0:!se:rd(j)&&Er(de.tagNameCheck,j)&&Er(de.attributeNameCheck,G,j)||G==="is"&&de.allowCustomizedBuiltInElements&&Er(de.tagNameCheck,se)},Wg=Ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),rd=function(j){return!Wg[Fo(j)]&&Ct(ye,j)},Gg=function(j,G,se,Ae){if(B&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!se)switch(p.getAttributeType(j,G)){case"TrustedHTML":return N(Ae);case"TrustedScriptURL":return V(Ae)}return Ae},Ug=function(j,G,se,Ae){try{se?j.setAttributeNS(se,G,Ae):j.setAttribute(G,Ae),qt(j)?X(j):$d(t.removed)}catch{ke(G,j)}},nd=function(j){ua(W.beforeSanitizeAttributes,j,null);const G=j.attributes;if(!G||qt(j))return;oe=ed(W.uponSanitizeAttribute,oe,we,fe);const se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0};let Ae=G.length;const De=Qe(j.nodeName);for(;Ae--;){const Ie=G[Ae],ot=Ie.name,st=Ie.namespaceURI,Mt=Ie.value,$t=Qe(ot),Kn=Mt;let Dt=ot==="value"?Kn:ry(Kn);if(se.attrName=$t,se.attrValue=Dt,se.keepAttr=!0,se.forceKeepAttr=void 0,ua(W.uponSanitizeAttribute,j,se),Dt=se.attrValue,Ve&&($t==="id"||$t==="name")&&Pd(Dt,vt)!==0&&(ke(ot,j,Ie),Dt=vt+Dt),Ee&&Ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dt)){ke(ot,j,Ie);continue}if($t==="attributename"&&Rd(Dt,"href")){ke(ot,j,Ie);continue}if(!se.forceKeepAttr){if(!se.keepAttr){ke(ot,j,Ie);continue}if(!Le&&Ct(wy,Dt)){ke(ot,j,Ie);continue}if(Te&&(Dt=Pt(Dt)),!od(De,$t,Dt)){ke(ot,j,Ie);continue}Dt=Gg(De,$t,st,Dt),Dt!==Kn&&Ug(j,ot,st,Dt)}}ua(W.afterSanitizeAttributes,j,null)},Tr=function(j){let G=null;const se=Nt(j);for(ua(W.beforeSanitizeShadowDOM,j,null);G=se.nextNode();)if(ua(W.uponSanitizeShadowNode,G,null),ad(G,j),nd(G),zt(G.content)&&Tr(G.content),S(G)===Ot.element){const Ae=C(G);zt(Ae)&&(qn(Ae),Tr(Ae))}ua(W.afterSanitizeShadowDOM,j,null)},qn=function(j){const G=[{node:j,shadow:null}];for(;G.length>0;){const se=G.pop();if(se.shadow){Tr(se.shadow);continue}const Ae=se.node,Ie=S(Ae)===Ot.element,ot=x(Ae);if(ot)for(let st=ot.length-1;st>=0;--st)G.push({node:ot[st],shadow:null});if(Ie){const st=k?k(Ae):null;if(typeof st=="string"&&Qe(st)==="template"){const Mt=Ae.content;zt(Mt)&&G.push({node:Mt,shadow:null})}}if(Ie){const st=C(Ae);zt(st)&&G.push({node:null,shadow:st},{node:st,shadow:null})}}};return t.sanitize=function(ue){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,se=null,Ae=null,De=null;if(Wt=!ue,Wt&&(ue="<!-->"),typeof ue!="string"&&!eo(ue)&&(ue=cy(ue),typeof ue!="string"))throw ao("dirty is not a string, aborting");if(!t.isSupported)return ue;Ue?(M=at,oe=fe):Qt(j),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&(M=It(M)),W.uponSanitizeAttribute.length>0&&(oe=It(oe)),t.removed=[];const Ie=qe&&typeof ue!="string"&&eo(ue);if(Ie){We(ue);const Mt=L(ue);if(typeof Mt=="string"){const $t=Qe(Mt);if(!M[$t]||z[$t])throw Ce(ue),ao("root node is forbidden and cannot be sanitized in-place")}if(qt(ue))throw Ce(ue),ao("root node is clobbered and cannot be sanitized in-place");try{qn(ue)}catch($t){throw Ce(ue),$t}}else if(eo(ue))G=nt("<!---->"),se=G.ownerDocument.importNode(ue,!0),se.nodeType===Ot.element&&se.nodeName==="BODY"||se.nodeName==="HTML"?G=se:G.appendChild(se),qn(se);else{if(!Re&&!Te&&!Be&&ue.indexOf("<")===-1)return B&&Xe?N(ue):ue;if(G=nt(ue),!G)return Re?null:Xe?D:""}G&&Oe&&X(G.firstChild);const ot=Ie?ue:G;try{const Mt=Nt(ot);for(;Ae=Mt.nextNode();)ad(Ae,ot),nd(Ae),zt(Ae.content)&&Tr(Ae.content)}catch(Mt){throw Ie&&(Ce(ue),to(t.removed,$t=>{$t.element&&re($t.element)})),Mt}if(Ie)return to(t.removed,Mt=>{Mt.element&&re(Mt.element)}),Te&&Yt(ue),ue;if(Re){if(Te&&Yt(G),Ke)for(De=T.call(G.ownerDocument);G.firstChild;)De.appendChild(G.firstChild);else De=G;return(oe.shadowroot||oe.shadowrootmode)&&(De=F.call(r,De,!0)),De}let st=Be?G.outerHTML:G.innerHTML;return Be&&M["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&Ct(_y,G.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
812
|
+
`+st),Te&&(st=Pt(st)),B&&Xe?N(st):st},t.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qt(ue),Ue=!0,at=M,fe=oe},t.clearConfig=function(){Gt=null,Ue=!1,at=null,fe=null,B=H,D=""},t.isValidAttribute=function(ue,j,G){Gt||Qt({});const se=Qe(ue),Ae=Qe(j);return od(se,Ae,G)},t.addHook=function(ue,j){typeof j=="function"&&Rt(W,ue)&&Oo(W[ue],j)},t.removeHook=function(ue,j){if(Rt(W,ue)){if(j!==void 0){const G=ay(W[ue],j);return G===-1?void 0:oy(W[ue],G,1)[0]}return $d(W[ue])}},t.removeHooks=function(ue){Rt(W,ue)&&(W[ue]=[])},t.removeAllHooks=function(){W=qd()},t}var Ny=Kd();function Zd(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis,n=()=>{r.cancel();const i=new SpeechSynthesisUtterance(e),s=r.getVoices().find(c=>c.lang.startsWith("ko"));s&&(i.voice=s),i.rate=a,i.onend=t?function(c){try{t()}catch{}}:null,r.speak(i)};r.getVoices().length>0?n():r.addEventListener("voiceschanged",n,{once:!0})}function Xd(){typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const Dy=/^(?:[a-z]+:)?\/\//i;let Jd="";function jy(e){const t=String(e||"").trim();return t?t.replace(/\/+$/,""):""}function Qd(e){Jd=jy(e)}function li(){return Jd}function Wo(e){const t=String(e||"").trim();if(!t)return"";if(Dy.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=li();return r?`${r}${a}`:a}const eu="__ihab_core_storage_resolvers__";function vo(){return globalThis[eu]??null}function Ey(e){globalThis[eu]=e}let ci=class extends Error{constructor(t){super(`
|
|
813
813
|
[ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
814
814
|
|
|
815
815
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -828,22 +828,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
828
828
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
829
829
|
npm install @supabase/supabase-js
|
|
830
830
|
pnpm add @supabase/supabase-js
|
|
831
|
-
`),this.name="StorageNotConfiguredError"}};function ci(e){Ey(e)}function $r(e,t){if(!e)return null;const a=vo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function di(e){if(!e)return!1;const t=vo();if(!t)throw new li("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Go(e){if(!e)return null;const t=vo();if(!t)throw new li("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Rr(e){const t=vo();if(!t)throw new li("downloadSound");return t.download(e)}function ui(){return vo()?.noiseBaseUrl??"/sounds/noise"}function pi(){const e=Number(vo()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const hi="__ihab_core_tts_config__";function tu(e){globalThis[hi]=e}function Uo(){return globalThis[hi]?.urlResolver??null}function mi(){return globalThis[hi]?.fallbackUrlResolver??null}const Ty=new Map;function au(){Ty.clear()}const ou="__ihab_core_pronunciation_resolver__";function ru(e){globalThis[ou]=e}function bi(){return globalThis[ou]??null}let za=null;const Yo=new WeakMap,gi=new WeakMap,fi=new WeakMap;let nu=!1;const iu=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Ly(){if(nu||typeof document>"u")return;nu=!0;const e=()=>{try{za&&za.state!=="running"&&za.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function su(){if(za)return za;try{const e=window.AudioContext||window.webkitAudioContext;return e?(za=new e,Ly(),za):null}catch{return null}}function qo(){try{za?.resume()}catch{}}function vi(e,t){const a=Yo.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),n=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,n.gain.value=iu(gi.get(t)??t.volume),r.connect(n),n.connect(i),n.connect(e.destination);try{t.volume=1}catch{}const s={gain:n,analyser:i};return Yo.set(t,s),s}catch{return null}}function xo(e){if(!e)return Promise.resolve(null);const t=Yo.get(e);if(t)return Promise.resolve(t.analyser);const a=su();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(vi(a,e)?.analyser??null);const r=fi.get(e);if(r)return r;const n=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?vi(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{fi.delete(e)});return fi.set(e,n),n}function xi(e){if(!e)return null;const t=Yo.get(e);if(t)return t.analyser;const a=su();return a?a.state==="running"?vi(a,e)?.analyser??null:(xo(e),null):null}function pa(e,t){const a=iu(t);gi.set(e,a);const r=Yo.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const n=r.gain.gain;try{const i=r.gain.context.currentTime;n.cancelScheduledValues(i),n.setTargetAtTime(a,i,.01)}catch{try{n.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function _o(e){return gi.get(e)??e.volume}function _i(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const lu="__ihab_core_image_config__";function cu(e){globalThis[lu]=e}function Ia(){return globalThis[lu]??null}const Ko="word_image_existence_map_v1";let ha=null;const Pr=new Map;function Zo(){if(ha)return ha;try{const e=typeof localStorage<"u"?localStorage.getItem(Ko):null;ha=e?JSON.parse(e):{}}catch{ha={}}return ha}let Ci=null;function My(){Ci||(Ci=setTimeout(()=>{Ci=null;try{typeof localStorage<"u"&&ha&&localStorage.setItem(Ko,JSON.stringify(ha))}catch{}},200))}function zr(e,t){return`${e}_${t??1}`}async function Xo(e,t){const a=Zo(),r=zr(e,t);if(r in a)return a[r];if(Pr.has(r))return Pr.get(r);const n=Ia();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,My(),Pr.delete(r),c));return Pr.set(r,s),s}function yi(e,t){const a=Zo(),r=zr(e,t);return r in a?a[r]:void 0}async function du(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=Zo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!(zr(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,p=s[m],h=zr(p);if(!a&&h in i){c++,n?.(c,s.length);continue}try{await Xo(p)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&ha&&localStorage.setItem(Ko,JSON.stringify(ha))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Ir(){const e=Zo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function uu(e){const t=Zo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Ko,JSON.stringify(t))}catch{}}function wi(){ha={};try{typeof localStorage<"u"&&localStorage.removeItem(Ko)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ct=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],mt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function $e(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function ki(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>$e(r)),e.set(t,a)),a}}function ma(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function Ai(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=$e(e[n]),s=$e(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function Si(e){const t=$e(e[0]||"");return t?Ze[t.cho]:""}function Bi(e){return[...e].map(t=>{const a=$e(t);return a?Ze[a.cho]:t}).join("")}function Ni(e){return!!e&&[...e].every(t=>Ze.includes(t))}function pu(e,t){return t?Ni(t)?Bi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function Co(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>ct.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":$e(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],p=i[u];if(p==="cho"){if(Si(m)!==a[u]){d=!1;break}}else if(p==="jung"){const h=$e(m);if(!h||ct[h.jung]!==a[u]){d=!1;break}}else{const h=$e(a[u]);if(h&&h.jong===0){const g=$e(m);if(!g||g.cho!==h.cho||g.jung!==h.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const yo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},hu=Object.fromEntries(Object.entries(yo).map(([e,t])=>[t.join(""),mt[Number(e)]]));function $y(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(mt[r.jong]===t)return!0;const n=yo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function mu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&Ze[r.cho]===t)return!0}return!1}function bu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&ct[r.jung]===t)return!0}return!1}function gu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(!r||r.jong<=0)continue;if(mt[r.jong]===t)return!0;const n=yo[r.jong];if(n&&n.includes(t))return!0}return!1}function wo(e){if(!e)return 0;let t=0;for(const a of e)$e(a)&&t++;return t}function Di(e){if(!e)return!1;let t=!1;for(const a of e){const r=$e(a);if(r&&(t=!0,r.jong>0))return!1}return t}function Ry(e,t){if(e.jong<=0)return!1;if(t.includes(mt[e.jong]))return!0;const a=yo[e.jong];return!!a&&a.some(r=>t.includes(r))}function ji(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=$e(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(ct[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!Ry(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function Ei(e){return e.includes(",")||e.includes("_")}function fu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=hu[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>$e(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:ct.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function Py(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=$e(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=$e(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=$e(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=$e(e);return!!a&&ct[a.jung]===t.jamo}case"template":{const a=$e(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&ct[a.jung]!==t.jung||t.jong!=="_"&&mt[a.jong]!==t.jong)}case"invalid":return!1}}function Ti(e,t){const a=t.split(",").flatMap(n=>fu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>Py(r[n+s],i)))return!0;return!1}function vu(e){const t=e.split(",").flatMap(i=>fu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=$e(i.ch);s&&(a.add(Ze[s.cho]),r.add(ct[s.jung]),s.jong!==0&&n.add(mt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function zy(e){return!!$e(e)||Ze.includes(e)||ct.includes(e)}function xu(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||ct.includes(s),m=c===""||c==="_"||mt.filter(Boolean).includes(c)||!!hu[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(zy))return{ok:!1}}}return{ok:!0}}const Iy={cho:Ze.length,jung:ct.length,jong:mt.length};function Oy(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(p=>$e(p));if(i.some(p=>!p))return[];const s=i,c=s.length;if(a>c)return[];const d=Iy[t],u=new Set,m=[];(function p(h,g){if(g.length===a){m.push([...g]);return}for(let f=h;f<c;f++)g.push(f),p(f+1,g),g.pop()})(0,[]);for(const p of m)if((function h(g,f){if(u.size>=n)return;if(g===p.length){const v=f.map(C=>ma(C.cho,C.jung,C.jong)).join("");v!==e&&r.has(v)&&u.add(v);return}const b=p[g],x=s[b][t];for(let v=0;v<d;v++){if(v===x)continue;const C=f.slice();if(C[b]={...f[b],[t]:v},h(g+1,C),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Fy(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=$e(e[r]),i=$e(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function _u(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(Ei(a))return e.filter(s=>Ti(s.word,a));const r=e.filter(s=>Co(s.word,a)||Co(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&Co(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const Li="word_pair_index_v2",Mi="word_pair_index_sig_v2";let ba=null,Jo=null;function Cu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Li),t=localStorage.getItem(Mi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function Hy(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(Li,JSON.stringify(e)),localStorage.setItem(Mi,t)}catch{}}function Vy(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function Wy(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,p=Array.from(m).map($e);p.some(h=>h===null)||p.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:p}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let p=0;p<m;p++)for(const h of d){const g=new Map;for(const f of u){let b="";for(let v=0;v<m;v++){v>0&&(b+="~");const C=f.syls[v];v===p?h==="cho"?b+=`*:${C.jung}:${C.jong}`:h==="jung"?b+=`${C.cho}:*:${C.jong}`:b+=`${C.cho}:${C.jung}:*`:b+=`${C.cho}:${C.jung}:${C.jong}`}let x=g.get(b);x||(x=[],g.set(b,x)),x.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const x=f[b];for(let v=b+1;v<f.length;v++){const C=f[v];x.syls[p][h]!==C.syls[p][h]&&(n[x.word]||(n[x.word]={cho:[],jung:[],jong:[]}),n[C.word]||(n[C.word]={cho:[],jung:[],jong:[]}),n[x.word][h].push(C.word),n[C.word][h].push(x.word))}}}c+=u.length,t?.(c,i),await new Promise(p=>setTimeout(p,0))}return i>0&&t?.(i,i),n}async function yu(e,t={}){const a=Vy(e);if(!t.force){if(ba&&Jo===a)return ba;const n=Cu();if(n&&n.sig===a)return ba=n.index,Jo=a,ba}const r=await Wy(e,t.onProgress);return ba=r,Jo=a,Hy(r,a),r}function oo(){if(ba)return ba;const e=Cu();return e?(ba=e.index,Jo=e.sig,ba):null}function $i(){ba=null,Jo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(Li),localStorage.removeItem(Mi))}catch{}}const Ri={cho:Ze,jung:ct,jong:mt},bt=e=>Array.isArray(e)?e.length>0:!!e;function Qo(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function Pi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Qo(i,n(a.pronOf(c)))||s.push(c)));return s}function Or(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return Pi(e,n,a)}function zi(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(h=>bt(e[h])),d={};for(const h of c){const g=e[h];d[h]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const h of t){const g=a(i(h));if(g.some(v=>!v))continue;let f=g;if(!u&&(f=a(h),f.length!==g.length||f.some(v=>!v)))continue;const b=g.length,x=m.get(b);x?x.push({w:h,dPron:g,dPos:f}):m.set(b,[{w:h,dPron:g,dPos:f}])}const p=new Map;for(const[h,g]of m){const f=new Map,b=(x,v)=>{const C=x.dPos[v];return C!=null&&c.every(y=>d[y].has(Ri[y][C[y]]))};for(const x of g){let v;if(s==="head")v=b(x,0)?0:-1;else if(s==="tail")v=b(x,h-1)?h-1:-1;else if(s==="mid"){v=-1;for(let y=1;y<h-1;y++)if(b(x,y)){v=y;break}}else v=x.dPos.findIndex(y=>y!=null&&c.every(_=>d[_].has(Ri[_][y[_]])));if(v<0)continue;const C=f.get(v);C?C.push(x):f.set(v,[x])}for(const[x,v]of f){const C=new Set(c.map(k=>x+":"+k)),y=k=>{let w="";for(let A=0;A<h;A++){const T=k[A];for(const S of["cho","jung","jong"])w+=(C.has(A+":"+S)?"*":T[S])+"."}return w},_=new Map;for(const k of g){const w=y(k.dPron),A=_.get(w);A?A.push(k):_.set(w,[k])}for(const k of v){const w=_.get(y(k.dPron))??[],A=[];for(const T of w){if(T.w===k.w)continue;let S=!0;for(const D of c){const H=k.dPron[x][D],R=T.dPron[x][D];if(R===H){S=!1;break}if(u&&d[D].has(Ri[D][R])){S=!1;break}}S&&(r&&Qo(k.dPron,T.dPron)||A.push(T.w))}p.set(k.w,A)}}}return p}const Fr=0,wu=1,ro=2,Ii=3,Gy=4,Hr=5,Oi=6,Vr=7,Uy=8,ku=9,er=10,Yy=11,tr=12,qy=13,ar=14,Wr=15,Gr=16,or=17,Ky=18,ga=0,Ba=1,Zy=3,no=4,Fi=5,Hi=6,fa=7,yt=8,Au=9,Su=10,Ur=11,Bu=12,Vi=13,Yr=15,qr=16,Na=17,Nu=18,Wi=21,Du=27,Xy=20,Jy={1:Fr,2:wu,4:ro,7:Ii,8:Hr,16:Oi,17:Vr,19:ku,20:er,22:tr,23:ar,24:Wr,25:Gr,26:or},Qy={[Zy]:[Ba,er],[Fi]:[no,tr],[Au]:[yt,Fr],[Su]:[yt,Oi],[Ur]:[yt,Vr],[Bu]:[yt,er],[Vi]:[yt,Gr],14:[yt,or],[Nu]:[Na,er]},ew={[Hi]:ro,[Yr]:Hr},Gi={2:Ba,24:Ba,3:Ba,9:Ba,5:no,6:no,19:fa,20:fa,22:fa,23:fa,25:fa,27:fa,11:yt,12:yt,13:yt,15:yt,10:qr,14:Na,18:Na,26:Na},ju={[Fr]:Wr,[Ii]:Gr,[Vr]:or,[tr]:ar},Eu={[Fr]:wu,[Ii]:Gy,[Vr]:Uy,[ku]:er,[tr]:qy},tw=new Set([Fi,Su,Ur,Bu,Vi,Yr,Nu]),aw=new Set(["\uBC1F"]);function Tu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map($e);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=Gi[s.jong]??s.jong;break}if(s.jong===ga)continue;if(c.cho===Yy){if(c.jung===Xy){if(s.jong===fa){s.jong=ga,c.cho=tr;continue}if(s.jong===25){s.jong=ga,c.cho=ar;continue}if(s.jong===Vi){s.jong=yt,c.cho=ar;continue}}if(s.jong===Du){s.jong=ga;continue}const m=ew[s.jong];if(m!==void 0){s.jong=ga,c.cho=m;continue}const p=Qy[s.jong];if(p){s.jong=p[0],c.cho=p[1];continue}const h=Jy[s.jong];h!==void 0&&(s.jong=ga,c.cho=h);continue}if((s.jong===Du||s.jong===Hi||s.jong===Yr)&&ju[c.cho]!==void 0){c.cho=ju[c.cho],s.jong=s.jong===Hi?no:s.jong===Yr?yt:ga;continue}if(c.cho===Ky){if(s.jong===Fi){s.jong=no,c.cho=ar;continue}if(s.jong===Au){s.jong=yt,c.cho=Wr;continue}if(s.jong===Ur){s.jong=yt,c.cho=or;continue}const m=Gi[s.jong]??s.jong;if(m===Ba){s.jong=ga,c.cho=Wr;continue}if(m===fa){s.jong=ga,c.cho=Gr;continue}if(m===Na){s.jong=ga,c.cho=or;continue}}let u=Gi[s.jong]??s.jong;d===Ur&&aw.has(a[i])&&(u=Na),s.jong=u,Eu[c.cho]!==void 0&&(u===Ba||u===fa||u===Na||tw.has(d))&&(c.cho=Eu[c.cho]),(c.cho===ro||c.cho===Oi)&&(s.jong===Ba?s.jong=Wi:s.jong===fa?s.jong=no:s.jong===Na&&(s.jong=qr)),c.cho===Hr?s.jong===no?s.jong=yt:s.jong===qr||s.jong===Wi?c.cho=ro:s.jong===Ba?(s.jong=Wi,c.cho=ro):s.jong===Na&&(s.jong=qr,c.cho=ro):s.jong===yt&&c.cho===ro&&(c.cho=Hr)}return n.map(i=>ma(i.cho,i.jung,i.jong)).join("")}const ow={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},rw={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Kr(e){return ow[e]??e}const ko=/[ㄱ-ㅎ]/,nw=/[ㅏ-ㅣ]/;function rr(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||ko.test(a)||nw.test(a))return a}return null}function Ui(e){const t=rr(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":ko.test(t)?"\uC774":"\uAC00"}function Yi(e){return`${e}${Ui(e)}`}function qi(e){const t=rr(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":ko.test(t)?"\uC744":"\uB97C"}function Ki(e){return`${e}${qi(e)}`}function Zi(e){const t=rr(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":ko.test(t)?"\uC740":"\uB294"}function Lu(e){return`${e}${Zi(e)}`}function Xi(e){const t=rr(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":ko.test(t)?"\uACFC":"\uC640"}function Mu(e){return`${e}${Xi(e)}`}function Ji(e){const t=rr(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":ko.test(t)?"\uC73C\uB85C":"\uB85C"}function $u(e){return`${e}${Ji(e)}`}function Qi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ge(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function ta(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ge(e,a):Ge(e,a).slice(0,t)}const Ao={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function iw(e){const t=e?Ao[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const sw=Ze.indexOf("\u3147"),Zr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==sw},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},lw=new Set([]);function Ru(e){return e in Zr}function Pu(e,t){const a=Zr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=$e(r[0]);return!!n&&a.syllable(n)}function zu(e){return lw.has(e)}function cw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function es(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function Iu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function Ou(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Fu={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Hu(e){if([...e].length!==1)return[e];const t=$e(e);if(!t)return[e];const a=[Ze[t.cho],ct[t.jung]];return t.jong!==0&&a.push(mt[t.jong]),a}function ts(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Fu[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${cw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${es(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function dw(e,t){return ts(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function uw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${es(a)} "${n}"${Iu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${es(r)} "${n}"${Iu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function pw(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${Ou(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${Ou(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Vu(e,t,a){switch(iw(e)){case"synthesis":return dw(e,a);case"substitution":return uw(e,t);case"deletion":return pw(e,t);default:return""}}function Wu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Fu[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const hw=e=>e==null?[]:Array.isArray(e)?e:[e];function as(e){if([...e].length!==1)return"";const t=$e(e);if(!t)return"";const a=Kr(mt[t.jong]),r=a===""?0:mt.indexOf(a);return ma(t.cho,t.jung,r<0?0:r)}function Xr(e,t){return t.get(e)||as(e)||e}function nr(e){return e?bt(e.cho)?"cho":bt(e.jung)?"jung":bt(e.jong)?"jong":null:null}function Oa(e,t){const a=(r,n)=>!bt(r)||hw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,ct[e.jung])&&a(t.jong,mt[e.jong])}function io(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>$e(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>$e(i)):n.map(i=>$e(i))}function so(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?ct:mt,s=e[t],c=[],d=new Set([Xr(a,n)]),u=Ge(i.map((m,p)=>p).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const p=t==="cho"?ma(m,e.jung,e.jong):t==="jung"?ma(e.cho,m,e.jong):ma(e.cho,e.jung,m),h=Xr(p,n);d.has(h)||(d.add(h),c.push(p))}return c}function os(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=io(e,a,r);if(d.some(p=>!p))return null;const u=nr(t);let m=u&&t?d.map((p,h)=>Oa(p,t)?h:-1).filter(p=>p>=0):[0,1];if(i!=null&&(m=m.filter(p=>p!==i)),!m.length)return null;for(const p of Ge(m)){const h=s[p];if(!n.has(h))continue;const g=so(c[p],u??"cho",h,40,a),f=[];for(const b of g)if(b!==h&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[h,...f]}}return null}function rs(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=io(e,a,r);if(d.some(p=>!p))return null;const u=nr(t),m=u&&t?d.map((p,h)=>Oa(p,t)?h:-1).filter(p=>p>=0):[0,1,2];if(!m.length)return null;for(const p of Ge(m))for(const h of Ge([0,1,2].filter(g=>g!==p&&(i==null||g===i)))){const g=[0,1,2].filter(C=>C!==h),f=g.map(C=>s[C]).join("");if(!n.has(f))continue;const b=g.indexOf(p),x=so(c[p],u??"cho",s[p],40,a),v=[];for(const C of x){const y=g.map(k=>s[k]);y[b]=C;const _=y.join("");if(_!==f&&n.has(_)&&!v.includes(_)&&v.push(_),v.length>=2)break}if(!(v.length<2))return{question:e,distractors:[f,...v]}}return null}function ns(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=nr(t);for(const{remain:m,dropped:p,droppedEnd:h}of Ge(d)){if(i!=null&&h!==i||m===e||!n.has(m)||!n.has(p))continue;const g=[...m],f=g.map(v=>$e(v));if(f.some(v=>!v))continue;const b=io(m,a,r);if(b.some(v=>!v))continue;const x=u&&t?b.map((v,C)=>Oa(v,t)?C:-1).filter(v=>v>=0):g.map((v,C)=>C);if(x.length)for(const v of Ge(x)){const C=so(f[v],u??"cho",g[v],40,a),y=[];for(const _ of C){const k=[...g];k[v]=_;const w=k.join("");if(w!==m&&n.has(w)&&!y.includes(w)&&y.push(w),y.length>=2)break}if(y.length>=2)return{question:e,distractors:[m,...y]}}}return null}function is(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong===0)return null;const c=ma(s.cho,s.jung,0),d=so({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const ss=Ze.indexOf("\u3147");function ls(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong!==0||s.cho===ss)return null;const c=ma(ss,s.jung,0),d=so({cho:ss,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function cs(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function ds(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(C=>$e(C));if(m.some(C=>!C))return null;const p=io(e,a,r);if(p.some(C=>!C))return null;const h=C=>a.get(C)??C,g=h(e),f=!!t&&(bt(t.cho)||bt(t.jung)||bt(t.jong)),b=!!s&&(bt(s.cho)||bt(s.jung)||bt(s.jong)),x=C=>{let y=u+"|"+C+"|";for(let _=0;_<u;_++)y+=_===C?"*":d[_];return y};let v;if(i!=null){if(i>=u||f&&!Oa(p[i],t))return null;v=[i]}else f?v=p.map((C,y)=>Oa(C,t)?y:-1).filter(C=>C>=0):v=Array.from({length:u},(C,y)=>y);for(const C of Ge(v)){const y=n.get(x(C))??[],_=[],k=[];for(const D of y){if(D===e)continue;const H=[...D].map(B=>$e(B)),R=m[C],E=H[C];if(!R||!E)continue;let $=0;if(R.cho!==E.cho&&$++,R.jung!==E.jung&&$++,R.jong!==E.jong&&$++,!($<c||h(D)===g))if(b){const B=io(D,a,r)[C];B&&Oa(B,s)?_.push(D):k.push(D)}else _.push(D)}if(!_.length)continue;const w=Ge(_)[0],A=[],T=new Set([g,h(w)]),S=b?k:_.filter(D=>D!==w);for(const D of Ge(S)){const H=h(D);if(!T.has(H)&&(T.add(H),A.push(D),A.length>=2))break}if(!b&&A.length<2)for(const D of Ge(y)){if(D===e||D===w)continue;const H=h(D);if(!T.has(H)&&(T.add(H),A.push(D),A.length>=2))break}if(!(A.length<2))return{question:e,distractors:[w,...A]}}return null}function Jr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const us="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function ps(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Gu(e){return ps(e)?us:e}function Uu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Yu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function qu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Ku(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Zu="__ihab_core_word_pool__";function mw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Xu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Zu]=r,mw()}function So(){return globalThis[Zu]??null}const Bo=globalThis;function hs(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ju(e){Bo.__ihabTrainingTimeLogger=e}function ms(e){hs("time",()=>Bo.__ihabTrainingTimeLogger?.(e))}function Qu(e){Bo.__ihabTrainingCompletionLogger=e}function bs(e){hs("completion",()=>Bo.__ihabTrainingCompletionLogger?.(e))}function ep(e){Bo.__ihabCrosswordLogger=e}function tp(e){hs("crossword",()=>Bo.__ihabCrosswordLogger?.(e))}function aa(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function gs(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function fs(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:aa(r.contextCode)??aa(r.itemId)??aa(r.itemCode)??aa(r.id),question:aa(r.question)??aa(r.sentence)??aa(r.word)??aa(r.targetSyllable),answer:aa(r.answer),selected:aa(r.selectedText)??aa(r.selected),correct:gs(r)}}):[]}function ap(e){return e.filter(t=>t.correct===!1)}let op=null,rp=null,np=null;function ip(e){op=e}function sp(e){rp=e}function lp(e){np=e}async function cp(e,t){try{return await op?.(e,t)??null}catch{return null}}async function dp(){try{return await rp?.()??null}catch{return null}}async function up(e,t){try{return await np?.(e,t)??null}catch{return null}}const Qr=globalThis;function pp(e){Qr.__ihabNoiseSettingsStore=e}async function vs(){try{return await Qr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function xs(e){const t=a=>{};try{const a=Qr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ir(e){try{Qr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function sr(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const hp=sr;function mp(e,t){return`${e}/${sr(t)}.mp3`}function bp(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??sr;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await di(d)){const u=await Go(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function _s(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const No="Asia/Seoul";function gp(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:No,year:"numeric",month:"short",day:"numeric"})}function fp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:No,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function vp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:No,year:"numeric",month:"short",day:"numeric"})}function xp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:No,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function _p(e){return new Date(e).toLocaleString("ko-KR",{timeZone:No,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Cp(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:No,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function en(){return Da(new Date)}function Da(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function tn(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function an(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=Da(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),p=r?u:String(Number(u));return`${c}${a}${m}${a}${p}${n?".":""}`}function yp(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function wp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:Da(t).replace(/-/g,".")}}}function kp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function lr(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function on(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function cr(e){return(e??0).toLocaleString("ko-KR")}const bw=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],gw=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let Cs=null;function Ap(e){Cs=e}function rn(){return Cs?.topicTypes??bw}function ys(){return Cs?.trainingTypes??gw}const Sp="ihab_theme",fw="light";function ws(){try{const e=localStorage.getItem(Sp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return fw}function ks(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(Sp,e)}catch{}}function Bp(){ks(ws())}const Np="ihab_font_scale",vw="medium",xw=["medium","large1","large2","large3"];function As(){try{const e=localStorage.getItem(Np);if(xw.includes(e))return e}catch{}return vw}function Ss(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(Np,e)}catch{}}function Dp(){Ss(As())}const Fa=[],Ha=[],Va=[],Wa=[],dr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ur={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},_w={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let Bs=null,jp=null,Ga=null;function Ns({counts:e,forceRefresh:t}={}){const a=Object.assign({},_w,e||{}),r=en(),n=Da(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&jp===r&&Bs===i&&Ga)return Object.assign(dr,Ga.today),Object.assign(ur,Ga.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:dr,yesterday:ur};const s={LISTEN_IN_NOISE:ta(Fa,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:ta(Ha,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:ta(Va,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:ta(Wa,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Ga&&Bs===i&&Ga.yesterday&&Ga.yesterday.date===n&&(c=Ga.yesterday.selection),c||(c={LISTEN_IN_NOISE:ta(Fa,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:ta(Ha,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:ta(Va,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:ta(Wa,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(dr,s),Object.assign(ur,c),jp=r,Bs=i,Ga={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:dr,yesterday:ur}}function Ep(){return{today:dr,yesterday:ur}}function Ds(){return{LISTEN_IN_NOISE:Fa,SHORT_STORY:Ha,LONG_STORY:Va,ORDERING_SENTENCE:Wa}}let js=!1,pr=null;async function Cw(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Es(){if(!js)return pr||(pr=(async()=>{const e=await Cw();if(!e){pr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Fa.push(d):i==="SHORT_STORY"?Ha.push(d):i==="LONG_STORY"?Va.push(d):i==="ORDERING_SENTENCE"&&Wa.push(d)}}}catch{pr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{Ns()}catch{}js=!0})(),pr)}function Tp(){return js}async function Ts(e=3e3){const t=Es();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const nn=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Lp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Ls={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function yw(e){return nn.map(t=>{const a=Ls[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let sn=null,Mp=null,$p=null;function ww(){const e=So();if(e&&e.entries.length>0){const t=oo();if(sn&&Mp===e&&$p===t)return sn;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return sn=r,Mp=e,$p=t,sn}return[]}const oa=new Proxy([],{get(e,t){const a=ww(),r=a[t];return typeof r=="function"?r.bind(a):r}});function ln(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ra(e,t){if(t>=e.length)return Ge(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let Ms=null,Rp=null;function lo(){const e=So();if(Ms&&Rp===e)return Ms;const t=new Map;for(const a of oa)a.w&&t.set(a.w,a.pron);return Ms=t,Rp=e,t}function Ft(e){return lo().get(e)||e}function $s(e,t,a=new Set){const r=[];for(const n of Ge(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let kw=0;function wt(e){return`${e}-rt-${++kw}`}function hr(e){const t=Ir();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)yi(r)===!0&&a.add(r);return a}const cn=new Map;let Pp=null,zp=null;function mr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Ip(e){const t=mr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${mr(a.cho)}/${mr(a.jung)}/${mr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=mr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Ht(e){const t=So(),a=oo();(t!==Pp||a!==zp)&&(cn.clear(),Pp=t,zp=a);const r=Ip(e);return cn.has(r)||cn.set(r,Sw(e)),cn.get(r)}function Aw(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>Di(s):s=>ji(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function Sw(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",p=m&&u>=2,h=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[Aw(r),f?N=>f.has(wo(N)):null].filter(N=>N!=null):[],x=t==="random"||t===null,v=x||h,C=x||p||h;let y=oa.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:C?!0:Array.isArray(N.p)&&N.p.length>0);g&&(y=y.filter(N=>{for(const L of g)if($y(N.w,L))return!0;return!1})),b.length>0&&(y=y.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(P=>P(L))})),n&&(y=y.filter(N=>N.w[0]===n));let _;if(i){const N=new Set;for(const L of y)if(N.add(L.w),Array.isArray(L.p))for(const P of L.p)N.add(P);if(v)for(const L of oa)L.w&&N.add(L.w);_=hr(N)}else{const N=new Set;for(const L of y)if(N.add(L.w),Array.isArray(L.p))for(const P of L.p)N.add(P);if(v)for(const L of oa)L.w&&N.add(L.w);_=N}let k=null;if(p){const N=new Set;for(const L of oa)L.w&&N.add(L.w);k=i?hr(N):N}const w=y.filter(N=>_.has(N.w)),A=600,T=Array.from(_),S=T.length>A?ra(T,A):T,D=h&&r!=null&&(bt(r.cho)||bt(r.jung)||bt(r.jong)),H=2500,R=new Map;if(h&&!D&&u>=2){for(const N of T){const L=wo(N),P=R.get(L);P?P.push(N):R.set(L,[N])}for(const[N,L]of R)L.length>H&&R.set(N,ra(L,H))}const E=ki(),$=D?zi(r,T,E,c,d,Ft):null,B=500,F=1500,X=e.fullCount?w:t==="random"?w.length>B?ra(w,B):w:w.length>F?ra(w,F):w,Q=oo(),ee=[];for(const N of X){let L;const P=Ft(N.w);if(p)L=Oy(N.w,t,u,k,24).filter(V=>Ft(V)!==P);else if(h)D?L=($.get(N.w)??[]).filter(V=>Ft(V)!==P):u<=1?L=Or(N.w,Q,{okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}):L=(R.get(wo(N.w))??[]).filter(V=>{if(V===N.w||Ft(V)===P)return!1;const W=Fy(N.w,V);return u>=5?W>=5:W===u});else if(x)L=S.filter(V=>V!==N.w&&V.length===N.w.length&&Ft(V)!==P);else{const V=t;L=Or(N.w,Q,{kind:V,okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}),L.length===0&&(L=(S.length>30?ra(S,30):S).filter(W=>W!==N.w&&Ai(N.w,W)===t&&Ft(W)!==P))}if(c&&L.length>0&&(m||h&&!D)){const V=E(Ft(N.w));L=L.filter(W=>!Qo(V,E(Ft(W))))}L.length!==0&&ee.push({word:N,usable:L})}return ee}async function Op(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Ht(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ge(i)){if(s.length>=r)break;const d=$s(c.usable,n);if(d.length<n)continue;const u=Ge([c.word.w,...d]);s.push({id:wt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function Bw(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ge([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=ln(u);if(!m)continue;const p=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(p.length<r)continue;const h=$s(p.map(f=>f.word.w),r);if(h.length<r)continue;const g=Ge([d,...h]);i.push({id:wt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function Nw(e){const{count:t=10}=e,a=(await Ht(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=ln(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=ln(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:wt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function Dw(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(h=>h.word.w),s=new Map(n.map(h=>[h.word.w,h.word.pron])),c=h=>(s.get(h)||h)[0]??"",d={};for(const h of n){const g=c(h.word.w);g&&(d[g]||(d[g]=[]),d[g].push(h.word.w))}const u=Object.entries(d).filter(([,h])=>h.length>=2).map(([h])=>h);if(u.length===0)return[];const m=[],p=Ge([...u]);for(let h=0;m.length<a&&h<a*4;h++){const g=p[h%p.length],f=d[g];if(f.length<2)continue;const b=Ge([...f]),x=b[0],v=b[1];if(!x||!v||x===v||(s.get(x)||x)===(s.get(v)||v))continue;const C=s.get(v)||v,y=i.filter(w=>c(w)!==g&&w!==x&&w!==v&&w.length===v.length&&(s.get(w)||w)!==C);if(y.length<r)continue;const _=$s(y,r);if(_.length<r)continue;const k=Ge([v,..._]);m.push({id:wt("SWS-item"),index:m.length+1,sourceWord:x,targetSyllable:g,word:v,choices:k,answerIndex:k.indexOf(v)})}return m}function Fp(e,t,a){return ra(e,t).map((r,n)=>{const i=ln(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,p)=>m!==c[p]),u=Ge(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:wt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Hp(e,t,a){const{count:r=10}=t,n=lo(),i=oa.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?hr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,d=new Set(c.map(g=>g.w)),u=cs(d),m=t.phonemeView??"char",p=t.composition??null,h=[];for(const g of Ge(c)){if(h.length>=r)break;const f=ds(g.w,p,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],x=[...g.w],v=[...b],C=x.findIndex((y,_)=>y!==v[_]);h.push({id:wt(a),index:h.length+1,word:g.w,original:g.w,changed:b,changedFrom:C>=0?x[C]:"",changedTo:C>=0?v[C]:"",distractors:f.distractors.slice(1)})}return h}async function jw(e){return Hp(2,e,"CS2-item")}async function Ew(e){return Hp(3,e,"CS3-item")}async function Tw(e){const t=(await Ht({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Fp(t,e.count??10,"CP1-item")}async function Lw(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Ht({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Fp(a,e.count??10,"CP2-item")}async function Mw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===2);return ra(a,t).map((r,n)=>({id:wt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function $w(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===3);return ra(a,t).map((r,n)=>({id:wt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function Rw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===2),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=os(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w],h=p[0]===u?p[1]:p[0];s.push({id:wt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function Pw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===3),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=rs(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w];let h="";for(let g=0;g<p.length;g++)if(p.filter((f,b)=>b!==g).join("")===u){h=p[g];break}s.push({id:wt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function zw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s>=2),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=ns(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=c.word.w,h=p.startsWith(u)?p.slice(u.length):p.endsWith(u)?p.slice(0,p.length-u.length):"";s.push({id:wt("DPC-item"),index:s.length+1,original:p,word:p,dropped:h,missingResult:u,distractors:m})}return s}async function Iw(e){const{count:t=10}=e,a=(await Ht({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ra(a,3);return{id:wt("LRO-item"),index:n+1,sequence:i,choices:Ge(i)}})}function dn(e,t,a){const r=oa.filter(s=>s.w&&s.s===e),n=t?hr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=$e(s.w);if(!c||!a(c))continue}i.push(s)}return i}function Ow(e){const t=dn(1,e.excludeNoImage??!1,a=>a.jong===0);return ra(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:wt("M2P-item"),index:r+1,parts:[Ze[n.cho],ct[n.jung]],answer:a.w,word:a.w}})}function Fw(e){const t=dn(1,e.excludeNoImage??!1,a=>a.jong>0&&!yo[a.jong]);return ra(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:wt("M3P-item"),index:r+1,parts:[Ze[n.cho],ct[n.jung],mt[n.jong]],answer:a.w,word:a.w}})}function Hw(e){const t=Zr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=dn(t.syllables,e.excludeNoImage??!1,t.syllable),r=lo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=is(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:wt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function Vw(e){const t=Zr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=dn(t.syllables,e.excludeNoImage??!1,t.syllable),r=lo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=ls(i.w,null,r);if(!s)continue;const c=$e(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:wt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const un=new Map;let Vp=null,Wp=null;async function Gp(e,t={}){const a=So(),r=oo();(a!==Vp||r!==Wp)&&(un.clear(),Vp=a,Wp=r);const n=`${e}:${Ip(t)}`;if(un.has(n))return un.get(n);const i=await Gw(e,t);return un.set(n,i),i}const Ww={SAME_SOUND_PICK:e=>Op("SSP",e),HEAR_AND_PICK_SAME:e=>Op("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Bw(e),SAME_OR_DIFF:e=>Nw(e),STARTS_WITH_SAME_SOUND:e=>Dw(e),LISTEN_AND_REMEMBER_ORDER:e=>Iw(e),MERGE_2_SYLLABLES:e=>Mw(e),MERGE_3_SYLLABLES:e=>$w(e),MERGE_2_PHONEMES:e=>Ow(e),MERGE_3_PHONEMES:e=>Fw(e),DROP_1_FROM_2SYLL:e=>Rw(e),DROP_1_FROM_3SYLL:e=>Pw(e),DROP_PART_FROM_COMPOUND:e=>zw(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>Hw(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Vw(e),CHANGE_1_SYLL_IN_2SYLL:e=>jw(e),CHANGE_1_SYLL_IN_3SYLL:e=>Ew(e),CHANGE_1_PHONEME_IN_1SYLL:e=>Tw(e),CHANGE_1_PHONEME_IN_2SYLL:e=>Lw(e)};async function Gw(e,t={}){const a=Ww[e];return a?await a(t):[]}async function Uw(e){const t=[null,"count"],a=Object.keys(Ao);let r=0;for(const n of t)for(const i of a){const s=Ao[i];Gp(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function Yw(e){return(await Ht({...e,fullCount:!0})).length}async function qw(e={}){const t=[];for(const c of oa)c.w&&t.push(c.w);const a=e.excludeNoImage?hr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(wo(c));for(const d of c){const u=$e(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(ct[u.jung]),u.jong>0)){i.add(mt[u.jong]);const m=yo[u.jong];m&&m.forEach(p=>i.add(p))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Up={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Yp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},qp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Kp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Zp=5,Xp=5;function Jp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Qp={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"};var Kw=Object.freeze({__proto__:null,CAPABILITY:Ao,CHOSEONG:Ze,CORE_VERSION:Lr,JONGSEONG:mt,JUNGSEONG:ct,LONG_STORIES:Va,NETWORK_ERROR_MESSAGE:us,NOISE_DATAS:Fa,ORDER_SETS:Wa,PLAN_FEATURES:Up,PLAN_LIMITS:qp,SHORT_STORIES:Ha,TIER_RANK:Yp,TOPIC_TYPES:Lp,TRAINING_TYPES:nn,TRAINING_TYPE_I18N_KEY:Ls,WORD_SUGGESTION_ACCOUNT_LIMIT:Xp,WORD_SUGGESTION_EXISTING_ERROR:Qp,WORD_SUGGESTION_WEEKLY_QUOTA:Zp,applyFontScale:Ss,applyTheme:ks,buildChangeWholeSyllableProblem:ds,buildDropCompoundProblem:ns,buildDropContrast3Problem:rs,buildDropContrastProblem:os,buildDropFinalConsonantProblem:is,buildMultiPartPosContrast:zi,buildPairIndex:yu,buildRemoveConsonantProblem:ls,buildSyllableMaskIndex:cs,bulkSetImageExistence:uu,cardQuestionTitle:Vu,checkImageExists:Xo,classifyPairDifficulty:Ai,clearAudioExistsCache:au,clearImageExistenceCache:wi,clearPairIndexCache:$i,composeSyllable:ma,computeDailySelection:Ns,configureImageResolver:cu,configureNoiseSettingsStore:pp,configurePronunciationResolver:ru,configureStorage:ci,configureTTS:tu,configureTrainingCategories:Ap,copyText:_s,createDecompCache:ki,createTTSUrlResolver:bp,dateToDb:kp,downloadCsvText:Ku,downloadSound:Rr,ensureTrainingDataLoaded:Ts,escapeCsvField:qu,fileExists:di,filterContrastCandidates:Pi,finalToPhoneme:Kr,firstChoseongOf:Si,formatCount:cr,formatDateKo:gp,formatDateLocale:vp,formatDateLongKo:fp,formatDateLongLocale:xp,formatDatetimeKo:_p,formatPhone:yp,formatRelativeTime:tn,formatTimeHM:on,formatYmd:an,getAssetBaseUrl:si,getDailySelection:Ep,getElementAnalyser:xi,getElementVolume:_o,getErrorMessage:Jr,getImageExistenceStats:Ir,getImageExistsCached:yi,getImageResolver:Ia,getNoiseBaseUrl:ui,getNoiseFileGain:pi,getPairIndex:oo,getPlanTier:Kp,getPronunciationResolver:bi,getSavedFontScale:As,getSavedTheme:ws,getSignedOrPublicUrl:Go,getTTSFallbackUrlResolver:mi,getTTSUrlResolver:Uo,getTodayKst:en,getTopicTypes:rn,getTrainingPools:Ds,getTrainingTypes:ys,getWordPool:So,hasQuestionWordConstraint:Ru,hasSel:bt,hasStructureContrast:Qo,initFontScale:Dp,initTheme:Bp,isAllChoseong:Ni,isManualOnlyType:zu,isNetworkErrorMessage:ps,isSyllablePattern:Ei,isThisWeekPick:Jp,isTrainingDataLoaded:Tp,isValidQuestionWord:Pu,itemCorrectness:gs,jamoToNamesForSpeech:Wu,loadGameLeaderboard:up,loadMyGameRanks:dp,loadNoiseSettings:vs,loadTrainingData:Es,logCrossword:tp,logTrainingCompletion:bs,logTrainingTime:ms,matchSyllables:io,matchesChoseongSearch:pu,matchesSyllablePattern:Ti,matchesWordQuery:Co,mergeQuestionText:ts,minimalPairDistractors:Or,normalizeDate:wp,officialSoundPath:mp,parseSortValue:Yu,parseSyllable:$e,patternToComposition:vu,phonemePartsOf:Hu,pickEuRo:Ji,pickEulReul:qi,pickEunNeun:Zi,pickIga:Ui,pickWaGwa:Xi,prewarmImageCache:du,primarySelPart:nr,readLevel:_i,reorderArray:Qi,reportAppliedNoiseSettings:ir,resolveAssetUrl:Wo,resolveSoundPath:$r,resumeAudioMeter:qo,routeElementAudio:xo,sample:ta,saveNoiseSettings:xs,searchAndRankWords:_u,setAssetBaseUrl:Qd,setCrosswordLogger:ep,setElementVolume:pa,setGameLeaderboardLoader:lp,setGameRanksLoader:sp,setGameScoreSubmitter:ip,setTrainingCompletionLogger:Qu,setTrainingTimeLogger:Ju,setWordPool:Xu,shuffle:Ge,sortToValue:Uu,soundOf:Xr,speak:Zd,stopSpeaking:Xd,submitGameScore:cp,syllMatchesComp:Oa,syllableContrasts:so,syllableLength:wo,syllablePron:as,toBase64UrlSafe:hp,toChoseong:Bi,toItemResults:fs,toKstHm:Cp,toKstYmd:Da,toStandardPronunciation:Tu,toStorageName:sr,toUserErrorMessage:Gu,validateSyllableSearchInput:xu,withEuRo:$u,withEulReul:Ki,withEunNeun:Lu,withIga:Yi,withWaGwa:Mu,wordContainsChoseong:mu,wordContainsJongseong:gu,wordContainsJungseong:bu,wordHasNoCoda:Di,wordHasSyllableMatching:ji,wrongItems:ap});function Zw(e){return typeof window>"u"?"":Ny.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function Xw(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Wo(e):/^(Logo|Symbol)/i.test(u)?m=Wo(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const h=p.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){n("mask");return}if(h.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=Zw(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{u||(m=URL.createObjectURL(p),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function He(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",h=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=YC(g),{iconToUse:b,mode:x,svgText:v,blobUrl:C}=Xw(g),y=(A,T={})=>o.jsx("span",{className:u,style:c,...T,children:A}),_=(A,T={})=>o.jsx("img",{src:A,alt:typeof a=="string"?a:a?String(a):"",className:m,...T});if(!t)return null;if(typeof t!="string")return y(t);if(t==="none")return y(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return y(l.createElement(f,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(x==="mask"){const A={"--icon-url":C?`url(${C})`:`url(${b})`};return y(o.jsx("span",{className:p,style:A}),{"aria-hidden":"true"})}return x==="img"?y(_(b,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):x==="inline"?y(o.jsx("span",{className:h,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):y(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return _(Wo(t),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return y(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function eh({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(He,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(He,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var Jw=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ae(Jw);function th({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=he.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(He,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(He,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var Qw=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ae(Qw);function ah({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(He,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(He,{icon:"arrow-right",size:18})})]})]})})}function oh({as:e="div",className:t="",children:a,storage:r,...n}){r&&ci({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var e4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ae(e4);function rh({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=he.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const p=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:p,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,x)=>o.jsx("span",{className:"notice-box__line body-3",children:b},x))}):g.children??null})]},f))});const h=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:p,role:"note",children:[h,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var t4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ae(t4);var a4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ae(a4);function Rs(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(br)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const br='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function ja(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:p=!1,isMobilePopup:h=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[x,v]=l.useState({position:"fixed",left:0,top:-9999}),[C,y]=l.useState(!1),[_,k]=l.useState("bottom"),[w,A]=l.useState(!1),[T,S]=l.useState(!1),D=!t&&!a,H=l.useCallback((B=!1)=>{if(T&&h)return;const F=a?a.getBoundingClientRect():t;if(!F||!b.current)return;const X=b.current,{offsetWidth:Q,offsetHeight:ee}=X,N=window.innerWidth,L=window.innerHeight,P=N-F.right,V=F.left,W=F.top,te=L-F.bottom;let O=0,Y=0,I="top";if(W>=ee+r)I="top",Y=F.top-r-ee,O=F.left+F.width/2-Q/2;else if(te>=ee+r)I="bottom",Y=F.bottom+r,O=F.left+F.width/2-Q/2;else if(P>=Q+r)I="right",O=F.right+r,Y=F.top+F.height/2-ee/2;else if(V>=Q+r)I="left",O=F.left-r-Q,Y=F.top+F.height/2-ee/2;else{const ye=Math.max(W,te,P,V);ye===W?(I="top",Y=F.top-r-ee,O=F.left+F.width/2-Q/2):ye===te?(I="bottom",Y=F.bottom+r,O=F.left+F.width/2-Q/2):ye===P?(I="right",O=F.right+r,Y=F.top+F.height/2-ee/2):(I="left",O=F.left-r-Q,Y=F.top+F.height/2-ee/2)}const ce=Number(n)||8;O=Math.min(Math.max(O,ce),N-Q-ce),Y=Math.min(Math.max(Y,ce),L-ee-ce);const pe=Math.round(O),me=Math.round(Y);B&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${me}px`,b.current.dataset.placement=I):(k(I||_),v({position:"fixed",left:pe,top:me}),A(!0))},[T,h,a,t,r,n,_]);l.useLayoutEffect(()=>{if(D)return;if(T&&h){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}H();const B=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(B)},[t,a,r,m,n,D,T,h,H]),l.useEffect(()=>{if(D||T&&h||!b.current||typeof ResizeObserver>"u")return;const B=new ResizeObserver(()=>{t&&H()});return B.observe(b.current),()=>B.disconnect()},[t,m,n,D,T,h,H]),l.useEffect(()=>{if(D||T&&h)return;const B=()=>H(!0);return window.addEventListener("resize",B),document.addEventListener("scroll",B,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",B),document.removeEventListener("scroll",B,{capture:!0})}},[t,r,m,n,D,T,h,H]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(max-width: 768px)"),F=()=>S(!!B.matches);F();try{B.addEventListener?B.addEventListener("change",F):B.addListener(F)}catch{try{B.addListener(F)}catch{}}return()=>{try{B.removeEventListener?B.removeEventListener("change",F):B.removeListener(F)}catch{}}},[]);const R=l.useRef(!1),E=l.useCallback((B=!1)=>{if(!(C||R.current)){if(R.current=!0,B){y(!0);try{i&&i()}catch{}return}y(!0),setTimeout(()=>{i&&i()},200)}},[C,i,y]);l.useEffect(()=>{const B=Q=>{const ee=b.current;if(!ee)return;const N=Q.target;if(N&&!ee.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},F=Q=>{const ee=b.current;if(!ee)return;const N=Q.target;if(N&&!ee.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},X=Q=>{if(Q.key==="Escape"){Q.stopPropagation(),E();return}if(Q.key==="Tab"){const ee=b.current;if(!ee)return;const N=ee.querySelectorAll(br);if(!N||N.length===0)return;const L=N[0],P=N[N.length-1],V=document.activeElement;Q.shiftKey?V===L&&(Q.preventDefault(),P.focus()):V===P&&(Q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",B,!0),document.addEventListener("click",F,!0),document.addEventListener("keydown",X),()=>{document.removeEventListener("pointerdown",B,!0),document.removeEventListener("click",F,!0),document.removeEventListener("keydown",X)}},[i,s,E]),l.useEffect(()=>{const B=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",B),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",B)}},[E]);const $=o.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${C?"is-closing":""} ${c} ${T&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:D?{}:{...x,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":_,"data-left":D?"":x.left,"data-top":D?"":x.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),m]});if(D||typeof document>"u")return $;if(p||T&&h){const B=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&E(!0)}}),$]});return Kt.createPortal(B,document.body)}return Kt.createPortal($,document.body)}var o4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ae(o4);function va(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(ja,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var r4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__dot{border-radius:50%;flex-shrink:0;height:8px;margin-top:6px;width:8px}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ae(r4);function Ua(e){const{t}=he.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},m=(Array.isArray(n)?n:n?[n]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:o.jsx(ja,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:m.map((p,h)=>o.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[s&&m.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),p.color&&o.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),o.jsx("span",{children:p.text})]},h))})]})})}function ie(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:p,children:h,ariaLabel:g,variant:f="default",align:b="center",selected:x,toggleable:v=!1,disabled:C=!1,useLabel:y=!0,useBorder:_=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:A=!1,width:T,minWidth:S,onClick:D,onDisabledClick:H,showTooltipInfo:R=!1,tooltipInfoText:E=null,tooltipDescription:$=null,iconSize:B="medium",iconColor:F,shape:X="rounded",color:Q,className:ee,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),P=L.match(/^\d+$/)?`button${L}`:`button-${L}`,V=Number(t),W=!isNaN(V)&&V<40?"button-2":"button-1",te=u??h,O=C||!!N.disabled,Y=O?w?"disabled-covered":A?"disabled-invisibled":"disabled":f,I=Y?`button--variant-${Y}`:"",ce=b?`button--align-${b}`:"",pe=X?`button--shape-${X}`:"",me=typeof F=="string"&&F.startsWith("--")?`var(${F})`:F,ye={...T?{width:typeof T=="number"?`${T}px`:T}:{},...S?{minWidth:typeof S=="number"?`${S}px`:S}:{},..._?{}:{"--button-border":O?"0":"1px solid transparent"},...me?{"--button-icon-color":me}:{},...Q?{"--color-main":Q}:{}},be=y===!1?"":te,M=Array.isArray(be)?be.length>0:!!be,U=!!d,oe=a??(M||c||U?"bar":"dot"),we=`${P}--${oe}`,de=l.useRef(null),z=l.useRef(O),[K,Z]=l.useState(!!x),[ge,je]=l.useState(!1),[Fe,Le]=l.useState(null),Te=l.useCallback(()=>je(!1),[]);l.useEffect(()=>{typeof x=="boolean"&&Z(x)},[x]),l.useEffect(()=>{if(z.current&&!O&&de.current){const ze=de.current;ze.blur(),ze.style.pointerEvents="none";const it=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(it)}z.current=O},[O]);const Ee=typeof x=="boolean"?!!x:K,Be=v||typeof x=="boolean"?Ee?"true":"false":void 0,Ue=_e("button",P,we,I,ce,pe,Ee?"is-selected":null,k?null:"button--no-bg",ee),at=`button__icon button__icon--${B}`,fe=Array.isArray(p)?p:p!==void 0?[p]:[],Oe=()=>{if(Array.isArray(be))return be.map((it,Bt)=>{const et=fe[Bt];return o.jsxs("span",{className:`button__label-text${et!==void 0?" button__label-text--has-sub":""}`,children:[it,et!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:et})]},Bt)});const ze=p!==void 0;return o.jsxs("span",{className:`button__label-text${ze?" button__label-text--has-sub":""}`,children:[be,m!=null&&o.jsx("span",{className:"button__count",children:m}),ze&&o.jsx("span",{className:"button__sub-label-text caption-1",children:p})]})},Re=ze=>{O||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(ze),typeof x!="boolean"&&Z(!1),ze.currentTarget.blur())},Ke=ze=>{if(O){H?.(ze);return}typeof x!="boolean"&&v&&Z(it=>!it),D?.(ze)},Xe=l.useCallback(()=>{(R||$)&&(je(!0),Le(de.current?.getBoundingClientRect()??null))},[R,$]),Je=l.useCallback(()=>{(R||$)&&(je(!1),Le(null))},[R,$]),Ve={...N};delete Ve.disabled,delete Ve.className,delete Ve.faded,delete Ve.useFaded,delete Ve.loading,delete Ve.onMouseLeave,delete Ve.onPointerEnter,delete Ve.onPointerLeave,delete Ve.onFocus,delete Ve.onBlur,O&&(Object.keys(Ve).forEach(ze=>{/^on[A-Z]/.test(ze)&&typeof Ve[ze]=="function"&&delete Ve[ze]}),Ve["aria-disabled"]="true");const vt=(typeof R=="string"?R:null)??(typeof E=="string"?E:null)??(typeof g=="string"?g:null)??(typeof te=="string"?te:null)??void 0,gt=typeof g=="string"?g:typeof te=="string"?te:vt,qe=(ze,it)=>o.jsx(He,{icon:ze,label:it??gt,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),dt=()=>oe==="dot"?o.jsxs(o.Fragment,{children:[qe(c),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:qe(c)}),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()})]}),U&&o.jsx("span",{className:"button__right",children:qe(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:qe(c,g??te)}),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()}),U&&o.jsx("span",{className:"button__right",children:qe(d)})]}),Pe=!!n&&!O;return o.jsxs(o.Fragment,{children:[o.jsx(Pe?"a":"button",{...Ve,ref:de,...Pe?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:O&&!H},className:Ue,"aria-pressed":Be,"aria-label":gt,"aria-disabled":Pe&&O?!0:void 0,style:ye,onClick:Ke,onMouseLeave:Re,onPointerEnter:ze=>{Xe(),!O&&typeof N.onPointerEnter=="function"&&N.onPointerEnter(ze)},onPointerLeave:ze=>{Je(),!O&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(ze)},onFocus:ze=>{Xe(),!O&&typeof N.onFocus=="function"&&N.onFocus(ze)},onBlur:ze=>{Re(ze),Je(),!O&&typeof N.onBlur=="function"&&N.onBlur(ze)},children:dt()}),ge&&$?o.jsx(Ua,{anchorRect:Fe,title:$.title,items:$.items,onClose:Te}):ge&&vt?o.jsx(va,{anchorRect:Fe,text:vt,onClose:Te}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var n4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ae(n4);var i4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ae(i4);const Do={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Ps=new WeakMap;function zs(e){if(e)return Ps.get(e)}function kt(e,t){e&&(e.style.setProperty(Do.title,t.title),e.style.setProperty(Do.description,t.description),Ps.set(e,t))}function At(e){e&&(e.style.removeProperty(Do.title),e.style.removeProperty(Do.description),Ps.delete(e))}const Is={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Os(){const e=lt(Is,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var s4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ae(s4);const Fs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=lt(Fs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var l4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ae(l4);const Vs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ws(){const e=lt(Vs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var c4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ae(c4);const Gs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=lt(Gs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var d4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ae(d4);const Ys={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=lt(Ys,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var u4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ae(u4);const Ks={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Zs(){const e=lt(Ks,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var p4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ae(p4);const Xs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Js(){const e=lt(Xs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var h4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ae(h4);const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function el(){const e=lt(Qs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var m4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ae(m4);const tl={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function al(){const e=lt(tl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var b4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ae(b4);const ol={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function rl(){const e=lt(ol,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var g4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ae(g4);const nl={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function il(){const e=lt(nl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var f4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ae(f4);const sl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ll(){const e=lt(sl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var v4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ae(v4);const cl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function dl(){const e=lt(cl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var x4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ae(x4);const ul={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function pl(){const e=lt(ul,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const nh=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],hl={main:Os,soft:Hs,sub:Ws,deep:Us,softSub:qs,warm:Zs,dark:Js,radial:el,diagonal:al,dots:rl,outline:il,success:ll,naver:dl,instagram:pl};function pn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=x=>Math.max(a,Math.min(r,Number(x))),[c,d]=l.useState(()=>{try{const x=localStorage.getItem(e),v=x?Number(x):1;return Number.isFinite(v)?v:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=x=>{d(typeof x=="function"?v=>s(x(v)):s(x))},m=()=>u(x=>+(x+n).toFixed(6)),p=()=>u(x=>+(x-n).toFixed(6)),h=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:p,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}}const hn=l.createContext(null);function _4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function na(e){const t=l.useContext(hn),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&_4(e)?t.mobile:r}function ml(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function gr(e,t){const a=ml(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const bl=" \xB7 ",ih=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(bl)?e.split(bl).pop()??e:e})(),gl=l.createContext(!1);function fl(e){const t=l.useContext(gl);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=ih?`${e}${bl}${ih}`:e,()=>{document.title=a}},[e,t])}function sh(){const{t:e}=he.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function lh(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const vl=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function xl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function ch(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function dh(e){const{t}=he.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const h={};vl.forEach(g=>{h[g.id]=xl([...g.keys])}),r(h),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const p=l.useCallback(async h=>{i(h);try{h==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):h==="pairIndex"?$i():h==="imageCache"&&wi(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:p}}function uh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=oo();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Ir();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function ph(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const p=l.useRef(null);l.useEffect(()=>{if(m.current)return;const v=p.current;v!==null&&v.length===t.length&&v.every((C,y)=>C===t[y])||(p.current=t,r(t))},[t]);const h=l.useCallback(v=>{i(v),c(!1),u({...v})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((v,C)=>{r(v),i(C),c(!1)},[]),x=l.useCallback(v=>{r(C=>C.filter(y=>y!==v)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:h,startEditing:g,cancelEditing:f,commitEdit:b,remove:x}}const jo=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},C4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function hh(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=ph(C4,e),{year:p,month:h,day:g}=jo(),[f,b]=l.useState({year:p,month:h,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:x=>v=>b(C=>({...C,[x]:v})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:x=>{a(_=>[f,..._]);const{year:v,month:C,day:y}=jo();b({year:v,month:C,day:y,hour:"09",minute:"00",memo:""}),x?.()},handleVisitEditSave:()=>{m(x=>x.map(v=>v===r?c:v),c)},addVisit:x=>{a(v=>[x,...v])},removeVisit:x=>{a(v=>v.filter(C=>C!==x))},revertVisitEdit:(x,v)=>{a(C=>C.map(y=>y===v?x:y)),n(C=>C===v?x:C)}}}const mh=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,mn=e=>[...e].sort((t,a)=>{const r=mh(t),n=mh(a);return r<n?-1:r>n?1:0}),y4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function bh(e,t=[]){const a=l.useMemo(()=>mn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:p,commitEdit:h,remove:g}=ph(y4,a),[f,b]=l.useState([]),{year:x,month:v,day:C}=jo(),[y,_]=l.useState({year:x,month:v,day:C,hour:"09",minute:"00",memo:""}),k=$=>B=>_(F=>({...F,[$]:B})),w=$=>{n(Q=>mn([...Q,y]));const{year:B,month:F,day:X}=jo();_({year:B,month:F,day:X,hour:"09",minute:"00",memo:""}),$?.()},A=()=>{h($=>mn($.map(B=>B===i?u:B)),u)},T=l.useCallback($=>{g($)},[g]),S=l.useCallback($=>{e({year:$.year,month:$.month,day:$.day,hour:$.hour,minute:$.minute,memo:$.memo}),g($)},[e,g]),D=l.useCallback($=>{n(B=>B.filter(F=>F!==$)),b(B=>[$,...B]),s(null)},[n,s]),H=l.useCallback($=>{n(B=>mn([...B,$]))},[n]),R=l.useCallback($=>{n(B=>B.filter(F=>F!==$))},[n]),E=l.useCallback(($,B)=>{n(F=>F.map(X=>X===B?$:X)),s(F=>F===B?$:F)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:H,removeSchedule:R,revertScheduleEdit:E,scheduleForm:y,setScheduleForm:_,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:p,handleScheduleSave:w,handleScheduleEditSave:A,handleScheduleDelete:T,handleScheduleToVisit:S,handleScheduleNoVisit:D}}const bn=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function gh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),p=Math.min(c,m),h=l.useMemo(()=>u.slice((p-1)*Number(r),p*Number(r)),[u,p,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:p,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:h}}function _l(e,t,a){const{t:r}=he.useTranslation(),[n,i]=l.useState(()=>{const f=a?.initialPageSize;return f&&bn.some(b=>b.value===f)?f:"25"}),[s,c]=l.useState(1),[d,u]=l.useState(t);d!==t&&(u(t),s!==1&&c(1));const m=l.useMemo(()=>bn.map(f=>({...f,label:r("visits.showN",{n:f.value})})),[r]),p=l.useCallback(f=>{i(f),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(n))),g=Math.min(s,h);return{pageRows:l.useMemo(()=>e.slice((g-1)*Number(n),g*Number(n)),[e,g,n]),pageSizeProps:{options:m,value:n,onChange:p},paginationProps:{page:g,total:h,onChange:c},setPage:c}}function Cl(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function fh(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,p]=l.useState("\uC88C"),h=l.useCallback(f=>{const b=f.direction;i(x=>({...x,[b]:f})),c(x=>({...x,[b]:[f,...x[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(x=>({...x,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:p,handleDeviceSubmit:h,handleSelectFromList:g}}const St="\uC804\uCCB4";function yl(){const{t:e}=he.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function wl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function kl(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Al(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function vh(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function xh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function _h(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:p,labelAction:h}=t;return{label:a,...p?{groupLabel:p}:{},...h?{labelAction:h}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function Ch(e,t,a){if(t===St){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(rw).map(([e,{nucleus:t}])=>[e,t]));const w4={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},k4={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},A4={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:k4,typeMap:w4};function S4(e,t,a=A4){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const B4={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},N4={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},D4={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function yh(e,t){if("place"in t)return B4[t.place](e);const a=N4[t.vowel](e);return t.glide?`${a} \xB7 ${D4[t.glide](e)}`:a}const j4=(e,{defaultValue:t})=>t,wh=(e,t)=>({jamos:e,phonetic:t,tooltip:yh(j4,t)}),Ea=(e,t)=>t.map(a=>wh([a],{place:e})),xt=(e,t,a)=>wh([...e],a?{vowel:t,glide:a}:{vowel:t}),Sl={cho:[Ea("labial",["\u3142","\u3143","\u314D","\u3141"]),Ea("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ea("alveolar",["\u3145","\u3146"]),Ea("palatal",["\u3148","\u3149","\u314A"]),Ea("velar",["\u3131","\u3132","\u314B"]),Ea("glottal",["\u314E"])],jung:[[xt("\u3163","frontHigh"),xt("\u315F","frontHigh","w"),xt("\u3162","frontHigh","velar")],[xt("\u3161","backHighUnrounded")],[xt("\u315C","backHighRounded"),xt("\u3160","backHighRounded","j")],[xt("\u3154\u3150","frontMid"),xt("\u3156\u3152","frontMid","j"),xt("\u3159\u315A\u315E","frontMid","w")],[xt("\u3153","backMidUnrounded"),xt("\u3155","backMidUnrounded","j"),xt("\u315D","backMidUnrounded","w")],[xt("\u3157","backMidRounded"),xt("\u315B","backMidRounded","j")],[xt("\u314F","low"),xt("\u3151","low","j"),xt("\u3158","low","w")]],jong:[Ea("labial",["\u3142","\u3141"]),Ea("alveolar",["\u3137","\u3134","\u3139"]),Ea("velar",["\u3131","\u3147"])]},E4=[...Ze],T4=[...ct],L4=mt.filter(e=>e!==""),xa=e=>e===ia?[]:Array.from(e),ia="__NO_CODA__",kh=[1,2,3,4],sa=5,M4=12,Ah="SYL_",Bl=e=>`${Ah}${e}`,$4=e=>Number(e.slice(Ah.length));function gn(e){return e>=sa?Array.from({length:M4-sa+1},(t,a)=>sa+a):[e]}const Sh={cho:E4,jung:T4,jong:L4},Nl=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:n})=>({v:a.join(""),phonetic:r,tooltip:n}))),Dl={cho:Nl(Sl.cho),jung:Nl(Sl.jung),jong:Nl(Sl.jong)},Bh={};Dl.jung.flat().forEach(({v:e})=>{for(const t of xa(e))Bh[t]=e});const R4=new Set(Dl.cho.flat().map(e=>e.v));function jl(e,t){return e==="cho"?R4.has(t)?t:null:e==="jung"?Bh[t]??t:Kr(t)}function El(e,t,a){if(e==="jung"){const r=xa(t);return a&&r.includes(a)?a:r[0]??t}return t}function Tl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ia?ia:t==="pron"?jl(n,i):El(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const fn={cho:null,jung:null,jong:null,syllable:null},P4="wt_filter",Nh=e=>`wt_filter_${e}`;function Dh(e){try{const t=localStorage.getItem(Nh(e))??localStorage.getItem(P4);if(t)return JSON.parse(t)}catch{}return null}function z4(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...fn,cho:t.choseong}:fn}function jh(e,t,a){const{t:r,i18n:n}=he.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:Dh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,p]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[h,g]=l.useState(()=>z4(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ia,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ia:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(z=>z.cho||z.jung||z.syllable!=null||z.jong?z:f())},[]);const b=l.useMemo(()=>bt(h.cho)||bt(h.jung)||bt(h.jong)?"count":"random",[h.cho,h.jung,h.jong]),x=l.useRef(m==="char"?h.jung:null);l.useEffect(()=>{m==="char"&&(x.current=h.jung)},[m,h.jung]);const[v,C]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[y,_]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[A,T]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[S,D]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),H=l.useRef(a?.resetKey);l.useEffect(()=>{H.current!==a?.resetKey&&(H.current=a?.resetKey,g(f()),C(!1),_(!1),w([]),T([]),D([]),u(1))},[a?.resetKey]);const R=yl(),[E,$]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[B,F]=l.useState(!1),[X,Q]=l.useState(null),ee=1,N=Math.max(1,[h.cho,h.jung,h.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,P]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const z=Dh(e),K=typeof z?.contrastCount=="number"&&Number.isFinite(z.contrastCount)?z.contrastCount:1;u(Math.min(5,Math.max(1,K))),g(z?.composition??f()),C(z?.excludeNoImage??!0),_(z?.sameStructureOnly??!0),p(z?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(z?.gradeFilter)?z.gradeFilter:[]),T(Array.isArray(z?.posFilter)?z.posFilter:[]),D(Array.isArray(z?.wordTypeFilter)?z.wordTypeFilter:[])}P(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(Nh(e),JSON.stringify({contrastCount:d,composition:h,excludeNoImage:v,sameStructureOnly:y,phonemeView:m,gradeFilter:k,posFilter:A,wordTypeFilter:S}))}catch{}},[a?.resetOnMount,e,L,d,h,v,y,m,k,A,S]);const[V,W]=l.useState(0);gr("wordpool:update",()=>W(z=>z+1));const te=l.useRef(n.language);l.useEffect(()=>{te.current!==n.language&&(te.current=n.language,W(z=>z+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let z=!1;return qw({difficulty:b,excludeNoImage:v}).then(K=>{z||($(K),K.cho.size+K.jung.size+K.jong.size>0&&F(!0))}).catch(()=>{z||$({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{z=!0}},[t.choseong,b,v,V]),l.useEffect(()=>{let z=!1;const K=h,Z=K.cho?xa(K.cho):null,ge=K.jung?xa(K.jung):null,je=K.jong===ia,Fe=je?null:K.jong?xa(K.jong):null,Le=K.syllable!=null?gn(K.syllable):null,Te=!!(Z||ge||Fe||je||Le);return Yw({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Te?{cho:Z,jung:ge,jong:Fe,jongNone:je,syllable:Le}:null,excludeNoImage:v,sameStructureOnly:y,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(Ee=>{z||Q(Ee)}).catch(()=>{z||Q(null)}),()=>{z=!0}},[t.choseong,t.difficulty,b,d,h,m,v,y,V,k]),l.useEffect(()=>{B&&g(z=>{const K={...z};let Z=!1;return["cho","jung","jong"].forEach(ge=>{const je=z[ge];!je||je===ia||xa(je).some(Fe=>E[ge].has(Fe))||(K[ge]=null,Z=!0)}),z.syllable!=null&&t.fixedSyllable==null&&(z.syllable>=sa?[...E.syllable].some(ge=>ge>=sa)||(K.syllable=null,Z=!0):(!E.syllable.has(z.syllable)||z.syllable<ee)&&(K.syllable=null,Z=!0)),Z?K:z})},[E,B,ee,t.fixedSyllable]);const O=l.useMemo(()=>{const z=K=>{const Z=new Set;for(const ge of Sh[K])E[K].has(ge)&&Z.add(ge);return Z};return{cho:z("cho"),jung:z("jung"),jong:z("jong")}},[E]),Y=l.useMemo(()=>({exact:new Set(kh.filter(z=>E.syllable.has(z))),min:[...E.syllable].some(z=>z>=sa)}),[E]),I=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ce=l.useMemo(()=>({[I.trainOnset]:"cho",[I.trainVowel]:"jung",[I.trainCoda]:"jong"}),[I]),pe=l.useCallback((z,K)=>({title:K,items:z}),[]),me=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),ye=l.useMemo(()=>{const z=[];if(t.choseong){const K={value:ia,displayLabel:I.codaExclude},Z=t.fixedNoCoda===!0,ge=(je,Fe)=>{const Le=Z&&je==="jong",Te={label:Fe,groupLabel:I.phonemeGroup,allOption:!t.requireSyllable,allLabel:I.noLimit,allOptionDisabled:Le};if(m==="pron"){const Be=Dl[je].map(Ue=>Ue.map(({v:at,phonetic:fe})=>{const Oe=xa(at),Re=yh(r,fe),Ke=Le||!Oe.some(Xe=>E[je].has(Xe));return Oe.length>1?{value:at,labels:Oe,tooltip:Re,disabled:Ke}:{value:at,tooltip:Re,disabled:Ke}}));return je==="jong"&&!t.requireCoda&&Be.unshift([K]),{...Te,groups:Be}}const Ee=Sh[je].map(Be=>!Le&&O[je].has(Be)?Be:{value:Be,disabled:!0});return{...Te,items:je==="jong"&&!t.requireCoda?[K,...Ee]:Ee}};z.push(ge("cho",I.trainOnset)),z.push(ge("jung",I.trainVowel)),z.push(ge("jong",I.trainCoda))}if(z.push({...wl(r,R,{labelInfo:pe([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:I.gradeLabel}),t.partOfSpeech&&z.push(kl(R)),t.wordType&&z.push(Al(R)),t.choseong||t.fixedSyllable!=null){const K=t.fixedSyllable;z.push({label:I.syllableCount,items:[...kh.map(Z=>({value:Bl(Z),displayLabel:r("wordPairs.syllableN",{n:Z,defaultValue:"{{n}}\uC74C\uC808"}),disabled:K!=null?Z!==K:!Y.exact.has(Z)||Z<ee})),{value:Bl(sa),displayLabel:r("wordPairs.syllableNPlus",{n:sa,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:K!=null?sa!==K:!Y.min}],allOption:!0,allOptionDisabled:K!=null})}return t.choseong?z.push({label:I.exclude,displayLabel:I.selectLabel,multiple:!0,items:[I.excludeImage,I.sameStructure],labelInfo:pe(me)}):z.push({label:I.exclude,displayLabel:I.selectLabel,multiple:!0,items:[I.excludeImage],labelInfo:pe([me[0]])}),z},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,ee,O,E,m,Y,I,r,pe,me,R]),be={...t.difficulty?{[I.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&h.syllable!=null?{[I.syllableCount]:Bl(h.syllable)}:{},...t.choseong&&h.cho?{[I.trainOnset]:h.cho}:{},...t.choseong&&h.jung?{[I.trainVowel]:h.jung}:{},...t.choseong&&h.jong?{[I.trainCoda]:h.jong}:{},[I.exclude]:[...v?[I.excludeImage]:[],...y?[I.sameStructure]:[]],[I.gradeLabel]:k.map(z=>r("wordSearch.filter.grade",{n:Number(z),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},M=l.useCallback((z,K)=>{if(K===I.diffPhonemeCount){const Z=Number(z);Z>=1&&u(Z)}else if(K===I.exclude)z===I.excludeImage?C(Z=>!Z):z===I.sameStructure&&_(Z=>!Z);else if(K===I.syllableCount)g(Z=>{if(!z||z===St)return{...Z,syllable:null};const ge=$4(z);return{...Z,syllable:Z.syllable===ge?null:ge}});else if(K===I.gradeLabel){if(!z||z===St){w([]);return}const Z=z.replace(/\D/g,"");w(ge=>ge.includes(Z)?ge.filter(je=>je!==Z):[...ge,Z])}else if(K===R.partOfSpeech){if(!z||z===St){T([]);return}T(Z=>Z.includes(z)?Z.filter(ge=>ge!==z):[...Z,z])}else if(K===R.wordType){if(!z||z===St){D([]);return}D(Z=>Z.includes(z)?Z.filter(ge=>ge!==z):[...Z,z])}else{const Z=ce[K];if(!Z)return;g(ge=>t.requireSyllable?z&&z!==St?{...ge,[Z]:z}:ge:!z||z===St||ge[Z]===z?{...ge,[Z]:null}:{...ge,[Z]:z})}},[I,ce,R,t.requireSyllable]),U=l.useCallback(z=>!t.partOfSpeech&&!t.wordType?!0:S4(z,{...t.partOfSpeech?{[R.partOfSpeech]:A}:{},...t.wordType?{[R.wordType]:S}:{}},R),[t.partOfSpeech,t.wordType,A,S,R]),oe=l.useCallback(z=>{z!==m&&(z!=="direct"&&m!=="direct"&&g(K=>Tl(K,z,x.current)),p(z))},[m]),we=l.useCallback(()=>({composition:h,contrastCount:d,excludeNoImage:v,sameStructureOnly:y,phonemeView:m,gradeFilter:k}),[h,d,v,y,m,k]),de=l.useCallback(z=>{g(z.composition),u(z.contrastCount),C(z.excludeNoImage),_(z.sameStructureOnly??!0),p(z.phonemeView),w(Array.isArray(z.gradeFilter)?z.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:h,choseong:h.cho,excludeNoImage:v,sameStructureOnly:y,gradeFilter:k,posFilter:A,wordTypeFilter:S,matchesWordAttributes:U,poolVersion:V,filterSections:ye,filterSelected:be,handleFilterSelect:M,phonemeView:m,setPhonemeView:oe,phonemeGroupLabel:I.phonemeGroup,wordCount:X,getFilterSnapshot:we,restoreFilterSnapshot:de}}function I4(e){const t=c=>c?xa(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ia,i=n?null:t(e.jong),s=e.syllable!=null?gn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function Eh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[p,h]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:x=null}=r??{},v=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&Uw(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let C=!1;return h(!0),(async()=>{const y=I4({cho:g,jung:f,jong:b,syllable:x}),_=`${g??""}_${f??""}_${b??""}_${x??""}_${v}`,k={};await Promise.all(e.map(async w=>{const A=Ao[w.key];try{const T=await Gp(w.key,{difficulty:A.difficulty?t:null,contrastCount:A.difficulty?a:1,composition:A.choseong?y:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});T&&T.length>0?k[w.key]={id:`wt-${w.key}-${t}-${_}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:T,itemCount:T.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),C||(m(k),h(!1))})(),()=>{C=!0}},[t,a,g,f,b,x,n,s,c,i,v]),{perTypeData:u,generating:p}}function O4(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function F4(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const vn=ta;function Ll(e,t){const a=t?F4(O4(t)):Math.random;return{LISTEN_IN_NOISE:vn(Fa,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:vn(Ha,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:vn(Va,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:vn(Wa,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function Th(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const H4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function Lh(e=!1,t=H4,a){const r=Da(Date.now()),n=Da(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Fa.length>0||Ha.length>0||Va.length>0||Wa.length>0?{today:Ll(t,i),yesterday:Ll(t,s)}:{today:Ll(t,i),yesterday:null}}function Mh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let h=!1,g,f=0;const b=40,x=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let v=!1;try{const _=new URLSearchParams(window.location.search),k=_.get("forceRefresh")||_.get("force");v=k==="1"||k==="true"}catch{}const C=_=>{t.current=_.today,a.current=_.yesterday,n(!0),m(!0),d(k=>k+1),h=!0,x()},y=async()=>{if(h)return;if(!v){const k=Lh(!1,void 0,e);if(Th(k.today)){C(k);return}}try{await Ts(3e3)}catch{}if(h)return;const _=Lh(v,void 0,e);if(Th(_.today)){C(_);return}++f>=b&&(n(!0),m(!1),h=!0,x())};return y(),g=setInterval(y,250),()=>{h=!0,x()}},[e]);const p=l.useCallback(h=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[h]?.length?g[h]:f?.[h]?.length?f[h]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:p}}const Eo=[];let xn=!1;function $h(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=Eo[Eo.length-1];t&&(e.stopPropagation(),t())}function Ml(e){return Eo.push(e),!xn&&typeof document<"u"&&(document.addEventListener("keydown",$h),xn=!0),()=>{const t=Eo.lastIndexOf(e);t>=0&&Eo.splice(t,1),Eo.length===0&&xn&&typeof document<"u"&&(document.removeEventListener("keydown",$h),xn=!1)}}function $l(e,t=!0){const a=ml(e);l.useEffect(()=>{if(t)return Ml(()=>{a.current?.()})},[t,a])}const _n=(e,t)=>`${e}:${t??1}`,Rl=new Map;function Rh(e,t){const[a,r]=l.useState(0),n=e.map(i=>_n(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!Rl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&Rl.set(_n(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=Rl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function To(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function Ph(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function zh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function Cn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((p,h)=>{n(h),a(p),s(g=>g+1)},[]),d=l.useCallback(p=>c(p,"warning"),[c]),u=l.useCallback(p=>c(p,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const fr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},vr=fr.blue,yn=fr.green,xr=fr.amber,wn=fr.purple,V4=fr.pink,W4=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:vr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:vr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:vr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:vr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:vr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:yn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:yn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:yn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:yn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:xr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:xr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:xr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:xr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:xr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:wn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:wn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:wn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:wn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:V4,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ih(){const{t:e}=he.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(yw(e).map(r=>[r.key,r.label])),a={...t};return W4.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function co({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=v=>{const C=v.target;r&&C.closest?.(r)||d.current?.contains(C)||u.current?.contains(C)||i(!1)};document.addEventListener("mousedown",g);const f=v=>{u.current?.contains(v.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const x=v=>{v.key==="Escape"&&i(!1)};return document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",x)}},[n,m,t,a,r]);const p=l.useCallback(()=>i(g=>!g),[]),h=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:p,close:h,style:s,triggerRef:d,menuRef:u}}function Pl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[p,h]=l.useState("idle"),[g,f]=l.useState(null),[b,x]=l.useState([]),[v,C]=l.useState(null),[y,_]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,_(k.current)},[]),A=l.useRef(r),T=l.useRef(n);l.useEffect(()=>{A.current=r,T.current=n},[r,n]);const S=l.useRef([]),D=()=>{S.current.forEach(clearTimeout),S.current=[]},H=(N,L)=>{S.current.push(setTimeout(L,N))};l.useEffect(()=>()=>D(),[]);const R=c[u]?.id??null,E=l.useCallback(()=>{D(),h("playing"),x([]),C(null),w(0);let N=0;e.forEach((L,P)=>{H(N,()=>{m(P),f(L.id),A.current?.(L)}),H(N+1e3,()=>{f(null),x(V=>[...V,L.id])}),N+=1300}),H(N,()=>{h("done"),T.current?.({score:0,total:e.length})})},[e,w]),$=l.useCallback((N,L)=>{if(L>=N.length){h("done"),T.current?.({score:k.current,total:N.length});return}m(L),C(null),h("playing"),f(N[L].id),A.current?.(N[L]),H(i,()=>{f(null),h("waiting")})},[i]),B=l.useCallback(()=>{D();const N=Ge(e);d(N),w(0),x([]),$(N,0)},[e,$,w]),F=l.useCallback(()=>{t==="playback"?(d(e),E()):B()},[t,e,E,B]),X=l.useCallback(()=>{D(),h("idle"),f(null),x([]),C(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?F():X()},[t,e.length,a]);const Q=l.useCallback(N=>{p!=="waiting"||t==="playback"||(C(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(h("playing"),H(400,()=>$(c,u+1))):(h("feedback"),H(s,()=>$(c,u+1))))},[p,t,c,u,$,s,w]),ee=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:v,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:Q},index:u,total:ee,score:y,phase:p,done:p==="done",start:F,reset:X}}var G4=Object.freeze({__proto__:null,CACHE_GROUPS:vl,CORE_VERSION:Lr,DocumentTitleSuppressContext:gl,EMPTY_COMPOSITION:fn,MediaQueryOverrideContext:hn,NO_CODA:ia,SYLLABLE_MIN:sa,VAP_PAGE_SIZE_OPTIONS:bn,buildGradeSection:wl,buildPartOfSpeechSection:kl,buildPositionSection:_h,buildSelectSection:xh,buildSyllableSection:vh,buildWordTypeSection:Al,charToPronValue:jl,convertComposition:Tl,fmtBytes:ch,lsBytes:xl,meaningKey:_n,pronToCharValue:El,syllableToFilter:gn,today:jo,toggleAttributeFilter:Ch,useAnchoredMenu:co,useCacheManagement:dh,useDailyTrainingSelection:Mh,useDelayedHoverAnchor:Ph,useDeviceManagement:fh,useDocumentTitle:fl,useEscToClose:$l,useFontScale:pn,useHoverAnchor:To,useMediaQuery:na,usePagedList:zh,usePasswordChange:lh,useRelativeDay:sh,useSoundCompassExam:Pl,useTablePaging:_l,useTableSort:Cl,useToastState:Cn,useTrainingTypeLabels:Ih,useVisitAllPanel:gh,useVisitHistory:hh,useVisitSchedule:bh,useWindowEvent:gr,useWordAttributeFilterKeys:yl,useWordDataStats:uh,useWordMeanings:Rh,useWordTrainingDataGeneration:Eh,useWordTrainingFilter:jh,valueToJamos:xa}),U4=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ae(U4);function Oh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const p=n??i??"main",h=l.useRef(null),[g,f]=l.useState("main"),b=na("(max-width: 767px)");l.useLayoutEffect(()=>{const C=h.current;C&&(d!==void 0&&C.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&C.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const C=h.current;if(!C)return;const y=zs(C);f(y?.actionVariant??"main")},[p]);const x=_e("promo-banner",`promo-banner--${s}`,m),v=hl[p];return o.jsxs("div",{ref:h,className:x,role:"note",children:[o.jsx(v,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(ie,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var Y4='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ae(Y4);function Fh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=he.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[p,h]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||p)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,p]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var q4=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ae(q4);function K4({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=he.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),h=p.indexOf(u.currentTarget);(u.key==="ArrowDown"?p[h+1]:p[h-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(He,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Hh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(K4,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var Z4=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(Z4);var X4=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ae(X4);function J4(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Q4(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function e5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function pt(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:y,number:_,position:k="top-right",onClick:w,animate:A=!1}=e,T=_!==void 0?"number":y??"check",S=typeof a=="number"?a:32,D=_e("circle-badge",`circle-badge--${T}`,`circle-badge--${k}`,`circle-badge--${S}`,A?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),H=_!==void 0?`${_}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[y??"check"];return o.jsxs("span",{className:D,onClick:w,onKeyDown:w?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":n??H,role:w?"button":void 0,tabIndex:w?0:void 0,children:[_!==void 0&&_,_===void 0&&y==="check"&&o.jsx(J4,{}),_===void 0&&y==="remove"&&o.jsx(Q4,{}),_===void 0&&y==="minus"&&o.jsx(e5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:p,color:h}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,x=_e("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),v=h?.startsWith("--")?`var(${h})`:h,C=u!==void 0||v?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...v?{"--badge-color":v}:{}}:void 0;return o.jsxs("span",{className:x,style:C,children:[m&&o.jsx(He,{icon:m,size:b,className:"badge__icon"}),i??s,p&&o.jsx(He,{icon:p,size:b,className:"badge__icon"})]})}var t5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ae(t5);function _r({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=he.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),x=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:x,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),p=l.useRef(null),h=s.length;l.useEffect(()=>{p.current||(p.current=document.activeElement);let f=0,b=0;const x=()=>{const v=m.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(x))};return f=requestAnimationFrame(x),()=>cancelAnimationFrame(f)},[h]),l.useEffect(()=>()=>{p.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ie,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((x,v)=>o.jsx(ie,{className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?o.jsx(pt,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-label":`${x.badgeCount}`}):void 0,label:x.label,ariaLabel:x.label,onClick:()=>g(x),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},v))})]},b))})]})}const a5=52,Vh=10;function zl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=he.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[p,h]=l.useState(0),g=e.length;l.useEffect(()=>{const B=m.current;if(!B||(h(B.clientWidth),typeof ResizeObserver>"u"))return;const F=new ResizeObserver(X=>h(X[0].contentRect.width));return F.observe(B),()=>F.disconnect()},[]);const f=p>0?Math.floor((p+Vh)/(a5+Vh)):g,b=p>0&&f<g,x=b?f:g,v=e.slice(0,x),C=e.slice(x),y=b||i.length>0,_=l.useCallback(B=>({position:"fixed",bottom:window.innerHeight-B.top+8,right:window.innerWidth-B.right,zIndex:1e4}),[]),k=l.useId(),{open:w,toggle:A,close:T,style:S,triggerRef:D,menuRef:H}=co({computeStyle:_,onScroll:"ignore",onResize:"ignore"}),R=l.useCallback(()=>n?.(c),[n,c]),E=l.useMemo(()=>C.find(B=>B.key===t)??i.find(B=>B.selected||B.key&&B.key===t),[C,t,i]),$=l.useMemo(()=>[{items:[...C.map(B=>({label:B.label,icon:B.icon,selected:B.key===t,closeOnSelect:!0,onClick:()=>{B.key&&a&&a(B.key),T()}})),...i.map(B=>({label:B.label,icon:B.icon,badgeCount:B.badgeCount,selected:B.selected??(!!B.key&&B.key===t),closeOnSelect:!0,onClick:()=>{B.onClick?.(),T()}}))]}],[C,i,t,a,T]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(ie,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:R})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:v.map(B=>o.jsx(ie,{size:52,type:"dot",icon:B.icon,ariaLabel:B.label,selected:B.key===t,disabled:B.state==="disabled",className:"bottom-nav-item",onClick:()=>B.key&&a?.(B.key)},B.key))}),y&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:D,children:[o.jsx(ie,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:A,"aria-expanded":w,"aria-controls":w?k:void 0}),w&&Kt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:S,ref:H,children:o.jsx(_r,{columns:$,onClose:T})}),document.body)]})})]})]})}var o5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ae(o5);function r5(e){const{t}=he.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(pt,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Wh(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",p=t?.label??r??"",h=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(He,{icon:h,label:typeof p=="string"?p:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",x=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,v=l.useCallback(C=>{if(!b){try{C.currentTarget.blur()}catch{}s?.(m,C.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:x,onClick:v,"aria-label":typeof p=="string"?p:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:p}),g>0&&o.jsx(pt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Il(e){const{t}=he.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}=e||{},g=l.useCallback(()=>h?.(p==="malgwi"?"manager":"malgwi"),[h,p]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Wh,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(x,v)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{v?.blur()}catch{}return}n?.(f.key);try{const y=document.querySelector(".content-area");y?y.scrollTop=0:window.scrollTo({top:0})}catch{}try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const C=document.querySelector(".header");if(C&&!(typeof C.matches=="function"&&C.matches(":hover"))){C.classList.add("header--force-collapsed");const y=()=>{C.classList.remove("header--force-collapsed"),C.removeEventListener("mouseenter",y)};C.addEventListener("mouseenter",y)}}})]},f.key??`side-nav__item-${b}`)),h&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&o.jsx(Wh,{item:{key:"__mode-switch__",label:p==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:p==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(r5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var Ol='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Fl='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',n5='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',i5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ae(i5);function Hl({appMode:e}){const{t}=he.useTranslation(),a=e==="manager",r=a?Fl:Ol,n=n5,i=na("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Vl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}){const{t:g}=he.useTranslation(),f=na("(max-width: 767px)"),b=l.useMemo(()=>{const S=[];return s&&S.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&S.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&S.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&S.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&S.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),S},[g,s,c,u,m,d,i]),x=l.useCallback(S=>({position:"fixed",top:S.bottom+8,right:Math.max(8,window.innerWidth-S.right),zIndex:1e4}),[]),v=l.useId(),{open:C,toggle:y,close:_,style:k,triggerRef:w,menuRef:A}=co({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),T=l.useMemo(()=>[{items:b.map(S=>({label:S.label,icon:S.icon,badgeCount:S.badgeCount,selected:S.selected??(!!S.key&&S.key===e),closeOnSelect:!0,onClick:()=>{S.onClick?.(),_()}}))}],[b,e,_]);return o.jsxs("aside",{className:`header${p==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Hl,{appMode:p}),o.jsxs("div",{className:"header__menu-button",ref:w,children:[o.jsx(ie,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:y,"aria-expanded":C,"aria-controls":C?v:void 0}),C&&Kt.createPortal(o.jsx("div",{id:v,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:A,children:o.jsx(_r,{columns:T,onClose:_})}),document.body)]})]}),o.jsx(Il,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}),f&&o.jsx(zl,{items:a,activeKey:e??void 0,onChange:t,appMode:p,onAppModeChange:h})]})}const Gh=Vl;var s5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ae(s5);function Uh(e){if(!(e==null||e===""))return lr(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function l5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function c5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function d5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Wl(e){return{type:e.type??l5(e),plan:c5(e),label:e.label,price:Uh(e.price),originalPrice:Uh(e.originalPrice),discountLabel:e.discountLabel}}var u5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ae(u5);var p5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',h5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',m5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',b5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',g5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',f5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',v5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ae(v5);var x5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ae(x5);var Yh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ya={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Gl=new WeakMap;function _5(e){if(e)return Gl.get(e)}function _a(e,t){e&&(e.style.setProperty(Ya.text,t.text),e.style.setProperty(Ya.sub,t.sub),t.copyrightColor&&e.style.setProperty(Ya.copyright,t.copyrightColor),Gl.set(e,t))}function Ca(e){e&&(e.style.removeProperty(Ya.text),e.style.removeProperty(Ya.sub),e.style.removeProperty(Ya.copyright),Gl.delete(e))}const Ul={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Yl(e={}){const t=lt(Ul,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Yh}")`}})]})}const qh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var C5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(C5);var Cr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const y5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},w5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Kh(e={}){const t=lt(y5,_a,Ca),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:w5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:qh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var k5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(k5);const A5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},S5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function B5(e={}){const t=lt(A5,_a,Ca),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:S5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:qh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Yh}")`}})]})}var N5=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ae(N5);const D5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function j5(e={}){const t=lt(D5,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}const E5={Logo_speechear_kr:{"":Ol,_white:p5,_textWhite:h5,_black:m5},Logo_speechearManager_kr:{"":Fl,_white:b5,_textWhite:g5,_black:f5}};function T5(e,t){if(e)return E5[e]?.[t??""]??void 0}const L5={speechear:Ol,manager:Fl},M5={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Zh=10;function $5(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function R5(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Sa.t("passCard.specialLabel");return r?o.jsx(j5,{}):n?o.jsx(B5,{}):o.jsx(Kh,{})}return o.jsx(Yl,{})}function ql({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:p,logoSrc:h,label:g,price:f,originalPrice:b,discountLabel:x,onUse:v,onRefund:C,onDelete:y}){const{t:_}=he.useTranslation(),k=e?Wl(e):void 0,w=r??k?.type??"speechear",A=a??k?.plan??"\uC774\uC6A9\uAD8C",T=g??k?.label,S=f??(t?k?.price:void 0),D=b??(t?k?.originalPrice:void 0),H=x??k?.discountLabel,R=l.useMemo(()=>{if(S)return null;const M=e?.durationDays??d5(e?.code);if(!M||M<=0)return null;const U=M*86400;let oe;if(i!=null)oe=i;else if((s==="active"||s==="expired")&&n){const de=new Date(n).getTime();if(Number.isNaN(de))return null;const z=new Date;z.setHours(0,0,0,0);const K=new Date(de);K.setHours(0,0,0,0);const Z=Math.round((K.getTime()-z.getTime())/864e5);oe=Math.max(0,Z)*86400}else s==="expired"?oe=0:oe=U;const we=Math.max(0,Math.min(100,Math.floor(Math.min(oe,U)/U*100)));return s==="pending"&&we>=100?null:{percent:we,remainingLabel:$5(oe,_)}},[S,s,n,i,e?.durationDays,e?.code,_]),E=l.useRef(null),[$,B]=l.useState({}),[F,X]=l.useState(null),Q=!!(v||C||y),ee=l.useRef(!1),N=l.useRef(void 0),[L,P]=l.useState(h);l.useLayoutEffect(()=>{P(h)},[h]),l.useLayoutEffect(()=>{const M=E.current;M&&(u!==void 0&&M.style.setProperty("--pass-card-text",u),m!==void 0&&M.style.setProperty("--pass-card-sub",m),p!==void 0&&M.style.setProperty("--pass-card-copyright",p))},[u,m,p]),l.useLayoutEffect(()=>{const M=E.current;if(!M)return;const U=_5(M);if(!h){const oe=M5[w],we=s==="expired"?"_black":U?.logoColor??"",de=T5(oe,we);P(de)}},[c,h,w,s]);const V=M=>{const U=E.current;if(!U)return null;const{left:oe,top:we,width:de,height:z}=U.getBoundingClientRect(),K=(M.clientX-oe)/de-.5;return{rotateX:-((M.clientY-we)/z-.5)*Zh,rotateY:K*Zh}},W=(M,U)=>{const oe=U*-.7,we=M*.7+10,de=20+(Math.abs(M)+Math.abs(U))*.4;return`${oe}px ${we}px ${de}px rgba(0, 0, 0, 0.18)`},te=l.useCallback(M=>{ee.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{ee.current=!1},200);const U=V(M);U&&B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(M=>{const U=V(M);if(!U)return;const oe=ee.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";B({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:oe})},[]),Y=l.useCallback(()=>{clearTimeout(N.current),ee.current=!1,B({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=l.useCallback(()=>X(null),[]),ce=l.useMemo(()=>{const M=A.replace("\uC774\uC6A9\uAD8C","").trim(),U=M.match(/^(.*?)(일|년)$/);return U?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:U[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:U[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:M})},[A,_]),pe=l.useMemo(()=>{const M=lr(S);if(!M)return null;const U=M.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return o.jsx("span",{className:"h1",children:M});const[,oe,we,de]=U;return o.jsxs(o.Fragment,{children:[oe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:we}),de.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:de.trim()})]})},[S]),me=l.useCallback(()=>{Q&&X(M=>{if(M)return null;const U=E.current?.getBoundingClientRect();if(!U)return null;const oe=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+oe,top:U.top+oe,bottom:U.bottom+oe}})},[Q]),ye=l.useCallback(M=>{Q&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),me())},[Q,me]),be=[{items:[...v?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),X(null)},closeOnSelect:!0}]:[],...C?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{C(),X(null)},closeOnSelect:!0}]:[],...y?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{y(),X(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:E,className:`pass-card pass-card--${s}${Q?" pass-card--clickable":""}`,style:$,onMouseEnter:te,onMouseMove:O,onMouseLeave:Y,onClick:me,onKeyDown:Q?ye:void 0,role:Q?"button":void 0,tabIndex:Q?0:void 0,children:[c??R5(w,A,T),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:L??L5[w],className:"pass-card__logo",alt:w==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ce}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:T?_("passCard.labeledPlan",{label:T}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?o.jsxs("div",{className:"pass-card__price-area",children:[H&&o.jsx("span",{className:"pass-card__discount body-3",children:H}),o.jsxs("div",{className:"pass-card__price",children:[D&&o.jsx("span",{className:"pass-card__price-original body-3",children:lr(D)}),pe]})]}):R?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:R.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:R.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),F&&o.jsx(ja,{anchorRect:F,onClose:I,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:o.jsx(_r,{columns:be,onClose:I,size:"small"})})]})}var P5=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(P5);const z5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function I5(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(z5,_a,Ca);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var O5=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ae(O5);const F5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function H5(e={}){const t=lt(F5,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}function V5(e,t){if(e){if(t==="manager_pro")return o.jsx(H5,{});if(t==="manager_standard")return o.jsx(I5,{});if(t==="manager_lite")return o.jsx(Kh,{})}}function W5(e){const t=lr(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Xh(e){const{t}=he.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=y=>!!y&&!!c?.includes(y),u=(n.tiers||[]).some(y=>/오픈\s*특가/.test(y.label??"")&&d(y.code)),m=y=>{const _=y.prices?y.prices[s]:y.price;return _?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===_):!1},p=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",h=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=y=>y.prices?y.prices[s]:y.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(y=>{const _=f(y);return _==="\uBB34\uB8CC"||_===h||_==="0\uC6D0"}),x=(n.tiers||[]).length>0&&(n.tiers||[]).every(y=>{const _=f(y);return _==="\uBB38\uC758"||_===g}),v=n.group==="org",C=v?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:p,"--plan-color":p},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(pt,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:p},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((y,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(He,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),y]},_))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((y,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(He,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),y]},_))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:x?o.jsx(ie,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(y=>{const _=y.label||a,k=/오픈\s*특가/.test(_),w=k||y.openPromo===!0,A=_.replace(/^오픈\s*특가\s*/,"")||a,T=y.prices?y.prices[s]:y.price,S=y.badge?w?`${r}
|
|
832
|
-
${y.badge}`:y.badge:void 0;if(k&&d(y.code))return null;if(!y.badge&&!u)return m(y)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:y.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:W5(T)})})]},y.id);const D=n.tier??(v?n.title:void 0),H=o.jsx(ql,{showPrice:!0,product:{type:C,code:y.code,name:A,label:D,price:T,originalPrice:y.originals?.[s]??void 0,discountLabel:S},bg:V5(v,n.id)}),R=()=>i?.({...y,productId:n.id,productTitle:n.title,preview:H});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},y.id)})})})})]})}function Jh({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var G5=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";ae(G5);var Kl='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Zl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Qh(){const e=lt(Zl,_a,Ca);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Kl}")`}})})}var U5=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";ae(U5);const Xl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function em(e={}){const t=lt(Xl,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var Y5=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";ae(Y5);function Jl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:_e("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var q5=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";ae(q5);const yr=(e,t,a)=>e+(t-e)*a;function tm({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:p=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:x,centerDisabled:v=!1,centerAttention:C=!1,shortcutAnchor:y="top-right",shortcutScale:_,scaleShortcut:k=!1}){const w=Math.max(0,Math.min(1,a)),A=t/2,T=110/300,S=.18,D=M=>t*(T+(M-1)*S),H=M=>{const U=D(M.row??1),oe=M.angleDeg*Math.PI/180;return{x:A+U*Math.cos(oe),y:A+U*Math.sin(oe)}},R=Math.max(...e.map(M=>M.row??1),1),E=t*.08,$=t*.1,B=t*.24,F=t-2*E,X=t-$-B,Q=t-B/2,ee=l.useMemo(()=>[...new Set(e.map(M=>M.deg))].sort((M,U)=>M-U),[e]),N=ee.length,L=Math.max(68,N>1?F/(N-1):0),P=l.useMemo(()=>new Map(ee.map((M,U)=>[M,U])),[ee]),V=M=>{const U=P.get(M.deg)??0,oe=A+(U-(N-1)/2)*L,we=R>1?Math.min(68,X/(R-1)):0,de=we*(R-1),z=$+(X-de)/2,K=R===1?$+X*.4:z+(R-(M.row??1))*we;return{x:oe,y:K}},W=M=>{const U=H(M),oe=V(M);return{x:yr(U.x,oe.x,w),y:yr(U.y,oe.y,w)}},te={x:A,y:yr(A,Q,w)},O=Math.round(g*1.2),Y=Math.round(Math.max(16,Math.min(80,g*.7))),I=[],ce=new Map;for(const M of e){const U=M.row??1;ce.has(U)||ce.set(U,[]),ce.get(U).push(M)}for(const[M,U]of ce.entries()){if(U.length<2)continue;const oe=[...U].sort((Be,Ue)=>Be.deg-Ue.deg),we=oe.map(Be=>W(Be)),de=oe.map(Be=>Be.deg),z=de[de.length-1]-de[0],K=z/(de.length-1),Z=360-z,ge=oe.length>=3&&K>0&&Z<=K*1.5,je=Math.round(D(M)*1e3)/1e3,Fe=(Be,Ue,at,fe)=>{const Oe=(Ue.angleDeg-Be.angleDeg+540)%360-180;if(Oe===0)return`L ${fe.x} ${fe.y}`;if(w===0)return`A ${je} ${je} 0 0 ${Oe>0?1:0} ${fe.x} ${fe.y}`;const Re=(Be.angleDeg+Oe/2)*Math.PI/180,Ke={x:A+je*Math.cos(Re),y:A+je*Math.sin(Re)},Xe={x:(at.x+fe.x)/2,y:(at.y+fe.y)/2},Je={x:yr(Ke.x,Xe.x,w),y:yr(Ke.y,Xe.y,w)},Ve={x:2*Je.x-Xe.x,y:2*Je.y-Xe.y};return`Q ${Ve.x} ${Ve.y} ${fe.x} ${fe.y}`},Le=ge?[...oe,oe[0]]:oe,Te=ge?[...we,we[0]]:we;let Ee=`M ${Te[0].x} ${Te[0].y}`;for(let Be=1;Be<Te.length;Be++)Ee+=" "+Fe(Le[Be-1],Le[Be],Te[Be-1],Te[Be]);I.push({key:`arc-${M}`,d:Ee})}const pe=l.useMemo(()=>new Set(n??[]),[n]),me=M=>{if(r===M.id)return"active";if(c){if(M.id===s)return"correct";if(M.id===i&&i!==s)return"wrong"}return pe.has(M.id)?"played":"idle"},ye=M=>r===M.id?"loop":c?M.id===s?"loop":null:d&&M.id===i?"once":null,be=(M,U)=>{switch(M){case"played":case"correct":return o.jsx(md,{size:U});case"wrong":return o.jsx(kd,{size:U});default:return o.jsx(wd,{size:U})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(M=>{const{x:U,y:oe}=W(M);return o.jsx("line",{x1:te.x,y1:te.y,x2:U,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},M.id)}),I.map(M=>o.jsx("path",{d:M.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},M.key))]}),C&&!v&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:te.x-O/2,top:te.y-O/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:te.x,top:te.y},"aria-label":x,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:b,children:o.jsx(Jn,{size:Y,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:te.x,top:te.y},children:o.jsx(Jn,{size:Y,color:"currentColor",strokeWidth:1.5})}),e.map((M,U)=>{const{x:oe,y:we}=W(M),de=me(M),z=ye(M),K={..._!==void 0||k?{"--shortcut-badge-scale":String(_??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:de!=="idle"?10:1},Z=g,ge=Math.round(Math.max(10,Math.min(56,Z*.38))),je=Math.round(Math.max(7,Math.min(18,Z*.2))),Fe=Math.round(Math.max(10,Math.min(56,Z*.4))),Le=f==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Te=f===!0||Le,Ee=!Le;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...K,left:oe-Z/2,top:we-Z/2},children:[z&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(z==="once"?" sound-compass__pulse--once":""),style:{width:Z,height:Z,...z==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>h?.(M.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Z,height:Z},"aria-label":M.label,children:[Te&&be(de,ge),Ee&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?je:Fe},children:U+1})]}),M.shortcut&&o.jsx(Jl,{keys:M.shortcut,anchor:y,className:"sound-compass__speaker-shortcut"})]},M.id)})]})})}function am({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:_e("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var K5=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";ae(K5);function om({orientation:e="horizontal",label:t,className:a=""}){const r=_e("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var Z5='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';ae(Z5);function Ql({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var X5=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";ae(X5);function rm({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(Ql,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var J5=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";ae(J5);const Q5={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function nm({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=he.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const p=_e("alert",`alert--${e}`,s),h=!!t,g=!!(a||r);return o.jsxs("div",{className:p,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(He,{icon:Q5[e],size:20,className:"alert__icon"}),h&&o.jsx("span",{className:"alert__title body-2",children:t}),!h&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),h&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var e3=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";ae(e3);const t3={ready:"search",guide:"info",error:"circle-alert"};function a3(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function im({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??t3[e],c=_e("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?a3(d,r):d;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(He,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Lo({title:e,items:t}){const{t:a}=he.useTranslation(),{anchorRect:r,openAt:n,close:i}=To();return o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(Ua,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var o3=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";ae(o3);function sm({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=he.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,f=u())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},p=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=u(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(b-1,f):g.key==="Home"?m(0,f):m(f.length-1,f)},h=e.find(g=>g.key===d);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${i}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:p,children:g.label},g.key))}),h&&o.jsx("div",{id:`tabs__panel-${i}-${h.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${h.key}`,tabIndex:0,className:"tabs__panel",children:h.panel},h.key)]})}var r3=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";ae(r3);const n3={xs:12,sm:16,md:20,lg:28,xl:36};function i3(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function lm({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=he.useTranslation(),[s,c]=l.useState(!1),d=t?i3(t):"",u=!!e&&!s,m=!u&&!!d,p=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":p,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:p,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(He,{icon:"user-round",size:n3[a],className:"avatar__icon"})]})}var s3=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";ae(s3);function l3(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function cm({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=he.useTranslation(),u=l.useRef(null),[m,p]=l.useState(!1),[h,g]=l.useState([]),f=i??h,b=w=>{if(!w||w.length===0)return;const A=Array.from(w).filter(S=>l3(S,t));if(A.length===0)return;const T=a?A:A.slice(0,1);if(i===void 0){const S=a?[...f,...T]:T;g(S),e?.(S)}else e?.(T)},x=w=>{w.preventDefault(),!r&&p(!0)},v=w=>{w.preventDefault(),p(!1)},C=w=>{w.preventDefault(),p(!1),!r&&b(w.dataTransfer.files)},y=w=>{b(w.target.files),w.target.value=""},_=()=>{r||u.current?.click()},k=w=>{if(s){s(w);return}if(i===void 0){const A=f.filter((T,S)=>S!==w);g(A),e?.(A)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:_e("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:_,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),_())},onDragOver:x,onDragLeave:v,onDrop:C,children:[o.jsx(He,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),_()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:y,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((w,A)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:w.name}),onClick:()=>k(A),children:o.jsx(He,{icon:"x",size:14})})]},`${w.name}-${A}`))})]})}var c3=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";ae(c3);function dm({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(He,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var d3=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer;min-height:24px;min-width:24px}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";ae(d3);const u3={small:14,medium:20,large:28};function um({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=he.useTranslation(),d=r||!t,[u,m]=l.useState(null),p=u??e,h=u3[n],g=_=>{d||t?.(_)},f=_=>{d||m(_)},b=l.useRef(null),x=_=>{const k=Math.min(a,Math.max(1,_));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(k))?.focus()},v=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":x((e||0)+1);break;case"ArrowLeft":case"ArrowDown":x((e||1)-1);break;case"Home":x(1);break;case"End":x(a);break;default:return}_.preventDefault()}},C=e>=1&&e<=a?Math.round(e):1,y=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:v,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:y,children:Array.from({length:a},(_,k)=>{const w=k+1,A=Math.max(0,Math.min(1,p-k)),T=A>0&&A<1,S=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(He,{icon:"star",size:h,className:"rating__star rating__star--empty"}),A>0&&o.jsx("span",{className:`rating__star-fill${T?" rating__star-fill--half":""}`,children:o.jsx(He,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:S},w):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===C?0:-1,onClick:()=>g(w),onMouseEnter:()=>f(w),children:S},w)})})}var p3=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";ae(p3);const h3=20,m3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function pm({value:e,onChange:t,palette:a=m3,size:r=40,className:n=""}){const{t:i}=he.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(He,{icon:"check",size:h3,className:"color-picker__check"})},s)})})}var b3=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";ae(b3);function hm({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=_e("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(He,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var g3=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";ae(g3);function f3(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function mm({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:p}=he.useTranslation(),h=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:x}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=x,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return Ml(f)},[e,c,f]),Rs(g,e),!e||typeof document>"u"?null:Kt.createPortal(o.jsx("div",{className:_e("dialog",u),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:_e("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(f3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var v3=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";ae(v3);function bm({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:_e("board",d),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(m=>o.jsx("th",{scope:"col",className:_e("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,p)=>o.jsx("tr",{className:"board__row",children:e.map(h=>o.jsx("td",{className:_e("board__td",`board__cell--${h.align??"left"}`),children:h.render(m,p)},h.key))},a(m,p)))})]})]})}var x3=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";ae(x3);function gm({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:_e("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var _3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";ae(_3);function fm({groups:e,className:t=""}){return o.jsx("div",{className:_e("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var C3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";ae(C3);function vm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:_e("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var y3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";ae(y3);function xm({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=ml(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var w3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';ae(w3);function _m({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:_e("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var k3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";ae(k3);function Cm({items:e,className:t=""}){return o.jsx("ul",{className:_e("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function ec({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const p=l.useCallback(b=>{t?.(b),s(!1)},[t]),h=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(x=>Math.min(m.length-1,x+1))):b.key==="ArrowUp"?(b.preventDefault(),d(x=>Math.max(-1,x-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&p(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,p]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:h,handleBlur:g,handleKeyDown:f,handleSelect:p}}var A3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";ae(A3);function qa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:p=!1,readOnly:h=!1,error:g,helperText:f,maxLength:b,size:x=48,variant:v="input",fullWidth:C=!1,newline:y=!1,multiline:_=!1,rows:k=3,leftIcon:w,rightIcon:A,clearable:T=!1,list:S,showCount:D=!0,className:H="",onFocus:R,onBlur:E,onKeyDown:$,onEnter:B,inputMode:F,autoComplete:X,autoFocus:Q,suggestions:ee,openOnFocus:N=!1}=e,{t:L}=he.useTranslation(),P=l.useId();!s&&!c&&Zn(`TextField:unnamed:${P}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const V=`tf-${P}`,W=`tf-helper-${P}`,te=l.useRef(null),O=ec({value:t??"",onChange:i,suggestions:ee??[],openOnFocus:N}),Y=!!ee&&O.open&&O.filtered.length>0,I=l.useCallback(K=>{te.current=K,typeof n=="function"?n(K):n&&(n.current=K)},[n]),ce=t!==void 0,pe=ce&&m==="password",me=(t??"").length;l.useEffect(()=>{const K=te.current;if(!pe||!K)return;const Z=t??"";K.value!==Z&&(K.value=Z)},[pe,t]),l.useEffect(()=>{if(!y||!te.current)return;const K=te.current;K.style.height="",K.scrollHeight>K.clientHeight&&(K.style.height=`${K.scrollHeight}px`)},[t,y]);const ye=b!=null&&me>b,be=x===32?16:20,M=_e("text-field",`text-field--s${x}`,v==="display"?"text-field--display":"",C?"text-field--full-width":"",p?"text-field--disabled":"",h?"text-field--readonly":"",g?"text-field--error":"",w?"text-field--has-left-icon":"",A||T?"text-field--has-right-icon":"",H),U={id:V,...pe?{}:ce?{value:t}:{defaultValue:a},ref:I,placeholder:u,name:r,disabled:p,readOnly:h,autoFocus:Q,tabIndex:h?-1:void 0,maxLength:b,list:S,inputMode:F,autoComplete:X,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":f||g?W:void 0,role:ee?"combobox":void 0,"aria-autocomplete":ee?"list":void 0,"aria-haspopup":ee?"listbox":void 0,"aria-expanded":ee?O.open:void 0,"aria-controls":Y?O.listId:void 0,"aria-activedescendant":Y&&O.activeIdx>=0?`${O.listId}-option-${O.activeIdx}`:void 0,onChange:K=>i?.(K.target.value),onFocus:(K=>{R?.(K),ee&&O.handleFocus()}),onBlur:(K=>{E?.(K),ee&&O.handleBlur()}),onKeyDown:(K=>{B&&K.key==="Enter"&&!K.nativeEvent.isComposing&&(K.preventDefault(),B()),$?.(K),ee&&O.handleKeyDown(K)})},oe=T&&!p&&!h&&me>0,we=()=>y?o.jsx("textarea",{...U,className:"text-field__input text-field__input--auto body-2",rows:1}):_?o.jsx("textarea",{...U,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...U,type:m,className:"text-field__input body-2"}),de=v==="display"&&!y&&!_&&!!u,z=()=>o.jsxs(o.Fragment,{children:[we(),de&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:M,children:[s&&o.jsxs("label",{htmlFor:V,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[w&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(He,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),z(),b!=null&&D&&o.jsxs("span",{className:`text-field__count caption-2${ye?" text-field__count--over":""}`,children:[me,"/",b]}),oe&&o.jsx(ie,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:K=>{K.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),A&&!oe&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(He,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),ee&&O.open&&O.filtered.length>0&&o.jsx("ul",{id:O.listId,className:"text-field__suggestions",role:"listbox",children:O.filtered.map((K,Z)=>o.jsx("li",{id:`${O.listId}-option-${Z}`,role:"option","aria-selected":Z===O.activeIdx,className:`text-field__suggestion body-2${Z===O.activeIdx?" is-active":""}`,onMouseDown:ge=>ge.preventDefault(),onClick:()=>{O.handleSelect(K),te.current?.focus()},children:K},`${K}-${Z}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:W,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var S3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";ae(S3);function Xt({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=he.useTranslation(),p=r??m("dropdown.placeholder","\uC120\uD0DD"),h=l.useId(),g=l.useRef(null),f=l.useCallback(E=>{const $=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...$?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:v,style:C,triggerRef:y,menuRef:_}=co({computeStyle:f}),[k,w]=l.useState(-1),A=l.useCallback(()=>w(-1),[]),T=e.find(E=>E.value===t);l.useEffect(()=>{if(b){const E=e.findIndex($=>$.value===t);w(E>=0?E:0),requestAnimationFrame(()=>{const $=_.current;if(!$)return;const B=$.querySelectorAll(".dropdown__option")[E];B&&($.scrollTop=Math.max(0,B.offsetTop-$.clientHeight/2+B.clientHeight/2))})}},[b,e,t,_]);const S=l.useCallback(()=>{n||v()},[n,v]),D=l.useCallback(E=>{E.disabled||(a?.(E.value),x(!1))},[a,x]),H=l.useCallback(E=>{if(!n){if(!b){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),x(!0));return}if(E.key==="Escape"){E.preventDefault(),x(!1);return}E.key==="ArrowDown"?(E.preventDefault(),w($=>{let B=$+1;for(;B<e.length&&e[B].disabled;)B++;return B<e.length?B:$})):E.key==="ArrowUp"?(E.preventDefault(),w($=>{let B=$-1;for(;B>=0&&e[B].disabled;)B--;return B>=0?B:$})):E.key==="Enter"&&k>=0&&(E.preventDefault(),D(e[k]))}},[n,b,e,k,D,x]),R=b?o.jsx("div",{ref:_,id:h,className:"dropdown__menu",role:"listbox",style:C,onMouseLeave:A,children:e.map((E,$)=>o.jsxs("button",{id:`${h}-option-${$}`,type:"button",role:"option","aria-selected":E.value===t,className:_e("dropdown__option body-2",E.value===t?"dropdown__option--active":"",$===k?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:B=>B.preventDefault(),onClick:()=>D(E),onMouseEnter:()=>w($),disabled:E.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:E.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return o.jsxs("div",{ref:g,className:_e("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:H,children:[o.jsxs("button",{ref:y,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?h:void 0,"aria-activedescendant":b&&k>=0?`${h}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:S,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${T?"":" dropdown__trigger-label--placeholder"}`,children:T?T.label:p}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Kt.createPortal(R,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var B3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";ae(B3);function wr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=he.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:_e("pagination",i),children:[o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var N3=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";ae(N3);function Ka(e){const{t}=he.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=x=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},p=l.useRef(null),h=a.filter(x=>!x.disabled),g=x=>{if(!h.length)return;const v=Math.max(0,h.findIndex(y=>y.key===r)),C=x==="first"?h[0]:x==="last"?h[h.length-1]:h[(v+x+h.length)%h.length];C&&(n(C.key),Array.from(p.current?.querySelectorAll("[data-segkey]")??[]).find(y=>y.dataset.segkey===C.key)?.focus())},f=x=>{switch(x.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}x.preventDefault()},b=h.some(x=>x.key===r)?r:h[0]?.key;return o.jsx("div",{ref:p,onKeyDown:f,className:_e("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(x=>o.jsx(ie,{role:"radio","aria-checked":x.key===r,"data-segkey":x.key,tabIndex:x.key===b?0:-1,label:x.label,count:x.count,disabled:x.disabled,className:x.key===r?"is-selected":"",onClick:()=>{x.disabled||n(x.key)},size:s,shape:c,useBorder:!1,useBG:!1},x.key))})}var D3=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";ae(D3);function kn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=he.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:_e("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((p,h)=>o.jsx(Ka,{size:40,...p},p.ariaLabel??h))]}),m&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(qa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((p,h)=>o.jsx(Xt,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},h)),n&&o.jsx(Xt,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(wr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var j3=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";ae(j3);function ym(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(ym).join(""):""}function E3(e){let t=e.replace(/\r\n/g,`
|
|
831
|
+
`),this.name="StorageNotConfiguredError"}};function di(e){Ey(e)}function $r(e,t){if(!e)return null;const a=vo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ui(e){if(!e)return!1;const t=vo();if(!t)throw new ci("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Go(e){if(!e)return null;const t=vo();if(!t)throw new ci("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Rr(e){const t=vo();if(!t)throw new ci("downloadSound");return t.download(e)}function pi(){return vo()?.noiseBaseUrl??"/sounds/noise"}function Pr(){const e=Number(vo()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const hi="__ihab_core_tts_config__";function tu(e){globalThis[hi]=e}function Uo(){return globalThis[hi]?.urlResolver??null}function mi(){return globalThis[hi]?.fallbackUrlResolver??null}const Ty=new Map;function au(){Ty.clear()}const ou="__ihab_core_pronunciation_resolver__";function ru(e){globalThis[ou]=e}function bi(){return globalThis[ou]??null}let za=null;const Yo=new WeakMap,gi=new WeakMap,fi=new WeakMap;let nu=!1;const iu=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Ly(){if(nu||typeof document>"u")return;nu=!0;const e=()=>{try{za&&za.state!=="running"&&za.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function su(){if(za)return za;try{const e=window.AudioContext||window.webkitAudioContext;return e?(za=new e,Ly(),za):null}catch{return null}}function qo(){try{za?.resume()}catch{}}function vi(e,t){const a=Yo.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),n=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,n.gain.value=iu(gi.get(t)??t.volume),r.connect(n),n.connect(i),n.connect(e.destination);try{t.volume=1}catch{}const s={gain:n,analyser:i};return Yo.set(t,s),s}catch{return null}}function xo(e){if(!e)return Promise.resolve(null);const t=Yo.get(e);if(t)return Promise.resolve(t.analyser);const a=su();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(vi(a,e)?.analyser??null);const r=fi.get(e);if(r)return r;const n=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?vi(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{fi.delete(e)});return fi.set(e,n),n}function xi(e){if(!e)return null;const t=Yo.get(e);if(t)return t.analyser;const a=su();return a?a.state==="running"?vi(a,e)?.analyser??null:(xo(e),null):null}function pa(e,t){const a=iu(t);gi.set(e,a);const r=Yo.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const n=r.gain.gain;try{const i=r.gain.context.currentTime;n.cancelScheduledValues(i),n.setTargetAtTime(a,i,.01)}catch{try{n.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function _o(e){return gi.get(e)??e.volume}function _i(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const lu="__ihab_core_image_config__";function cu(e){globalThis[lu]=e}function Ia(){return globalThis[lu]??null}const Ko="word_image_existence_map_v1";let ha=null;const zr=new Map;function Zo(){if(ha)return ha;try{const e=typeof localStorage<"u"?localStorage.getItem(Ko):null;ha=e?JSON.parse(e):{}}catch{ha={}}return ha}let Ci=null;function My(){Ci||(Ci=setTimeout(()=>{Ci=null;try{typeof localStorage<"u"&&ha&&localStorage.setItem(Ko,JSON.stringify(ha))}catch{}},200))}function Ir(e,t){return`${e}_${t??1}`}async function Xo(e,t){const a=Zo(),r=Ir(e,t);if(r in a)return a[r];if(zr.has(r))return zr.get(r);const n=Ia();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,My(),zr.delete(r),c));return zr.set(r,s),s}function yi(e,t){const a=Zo(),r=Ir(e,t);return r in a?a[r]:void 0}async function du(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=Zo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!(Ir(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,p=s[m],h=Ir(p);if(!a&&h in i){c++,n?.(c,s.length);continue}try{await Xo(p)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&ha&&localStorage.setItem(Ko,JSON.stringify(ha))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Or(){const e=Zo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function uu(e){const t=Zo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Ko,JSON.stringify(t))}catch{}}function wi(){ha={};try{typeof localStorage<"u"&&localStorage.removeItem(Ko)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ct=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],mt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function $e(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function ki(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>$e(r)),e.set(t,a)),a}}function ma(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function Ai(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=$e(e[n]),s=$e(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function Si(e){const t=$e(e[0]||"");return t?Ze[t.cho]:""}function Bi(e){return[...e].map(t=>{const a=$e(t);return a?Ze[a.cho]:t}).join("")}function Ni(e){return!!e&&[...e].every(t=>Ze.includes(t))}function pu(e,t){return t?Ni(t)?Bi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function Co(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>ct.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":$e(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],p=i[u];if(p==="cho"){if(Si(m)!==a[u]){d=!1;break}}else if(p==="jung"){const h=$e(m);if(!h||ct[h.jung]!==a[u]){d=!1;break}}else{const h=$e(a[u]);if(h&&h.jong===0){const f=$e(m);if(!f||f.cho!==h.cho||f.jung!==h.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const yo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},hu=Object.fromEntries(Object.entries(yo).map(([e,t])=>[t.join(""),mt[Number(e)]]));function $y(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(mt[r.jong]===t)return!0;const n=yo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function mu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&Ze[r.cho]===t)return!0}return!1}function bu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(r&&ct[r.jung]===t)return!0}return!1}function gu(e,t){if(!e||!t)return!1;for(const a of e){const r=$e(a);if(!r||r.jong<=0)continue;if(mt[r.jong]===t)return!0;const n=yo[r.jong];if(n&&n.includes(t))return!0}return!1}function wo(e){if(!e)return 0;let t=0;for(const a of e)$e(a)&&t++;return t}function Di(e){if(!e)return!1;let t=!1;for(const a of e){const r=$e(a);if(r&&(t=!0,r.jong>0))return!1}return t}function Ry(e,t){if(e.jong<=0)return!1;if(t.includes(mt[e.jong]))return!0;const a=yo[e.jong];return!!a&&a.some(r=>t.includes(r))}function ji(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=$e(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(ct[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!Ry(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function Ei(e){return e.includes(",")||e.includes("_")}function fu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=hu[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>$e(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:ct.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function Py(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=$e(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=$e(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=$e(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=$e(e);return!!a&&ct[a.jung]===t.jamo}case"template":{const a=$e(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&ct[a.jung]!==t.jung||t.jong!=="_"&&mt[a.jong]!==t.jong)}case"invalid":return!1}}function Ti(e,t){const a=t.split(",").flatMap(n=>fu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>Py(r[n+s],i)))return!0;return!1}function vu(e){const t=e.split(",").flatMap(i=>fu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=$e(i.ch);s&&(a.add(Ze[s.cho]),r.add(ct[s.jung]),s.jong!==0&&n.add(mt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function zy(e){return!!$e(e)||Ze.includes(e)||ct.includes(e)}function xu(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||ct.includes(s),m=c===""||c==="_"||mt.filter(Boolean).includes(c)||!!hu[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(zy))return{ok:!1}}}return{ok:!0}}const Iy={cho:Ze.length,jung:ct.length,jong:mt.length};function Oy(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(p=>$e(p));if(i.some(p=>!p))return[];const s=i,c=s.length;if(a>c)return[];const d=Iy[t],u=new Set,m=[];(function p(h,f){if(f.length===a){m.push([...f]);return}for(let g=h;g<c;g++)f.push(g),p(g+1,f),f.pop()})(0,[]);for(const p of m)if((function h(f,g){if(u.size>=n)return;if(f===p.length){const v=g.map(C=>ma(C.cho,C.jung,C.jong)).join("");v!==e&&r.has(v)&&u.add(v);return}const b=p[f],x=s[b][t];for(let v=0;v<d;v++){if(v===x)continue;const C=g.slice();if(C[b]={...g[b],[t]:v},h(f+1,C),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Fy(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=$e(e[r]),i=$e(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function _u(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(Ei(a))return e.filter(s=>Ti(s.word,a));const r=e.filter(s=>Co(s.word,a)||Co(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&Co(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const Li="word_pair_index_v2",Mi="word_pair_index_sig_v2";let ba=null,Jo=null;function Cu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Li),t=localStorage.getItem(Mi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function Hy(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(Li,JSON.stringify(e)),localStorage.setItem(Mi,t)}catch{}}function Vy(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function Wy(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,p=Array.from(m).map($e);p.some(h=>h===null)||p.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:p}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let p=0;p<m;p++)for(const h of d){const f=new Map;for(const g of u){let b="";for(let v=0;v<m;v++){v>0&&(b+="~");const C=g.syls[v];v===p?h==="cho"?b+=`*:${C.jung}:${C.jong}`:h==="jung"?b+=`${C.cho}:*:${C.jong}`:b+=`${C.cho}:${C.jung}:*`:b+=`${C.cho}:${C.jung}:${C.jong}`}let x=f.get(b);x||(x=[],f.set(b,x)),x.push(g)}for(const g of f.values())if(!(g.length<2))for(let b=0;b<g.length;b++){const x=g[b];for(let v=b+1;v<g.length;v++){const C=g[v];x.syls[p][h]!==C.syls[p][h]&&(n[x.word]||(n[x.word]={cho:[],jung:[],jong:[]}),n[C.word]||(n[C.word]={cho:[],jung:[],jong:[]}),n[x.word][h].push(C.word),n[C.word][h].push(x.word))}}}c+=u.length,t?.(c,i),await new Promise(p=>setTimeout(p,0))}return i>0&&t?.(i,i),n}async function yu(e,t={}){const a=Vy(e);if(!t.force){if(ba&&Jo===a)return ba;const n=Cu();if(n&&n.sig===a)return ba=n.index,Jo=a,ba}const r=await Wy(e,t.onProgress);return ba=r,Jo=a,Hy(r,a),r}function oo(){if(ba)return ba;const e=Cu();return e?(ba=e.index,Jo=e.sig,ba):null}function $i(){ba=null,Jo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(Li),localStorage.removeItem(Mi))}catch{}}const Ri={cho:Ze,jung:ct,jong:mt},bt=e=>Array.isArray(e)?e.length>0:!!e;function Qo(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function Pi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Qo(i,n(a.pronOf(c)))||s.push(c)));return s}function Fr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return Pi(e,n,a)}function zi(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(h=>bt(e[h])),d={};for(const h of c){const f=e[h];d[h]=new Set(Array.isArray(f)?f:[f])}const u=n==="pron",m=new Map;for(const h of t){const f=a(i(h));if(f.some(v=>!v))continue;let g=f;if(!u&&(g=a(h),g.length!==f.length||g.some(v=>!v)))continue;const b=f.length,x=m.get(b);x?x.push({w:h,dPron:f,dPos:g}):m.set(b,[{w:h,dPron:f,dPos:g}])}const p=new Map;for(const[h,f]of m){const g=new Map,b=(x,v)=>{const C=x.dPos[v];return C!=null&&c.every(y=>d[y].has(Ri[y][C[y]]))};for(const x of f){let v;if(s==="head")v=b(x,0)?0:-1;else if(s==="tail")v=b(x,h-1)?h-1:-1;else if(s==="mid"){v=-1;for(let y=1;y<h-1;y++)if(b(x,y)){v=y;break}}else v=x.dPos.findIndex(y=>y!=null&&c.every(_=>d[_].has(Ri[_][y[_]])));if(v<0)continue;const C=g.get(v);C?C.push(x):g.set(v,[x])}for(const[x,v]of g){const C=new Set(c.map(k=>x+":"+k)),y=k=>{let w="";for(let S=0;S<h;S++){const L=k[S];for(const B of["cho","jung","jong"])w+=(C.has(S+":"+B)?"*":L[B])+"."}return w},_=new Map;for(const k of f){const w=y(k.dPron),S=_.get(w);S?S.push(k):_.set(w,[k])}for(const k of v){const w=_.get(y(k.dPron))??[],S=[];for(const L of w){if(L.w===k.w)continue;let B=!0;for(const D of c){const H=k.dPron[x][D],$=L.dPron[x][D];if($===H){B=!1;break}if(u&&d[D].has(Ri[D][$])){B=!1;break}}B&&(r&&Qo(k.dPron,L.dPron)||S.push(L.w))}p.set(k.w,S)}}}return p}const Hr=0,wu=1,ro=2,Ii=3,Gy=4,Vr=5,Oi=6,Wr=7,Uy=8,ku=9,er=10,Yy=11,tr=12,qy=13,ar=14,Gr=15,Ur=16,or=17,Ky=18,ga=0,Ba=1,Zy=3,no=4,Fi=5,Hi=6,fa=7,yt=8,Au=9,Su=10,Yr=11,Bu=12,Vi=13,qr=15,Kr=16,Na=17,Nu=18,Wi=21,Du=27,Xy=20,Jy={1:Hr,2:wu,4:ro,7:Ii,8:Vr,16:Oi,17:Wr,19:ku,20:er,22:tr,23:ar,24:Gr,25:Ur,26:or},Qy={[Zy]:[Ba,er],[Fi]:[no,tr],[Au]:[yt,Hr],[Su]:[yt,Oi],[Yr]:[yt,Wr],[Bu]:[yt,er],[Vi]:[yt,Ur],14:[yt,or],[Nu]:[Na,er]},ew={[Hi]:ro,[qr]:Vr},Gi={2:Ba,24:Ba,3:Ba,9:Ba,5:no,6:no,19:fa,20:fa,22:fa,23:fa,25:fa,27:fa,11:yt,12:yt,13:yt,15:yt,10:Kr,14:Na,18:Na,26:Na},ju={[Hr]:Gr,[Ii]:Ur,[Wr]:or,[tr]:ar},Eu={[Hr]:wu,[Ii]:Gy,[Wr]:Uy,[ku]:er,[tr]:qy},tw=new Set([Fi,Su,Yr,Bu,Vi,qr,Nu]),aw=new Set(["\uBC1F"]);function Tu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map($e);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=Gi[s.jong]??s.jong;break}if(s.jong===ga)continue;if(c.cho===Yy){if(c.jung===Xy){if(s.jong===fa){s.jong=ga,c.cho=tr;continue}if(s.jong===25){s.jong=ga,c.cho=ar;continue}if(s.jong===Vi){s.jong=yt,c.cho=ar;continue}}if(s.jong===Du){s.jong=ga;continue}const m=ew[s.jong];if(m!==void 0){s.jong=ga,c.cho=m;continue}const p=Qy[s.jong];if(p){s.jong=p[0],c.cho=p[1];continue}const h=Jy[s.jong];h!==void 0&&(s.jong=ga,c.cho=h);continue}if((s.jong===Du||s.jong===Hi||s.jong===qr)&&ju[c.cho]!==void 0){c.cho=ju[c.cho],s.jong=s.jong===Hi?no:s.jong===qr?yt:ga;continue}if(c.cho===Ky){if(s.jong===Fi){s.jong=no,c.cho=ar;continue}if(s.jong===Au){s.jong=yt,c.cho=Gr;continue}if(s.jong===Yr){s.jong=yt,c.cho=or;continue}const m=Gi[s.jong]??s.jong;if(m===Ba){s.jong=ga,c.cho=Gr;continue}if(m===fa){s.jong=ga,c.cho=Ur;continue}if(m===Na){s.jong=ga,c.cho=or;continue}}let u=Gi[s.jong]??s.jong;d===Yr&&aw.has(a[i])&&(u=Na),s.jong=u,Eu[c.cho]!==void 0&&(u===Ba||u===fa||u===Na||tw.has(d))&&(c.cho=Eu[c.cho]),(c.cho===ro||c.cho===Oi)&&(s.jong===Ba?s.jong=Wi:s.jong===fa?s.jong=no:s.jong===Na&&(s.jong=Kr)),c.cho===Vr?s.jong===no?s.jong=yt:s.jong===Kr||s.jong===Wi?c.cho=ro:s.jong===Ba?(s.jong=Wi,c.cho=ro):s.jong===Na&&(s.jong=Kr,c.cho=ro):s.jong===yt&&c.cho===ro&&(c.cho=Vr)}return n.map(i=>ma(i.cho,i.jung,i.jong)).join("")}const ow={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},rw={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Zr(e){return ow[e]??e}const ko=/[ㄱ-ㅎ]/,nw=/[ㅏ-ㅣ]/;function rr(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||ko.test(a)||nw.test(a))return a}return null}function Ui(e){const t=rr(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":ko.test(t)?"\uC774":"\uAC00"}function Yi(e){return`${e}${Ui(e)}`}function qi(e){const t=rr(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":ko.test(t)?"\uC744":"\uB97C"}function Ki(e){return`${e}${qi(e)}`}function Zi(e){const t=rr(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":ko.test(t)?"\uC740":"\uB294"}function Lu(e){return`${e}${Zi(e)}`}function Xi(e){const t=rr(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":ko.test(t)?"\uACFC":"\uC640"}function Mu(e){return`${e}${Xi(e)}`}function Ji(e){const t=rr(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":ko.test(t)?"\uC73C\uB85C":"\uB85C"}function $u(e){return`${e}${Ji(e)}`}function Qi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ge(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function ta(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ge(e,a):Ge(e,a).slice(0,t)}const Ao={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function iw(e){const t=e?Ao[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const sw=Ze.indexOf("\u3147"),Xr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==sw},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},lw=new Set([]);function Ru(e){return e in Xr}function Pu(e,t){const a=Xr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=$e(r[0]);return!!n&&a.syllable(n)}function zu(e){return lw.has(e)}function cw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function es(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function Iu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function Ou(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Fu={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Hu(e){if([...e].length!==1)return[e];const t=$e(e);if(!t)return[e];const a=[Ze[t.cho],ct[t.jung]];return t.jong!==0&&a.push(mt[t.jong]),a}function ts(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Fu[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${cw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${es(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function dw(e,t){return ts(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function uw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${es(a)} "${n}"${Iu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${es(r)} "${n}"${Iu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function pw(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${Ou(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${Ou(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Vu(e,t,a){switch(iw(e)){case"synthesis":return dw(e,a);case"substitution":return uw(e,t);case"deletion":return pw(e,t);default:return""}}function Wu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Fu[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const hw=e=>e==null?[]:Array.isArray(e)?e:[e];function as(e){if([...e].length!==1)return"";const t=$e(e);if(!t)return"";const a=Zr(mt[t.jong]),r=a===""?0:mt.indexOf(a);return ma(t.cho,t.jung,r<0?0:r)}function Jr(e,t){return t.get(e)||as(e)||e}function nr(e){return e?bt(e.cho)?"cho":bt(e.jung)?"jung":bt(e.jong)?"jong":null:null}function Oa(e,t){const a=(r,n)=>!bt(r)||hw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,ct[e.jung])&&a(t.jong,mt[e.jong])}function io(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>$e(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>$e(i)):n.map(i=>$e(i))}function so(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?ct:mt,s=e[t],c=[],d=new Set([Jr(a,n)]),u=Ge(i.map((m,p)=>p).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const p=t==="cho"?ma(m,e.jung,e.jong):t==="jung"?ma(e.cho,m,e.jong):ma(e.cho,e.jung,m),h=Jr(p,n);d.has(h)||(d.add(h),c.push(p))}return c}function os(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=io(e,a,r);if(d.some(p=>!p))return null;const u=nr(t);let m=u&&t?d.map((p,h)=>Oa(p,t)?h:-1).filter(p=>p>=0):[0,1];if(i!=null&&(m=m.filter(p=>p!==i)),!m.length)return null;for(const p of Ge(m)){const h=s[p];if(!n.has(h))continue;const f=so(c[p],u??"cho",h,40,a),g=[];for(const b of f)if(b!==h&&n.has(b)&&!g.includes(b)&&g.push(b),g.length>=2)break;if(!(g.length<2))return{question:e,distractors:[h,...g]}}return null}function rs(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(p=>$e(p));if(c.some(p=>!p))return null;const d=io(e,a,r);if(d.some(p=>!p))return null;const u=nr(t),m=u&&t?d.map((p,h)=>Oa(p,t)?h:-1).filter(p=>p>=0):[0,1,2];if(!m.length)return null;for(const p of Ge(m))for(const h of Ge([0,1,2].filter(f=>f!==p&&(i==null||f===i)))){const f=[0,1,2].filter(C=>C!==h),g=f.map(C=>s[C]).join("");if(!n.has(g))continue;const b=f.indexOf(p),x=so(c[p],u??"cho",s[p],40,a),v=[];for(const C of x){const y=f.map(k=>s[k]);y[b]=C;const _=y.join("");if(_!==g&&n.has(_)&&!v.includes(_)&&v.push(_),v.length>=2)break}if(!(v.length<2))return{question:e,distractors:[g,...v]}}return null}function ns(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=nr(t);for(const{remain:m,dropped:p,droppedEnd:h}of Ge(d)){if(i!=null&&h!==i||m===e||!n.has(m)||!n.has(p))continue;const f=[...m],g=f.map(v=>$e(v));if(g.some(v=>!v))continue;const b=io(m,a,r);if(b.some(v=>!v))continue;const x=u&&t?b.map((v,C)=>Oa(v,t)?C:-1).filter(v=>v>=0):f.map((v,C)=>C);if(x.length)for(const v of Ge(x)){const C=so(g[v],u??"cho",f[v],40,a),y=[];for(const _ of C){const k=[...f];k[v]=_;const w=k.join("");if(w!==m&&n.has(w)&&!y.includes(w)&&y.push(w),y.length>=2)break}if(y.length>=2)return{question:e,distractors:[m,...y]}}}return null}function is(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong===0)return null;const c=ma(s.cho,s.jung,0),d=so({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const ss=Ze.indexOf("\u3147");function ls(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=$e(a.get(e)||e);if(!s||s.jong!==0||s.cho===ss)return null;const c=ma(ss,s.jung,0),d=so({cho:ss,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function cs(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function ds(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(C=>$e(C));if(m.some(C=>!C))return null;const p=io(e,a,r);if(p.some(C=>!C))return null;const h=C=>a.get(C)??C,f=h(e),g=!!t&&(bt(t.cho)||bt(t.jung)||bt(t.jong)),b=!!s&&(bt(s.cho)||bt(s.jung)||bt(s.jong)),x=C=>{let y=u+"|"+C+"|";for(let _=0;_<u;_++)y+=_===C?"*":d[_];return y};let v;if(i!=null){if(i>=u||g&&!Oa(p[i],t))return null;v=[i]}else g?v=p.map((C,y)=>Oa(C,t)?y:-1).filter(C=>C>=0):v=Array.from({length:u},(C,y)=>y);for(const C of Ge(v)){const y=n.get(x(C))??[],_=[],k=[];for(const D of y){if(D===e)continue;const H=[...D].map(N=>$e(N)),$=m[C],E=H[C];if(!$||!E)continue;let R=0;if($.cho!==E.cho&&R++,$.jung!==E.jung&&R++,$.jong!==E.jong&&R++,!(R<c||h(D)===f))if(b){const N=io(D,a,r)[C];N&&Oa(N,s)?_.push(D):k.push(D)}else _.push(D)}if(!_.length)continue;const w=Ge(_)[0],S=[],L=new Set([f,h(w)]),B=b?k:_.filter(D=>D!==w);for(const D of Ge(B)){const H=h(D);if(!L.has(H)&&(L.add(H),S.push(D),S.length>=2))break}if(!b&&S.length<2)for(const D of Ge(y)){if(D===e||D===w)continue;const H=h(D);if(!L.has(H)&&(L.add(H),S.push(D),S.length>=2))break}if(!(S.length<2))return{question:e,distractors:[w,...S]}}return null}function Qr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const us="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function ps(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Gu(e){return ps(e)?us:e}function Uu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Yu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function qu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Ku(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Zu="__ihab_core_word_pool__";function mw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Xu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Zu]=r,mw()}function So(){return globalThis[Zu]??null}const Bo=globalThis;function hs(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ju(e){Bo.__ihabTrainingTimeLogger=e}function ms(e){hs("time",()=>Bo.__ihabTrainingTimeLogger?.(e))}function Qu(e){Bo.__ihabTrainingCompletionLogger=e}function bs(e){hs("completion",()=>Bo.__ihabTrainingCompletionLogger?.(e))}function ep(e){Bo.__ihabCrosswordLogger=e}function tp(e){hs("crossword",()=>Bo.__ihabCrosswordLogger?.(e))}function aa(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function gs(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function fs(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:aa(r.contextCode)??aa(r.itemId)??aa(r.itemCode)??aa(r.id),question:aa(r.question)??aa(r.sentence)??aa(r.word)??aa(r.targetSyllable),answer:aa(r.answer),selected:aa(r.selectedText)??aa(r.selected),correct:gs(r)}}):[]}function ap(e){return e.filter(t=>t.correct===!1)}let op=null,rp=null,np=null;function ip(e){op=e}function sp(e){rp=e}function lp(e){np=e}async function cp(e,t){try{return await op?.(e,t)??null}catch{return null}}async function dp(){try{return await rp?.()??null}catch{return null}}async function up(e,t){try{return await np?.(e,t)??null}catch{return null}}const en=globalThis;function pp(e){en.__ihabNoiseSettingsStore=e}async function vs(){try{return await en.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function xs(e){const t=a=>{};try{const a=en.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ir(e){try{en.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function sr(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const hp=sr;function mp(e,t){return`${e}/${sr(t)}.mp3`}function bp(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??sr;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await ui(d)){const u=await Go(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function _s(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const No="Asia/Seoul";function gp(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:No,year:"numeric",month:"short",day:"numeric"})}function fp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:No,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function vp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:No,year:"numeric",month:"short",day:"numeric"})}function xp(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:No,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function _p(e){return new Date(e).toLocaleString("ko-KR",{timeZone:No,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Cp(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:No,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function tn(){return Da(new Date)}function Da(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function an(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function on(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=Da(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),p=r?u:String(Number(u));return`${c}${a}${m}${a}${p}${n?".":""}`}function yp(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function wp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:Da(t).replace(/-/g,".")}}}function kp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function lr(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function rn(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function cr(e){return(e??0).toLocaleString("ko-KR")}const bw=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],gw=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let Cs=null;function Ap(e){Cs=e}function nn(){return Cs?.topicTypes??bw}function ys(){return Cs?.trainingTypes??gw}const Sp="ihab_theme",fw="light";function ws(){try{const e=localStorage.getItem(Sp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return fw}function ks(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(Sp,e)}catch{}}function Bp(){ks(ws())}const Np="ihab_font_scale",vw="medium",xw=["medium","large1","large2","large3"];function As(){try{const e=localStorage.getItem(Np);if(xw.includes(e))return e}catch{}return vw}function Ss(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(Np,e)}catch{}}function Dp(){Ss(As())}const Fa=[],Ha=[],Va=[],Wa=[],dr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ur={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},_w={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let Bs=null,jp=null,Ga=null;function Ns({counts:e,forceRefresh:t}={}){const a=Object.assign({},_w,e||{}),r=tn(),n=Da(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&jp===r&&Bs===i&&Ga)return Object.assign(dr,Ga.today),Object.assign(ur,Ga.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:dr,yesterday:ur};const s={LISTEN_IN_NOISE:ta(Fa,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:ta(Ha,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:ta(Va,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:ta(Wa,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Ga&&Bs===i&&Ga.yesterday&&Ga.yesterday.date===n&&(c=Ga.yesterday.selection),c||(c={LISTEN_IN_NOISE:ta(Fa,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:ta(Ha,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:ta(Va,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:ta(Wa,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(dr,s),Object.assign(ur,c),jp=r,Bs=i,Ga={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:dr,yesterday:ur}}function Ep(){return{today:dr,yesterday:ur}}function Ds(){return{LISTEN_IN_NOISE:Fa,SHORT_STORY:Ha,LONG_STORY:Va,ORDERING_SENTENCE:Wa}}let js=!1,pr=null;async function Cw(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Es(){if(!js)return pr||(pr=(async()=>{const e=await Cw();if(!e){pr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Fa.push(d):i==="SHORT_STORY"?Ha.push(d):i==="LONG_STORY"?Va.push(d):i==="ORDERING_SENTENCE"&&Wa.push(d)}}}catch{pr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{Ns()}catch{}js=!0})(),pr)}function Tp(){return js}async function Ts(e=3e3){const t=Es();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const sn=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Lp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Ls={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function yw(e){return sn.map(t=>{const a=Ls[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let ln=null,Mp=null,$p=null;function ww(){const e=So();if(e&&e.entries.length>0){const t=oo();if(ln&&Mp===e&&$p===t)return ln;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return ln=r,Mp=e,$p=t,ln}return[]}const oa=new Proxy([],{get(e,t){const a=ww(),r=a[t];return typeof r=="function"?r.bind(a):r}});function cn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ra(e,t){if(t>=e.length)return Ge(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let Ms=null,Rp=null;function lo(){const e=So();if(Ms&&Rp===e)return Ms;const t=new Map;for(const a of oa)a.w&&t.set(a.w,a.pron);return Ms=t,Rp=e,t}function Ft(e){return lo().get(e)||e}function $s(e,t,a=new Set){const r=[];for(const n of Ge(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let kw=0;function wt(e){return`${e}-rt-${++kw}`}function hr(e){const t=Or();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)yi(r)===!0&&a.add(r);return a}const dn=new Map;let Pp=null,zp=null;function mr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Ip(e){const t=mr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${mr(a.cho)}/${mr(a.jung)}/${mr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=mr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Ht(e){const t=So(),a=oo();(t!==Pp||a!==zp)&&(dn.clear(),Pp=t,zp=a);const r=Ip(e);return dn.has(r)||dn.set(r,Sw(e)),dn.get(r)}function Aw(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>Di(s):s=>ji(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function Sw(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",p=m&&u>=2,h=t==="count",f=a?new Set(Array.isArray(a)?a:[a]):null,g=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[Aw(r),g?A=>g.has(wo(A)):null].filter(A=>A!=null):[],x=t==="random"||t===null,v=x||h,C=x||p||h;let y=oa.filter(A=>!A.w||s&&(!A.grade||!s.has(A.grade))?!1:C?!0:Array.isArray(A.p)&&A.p.length>0);f&&(y=y.filter(A=>{for(const T of f)if($y(A.w,T))return!0;return!1})),b.length>0&&(y=y.filter(A=>{const T=d==="pron"?Ft(A.w):A.w;return b.every(P=>P(T))})),n&&(y=y.filter(A=>A.w[0]===n));let _;if(i){const A=new Set;for(const T of y)if(A.add(T.w),Array.isArray(T.p))for(const P of T.p)A.add(P);if(v)for(const T of oa)T.w&&A.add(T.w);_=hr(A)}else{const A=new Set;for(const T of y)if(A.add(T.w),Array.isArray(T.p))for(const P of T.p)A.add(P);if(v)for(const T of oa)T.w&&A.add(T.w);_=A}let k=null;if(p){const A=new Set;for(const T of oa)T.w&&A.add(T.w);k=i?hr(A):A}const w=y.filter(A=>_.has(A.w)),S=600,L=Array.from(_),B=L.length>S?ra(L,S):L,D=h&&r!=null&&(bt(r.cho)||bt(r.jung)||bt(r.jong)),H=2500,$=new Map;if(h&&!D&&u>=2){for(const A of L){const T=wo(A),P=$.get(T);P?P.push(A):$.set(T,[A])}for(const[A,T]of $)T.length>H&&$.set(A,ra(T,H))}const E=ki(),R=D?zi(r,L,E,c,d,Ft):null,N=500,V=1500,J=e.fullCount?w:t==="random"?w.length>N?ra(w,N):w:w.length>V?ra(w,V):w,Q=oo(),ee=[];for(const A of J){let T;const P=Ft(A.w);if(p)T=Oy(A.w,t,u,k,24).filter(F=>Ft(F)!==P);else if(h)D?T=(R.get(A.w)??[]).filter(F=>Ft(F)!==P):u<=1?T=Fr(A.w,Q,{okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}):T=($.get(wo(A.w))??[]).filter(F=>{if(F===A.w||Ft(F)===P)return!1;const W=Fy(A.w,F);return u>=5?W>=5:W===u});else if(x)T=B.filter(F=>F!==A.w&&F.length===A.w.length&&Ft(F)!==P);else{const F=t;T=Fr(A.w,Q,{kind:F,okSet:_,pronOf:Ft,decompOf:E,sameStructureOnly:!1}),T.length===0&&(T=(B.length>30?ra(B,30):B).filter(W=>W!==A.w&&Ai(A.w,W)===t&&Ft(W)!==P))}if(c&&T.length>0&&(m||h&&!D)){const F=E(Ft(A.w));T=T.filter(W=>!Qo(F,E(Ft(W))))}T.length!==0&&ee.push({word:A,usable:T})}return ee}async function Op(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Ht(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ge(i)){if(s.length>=r)break;const d=$s(c.usable,n);if(d.length<n)continue;const u=Ge([c.word.w,...d]);s.push({id:wt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function Bw(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ge([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=cn(u);if(!m)continue;const p=n.filter(g=>g.word.w!==d&&g.word.s===c.word.s&&!(g.word.pron||g.word.w).includes(m)&&g.word.pron!==c.word.pron);if(p.length<r)continue;const h=$s(p.map(g=>g.word.w),r);if(h.length<r)continue;const f=Ge([d,...h]);i.push({id:wt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:f,answerIndex:f.indexOf(d)})}return i}async function Nw(e){const{count:t=10}=e,a=(await Ht(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=cn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=cn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:wt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function Dw(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Ht({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(h=>h.word.w),s=new Map(n.map(h=>[h.word.w,h.word.pron])),c=h=>(s.get(h)||h)[0]??"",d={};for(const h of n){const f=c(h.word.w);f&&(d[f]||(d[f]=[]),d[f].push(h.word.w))}const u=Object.entries(d).filter(([,h])=>h.length>=2).map(([h])=>h);if(u.length===0)return[];const m=[],p=Ge([...u]);for(let h=0;m.length<a&&h<a*4;h++){const f=p[h%p.length],g=d[f];if(g.length<2)continue;const b=Ge([...g]),x=b[0],v=b[1];if(!x||!v||x===v||(s.get(x)||x)===(s.get(v)||v))continue;const C=s.get(v)||v,y=i.filter(w=>c(w)!==f&&w!==x&&w!==v&&w.length===v.length&&(s.get(w)||w)!==C);if(y.length<r)continue;const _=$s(y,r);if(_.length<r)continue;const k=Ge([v,..._]);m.push({id:wt("SWS-item"),index:m.length+1,sourceWord:x,targetSyllable:f,word:v,choices:k,answerIndex:k.indexOf(v)})}return m}function Fp(e,t,a){return ra(e,t).map((r,n)=>{const i=cn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,p)=>m!==c[p]),u=Ge(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:wt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Hp(e,t,a){const{count:r=10}=t,n=lo(),i=oa.filter(f=>f.w&&f.s===e),s=t.excludeNoImage?hr(i.map(f=>f.w)):null,c=s?i.filter(f=>s.has(f.w)):i,d=new Set(c.map(f=>f.w)),u=cs(d),m=t.phonemeView??"char",p=t.composition??null,h=[];for(const f of Ge(c)){if(h.length>=r)break;const g=ds(f.w,p,n,m,u,null,null);if(!g)continue;const b=g.distractors[0],x=[...f.w],v=[...b],C=x.findIndex((y,_)=>y!==v[_]);h.push({id:wt(a),index:h.length+1,word:f.w,original:f.w,changed:b,changedFrom:C>=0?x[C]:"",changedTo:C>=0?v[C]:"",distractors:g.distractors.slice(1)})}return h}async function jw(e){return Hp(2,e,"CS2-item")}async function Ew(e){return Hp(3,e,"CS3-item")}async function Tw(e){const t=(await Ht({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Fp(t,e.count??10,"CP1-item")}async function Lw(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Ht({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Fp(a,e.count??10,"CP2-item")}async function Mw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===2);return ra(a,t).map((r,n)=>({id:wt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function $w(e){const{count:t=10}=e,a=(await Ht({...e})).filter(r=>r.word.s===3);return ra(a,t).map((r,n)=>({id:wt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function Rw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===2),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=os(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w],h=p[0]===u?p[1]:p[0];s.push({id:wt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function Pw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s===3),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=rs(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=[...c.word.w];let h="";for(let f=0;f<p.length;f++)if(p.filter((g,b)=>b!==f).join("")===u){h=p[f];break}s.push({id:wt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:u,distractors:m})}return s}async function zw(e){const{count:t=10}=e,a=(await Ht({...e})).filter(c=>c.word.s>=2),r=lo(),n=new Set(oa.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=ns(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,p=c.word.w,h=p.startsWith(u)?p.slice(u.length):p.endsWith(u)?p.slice(0,p.length-u.length):"";s.push({id:wt("DPC-item"),index:s.length+1,original:p,word:p,dropped:h,missingResult:u,distractors:m})}return s}async function Iw(e){const{count:t=10}=e,a=(await Ht({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ra(a,3);return{id:wt("LRO-item"),index:n+1,sequence:i,choices:Ge(i)}})}function un(e,t,a){const r=oa.filter(s=>s.w&&s.s===e),n=t?hr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=$e(s.w);if(!c||!a(c))continue}i.push(s)}return i}function Ow(e){const t=un(1,e.excludeNoImage??!1,a=>a.jong===0);return ra(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:wt("M2P-item"),index:r+1,parts:[Ze[n.cho],ct[n.jung]],answer:a.w,word:a.w}})}function Fw(e){const t=un(1,e.excludeNoImage??!1,a=>a.jong>0&&!yo[a.jong]);return ra(t,e.count??10).map((a,r)=>{const n=$e(a.w);return{id:wt("M3P-item"),index:r+1,parts:[Ze[n.cho],ct[n.jung],mt[n.jong]],answer:a.w,word:a.w}})}function Hw(e){const t=Xr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=un(t.syllables,e.excludeNoImage??!1,t.syllable),r=lo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=is(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:wt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function Vw(e){const t=Xr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=un(t.syllables,e.excludeNoImage??!1,t.syllable),r=lo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=ls(i.w,null,r);if(!s)continue;const c=$e(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:wt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const pn=new Map;let Vp=null,Wp=null;async function Gp(e,t={}){const a=So(),r=oo();(a!==Vp||r!==Wp)&&(pn.clear(),Vp=a,Wp=r);const n=`${e}:${Ip(t)}`;if(pn.has(n))return pn.get(n);const i=await Gw(e,t);return pn.set(n,i),i}const Ww={SAME_SOUND_PICK:e=>Op("SSP",e),HEAR_AND_PICK_SAME:e=>Op("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Bw(e),SAME_OR_DIFF:e=>Nw(e),STARTS_WITH_SAME_SOUND:e=>Dw(e),LISTEN_AND_REMEMBER_ORDER:e=>Iw(e),MERGE_2_SYLLABLES:e=>Mw(e),MERGE_3_SYLLABLES:e=>$w(e),MERGE_2_PHONEMES:e=>Ow(e),MERGE_3_PHONEMES:e=>Fw(e),DROP_1_FROM_2SYLL:e=>Rw(e),DROP_1_FROM_3SYLL:e=>Pw(e),DROP_PART_FROM_COMPOUND:e=>zw(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>Hw(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Vw(e),CHANGE_1_SYLL_IN_2SYLL:e=>jw(e),CHANGE_1_SYLL_IN_3SYLL:e=>Ew(e),CHANGE_1_PHONEME_IN_1SYLL:e=>Tw(e),CHANGE_1_PHONEME_IN_2SYLL:e=>Lw(e)};async function Gw(e,t={}){const a=Ww[e];return a?await a(t):[]}async function Uw(e){const t=[null,"count"],a=Object.keys(Ao);let r=0;for(const n of t)for(const i of a){const s=Ao[i];Gp(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function Yw(e){return(await Ht({...e,fullCount:!0})).length}async function qw(e={}){const t=[];for(const c of oa)c.w&&t.push(c.w);const a=e.excludeNoImage?hr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(wo(c));for(const d of c){const u=$e(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(ct[u.jung]),u.jong>0)){i.add(mt[u.jong]);const m=yo[u.jong];m&&m.forEach(p=>i.add(p))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Up={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Yp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},qp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Kp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Zp=5,Xp=5;function Jp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Qp={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"};var Kw=Object.freeze({__proto__:null,CAPABILITY:Ao,CHOSEONG:Ze,CORE_VERSION:Lr,JONGSEONG:mt,JUNGSEONG:ct,LONG_STORIES:Va,NETWORK_ERROR_MESSAGE:us,NOISE_DATAS:Fa,ORDER_SETS:Wa,PLAN_FEATURES:Up,PLAN_LIMITS:qp,SHORT_STORIES:Ha,TIER_RANK:Yp,TOPIC_TYPES:Lp,TRAINING_TYPES:sn,TRAINING_TYPE_I18N_KEY:Ls,WORD_SUGGESTION_ACCOUNT_LIMIT:Xp,WORD_SUGGESTION_EXISTING_ERROR:Qp,WORD_SUGGESTION_WEEKLY_QUOTA:Zp,applyFontScale:Ss,applyTheme:ks,buildChangeWholeSyllableProblem:ds,buildDropCompoundProblem:ns,buildDropContrast3Problem:rs,buildDropContrastProblem:os,buildDropFinalConsonantProblem:is,buildMultiPartPosContrast:zi,buildPairIndex:yu,buildRemoveConsonantProblem:ls,buildSyllableMaskIndex:cs,bulkSetImageExistence:uu,cardQuestionTitle:Vu,checkImageExists:Xo,classifyPairDifficulty:Ai,clearAudioExistsCache:au,clearImageExistenceCache:wi,clearPairIndexCache:$i,composeSyllable:ma,computeDailySelection:Ns,configureImageResolver:cu,configureNoiseSettingsStore:pp,configurePronunciationResolver:ru,configureStorage:di,configureTTS:tu,configureTrainingCategories:Ap,copyText:_s,createDecompCache:ki,createTTSUrlResolver:bp,dateToDb:kp,downloadCsvText:Ku,downloadSound:Rr,ensureTrainingDataLoaded:Ts,escapeCsvField:qu,fileExists:ui,filterContrastCandidates:Pi,finalToPhoneme:Zr,firstChoseongOf:Si,formatCount:cr,formatDateKo:gp,formatDateLocale:vp,formatDateLongKo:fp,formatDateLongLocale:xp,formatDatetimeKo:_p,formatPhone:yp,formatRelativeTime:an,formatTimeHM:rn,formatYmd:on,getAssetBaseUrl:li,getDailySelection:Ep,getElementAnalyser:xi,getElementVolume:_o,getErrorMessage:Qr,getImageExistenceStats:Or,getImageExistsCached:yi,getImageResolver:Ia,getNoiseBaseUrl:pi,getNoiseFileGain:Pr,getPairIndex:oo,getPlanTier:Kp,getPronunciationResolver:bi,getSavedFontScale:As,getSavedTheme:ws,getSignedOrPublicUrl:Go,getTTSFallbackUrlResolver:mi,getTTSUrlResolver:Uo,getTodayKst:tn,getTopicTypes:nn,getTrainingPools:Ds,getTrainingTypes:ys,getWordPool:So,hasQuestionWordConstraint:Ru,hasSel:bt,hasStructureContrast:Qo,initFontScale:Dp,initTheme:Bp,isAllChoseong:Ni,isManualOnlyType:zu,isNetworkErrorMessage:ps,isSyllablePattern:Ei,isThisWeekPick:Jp,isTrainingDataLoaded:Tp,isValidQuestionWord:Pu,itemCorrectness:gs,jamoToNamesForSpeech:Wu,loadGameLeaderboard:up,loadMyGameRanks:dp,loadNoiseSettings:vs,loadTrainingData:Es,logCrossword:tp,logTrainingCompletion:bs,logTrainingTime:ms,matchSyllables:io,matchesChoseongSearch:pu,matchesSyllablePattern:Ti,matchesWordQuery:Co,mergeQuestionText:ts,minimalPairDistractors:Fr,normalizeDate:wp,officialSoundPath:mp,parseSortValue:Yu,parseSyllable:$e,patternToComposition:vu,phonemePartsOf:Hu,pickEuRo:Ji,pickEulReul:qi,pickEunNeun:Zi,pickIga:Ui,pickWaGwa:Xi,prewarmImageCache:du,primarySelPart:nr,readLevel:_i,reorderArray:Qi,reportAppliedNoiseSettings:ir,resolveAssetUrl:Wo,resolveSoundPath:$r,resumeAudioMeter:qo,routeElementAudio:xo,sample:ta,saveNoiseSettings:xs,searchAndRankWords:_u,setAssetBaseUrl:Qd,setCrosswordLogger:ep,setElementVolume:pa,setGameLeaderboardLoader:lp,setGameRanksLoader:sp,setGameScoreSubmitter:ip,setTrainingCompletionLogger:Qu,setTrainingTimeLogger:Ju,setWordPool:Xu,shuffle:Ge,sortToValue:Uu,soundOf:Jr,speak:Zd,stopSpeaking:Xd,submitGameScore:cp,syllMatchesComp:Oa,syllableContrasts:so,syllableLength:wo,syllablePron:as,toBase64UrlSafe:hp,toChoseong:Bi,toItemResults:fs,toKstHm:Cp,toKstYmd:Da,toStandardPronunciation:Tu,toStorageName:sr,toUserErrorMessage:Gu,validateSyllableSearchInput:xu,withEuRo:$u,withEulReul:Ki,withEunNeun:Lu,withIga:Yi,withWaGwa:Mu,wordContainsChoseong:mu,wordContainsJongseong:gu,wordContainsJungseong:bu,wordHasNoCoda:Di,wordHasSyllableMatching:ji,wrongItems:ap});function Zw(e){return typeof window>"u"?"":Ny.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function Xw(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Wo(e):/^(Logo|Symbol)/i.test(u)?m=Wo(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const h=p.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){n("mask");return}if(h.startsWith("image/")){n("img");return}const f=await fetch(t);if(!f.ok)throw new Error("not ok");const g=await f.text();if(u)return;if(/^\s*<svg[\s>]/i.test(g)){const b=Zw(g);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{u||(m=URL.createObjectURL(p),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function He(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",h=s??"iconRenderer-icon-svg",f=typeof t=="string"?t:null,g=YC(f),{iconToUse:b,mode:x,svgText:v,blobUrl:C}=Xw(f),y=(S,L={})=>o.jsx("span",{className:u,style:c,...L,children:S}),_=(S,L={})=>o.jsx("img",{src:S,alt:typeof a=="string"?a:a?String(a):"",className:m,...L});if(!t)return null;if(typeof t!="string")return y(t);if(t==="none")return y(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(g)try{return y(l.createElement(g,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(x==="mask"){const S={"--icon-url":C?`url(${C})`:`url(${b})`};return y(o.jsx("span",{className:p,style:S}),{"aria-hidden":"true"})}return x==="img"?y(_(b,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):x==="inline"?y(o.jsx("span",{className:h,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):y(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return _(Wo(t),{style:c,onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return y(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function eh({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(He,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(He,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var Jw=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ae(Jw);function th({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=he.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(He,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(He,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var Qw=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ae(Qw);function ah({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(He,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(He,{icon:"arrow-right",size:18})})]})]})})}function oh({as:e="div",className:t="",children:a,storage:r,...n}){r&&di({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var e4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ae(e4);function rh({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=he.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const p=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:p,role:"note",children:a.map((f,g)=>o.jsxs("div",{className:"notice-box__inner",children:[f.title?o.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,o.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?o.jsx("div",{children:f.lines.map((b,x)=>o.jsx("span",{className:"notice-box__line body-3",children:b},x))}):f.children??null})]},g))});const h=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((f,g)=>o.jsx("li",{className:"notice-box__line",children:f},g))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:p,role:"note",children:[h,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var t4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ae(t4);var a4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ae(a4);function Rs(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(br)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const br='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function ja(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:p=!1,isMobilePopup:h=!1,useBorder:f=!0,header:g}=e||{},b=l.useRef(null),[x,v]=l.useState({position:"fixed",left:0,top:-9999}),[C,y]=l.useState(!1),[_,k]=l.useState("bottom"),[w,S]=l.useState(!1),[L,B]=l.useState(!1),D=!t&&!a,H=l.useCallback((N=!1)=>{if(L&&h)return;const V=a?a.getBoundingClientRect():t;if(!V||!b.current)return;const J=b.current,{offsetWidth:Q,offsetHeight:ee}=J,A=window.innerWidth,T=window.innerHeight,P=A-V.right,F=V.left,W=V.top,te=T-V.bottom;let O=0,Y=0,I="top";if(W>=ee+r)I="top",Y=V.top-r-ee,O=V.left+V.width/2-Q/2;else if(te>=ee+r)I="bottom",Y=V.bottom+r,O=V.left+V.width/2-Q/2;else if(P>=Q+r)I="right",O=V.right+r,Y=V.top+V.height/2-ee/2;else if(F>=Q+r)I="left",O=V.left-r-Q,Y=V.top+V.height/2-ee/2;else{const ye=Math.max(W,te,P,F);ye===W?(I="top",Y=V.top-r-ee,O=V.left+V.width/2-Q/2):ye===te?(I="bottom",Y=V.bottom+r,O=V.left+V.width/2-Q/2):ye===P?(I="right",O=V.right+r,Y=V.top+V.height/2-ee/2):(I="left",O=V.left-r-Q,Y=V.top+V.height/2-ee/2)}const ce=Number(n)||8;O=Math.min(Math.max(O,ce),A-Q-ce),Y=Math.min(Math.max(Y,ce),T-ee-ce);const pe=Math.round(O),me=Math.round(Y);N&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${me}px`,b.current.dataset.placement=I):(k(I||_),v({position:"fixed",left:pe,top:me}),S(!0))},[L,h,a,t,r,n,_]);l.useLayoutEffect(()=>{if(D)return;if(L&&h){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}H();const N=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(N)},[t,a,r,m,n,D,L,h,H]),l.useEffect(()=>{if(D||L&&h||!b.current||typeof ResizeObserver>"u")return;const N=new ResizeObserver(()=>{t&&H()});return N.observe(b.current),()=>N.disconnect()},[t,m,n,D,L,h,H]),l.useEffect(()=>{if(D||L&&h)return;const N=()=>H(!0);return window.addEventListener("resize",N),document.addEventListener("scroll",N,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",N),document.removeEventListener("scroll",N,{capture:!0})}},[t,r,m,n,D,L,h,H]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const N=window.matchMedia("(max-width: 768px)"),V=()=>B(!!N.matches);V();try{N.addEventListener?N.addEventListener("change",V):N.addListener(V)}catch{try{N.addListener(V)}catch{}}return()=>{try{N.removeEventListener?N.removeEventListener("change",V):N.removeListener(V)}catch{}}},[]);const $=l.useRef(!1),E=l.useCallback((N=!1)=>{if(!(C||$.current)){if($.current=!0,N){y(!0);try{i&&i()}catch{}return}y(!0),setTimeout(()=>{i&&i()},200)}},[C,i,y]);l.useEffect(()=>{const N=Q=>{const ee=b.current;if(!ee)return;const A=Q.target;if(A&&!ee.contains(A)){try{if(A.closest&&A.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},V=Q=>{const ee=b.current;if(!ee)return;const A=Q.target;if(A&&!ee.contains(A)){try{if(A.closest&&A.closest("[data-tooltip-ignore]"))return}catch{}s&&E(!0)}},J=Q=>{if(Q.key==="Escape"){Q.stopPropagation(),E();return}if(Q.key==="Tab"){const ee=b.current;if(!ee)return;const A=ee.querySelectorAll(br);if(!A||A.length===0)return;const T=A[0],P=A[A.length-1],F=document.activeElement;Q.shiftKey?F===T&&(Q.preventDefault(),P.focus()):F===P&&(Q.preventDefault(),T.focus())}};return document.addEventListener("pointerdown",N,!0),document.addEventListener("click",V,!0),document.addEventListener("keydown",J),()=>{document.removeEventListener("pointerdown",N,!0),document.removeEventListener("click",V,!0),document.removeEventListener("keydown",J)}},[i,s,E]),l.useEffect(()=>{const N=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",N),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",N)}},[E]);const R=o.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${f?"tooltip-content--bordered":""} ${C?"is-closing":""} ${c} ${L&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:D?{}:{...x,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":_,"data-left":D?"":x.left,"data-top":D?"":x.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[g!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:g}),m]});if(D||typeof document>"u")return R;if(p||L&&h){const N=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&E(!0)}}),R]});return Kt.createPortal(N,document.body)}return Kt.createPortal(R,document.body)}var o4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ae(o4);function va(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(ja,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var r4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__dot{border-radius:50%;flex-shrink:0;height:8px;margin-top:6px;width:8px}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ae(r4);function Ua(e){const{t}=he.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},m=(Array.isArray(n)?n:n?[n]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:o.jsx(ja,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:m.map((p,h)=>o.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[s&&m.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),p.color&&o.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),o.jsx("span",{children:p.text})]},h))})]})})}function ie(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:p,children:h,ariaLabel:f,variant:g="default",align:b="center",selected:x,toggleable:v=!1,disabled:C=!1,useLabel:y=!0,useBorder:_=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:L,minWidth:B,onClick:D,onDisabledClick:H,showTooltipInfo:$=!1,tooltipInfoText:E=null,tooltipDescription:R=null,iconSize:N="medium",iconColor:V,shape:J="rounded",color:Q,className:ee,...A}=e,T=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),P=T.match(/^\d+$/)?`button${T}`:`button-${T}`,F=Number(t),W=!isNaN(F)&&F<40?"button-2":"button-1",te=u??h,O=C||!!A.disabled,Y=O?w?"disabled-covered":S?"disabled-invisibled":"disabled":g,I=Y?`button--variant-${Y}`:"",ce=b?`button--align-${b}`:"",pe=J?`button--shape-${J}`:"",me=typeof V=="string"&&V.startsWith("--")?`var(${V})`:V,ye={...L?{width:typeof L=="number"?`${L}px`:L}:{},...B?{minWidth:typeof B=="number"?`${B}px`:B}:{},..._?{}:{"--button-border":O?"0":"1px solid transparent"},...me?{"--button-icon-color":me}:{},...Q?{"--color-main":Q}:{}},be=y===!1?"":te,M=Array.isArray(be)?be.length>0:!!be,U=!!d,oe=a??(M||c||U?"bar":"dot"),we=`${P}--${oe}`,de=l.useRef(null),z=l.useRef(O),[K,Z]=l.useState(!!x),[ge,je]=l.useState(!1),[Fe,Le]=l.useState(null),Te=l.useCallback(()=>je(!1),[]);l.useEffect(()=>{typeof x=="boolean"&&Z(x)},[x]),l.useEffect(()=>{if(z.current&&!O&&de.current){const ze=de.current;ze.blur(),ze.style.pointerEvents="none";const it=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(it)}z.current=O},[O]);const Ee=typeof x=="boolean"?!!x:K,Be=v||typeof x=="boolean"?Ee?"true":"false":void 0,Ue=_e("button",P,we,I,ce,pe,Ee?"is-selected":null,k?null:"button--no-bg",ee),at=`button__icon button__icon--${N}`,fe=Array.isArray(p)?p:p!==void 0?[p]:[],Oe=()=>{if(Array.isArray(be))return be.map((it,Bt)=>{const et=fe[Bt];return o.jsxs("span",{className:`button__label-text${et!==void 0?" button__label-text--has-sub":""}`,children:[it,et!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:et})]},Bt)});const ze=p!==void 0;return o.jsxs("span",{className:`button__label-text${ze?" button__label-text--has-sub":""}`,children:[be,m!=null&&o.jsx("span",{className:"button__count",children:m}),ze&&o.jsx("span",{className:"button__sub-label-text caption-1",children:p})]})},Re=ze=>{O||(typeof A.onMouseLeave=="function"&&A.onMouseLeave(ze),typeof x!="boolean"&&Z(!1),ze.currentTarget.blur())},Ke=ze=>{if(O){H?.(ze);return}typeof x!="boolean"&&v&&Z(it=>!it),D?.(ze)},Xe=l.useCallback(()=>{($||R)&&(je(!0),Le(de.current?.getBoundingClientRect()??null))},[$,R]),Je=l.useCallback(()=>{($||R)&&(je(!1),Le(null))},[$,R]),Ve={...A};delete Ve.disabled,delete Ve.className,delete Ve.faded,delete Ve.useFaded,delete Ve.loading,delete Ve.onMouseLeave,delete Ve.onPointerEnter,delete Ve.onPointerLeave,delete Ve.onFocus,delete Ve.onBlur,O&&(Object.keys(Ve).forEach(ze=>{/^on[A-Z]/.test(ze)&&typeof Ve[ze]=="function"&&delete Ve[ze]}),Ve["aria-disabled"]="true");const vt=(typeof $=="string"?$:null)??(typeof E=="string"?E:null)??(typeof f=="string"?f:null)??(typeof te=="string"?te:null)??void 0,gt=typeof f=="string"?f:typeof te=="string"?te:vt,qe=(ze,it)=>o.jsx(He,{icon:ze,label:it??gt,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),dt=()=>oe==="dot"?o.jsxs(o.Fragment,{children:[qe(c),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:qe(c)}),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()})]}),U&&o.jsx("span",{className:"button__right",children:qe(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:qe(c,f??te)}),M&&o.jsx("span",{className:`button__label ${W}`,children:Oe()}),U&&o.jsx("span",{className:"button__right",children:qe(d)})]}),Pe=!!n&&!O;return o.jsxs(o.Fragment,{children:[o.jsx(Pe?"a":"button",{...Ve,ref:de,...Pe?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:O&&!H},className:Ue,"aria-pressed":Be,"aria-label":gt,"aria-disabled":Pe&&O?!0:void 0,style:ye,onClick:Ke,onMouseLeave:Re,onPointerEnter:ze=>{Xe(),!O&&typeof A.onPointerEnter=="function"&&A.onPointerEnter(ze)},onPointerLeave:ze=>{Je(),!O&&typeof A.onPointerLeave=="function"&&A.onPointerLeave(ze)},onFocus:ze=>{Xe(),!O&&typeof A.onFocus=="function"&&A.onFocus(ze)},onBlur:ze=>{Re(ze),Je(),!O&&typeof A.onBlur=="function"&&A.onBlur(ze)},children:dt()}),ge&&R?o.jsx(Ua,{anchorRect:Fe,title:R.title,items:R.items,onClose:Te}):ge&&vt?o.jsx(va,{anchorRect:Fe,text:vt,onClose:Te}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var n4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ae(n4);var i4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ae(i4);const Do={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Ps=new WeakMap;function zs(e){if(e)return Ps.get(e)}function kt(e,t){e&&(e.style.setProperty(Do.title,t.title),e.style.setProperty(Do.description,t.description),Ps.set(e,t))}function At(e){e&&(e.style.removeProperty(Do.title),e.style.removeProperty(Do.description),Ps.delete(e))}const Is={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Os(){const e=lt(Is,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var s4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ae(s4);const Fs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=lt(Fs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var l4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ae(l4);const Vs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ws(){const e=lt(Vs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var c4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ae(c4);const Gs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=lt(Gs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var d4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ae(d4);const Ys={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=lt(Ys,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var u4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ae(u4);const Ks={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Zs(){const e=lt(Ks,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var p4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ae(p4);const Xs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Js(){const e=lt(Xs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var h4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ae(h4);const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function el(){const e=lt(Qs,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var m4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ae(m4);const tl={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function al(){const e=lt(tl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var b4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ae(b4);const ol={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function rl(){const e=lt(ol,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var g4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ae(g4);const nl={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function il(){const e=lt(nl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var f4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ae(f4);const sl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ll(){const e=lt(sl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var v4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ae(v4);const cl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function dl(){const e=lt(cl,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var x4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ae(x4);const ul={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function pl(){const e=lt(ul,kt,At);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const nh=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],hl={main:Os,soft:Hs,sub:Ws,deep:Us,softSub:qs,warm:Zs,dark:Js,radial:el,diagonal:al,dots:rl,outline:il,success:ll,naver:dl,instagram:pl};function hn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=x=>Math.max(a,Math.min(r,Number(x))),[c,d]=l.useState(()=>{try{const x=localStorage.getItem(e),v=x?Number(x):1;return Number.isFinite(v)?v:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=x=>{d(typeof x=="function"?v=>s(x(v)):s(x))},m=()=>u(x=>+(x+n).toFixed(6)),p=()=>u(x=>+(x-n).toFixed(6)),h=c<r-Number.EPSILON,f=c>a+Number.EPSILON,g=Math.round(t*c),b=Math.round(g*i);return{scale:c,setScale:u,increase:m,decrease:p,canIncrease:h,canDecrease:f,fontSize:g,lineHeight:b}}const mn=l.createContext(null);function _4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function na(e){const t=l.useContext(mn),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&_4(e)?t.mobile:r}function ml(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function gr(e,t){const a=ml(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const bl=" \xB7 ",ih=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(bl)?e.split(bl).pop()??e:e})(),gl=l.createContext(!1);function fl(e){const t=l.useContext(gl);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=ih?`${e}${bl}${ih}`:e,()=>{document.title=a}},[e,t])}function sh(){const{t:e}=he.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function lh(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const vl=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function xl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function ch(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function dh(e){const{t}=he.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const h={};vl.forEach(f=>{h[f.id]=xl([...f.keys])}),r(h),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(f=>{u({usage:f.usage??0,quota:f.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const p=l.useCallback(async h=>{i(h);try{h==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):h==="pairIndex"?$i():h==="imageCache"&&wi(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:p}}function uh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=oo();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Or();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function ph(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const p=l.useRef(null);l.useEffect(()=>{if(m.current)return;const v=p.current;v!==null&&v.length===t.length&&v.every((C,y)=>C===t[y])||(p.current=t,r(t))},[t]);const h=l.useCallback(v=>{i(v),c(!1),u({...v})},[]),f=l.useCallback(()=>c(!0),[]),g=l.useCallback(()=>c(!1),[]),b=l.useCallback((v,C)=>{r(v),i(C),c(!1)},[]),x=l.useCallback(v=>{r(C=>C.filter(y=>y!==v)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:h,startEditing:f,cancelEditing:g,commitEdit:b,remove:x}}const jo=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},C4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function hh(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=ph(C4,e),{year:p,month:h,day:f}=jo(),[g,b]=l.useState({year:p,month:h,day:f,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:g,setVisitForm:b,setVisit:x=>v=>b(C=>({...C,[x]:v})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:x=>{a(_=>[g,..._]);const{year:v,month:C,day:y}=jo();b({year:v,month:C,day:y,hour:"09",minute:"00",memo:""}),x?.()},handleVisitEditSave:()=>{m(x=>x.map(v=>v===r?c:v),c)},addVisit:x=>{a(v=>[x,...v])},removeVisit:x=>{a(v=>v.filter(C=>C!==x))},revertVisitEdit:(x,v)=>{a(C=>C.map(y=>y===v?x:y)),n(C=>C===v?x:C)}}}const mh=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,bn=e=>[...e].sort((t,a)=>{const r=mh(t),n=mh(a);return r<n?-1:r>n?1:0}),y4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function bh(e,t=[]){const a=l.useMemo(()=>bn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:p,commitEdit:h,remove:f}=ph(y4,a),[g,b]=l.useState([]),{year:x,month:v,day:C}=jo(),[y,_]=l.useState({year:x,month:v,day:C,hour:"09",minute:"00",memo:""}),k=R=>N=>_(V=>({...V,[R]:N})),w=R=>{n(Q=>bn([...Q,y]));const{year:N,month:V,day:J}=jo();_({year:N,month:V,day:J,hour:"09",minute:"00",memo:""}),R?.()},S=()=>{h(R=>bn(R.map(N=>N===i?u:N)),u)},L=l.useCallback(R=>{f(R)},[f]),B=l.useCallback(R=>{e({year:R.year,month:R.month,day:R.day,hour:R.hour,minute:R.minute,memo:R.memo}),f(R)},[e,f]),D=l.useCallback(R=>{n(N=>N.filter(V=>V!==R)),b(N=>[R,...N]),s(null)},[n,s]),H=l.useCallback(R=>{n(N=>bn([...N,R]))},[n]),$=l.useCallback(R=>{n(N=>N.filter(V=>V!==R))},[n]),E=l.useCallback((R,N)=>{n(V=>V.map(J=>J===N?R:J)),s(V=>V===N?R:V)},[n,s]);return{scheduleList:r,noShowList:g,addSchedule:H,removeSchedule:$,revertScheduleEdit:E,scheduleForm:y,setScheduleForm:_,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:p,handleScheduleSave:w,handleScheduleEditSave:S,handleScheduleDelete:L,handleScheduleToVisit:B,handleScheduleNoVisit:D}}const gn=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function gh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:f,status:g})=>!(t&&!f.memo.includes(t)||i!=="all"&&g!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),p=Math.min(c,m),h=l.useMemo(()=>u.slice((p-1)*Number(r),p*Number(r)),[u,p,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:p,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:h}}function _l(e,t,a){const{t:r}=he.useTranslation(),[n,i]=l.useState(()=>{const g=a?.initialPageSize;return g&&gn.some(b=>b.value===g)?g:"25"}),[s,c]=l.useState(1),[d,u]=l.useState(t);d!==t&&(u(t),s!==1&&c(1));const m=l.useMemo(()=>gn.map(g=>({...g,label:r("visits.showN",{n:g.value})})),[r]),p=l.useCallback(g=>{i(g),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(n))),f=Math.min(s,h);return{pageRows:l.useMemo(()=>e.slice((f-1)*Number(n),f*Number(n)),[e,f,n]),pageSizeProps:{options:m,value:n,onChange:p},paginationProps:{page:f,total:h,onChange:c},setPage:c}}function Cl(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function fh(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,p]=l.useState("\uC88C"),h=l.useCallback(g=>{const b=g.direction;i(x=>({...x,[b]:g})),c(x=>({...x,[b]:[g,...x[b]]})),t(!1)},[]),f=l.useCallback(g=>{const b=g.direction;i(x=>({...x,[b]:g})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:p,handleDeviceSubmit:h,handleSelectFromList:f}}const St="\uC804\uCCB4";function yl(){const{t:e}=he.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function wl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function kl(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Al(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function vh(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function xh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function _h(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:p,labelAction:h}=t;return{label:a,...p?{groupLabel:p}:{},...h?{labelAction:h}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function Ch(e,t,a){if(t===St){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(rw).map(([e,{nucleus:t}])=>[e,t]));const w4={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},k4={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},A4={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:k4,typeMap:w4};function S4(e,t,a=A4){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const B4={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},N4={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},D4={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function yh(e,t){if("place"in t)return B4[t.place](e);const a=N4[t.vowel](e);return t.glide?`${a} \xB7 ${D4[t.glide](e)}`:a}const j4=(e,{defaultValue:t})=>t,wh=(e,t)=>({jamos:e,phonetic:t,tooltip:yh(j4,t)}),Ea=(e,t)=>t.map(a=>wh([a],{place:e})),xt=(e,t,a)=>wh([...e],a?{vowel:t,glide:a}:{vowel:t}),Sl={cho:[Ea("labial",["\u3142","\u3143","\u314D","\u3141"]),Ea("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ea("alveolar",["\u3145","\u3146"]),Ea("palatal",["\u3148","\u3149","\u314A"]),Ea("velar",["\u3131","\u3132","\u314B"]),Ea("glottal",["\u314E"])],jung:[[xt("\u3163","frontHigh"),xt("\u315F","frontHigh","w"),xt("\u3162","frontHigh","velar")],[xt("\u3161","backHighUnrounded")],[xt("\u315C","backHighRounded"),xt("\u3160","backHighRounded","j")],[xt("\u3154\u3150","frontMid"),xt("\u3156\u3152","frontMid","j"),xt("\u3159\u315A\u315E","frontMid","w")],[xt("\u3153","backMidUnrounded"),xt("\u3155","backMidUnrounded","j"),xt("\u315D","backMidUnrounded","w")],[xt("\u3157","backMidRounded"),xt("\u315B","backMidRounded","j")],[xt("\u314F","low"),xt("\u3151","low","j"),xt("\u3158","low","w")]],jong:[Ea("labial",["\u3142","\u3141"]),Ea("alveolar",["\u3137","\u3134","\u3139"]),Ea("velar",["\u3131","\u3147"])]},E4=[...Ze],T4=[...ct],L4=mt.filter(e=>e!==""),xa=e=>e===ia?[]:Array.from(e),ia="__NO_CODA__",kh=[1,2,3,4],sa=5,M4=12,Ah="SYL_",Bl=e=>`${Ah}${e}`,$4=e=>Number(e.slice(Ah.length));function fn(e){return e>=sa?Array.from({length:M4-sa+1},(t,a)=>sa+a):[e]}const Sh={cho:E4,jung:T4,jong:L4},Nl=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:n})=>({v:a.join(""),phonetic:r,tooltip:n}))),Dl={cho:Nl(Sl.cho),jung:Nl(Sl.jung),jong:Nl(Sl.jong)},Bh={};Dl.jung.flat().forEach(({v:e})=>{for(const t of xa(e))Bh[t]=e});const R4=new Set(Dl.cho.flat().map(e=>e.v));function jl(e,t){return e==="cho"?R4.has(t)?t:null:e==="jung"?Bh[t]??t:Zr(t)}function El(e,t,a){if(e==="jung"){const r=xa(t);return a&&r.includes(a)?a:r[0]??t}return t}function Tl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ia?ia:t==="pron"?jl(n,i):El(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const vn={cho:null,jung:null,jong:null,syllable:null},P4="wt_filter",Nh=e=>`wt_filter_${e}`;function Dh(e){try{const t=localStorage.getItem(Nh(e))??localStorage.getItem(P4);if(t)return JSON.parse(t)}catch{}return null}function z4(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...vn,cho:t.choseong}:vn}function jh(e,t,a){const{t:r,i18n:n}=he.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:Dh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,p]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[h,f]=l.useState(()=>z4(i)),g=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ia,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ia:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||f(z=>z.cho||z.jung||z.syllable!=null||z.jong?z:g())},[]);const b=l.useMemo(()=>bt(h.cho)||bt(h.jung)||bt(h.jong)?"count":"random",[h.cho,h.jung,h.jong]),x=l.useRef(m==="char"?h.jung:null);l.useEffect(()=>{m==="char"&&(x.current=h.jung)},[m,h.jung]);const[v,C]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[y,_]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[S,L]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[B,D]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),H=l.useRef(a?.resetKey);l.useEffect(()=>{H.current!==a?.resetKey&&(H.current=a?.resetKey,f(g()),C(!1),_(!1),w([]),L([]),D([]),u(1))},[a?.resetKey]);const $=yl(),[E,R]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[N,V]=l.useState(!1),[J,Q]=l.useState(null),ee=1,A=Math.max(1,[h.cho,h.jung,h.jong].filter(Boolean).length);l.useEffect(()=>{d<A&&u(A)},[A,d]);const[T,P]=l.useState(e);l.useEffect(()=>{if(T!==e){if(!a?.resetOnMount){const z=Dh(e),K=typeof z?.contrastCount=="number"&&Number.isFinite(z.contrastCount)?z.contrastCount:1;u(Math.min(5,Math.max(1,K))),f(z?.composition??g()),C(z?.excludeNoImage??!0),_(z?.sameStructureOnly??!0),p(z?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(z?.gradeFilter)?z.gradeFilter:[]),L(Array.isArray(z?.posFilter)?z.posFilter:[]),D(Array.isArray(z?.wordTypeFilter)?z.wordTypeFilter:[])}P(e)}},[e,T,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&T===e)try{localStorage.setItem(Nh(e),JSON.stringify({contrastCount:d,composition:h,excludeNoImage:v,sameStructureOnly:y,phonemeView:m,gradeFilter:k,posFilter:S,wordTypeFilter:B}))}catch{}},[a?.resetOnMount,e,T,d,h,v,y,m,k,S,B]);const[F,W]=l.useState(0);gr("wordpool:update",()=>W(z=>z+1));const te=l.useRef(n.language);l.useEffect(()=>{te.current!==n.language&&(te.current=n.language,W(z=>z+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let z=!1;return qw({difficulty:b,excludeNoImage:v}).then(K=>{z||(R(K),K.cho.size+K.jung.size+K.jong.size>0&&V(!0))}).catch(()=>{z||R({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{z=!0}},[t.choseong,b,v,F]),l.useEffect(()=>{let z=!1;const K=h,Z=K.cho?xa(K.cho):null,ge=K.jung?xa(K.jung):null,je=K.jong===ia,Fe=je?null:K.jong?xa(K.jong):null,Le=K.syllable!=null?fn(K.syllable):null,Te=!!(Z||ge||Fe||je||Le);return Yw({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Te?{cho:Z,jung:ge,jong:Fe,jongNone:je,syllable:Le}:null,excludeNoImage:v,sameStructureOnly:y,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(Ee=>{z||Q(Ee)}).catch(()=>{z||Q(null)}),()=>{z=!0}},[t.choseong,t.difficulty,b,d,h,m,v,y,F,k]),l.useEffect(()=>{N&&f(z=>{const K={...z};let Z=!1;return["cho","jung","jong"].forEach(ge=>{const je=z[ge];!je||je===ia||xa(je).some(Fe=>E[ge].has(Fe))||(K[ge]=null,Z=!0)}),z.syllable!=null&&t.fixedSyllable==null&&(z.syllable>=sa?[...E.syllable].some(ge=>ge>=sa)||(K.syllable=null,Z=!0):(!E.syllable.has(z.syllable)||z.syllable<ee)&&(K.syllable=null,Z=!0)),Z?K:z})},[E,N,ee,t.fixedSyllable]);const O=l.useMemo(()=>{const z=K=>{const Z=new Set;for(const ge of Sh[K])E[K].has(ge)&&Z.add(ge);return Z};return{cho:z("cho"),jung:z("jung"),jong:z("jong")}},[E]),Y=l.useMemo(()=>({exact:new Set(kh.filter(z=>E.syllable.has(z))),min:[...E.syllable].some(z=>z>=sa)}),[E]),I=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ce=l.useMemo(()=>({[I.trainOnset]:"cho",[I.trainVowel]:"jung",[I.trainCoda]:"jong"}),[I]),pe=l.useCallback((z,K)=>({title:K,items:z}),[]),me=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),ye=l.useMemo(()=>{const z=[];if(t.choseong){const K={value:ia,displayLabel:I.codaExclude},Z=t.fixedNoCoda===!0,ge=(je,Fe)=>{const Le=Z&&je==="jong",Te={label:Fe,groupLabel:I.phonemeGroup,allOption:!t.requireSyllable,allLabel:I.noLimit,allOptionDisabled:Le};if(m==="pron"){const Be=Dl[je].map(Ue=>Ue.map(({v:at,phonetic:fe})=>{const Oe=xa(at),Re=yh(r,fe),Ke=Le||!Oe.some(Xe=>E[je].has(Xe));return Oe.length>1?{value:at,labels:Oe,tooltip:Re,disabled:Ke}:{value:at,tooltip:Re,disabled:Ke}}));return je==="jong"&&!t.requireCoda&&Be.unshift([K]),{...Te,groups:Be}}const Ee=Sh[je].map(Be=>!Le&&O[je].has(Be)?Be:{value:Be,disabled:!0});return{...Te,items:je==="jong"&&!t.requireCoda?[K,...Ee]:Ee}};z.push(ge("cho",I.trainOnset)),z.push(ge("jung",I.trainVowel)),z.push(ge("jong",I.trainCoda))}if(z.push({...wl(r,$,{labelInfo:pe([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:I.gradeLabel}),t.partOfSpeech&&z.push(kl($)),t.wordType&&z.push(Al($)),t.choseong||t.fixedSyllable!=null){const K=t.fixedSyllable;z.push({label:I.syllableCount,items:[...kh.map(Z=>({value:Bl(Z),displayLabel:r("wordPairs.syllableN",{n:Z,defaultValue:"{{n}}\uC74C\uC808"}),disabled:K!=null?Z!==K:!Y.exact.has(Z)||Z<ee})),{value:Bl(sa),displayLabel:r("wordPairs.syllableNPlus",{n:sa,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:K!=null?sa!==K:!Y.min}],allOption:!0,allOptionDisabled:K!=null})}return t.choseong?z.push({label:I.exclude,displayLabel:I.selectLabel,multiple:!0,items:[I.excludeImage,I.sameStructure],labelInfo:pe(me)}):z.push({label:I.exclude,displayLabel:I.selectLabel,multiple:!0,items:[I.excludeImage],labelInfo:pe([me[0]])}),z},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,ee,O,E,m,Y,I,r,pe,me,$]),be={...t.difficulty?{[I.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&h.syllable!=null?{[I.syllableCount]:Bl(h.syllable)}:{},...t.choseong&&h.cho?{[I.trainOnset]:h.cho}:{},...t.choseong&&h.jung?{[I.trainVowel]:h.jung}:{},...t.choseong&&h.jong?{[I.trainCoda]:h.jong}:{},[I.exclude]:[...v?[I.excludeImage]:[],...y?[I.sameStructure]:[]],[I.gradeLabel]:k.map(z=>r("wordSearch.filter.grade",{n:Number(z),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[$.partOfSpeech]:S}:{},...t.wordType?{[$.wordType]:B}:{}},M=l.useCallback((z,K)=>{if(K===I.diffPhonemeCount){const Z=Number(z);Z>=1&&u(Z)}else if(K===I.exclude)z===I.excludeImage?C(Z=>!Z):z===I.sameStructure&&_(Z=>!Z);else if(K===I.syllableCount)f(Z=>{if(!z||z===St)return{...Z,syllable:null};const ge=$4(z);return{...Z,syllable:Z.syllable===ge?null:ge}});else if(K===I.gradeLabel){if(!z||z===St){w([]);return}const Z=z.replace(/\D/g,"");w(ge=>ge.includes(Z)?ge.filter(je=>je!==Z):[...ge,Z])}else if(K===$.partOfSpeech){if(!z||z===St){L([]);return}L(Z=>Z.includes(z)?Z.filter(ge=>ge!==z):[...Z,z])}else if(K===$.wordType){if(!z||z===St){D([]);return}D(Z=>Z.includes(z)?Z.filter(ge=>ge!==z):[...Z,z])}else{const Z=ce[K];if(!Z)return;f(ge=>t.requireSyllable?z&&z!==St?{...ge,[Z]:z}:ge:!z||z===St||ge[Z]===z?{...ge,[Z]:null}:{...ge,[Z]:z})}},[I,ce,$,t.requireSyllable]),U=l.useCallback(z=>!t.partOfSpeech&&!t.wordType?!0:S4(z,{...t.partOfSpeech?{[$.partOfSpeech]:S}:{},...t.wordType?{[$.wordType]:B}:{}},$),[t.partOfSpeech,t.wordType,S,B,$]),oe=l.useCallback(z=>{z!==m&&(z!=="direct"&&m!=="direct"&&f(K=>Tl(K,z,x.current)),p(z))},[m]),we=l.useCallback(()=>({composition:h,contrastCount:d,excludeNoImage:v,sameStructureOnly:y,phonemeView:m,gradeFilter:k}),[h,d,v,y,m,k]),de=l.useCallback(z=>{f(z.composition),u(z.contrastCount),C(z.excludeNoImage),_(z.sameStructureOnly??!0),p(z.phonemeView),w(Array.isArray(z.gradeFilter)?z.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:h,choseong:h.cho,excludeNoImage:v,sameStructureOnly:y,gradeFilter:k,posFilter:S,wordTypeFilter:B,matchesWordAttributes:U,poolVersion:F,filterSections:ye,filterSelected:be,handleFilterSelect:M,phonemeView:m,setPhonemeView:oe,phonemeGroupLabel:I.phonemeGroup,wordCount:J,getFilterSnapshot:we,restoreFilterSnapshot:de}}function I4(e){const t=c=>c?xa(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ia,i=n?null:t(e.jong),s=e.syllable!=null?fn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function Eh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[p,h]=l.useState(!1),{cho:f=null,jung:g=null,jong:b=null,syllable:x=null}=r??{},v=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&Uw(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let C=!1;return h(!0),(async()=>{const y=I4({cho:f,jung:g,jong:b,syllable:x}),_=`${f??""}_${g??""}_${b??""}_${x??""}_${v}`,k={};await Promise.all(e.map(async w=>{const S=Ao[w.key];try{const L=await Gp(w.key,{difficulty:S.difficulty?t:null,contrastCount:S.difficulty?a:1,composition:S.choseong?y:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});L&&L.length>0?k[w.key]={id:`wt-${w.key}-${t}-${_}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:L,itemCount:L.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),C||(m(k),h(!1))})(),()=>{C=!0}},[t,a,f,g,b,x,n,s,c,i,v]),{perTypeData:u,generating:p}}function O4(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function F4(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const xn=ta;function Ll(e,t){const a=t?F4(O4(t)):Math.random;return{LISTEN_IN_NOISE:xn(Fa,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:xn(Ha,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:xn(Va,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:xn(Wa,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function Th(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const H4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function Lh(e=!1,t=H4,a){const r=Da(Date.now()),n=Da(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Fa.length>0||Ha.length>0||Va.length>0||Wa.length>0?{today:Ll(t,i),yesterday:Ll(t,s)}:{today:Ll(t,i),yesterday:null}}function Mh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let h=!1,f,g=0;const b=40,x=()=>{f!==void 0&&(clearInterval(f),f=void 0)};let v=!1;try{const _=new URLSearchParams(window.location.search),k=_.get("forceRefresh")||_.get("force");v=k==="1"||k==="true"}catch{}const C=_=>{t.current=_.today,a.current=_.yesterday,n(!0),m(!0),d(k=>k+1),h=!0,x()},y=async()=>{if(h)return;if(!v){const k=Lh(!1,void 0,e);if(Th(k.today)){C(k);return}}try{await Ts(3e3)}catch{}if(h)return;const _=Lh(v,void 0,e);if(Th(_.today)){C(_);return}++g>=b&&(n(!0),m(!1),h=!0,x())};return y(),f=setInterval(y,250),()=>{h=!0,x()}},[e]);const p=l.useCallback(h=>{const f=i?a.current:t.current,g=i?t.current:a.current;return f?.[h]?.length?f[h]:g?.[h]?.length?g[h]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:p}}const Eo=[];let _n=!1;function $h(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=Eo[Eo.length-1];t&&(e.stopPropagation(),t())}function Ml(e){return Eo.push(e),!_n&&typeof document<"u"&&(document.addEventListener("keydown",$h),_n=!0),()=>{const t=Eo.lastIndexOf(e);t>=0&&Eo.splice(t,1),Eo.length===0&&_n&&typeof document<"u"&&(document.removeEventListener("keydown",$h),_n=!1)}}function $l(e,t=!0){const a=ml(e);l.useEffect(()=>{if(t)return Ml(()=>{a.current?.()})},[t,a])}const Cn=(e,t)=>`${e}:${t??1}`,Rl=new Map;function Rh(e,t){const[a,r]=l.useState(0),n=e.map(i=>Cn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!Rl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&Rl.set(Cn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=Rl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function To(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function Ph(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function zh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function yn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((p,h)=>{n(h),a(p),s(f=>f+1)},[]),d=l.useCallback(p=>c(p,"warning"),[c]),u=l.useCallback(p=>c(p,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const fr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},vr=fr.blue,wn=fr.green,xr=fr.amber,kn=fr.purple,V4=fr.pink,W4=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:vr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:vr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:vr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:vr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:vr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:wn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:wn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:wn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:wn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:xr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:xr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:xr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:xr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:xr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:kn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:kn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:kn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:kn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:V4,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ih(){const{t:e}=he.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(yw(e).map(r=>[r.key,r.label])),a={...t};return W4.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function co({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const f=v=>{const C=v.target;r&&C.closest?.(r)||d.current?.contains(C)||u.current?.contains(C)||i(!1)};document.addEventListener("mousedown",f);const g=v=>{u.current?.contains(v.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",g,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const x=v=>{v.key==="Escape"&&i(!1)};return document.addEventListener("keydown",x),()=>{document.removeEventListener("mousedown",f),t!=="ignore"&&window.removeEventListener("scroll",g,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",x)}},[n,m,t,a,r]);const p=l.useCallback(()=>i(f=>!f),[]),h=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:p,close:h,style:s,triggerRef:d,menuRef:u}}function Pl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[p,h]=l.useState("idle"),[f,g]=l.useState(null),[b,x]=l.useState([]),[v,C]=l.useState(null),[y,_]=l.useState(0),k=l.useRef(0),w=l.useCallback(A=>{k.current=typeof A=="function"?A(k.current):A,_(k.current)},[]),S=l.useRef(r),L=l.useRef(n);l.useEffect(()=>{S.current=r,L.current=n},[r,n]);const B=l.useRef([]),D=()=>{B.current.forEach(clearTimeout),B.current=[]},H=(A,T)=>{B.current.push(setTimeout(T,A))};l.useEffect(()=>()=>D(),[]);const $=c[u]?.id??null,E=l.useCallback(()=>{D(),h("playing"),x([]),C(null),w(0);let A=0;e.forEach((T,P)=>{H(A,()=>{m(P),g(T.id),S.current?.(T)}),H(A+1e3,()=>{g(null),x(F=>[...F,T.id])}),A+=1300}),H(A,()=>{h("done"),L.current?.({score:0,total:e.length})})},[e,w]),R=l.useCallback((A,T)=>{if(T>=A.length){h("done"),L.current?.({score:k.current,total:A.length});return}m(T),C(null),h("playing"),g(A[T].id),S.current?.(A[T]),H(i,()=>{g(null),h("waiting")})},[i]),N=l.useCallback(()=>{D();const A=Ge(e);d(A),w(0),x([]),R(A,0)},[e,R,w]),V=l.useCallback(()=>{t==="playback"?(d(e),E()):N()},[t,e,E,N]),J=l.useCallback(()=>{D(),h("idle"),g(null),x([]),C(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?V():J()},[t,e.length,a]);const Q=l.useCallback(A=>{p!=="waiting"||t==="playback"||(C(A),A===c[u]?.id&&w(T=>T+1),t==="exam"?(h("playing"),H(400,()=>R(c,u+1))):(h("feedback"),H(s,()=>R(c,u+1))))},[p,t,c,u,R,s,w]),ee=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:f,playedIds:b,selectedId:v,answerId:$,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:Q},index:u,total:ee,score:y,phase:p,done:p==="done",start:V,reset:J}}var G4=Object.freeze({__proto__:null,CACHE_GROUPS:vl,CORE_VERSION:Lr,DocumentTitleSuppressContext:gl,EMPTY_COMPOSITION:vn,MediaQueryOverrideContext:mn,NO_CODA:ia,SYLLABLE_MIN:sa,VAP_PAGE_SIZE_OPTIONS:gn,buildGradeSection:wl,buildPartOfSpeechSection:kl,buildPositionSection:_h,buildSelectSection:xh,buildSyllableSection:vh,buildWordTypeSection:Al,charToPronValue:jl,convertComposition:Tl,fmtBytes:ch,lsBytes:xl,meaningKey:Cn,pronToCharValue:El,syllableToFilter:fn,today:jo,toggleAttributeFilter:Ch,useAnchoredMenu:co,useCacheManagement:dh,useDailyTrainingSelection:Mh,useDelayedHoverAnchor:Ph,useDeviceManagement:fh,useDocumentTitle:fl,useEscToClose:$l,useFontScale:hn,useHoverAnchor:To,useMediaQuery:na,usePagedList:zh,usePasswordChange:lh,useRelativeDay:sh,useSoundCompassExam:Pl,useTablePaging:_l,useTableSort:Cl,useToastState:yn,useTrainingTypeLabels:Ih,useVisitAllPanel:gh,useVisitHistory:hh,useVisitSchedule:bh,useWindowEvent:gr,useWordAttributeFilterKeys:yl,useWordDataStats:uh,useWordMeanings:Rh,useWordTrainingDataGeneration:Eh,useWordTrainingFilter:jh,valueToJamos:xa}),U4=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ae(U4);function Oh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const p=n??i??"main",h=l.useRef(null),[f,g]=l.useState("main"),b=na("(max-width: 767px)");l.useLayoutEffect(()=>{const C=h.current;C&&(d!==void 0&&C.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&C.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const C=h.current;if(!C)return;const y=zs(C);g(y?.actionVariant??"main")},[p]);const x=_e("promo-banner",`promo-banner--${s}`,m),v=hl[p];return o.jsxs("div",{ref:h,className:x,role:"note",children:[o.jsx(v,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(ie,{size:40,variant:c??f,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var Y4='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ae(Y4);function Fh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=he.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[p,h]=l.useState(!1),f=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||p)return;const g=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(g)},[d,t,p]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${f*100}%)`},children:c.map((g,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==f,...b!==f?{inert:!0}:{},children:g},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[f]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((g,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===f?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===f,onClick:()=>m(b)},b))})]})}var q4=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ae(q4);function K4({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=he.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),h=p.indexOf(u.currentTarget);(u.key==="ArrowDown"?p[h+1]:p[h-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(He,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Hh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(K4,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var Z4=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(Z4);var X4=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ae(X4);function J4(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Q4(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function e5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function pt(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:y,number:_,position:k="top-right",onClick:w,animate:S=!1}=e,L=_!==void 0?"number":y??"check",B=typeof a=="number"?a:32,D=_e("circle-badge",`circle-badge--${L}`,`circle-badge--${k}`,`circle-badge--${B}`,S?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),H=_!==void 0?`${_}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[y??"check"];return o.jsxs("span",{className:D,onClick:w,onKeyDown:w?$=>{$.key!=="Enter"&&$.key!==" "||($.preventDefault(),$.currentTarget.click())}:void 0,"aria-label":n??H,role:w?"button":void 0,tabIndex:w?0:void 0,children:[_!==void 0&&_,_===void 0&&y==="check"&&o.jsx(J4,{}),_===void 0&&y==="remove"&&o.jsx(Q4,{}),_===void 0&&y==="minus"&&o.jsx(e5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:p,color:h}=e,f=typeof a=="number"?"medium":a??"medium",g={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",b={small:12,medium:14,large:16}[f]??14,x=_e("badge",`badge--${c}`,`badge--${f}`,d!=="filled"?`badge--${d}`:"",g,r),v=h?.startsWith("--")?`var(${h})`:h,C=u!==void 0||v?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...v?{"--badge-color":v}:{}}:void 0;return o.jsxs("span",{className:x,style:C,children:[m&&o.jsx(He,{icon:m,size:b,className:"badge__icon"}),i??s,p&&o.jsx(He,{icon:p,size:b,className:"badge__icon"})]})}var t5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ae(t5);function _r({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=he.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(g=>{try{if(!Array.isArray(g)||g.length===0)return[{title:null,columns:e}];const b=g.slice(),x=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:x,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(g=>g.length>1?g.slice(0,g.length-1):g),[]),m=l.useRef(null),p=l.useRef(null),h=s.length;l.useEffect(()=>{p.current||(p.current=document.activeElement);let g=0,b=0;const x=()=>{const v=m.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}b++<20&&(g=requestAnimationFrame(x))};return g=requestAnimationFrame(x),()=>cancelAnimationFrame(g)},[h]),l.useEffect(()=>()=>{p.current?.focus?.({preventScroll:!0})},[]);const f=l.useCallback(g=>{if(g){if(Array.isArray(g.children)&&g.children.length){c(b=>[...b,{title:g.label||null,columns:[{title:null,items:g.children||[]}]}]);return}try{typeof g.onClick=="function"&&g.onClick()}catch{}try{g&&g.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ie,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((g,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[g.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:g.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(g.items||[]).map((x,v)=>o.jsx(ie,{className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?o.jsx(pt,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-label":`${x.badgeCount}`}):void 0,label:x.label,ariaLabel:x.label,onClick:()=>f(x),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},v))})]},b))})]})}const a5=52,Vh=10;function zl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=he.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[p,h]=l.useState(0),f=e.length;l.useEffect(()=>{const N=m.current;if(!N||(h(N.clientWidth),typeof ResizeObserver>"u"))return;const V=new ResizeObserver(J=>h(J[0].contentRect.width));return V.observe(N),()=>V.disconnect()},[]);const g=p>0?Math.floor((p+Vh)/(a5+Vh)):f,b=p>0&&g<f,x=b?g:f,v=e.slice(0,x),C=e.slice(x),y=b||i.length>0,_=l.useCallback(N=>({position:"fixed",bottom:window.innerHeight-N.top+8,right:window.innerWidth-N.right,zIndex:1e4}),[]),k=l.useId(),{open:w,toggle:S,close:L,style:B,triggerRef:D,menuRef:H}=co({computeStyle:_,onScroll:"ignore",onResize:"ignore"}),$=l.useCallback(()=>n?.(c),[n,c]),E=l.useMemo(()=>C.find(N=>N.key===t)??i.find(N=>N.selected||N.key&&N.key===t),[C,t,i]),R=l.useMemo(()=>[{items:[...C.map(N=>({label:N.label,icon:N.icon,selected:N.key===t,closeOnSelect:!0,onClick:()=>{N.key&&a&&a(N.key),L()}})),...i.map(N=>({label:N.label,icon:N.icon,badgeCount:N.badgeCount,selected:N.selected??(!!N.key&&N.key===t),closeOnSelect:!0,onClick:()=>{N.onClick?.(),L()}}))]}],[C,i,t,a,L]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(ie,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:$})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:v.map(N=>o.jsx(ie,{size:52,type:"dot",icon:N.icon,ariaLabel:N.label,selected:N.key===t,disabled:N.state==="disabled",className:"bottom-nav-item",onClick:()=>N.key&&a?.(N.key)},N.key))}),y&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:D,children:[o.jsx(ie,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?k:void 0}),w&&Kt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:B,ref:H,children:o.jsx(_r,{columns:R,onClose:L})}),document.body)]})})]})]})}var o5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-left:1px solid transparent;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ae(o5);function r5(e){const{t}=he.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return n||i||s||c||d?o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),i&&o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(pt,{type:"dot",number:Math.min(r,99),size:24})]}),s&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),c&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),d&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Wh(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",p=t?.label??r??"",h=t?.icon??n??"",f=t?.badge??0,g=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(He,{icon:h,label:typeof p=="string"?p:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",x=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,v=l.useCallback(C=>{if(!b){try{C.currentTarget.blur()}catch{}s?.(m,C.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:x,onClick:v,"aria-label":typeof p=="string"?p:void 0,style:c,"aria-disabled":b,children:[g,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:p}),f>0&&o.jsx(pt,{type:"dot",position:"inline",number:Math.min(f,99),size:24,"aria-label":`${f}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Il(e){const{t}=he.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}=e||{},f=l.useCallback(()=>h?.(p==="malgwi"?"manager":"malgwi"),[h,p]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(g=>!g.section&&(g.key||g.label)).map((g,b)=>o.jsxs(l.Fragment,{children:[g.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Wh,{item:g,active:g.key===r,state:g.disabled?"disabled":void 0,onClick:(x,v)=>{if(g.disabled)return;if(g.href){window.open(g.href,"_blank","noopener,noreferrer");try{v?.blur()}catch{}return}n?.(g.key);try{const y=document.querySelector(".content-area");y?y.scrollTop=0:window.scrollTo({top:0})}catch{}try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const C=document.querySelector(".header");if(C&&!(typeof C.matches=="function"&&C.matches(":hover"))){C.classList.add("header--force-collapsed");const y=()=>{C.classList.remove("header--force-collapsed"),C.removeEventListener("mouseenter",y)};C.addEventListener("mouseenter",y)}}})]},g.key??`side-nav__item-${b}`)),h&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&o.jsx(Wh,{item:{key:"__mode-switch__",label:p==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:p==="malgwi"?"arrow-right":"arrow-left"},onClick:f})]}),o.jsx(r5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var Ol='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Fl='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',n5='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',i5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;scrollbar-gutter:auto;scrollbar-width:none;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__menu::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ae(i5);function Hl({appMode:e}){const{t}=he.useTranslation(),a=e==="manager",r=a?Fl:Ol,n=n5,i=na("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Vl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}){const{t:f}=he.useTranslation(),g=na("(max-width: 767px)"),b=l.useMemo(()=>{const B=[];return s&&B.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&B.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&B.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:u}),m&&B.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&B.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:d}),B},[f,s,c,u,m,d,i]),x=l.useCallback(B=>({position:"fixed",top:B.bottom+8,right:Math.max(8,window.innerWidth-B.right),zIndex:1e4}),[]),v=l.useId(),{open:C,toggle:y,close:_,style:k,triggerRef:w,menuRef:S}=co({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),L=l.useMemo(()=>[{items:b.map(B=>({label:B.label,icon:B.icon,badgeCount:B.badgeCount,selected:B.selected??(!!B.key&&B.key===e),closeOnSelect:!0,onClick:()=>{B.onClick?.(),_()}}))}],[b,e,_]);return o.jsxs("aside",{className:`header${p==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Hl,{appMode:p}),o.jsxs("div",{className:"header__menu-button",ref:w,children:[o.jsx(ie,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:y,"aria-expanded":C,"aria-controls":C?v:void 0}),C&&Kt.createPortal(o.jsx("div",{id:v,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:S,children:o.jsx(_r,{columns:L,onClose:_})}),document.body)]})]}),o.jsx(Il,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:p,onAppModeChange:h}),g&&o.jsx(zl,{items:a,activeKey:e??void 0,onChange:t,appMode:p,onAppModeChange:h})]})}const Gh=Vl;var s5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ae(s5);function Uh(e){if(!(e==null||e===""))return lr(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function l5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function c5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function d5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Wl(e){return{type:e.type??l5(e),plan:c5(e),label:e.label,price:Uh(e.price),originalPrice:Uh(e.originalPrice),discountLabel:e.discountLabel}}var u5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ae(u5);var p5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',h5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',m5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',b5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',g5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',f5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',v5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ae(v5);var x5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ae(x5);var Yh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ya={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Gl=new WeakMap;function _5(e){if(e)return Gl.get(e)}function _a(e,t){e&&(e.style.setProperty(Ya.text,t.text),e.style.setProperty(Ya.sub,t.sub),t.copyrightColor&&e.style.setProperty(Ya.copyright,t.copyrightColor),Gl.set(e,t))}function Ca(e){e&&(e.style.removeProperty(Ya.text),e.style.removeProperty(Ya.sub),e.style.removeProperty(Ya.copyright),Gl.delete(e))}const Ul={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Yl(e={}){const t=lt(Ul,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Yh}")`}})]})}const qh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var C5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(C5);var Cr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const y5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},w5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Kh(e={}){const t=lt(y5,_a,Ca),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:w5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:qh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var k5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(k5);const A5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},S5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function B5(e={}){const t=lt(A5,_a,Ca),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:S5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:qh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Yh}")`}})]})}var N5=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ae(N5);const D5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function j5(e={}){const t=lt(D5,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}const E5={Logo_speechear_kr:{"":Ol,_white:p5,_textWhite:h5,_black:m5},Logo_speechearManager_kr:{"":Fl,_white:b5,_textWhite:g5,_black:f5}};function T5(e,t){if(e)return E5[e]?.[t??""]??void 0}const L5={speechear:Ol,manager:Fl},M5={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Zh=10;function $5(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function R5(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Sa.t("passCard.specialLabel");return r?o.jsx(j5,{}):n?o.jsx(B5,{}):o.jsx(Kh,{})}return o.jsx(Yl,{})}function ql({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:p,logoSrc:h,label:f,price:g,originalPrice:b,discountLabel:x,onUse:v,onRefund:C,onDelete:y}){const{t:_}=he.useTranslation(),k=e?Wl(e):void 0,w=r??k?.type??"speechear",S=a??k?.plan??"\uC774\uC6A9\uAD8C",L=f??k?.label,B=g??(t?k?.price:void 0),D=b??(t?k?.originalPrice:void 0),H=x??k?.discountLabel,$=l.useMemo(()=>{if(B)return null;const M=e?.durationDays??d5(e?.code);if(!M||M<=0)return null;const U=M*86400;let oe;if(i!=null)oe=i;else if((s==="active"||s==="expired")&&n){const de=new Date(n).getTime();if(Number.isNaN(de))return null;const z=new Date;z.setHours(0,0,0,0);const K=new Date(de);K.setHours(0,0,0,0);const Z=Math.round((K.getTime()-z.getTime())/864e5);oe=Math.max(0,Z)*86400}else s==="expired"?oe=0:oe=U;const we=Math.max(0,Math.min(100,Math.floor(Math.min(oe,U)/U*100)));return s==="pending"&&we>=100?null:{percent:we,remainingLabel:$5(oe,_)}},[B,s,n,i,e?.durationDays,e?.code,_]),E=l.useRef(null),[R,N]=l.useState({}),[V,J]=l.useState(null),Q=!!(v||C||y),ee=l.useRef(!1),A=l.useRef(void 0),[T,P]=l.useState(h);l.useLayoutEffect(()=>{P(h)},[h]),l.useLayoutEffect(()=>{const M=E.current;M&&(u!==void 0&&M.style.setProperty("--pass-card-text",u),m!==void 0&&M.style.setProperty("--pass-card-sub",m),p!==void 0&&M.style.setProperty("--pass-card-copyright",p))},[u,m,p]),l.useLayoutEffect(()=>{const M=E.current;if(!M)return;const U=_5(M);if(!h){const oe=M5[w],we=s==="expired"?"_black":U?.logoColor??"",de=T5(oe,we);P(de)}},[c,h,w,s]);const F=M=>{const U=E.current;if(!U)return null;const{left:oe,top:we,width:de,height:z}=U.getBoundingClientRect(),K=(M.clientX-oe)/de-.5;return{rotateX:-((M.clientY-we)/z-.5)*Zh,rotateY:K*Zh}},W=(M,U)=>{const oe=U*-.7,we=M*.7+10,de=20+(Math.abs(M)+Math.abs(U))*.4;return`${oe}px ${we}px ${de}px rgba(0, 0, 0, 0.18)`},te=l.useCallback(M=>{ee.current=!0,clearTimeout(A.current),A.current=setTimeout(()=>{ee.current=!1},200);const U=F(M);U&&N({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(M=>{const U=F(M);if(!U)return;const oe=ee.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";N({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:W(U.rotateX,U.rotateY),transition:oe})},[]),Y=l.useCallback(()=>{clearTimeout(A.current),ee.current=!1,N({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=l.useCallback(()=>J(null),[]),ce=l.useMemo(()=>{const M=S.replace("\uC774\uC6A9\uAD8C","").trim(),U=M.match(/^(.*?)(일|년)$/);return U?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:U[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:U[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:M})},[S,_]),pe=l.useMemo(()=>{const M=lr(B);if(!M)return null;const U=M.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return o.jsx("span",{className:"h1",children:M});const[,oe,we,de]=U;return o.jsxs(o.Fragment,{children:[oe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:we}),de.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:de.trim()})]})},[B]),me=l.useCallback(()=>{Q&&J(M=>{if(M)return null;const U=E.current?.getBoundingClientRect();if(!U)return null;const oe=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+oe,top:U.top+oe,bottom:U.bottom+oe}})},[Q]),ye=l.useCallback(M=>{Q&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),me())},[Q,me]),be=[{items:[...v?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),J(null)},closeOnSelect:!0}]:[],...C?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{C(),J(null)},closeOnSelect:!0}]:[],...y?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{y(),J(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:E,className:`pass-card pass-card--${s}${Q?" pass-card--clickable":""}`,style:R,onMouseEnter:te,onMouseMove:O,onMouseLeave:Y,onClick:me,onKeyDown:Q?ye:void 0,role:Q?"button":void 0,tabIndex:Q?0:void 0,children:[c??R5(w,S,L),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:T??L5[w],className:"pass-card__logo",alt:w==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ce}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:L?_("passCard.labeledPlan",{label:L}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),B?o.jsxs("div",{className:"pass-card__price-area",children:[H&&o.jsx("span",{className:"pass-card__discount body-3",children:H}),o.jsxs("div",{className:"pass-card__price",children:[D&&o.jsx("span",{className:"pass-card__price-original body-3",children:lr(D)}),pe]})]}):$?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:$.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:$.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),V&&o.jsx(ja,{anchorRect:V,onClose:I,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:o.jsx(_r,{columns:be,onClose:I,size:"small"})})]})}var P5=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ae(P5);const z5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function I5(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(z5,_a,Ca);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var O5=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ae(O5);const F5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function H5(e={}){const t=lt(F5,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}function V5(e,t){if(e){if(t==="manager_pro")return o.jsx(H5,{});if(t==="manager_standard")return o.jsx(I5,{});if(t==="manager_lite")return o.jsx(Kh,{})}}function W5(e){const t=lr(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Xh(e){const{t}=he.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=y=>!!y&&!!c?.includes(y),u=(n.tiers||[]).some(y=>/오픈\s*특가/.test(y.label??"")&&d(y.code)),m=y=>{const _=y.prices?y.prices[s]:y.price;return _?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===_):!1},p=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",h=t("payment.plan.freePrice","\uBB34\uB8CC"),f=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),g=y=>y.prices?y.prices[s]:y.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(y=>{const _=g(y);return _==="\uBB34\uB8CC"||_===h||_==="0\uC6D0"}),x=(n.tiers||[]).length>0&&(n.tiers||[]).every(y=>{const _=g(y);return _==="\uBB38\uC758"||_===f}),v=n.group==="org",C=v?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:p,"--plan-color":p},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(pt,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:p},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((y,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(He,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),y]},_))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((y,_)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(He,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),y]},_))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:x?o.jsx(ie,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(y=>{const _=y.label||a,k=/오픈\s*특가/.test(_),w=k||y.openPromo===!0,S=_.replace(/^오픈\s*특가\s*/,"")||a,L=y.prices?y.prices[s]:y.price,B=y.badge?w?`${r}
|
|
832
|
+
${y.badge}`:y.badge:void 0;if(k&&d(y.code))return null;if(!y.badge&&!u)return m(y)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:y.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:W5(L)})})]},y.id);const D=n.tier??(v?n.title:void 0),H=o.jsx(ql,{showPrice:!0,product:{type:C,code:y.code,name:S,label:D,price:L,originalPrice:y.originals?.[s]??void 0,discountLabel:B},bg:V5(v,n.id)}),$=()=>i?.({...y,productId:n.id,productTitle:n.title,preview:H});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:i?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),$())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},y.id)})})})})]})}function Jh({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var G5=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";ae(G5);var Kl='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Zl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Qh(){const e=lt(Zl,_a,Ca);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Kl}")`}})})}var U5=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";ae(U5);const Xl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function em(e={}){const t=lt(Xl,_a,Ca);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Cr}")`}})]})}var Y5=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";ae(Y5);function Jl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:_e("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var q5=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";ae(q5);const yr=(e,t,a)=>e+(t-e)*a;function tm({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:p=!1,onSelectSpeaker:h,buttonSize:f=40,showIcon:g=!0,onCenterClick:b,centerLabel:x,centerDisabled:v=!1,centerAttention:C=!1,shortcutAnchor:y="top-right",shortcutScale:_,scaleShortcut:k=!1}){const w=Math.max(0,Math.min(1,a)),S=t/2,L=110/300,B=.18,D=M=>t*(L+(M-1)*B),H=M=>{const U=D(M.row??1),oe=M.angleDeg*Math.PI/180;return{x:S+U*Math.cos(oe),y:S+U*Math.sin(oe)}},$=Math.max(...e.map(M=>M.row??1),1),E=t*.08,R=t*.1,N=t*.24,V=t-2*E,J=t-R-N,Q=t-N/2,ee=l.useMemo(()=>[...new Set(e.map(M=>M.deg))].sort((M,U)=>M-U),[e]),A=ee.length,T=Math.max(68,A>1?V/(A-1):0),P=l.useMemo(()=>new Map(ee.map((M,U)=>[M,U])),[ee]),F=M=>{const U=P.get(M.deg)??0,oe=S+(U-(A-1)/2)*T,we=$>1?Math.min(68,J/($-1)):0,de=we*($-1),z=R+(J-de)/2,K=$===1?R+J*.4:z+($-(M.row??1))*we;return{x:oe,y:K}},W=M=>{const U=H(M),oe=F(M);return{x:yr(U.x,oe.x,w),y:yr(U.y,oe.y,w)}},te={x:S,y:yr(S,Q,w)},O=Math.round(f*1.2),Y=Math.round(Math.max(16,Math.min(80,f*.7))),I=[],ce=new Map;for(const M of e){const U=M.row??1;ce.has(U)||ce.set(U,[]),ce.get(U).push(M)}for(const[M,U]of ce.entries()){if(U.length<2)continue;const oe=[...U].sort((Be,Ue)=>Be.deg-Ue.deg),we=oe.map(Be=>W(Be)),de=oe.map(Be=>Be.deg),z=de[de.length-1]-de[0],K=z/(de.length-1),Z=360-z,ge=oe.length>=3&&K>0&&Z<=K*1.5,je=Math.round(D(M)*1e3)/1e3,Fe=(Be,Ue,at,fe)=>{const Oe=(Ue.angleDeg-Be.angleDeg+540)%360-180;if(Oe===0)return`L ${fe.x} ${fe.y}`;if(w===0)return`A ${je} ${je} 0 0 ${Oe>0?1:0} ${fe.x} ${fe.y}`;const Re=(Be.angleDeg+Oe/2)*Math.PI/180,Ke={x:S+je*Math.cos(Re),y:S+je*Math.sin(Re)},Xe={x:(at.x+fe.x)/2,y:(at.y+fe.y)/2},Je={x:yr(Ke.x,Xe.x,w),y:yr(Ke.y,Xe.y,w)},Ve={x:2*Je.x-Xe.x,y:2*Je.y-Xe.y};return`Q ${Ve.x} ${Ve.y} ${fe.x} ${fe.y}`},Le=ge?[...oe,oe[0]]:oe,Te=ge?[...we,we[0]]:we;let Ee=`M ${Te[0].x} ${Te[0].y}`;for(let Be=1;Be<Te.length;Be++)Ee+=" "+Fe(Le[Be-1],Le[Be],Te[Be-1],Te[Be]);I.push({key:`arc-${M}`,d:Ee})}const pe=l.useMemo(()=>new Set(n??[]),[n]),me=M=>{if(r===M.id)return"active";if(c){if(M.id===s)return"correct";if(M.id===i&&i!==s)return"wrong"}return pe.has(M.id)?"played":"idle"},ye=M=>r===M.id?"loop":c?M.id===s?"loop":null:d&&M.id===i?"once":null,be=(M,U)=>{switch(M){case"played":case"correct":return o.jsx(md,{size:U});case"wrong":return o.jsx(kd,{size:U});default:return o.jsx(wd,{size:U})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(M=>{const{x:U,y:oe}=W(M);return o.jsx("line",{x1:te.x,y1:te.y,x2:U,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},M.id)}),I.map(M=>o.jsx("path",{d:M.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},M.key))]}),C&&!v&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:te.x-O/2,top:te.y-O/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:te.x,top:te.y},"aria-label":x,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:b,children:o.jsx(Qn,{size:Y,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:te.x,top:te.y},children:o.jsx(Qn,{size:Y,color:"currentColor",strokeWidth:1.5})}),e.map((M,U)=>{const{x:oe,y:we}=W(M),de=me(M),z=ye(M),K={..._!==void 0||k?{"--shortcut-badge-scale":String(_??Math.max(.75,Math.min(3,f/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:de!=="idle"?10:1},Z=f,ge=Math.round(Math.max(10,Math.min(56,Z*.38))),je=Math.round(Math.max(7,Math.min(18,Z*.2))),Fe=Math.round(Math.max(10,Math.min(56,Z*.4))),Le=g==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Te=g===!0||Le,Ee=!Le;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...K,left:oe-Z/2,top:we-Z/2},children:[z&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(z==="once"?" sound-compass__pulse--once":""),style:{width:Z,height:Z,...z==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>h?.(M.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Z,height:Z},"aria-label":M.label,children:[Te&&be(de,ge),Ee&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:g===!0?je:Fe},children:U+1})]}),M.shortcut&&o.jsx(Jl,{keys:M.shortcut,anchor:y,className:"sound-compass__speaker-shortcut"})]},M.id)})]})})}function am({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:_e("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var K5=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";ae(K5);function om({orientation:e="horizontal",label:t,className:a=""}){const r=_e("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var Z5='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';ae(Z5);function Ql({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var X5=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";ae(X5);function rm({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(Ql,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var J5=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";ae(J5);const Q5={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function nm({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=he.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const p=_e("alert",`alert--${e}`,s),h=!!t,f=!!(a||r);return o.jsxs("div",{className:p,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(He,{icon:Q5[e],size:20,className:"alert__icon"}),h&&o.jsx("span",{className:"alert__title body-2",children:t}),!h&&f&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),h&&f&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var e3=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";ae(e3);const t3={ready:"search",guide:"info",error:"circle-alert"};function a3(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function im({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??t3[e],c=_e("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?a3(d,r):d;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(He,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Lo({title:e,items:t}){const{t:a}=he.useTranslation(),{anchorRect:r,openAt:n,close:i}=To();return o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(Ua,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var o3=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";ae(o3);function sm({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=he.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(f,g=u())=>{if(g.length===0)return;const b=(f%g.length+g.length)%g.length;g[b]?.focus(),g[b]?.click()},p=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const g=u(),b=g.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?m(b+1,g):f.key==="ArrowLeft"||f.key==="ArrowUp"?m(b-1,g):f.key==="Home"?m(0,g):m(g.length-1,g)},h=e.find(f=>f.key===d);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(f=>o.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===d?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:p,children:f.label},f.key))}),h&&o.jsx("div",{id:`tabs__panel-${i}-${h.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${h.key}`,tabIndex:0,className:"tabs__panel",children:h.panel},h.key)]})}var r3=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";ae(r3);const n3={xs:12,sm:16,md:20,lg:28,xl:36};function i3(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function lm({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=he.useTranslation(),[s,c]=l.useState(!1),d=t?i3(t):"",u=!!e&&!s,m=!u&&!!d,p=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":p,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:p,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(He,{icon:"user-round",size:n3[a],className:"avatar__icon"})]})}var s3=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";ae(s3);function l3(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function cm({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=he.useTranslation(),u=l.useRef(null),[m,p]=l.useState(!1),[h,f]=l.useState([]),g=i??h,b=w=>{if(!w||w.length===0)return;const S=Array.from(w).filter(B=>l3(B,t));if(S.length===0)return;const L=a?S:S.slice(0,1);if(i===void 0){const B=a?[...g,...L]:L;f(B),e?.(B)}else e?.(L)},x=w=>{w.preventDefault(),!r&&p(!0)},v=w=>{w.preventDefault(),p(!1)},C=w=>{w.preventDefault(),p(!1),!r&&b(w.dataTransfer.files)},y=w=>{b(w.target.files),w.target.value=""},_=()=>{r||u.current?.click()},k=w=>{if(s){s(w);return}if(i===void 0){const S=g.filter((L,B)=>B!==w);f(S),e?.(S)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:_e("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:_,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),_())},onDragOver:x,onDragLeave:v,onDrop:C,children:[o.jsx(He,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),_()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:y,tabIndex:-1})]}),n&&g.length>0&&o.jsx("ul",{className:"file-upload__list",children:g.map((w,S)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:w.name}),onClick:()=>k(S),children:o.jsx(He,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}var c3=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";ae(c3);function dm({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(He,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var d3=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer;min-height:24px;min-width:24px}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";ae(d3);const u3={small:14,medium:20,large:28};function um({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=he.useTranslation(),d=r||!t,[u,m]=l.useState(null),p=u??e,h=u3[n],f=_=>{d||t?.(_)},g=_=>{d||m(_)},b=l.useRef(null),x=_=>{const k=Math.min(a,Math.max(1,_));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(k))?.focus()},v=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":x((e||0)+1);break;case"ArrowLeft":case"ArrowDown":x((e||1)-1);break;case"Home":x(1);break;case"End":x(a);break;default:return}_.preventDefault()}},C=e>=1&&e<=a?Math.round(e):1,y=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:v,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:y,children:Array.from({length:a},(_,k)=>{const w=k+1,S=Math.max(0,Math.min(1,p-k)),L=S>0&&S<1,B=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(He,{icon:"star",size:h,className:"rating__star rating__star--empty"}),S>0&&o.jsx("span",{className:`rating__star-fill${L?" rating__star-fill--half":""}`,children:o.jsx(He,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:B},w):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===C?0:-1,onClick:()=>f(w),onMouseEnter:()=>g(w),children:B},w)})})}var p3=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";ae(p3);const h3=20,m3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function pm({value:e,onChange:t,palette:a=m3,size:r=40,className:n=""}){const{t:i}=he.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(He,{icon:"check",size:h3,className:"color-picker__check"})},s)})})}var b3=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";ae(b3);function hm({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=_e("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(He,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var g3=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";ae(g3);function f3(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function mm({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:p}=he.useTranslation(),h=l.useId(),f=l.useRef(null),g=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:x}=document.body.style;return document.body.style.overflow="hidden",f.current?.focus(),()=>{document.body.style.overflow=x,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return Ml(g)},[e,c,g]),Rs(f,e),!e||typeof document>"u"?null:Kt.createPortal(o.jsx("div",{className:_e("dialog",u),onClick:s?g:void 0,children:o.jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:_e("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:g,children:o.jsx(f3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var v3=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";ae(v3);function bm({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:_e("board",d),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(m=>o.jsx("th",{scope:"col",className:_e("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,p)=>o.jsx("tr",{className:"board__row",children:e.map(h=>o.jsx("td",{className:_e("board__td",`board__cell--${h.align??"left"}`),children:h.render(m,p)},h.key))},a(m,p)))})]})]})}var x3=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";ae(x3);function gm({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:_e("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var _3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";ae(_3);function fm({groups:e,className:t=""}){return o.jsx("div",{className:_e("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var C3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";ae(C3);function vm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:_e("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var y3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";ae(y3);function xm({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=ml(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var w3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';ae(w3);function _m({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:_e("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var k3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";ae(k3);function Cm({items:e,className:t=""}){return o.jsx("ul",{className:_e("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function ec({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const p=l.useCallback(b=>{t?.(b),s(!1)},[t]),h=l.useCallback(()=>s(!0),[]),f=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),g=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(x=>Math.min(m.length-1,x+1))):b.key==="ArrowUp"?(b.preventDefault(),d(x=>Math.max(-1,x-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&p(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,p]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:h,handleBlur:f,handleKeyDown:g,handleSelect:p}}var A3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";ae(A3);function qa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:p=!1,readOnly:h=!1,error:f,helperText:g,maxLength:b,size:x=48,variant:v="input",fullWidth:C=!1,newline:y=!1,multiline:_=!1,rows:k=3,leftIcon:w,rightIcon:S,clearable:L=!1,list:B,showCount:D=!0,className:H="",onFocus:$,onBlur:E,onKeyDown:R,onEnter:N,inputMode:V,autoComplete:J,autoFocus:Q,suggestions:ee,openOnFocus:A=!1}=e,{t:T}=he.useTranslation(),P=l.useId();!s&&!c&&Xn(`TextField:unnamed:${P}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const F=`tf-${P}`,W=`tf-helper-${P}`,te=l.useRef(null),O=ec({value:t??"",onChange:i,suggestions:ee??[],openOnFocus:A}),Y=!!ee&&O.open&&O.filtered.length>0,I=l.useCallback(K=>{te.current=K,typeof n=="function"?n(K):n&&(n.current=K)},[n]),ce=t!==void 0,pe=ce&&m==="password",me=(t??"").length;l.useEffect(()=>{const K=te.current;if(!pe||!K)return;const Z=t??"";K.value!==Z&&(K.value=Z)},[pe,t]),l.useEffect(()=>{if(!y||!te.current)return;const K=te.current;K.style.height="",K.scrollHeight>K.clientHeight&&(K.style.height=`${K.scrollHeight}px`)},[t,y]);const ye=b!=null&&me>b,be=x===32?16:20,M=_e("text-field",`text-field--s${x}`,v==="display"?"text-field--display":"",C?"text-field--full-width":"",p?"text-field--disabled":"",h?"text-field--readonly":"",f?"text-field--error":"",w?"text-field--has-left-icon":"",S||L?"text-field--has-right-icon":"",H),U={id:F,...pe?{}:ce?{value:t}:{defaultValue:a},ref:I,placeholder:u,name:r,disabled:p,readOnly:h,autoFocus:Q,tabIndex:h?-1:void 0,maxLength:b,list:B,inputMode:V,autoComplete:J,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":g||f?W:void 0,role:ee?"combobox":void 0,"aria-autocomplete":ee?"list":void 0,"aria-haspopup":ee?"listbox":void 0,"aria-expanded":ee?O.open:void 0,"aria-controls":Y?O.listId:void 0,"aria-activedescendant":Y&&O.activeIdx>=0?`${O.listId}-option-${O.activeIdx}`:void 0,onChange:K=>i?.(K.target.value),onFocus:(K=>{$?.(K),ee&&O.handleFocus()}),onBlur:(K=>{E?.(K),ee&&O.handleBlur()}),onKeyDown:(K=>{N&&K.key==="Enter"&&!K.nativeEvent.isComposing&&(K.preventDefault(),N()),R?.(K),ee&&O.handleKeyDown(K)})},oe=L&&!p&&!h&&me>0,we=()=>y?o.jsx("textarea",{...U,className:"text-field__input text-field__input--auto body-2",rows:1}):_?o.jsx("textarea",{...U,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...U,type:m,className:"text-field__input body-2"}),de=v==="display"&&!y&&!_&&!!u,z=()=>o.jsxs(o.Fragment,{children:[we(),de&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:M,children:[s&&o.jsxs("label",{htmlFor:F,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[w&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(He,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),z(),b!=null&&D&&o.jsxs("span",{className:`text-field__count caption-2${ye?" text-field__count--over":""}`,children:[me,"/",b]}),oe&&o.jsx(ie,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:T("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:K=>{K.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),S&&!oe&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(He,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),ee&&O.open&&O.filtered.length>0&&o.jsx("ul",{id:O.listId,className:"text-field__suggestions",role:"listbox",children:O.filtered.map((K,Z)=>o.jsx("li",{id:`${O.listId}-option-${Z}`,role:"option","aria-selected":Z===O.activeIdx,className:`text-field__suggestion body-2${Z===O.activeIdx?" is-active":""}`,onMouseDown:ge=>ge.preventDefault(),onClick:()=>{O.handleSelect(K),te.current?.focus()},children:K},`${K}-${Z}`))}),(g||f)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:W,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||g})})]})}var S3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";ae(S3);function Xt({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=he.useTranslation(),p=r??m("dropdown.placeholder","\uC120\uD0DD"),h=l.useId(),f=l.useRef(null),g=l.useCallback(E=>{const R=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...R?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:v,style:C,triggerRef:y,menuRef:_}=co({computeStyle:g}),[k,w]=l.useState(-1),S=l.useCallback(()=>w(-1),[]),L=e.find(E=>E.value===t);l.useEffect(()=>{if(b){const E=e.findIndex(R=>R.value===t);w(E>=0?E:0),requestAnimationFrame(()=>{const R=_.current;if(!R)return;const N=R.querySelectorAll(".dropdown__option")[E];N&&(R.scrollTop=Math.max(0,N.offsetTop-R.clientHeight/2+N.clientHeight/2))})}},[b,e,t,_]);const B=l.useCallback(()=>{n||v()},[n,v]),D=l.useCallback(E=>{E.disabled||(a?.(E.value),x(!1))},[a,x]),H=l.useCallback(E=>{if(!n){if(!b){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),x(!0));return}if(E.key==="Escape"){E.preventDefault(),x(!1);return}E.key==="ArrowDown"?(E.preventDefault(),w(R=>{let N=R+1;for(;N<e.length&&e[N].disabled;)N++;return N<e.length?N:R})):E.key==="ArrowUp"?(E.preventDefault(),w(R=>{let N=R-1;for(;N>=0&&e[N].disabled;)N--;return N>=0?N:R})):E.key==="Enter"&&k>=0&&(E.preventDefault(),D(e[k]))}},[n,b,e,k,D,x]),$=b?o.jsx("div",{ref:_,id:h,className:"dropdown__menu",role:"listbox",style:C,onMouseLeave:S,children:e.map((E,R)=>o.jsxs("button",{id:`${h}-option-${R}`,type:"button",role:"option","aria-selected":E.value===t,className:_e("dropdown__option body-2",E.value===t?"dropdown__option--active":"",R===k?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:N=>N.preventDefault(),onClick:()=>D(E),onMouseEnter:()=>w(R),disabled:E.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:E.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return o.jsxs("div",{ref:f,className:_e("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:H,children:[o.jsxs("button",{ref:y,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?h:void 0,"aria-activedescendant":b&&k>=0?`${h}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:B,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${L?"":" dropdown__trigger-label--placeholder"}`,children:L?L.label:p}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Kt.createPortal($,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var B3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";ae(B3);function wr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=he.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:_e("pagination",i),children:[o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var N3=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";ae(N3);function Ka(e){const{t}=he.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=x=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},p=l.useRef(null),h=a.filter(x=>!x.disabled),f=x=>{if(!h.length)return;const v=Math.max(0,h.findIndex(y=>y.key===r)),C=x==="first"?h[0]:x==="last"?h[h.length-1]:h[(v+x+h.length)%h.length];C&&(n(C.key),Array.from(p.current?.querySelectorAll("[data-segkey]")??[]).find(y=>y.dataset.segkey===C.key)?.focus())},g=x=>{switch(x.key){case"ArrowRight":case"ArrowDown":f(1);break;case"ArrowLeft":case"ArrowUp":f(-1);break;case"Home":f("first");break;case"End":f("last");break;default:return}x.preventDefault()},b=h.some(x=>x.key===r)?r:h[0]?.key;return o.jsx("div",{ref:p,onKeyDown:g,className:_e("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(x=>o.jsx(ie,{role:"radio","aria-checked":x.key===r,"data-segkey":x.key,tabIndex:x.key===b?0:-1,label:x.label,count:x.count,disabled:x.disabled,className:x.key===r?"is-selected":"",onClick:()=>{x.disabled||n(x.key)},size:s,shape:c,useBorder:!1,useBG:!1},x.key))})}var D3=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";ae(D3);function An({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=he.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:_e("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((p,h)=>o.jsx(Ka,{size:40,...p},p.ariaLabel??h))]}),m&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(qa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((p,h)=>o.jsx(Xt,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},h)),n&&o.jsx(Xt,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(wr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var j3=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";ae(j3);function ym(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(ym).join(""):""}function E3(e){let t=e.replace(/\r\n/g,`
|
|
833
833
|
`).replace(/\r/g,`
|
|
834
834
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
835
835
|
`).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),n=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(n)).join(`
|
|
836
|
-
`)}const T3=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),L3=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function M3(e,t){let a=e;const r=[],n=/sh|bash/.test(t.toLowerCase()),i=(s,c)=>r.push({type:s,content:c});for(;a.length>0;){const s=a.match(/^\s+/);if(s){i("whitespace",s[0]),a=a.slice(s[0].length);continue}if(!n&&a.startsWith("//")){const
|
|
837
|
-
`),b=
|
|
838
|
-
`),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const m=a.match(L3);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const f=p[0];i(n&&T3.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function wm({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=he.useTranslation(),[c,d]=l.useState(!1),u=E3(ym(e)),m=l.useRef(null);l.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await _s(u))return;d(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}catch{}},h=M3(u,t),g=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:_e("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(ie,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:h.map((f,b)=>o.jsx("span",{className:`code-token ${f.type} ${g}`,children:f.content},b))})})]})}var $3=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";ae($3);function Mo(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var R3='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';ae(R3);function tc({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const d=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&d,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}var P3=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;ae(P3);function ac({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:d}){const u=l.useRef(null),m=l.useId();return l.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:_e("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:m,title:c,children:[o.jsx("input",{ref:u,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:p=>t?.(p.target.checked),disabled:a,"aria-label":!n&&d?d:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var z3=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ae(z3);function km({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=he.useTranslation(),d=n!==void 0?n:e>0,u=l.useRef(null),[m,p]=l.useState(!1);return l.useEffect(()=>{const h=u.current;if(!h)return;const g=()=>{const b=h.firstElementChild??h,x=Array.from(b.children);if(x.length<2){p(!1);return}const v=x[0].offsetTop;p(x.some(C=>C.offsetTop!==v))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(h),()=>f.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${d?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:u,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(pt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[o.jsx(ie,{size:40,label:r,onClick:a}),t.map((h,g)=>o.jsx(ie,{size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},g))]})]})}function oc(e){const t=()=>{if(e){const[p,h]=e.split("-");return{y:+p,m:+h-1}}const m=new Date;return{y:m.getFullYear(),m:m.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const m=t();r(m.y),i(m.m)},[e]);const c=l.useCallback(()=>{n===0?(r(m=>m-1),i(11)):i(m=>m-1)},[n]),d=l.useCallback(()=>{n===11?(r(m=>m+1),i(0)):i(m=>m+1)},[n]),u=l.useCallback((m,p)=>{r(m),i(p)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:d,setViewYM:u}}var I3=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";ae(I3);function Am(e,t){return new Date(e,t+1,0).getDate()}function O3(e,t){return new Date(e,t,1).getDay()}function $o(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function F3(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function H3(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const d=`${s}-${String(c+1).padStart(2,"0")}`;t&&d<t.slice(0,7)||a&&d>a.slice(0,7)||i.push({value:d,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function Sm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:d}=he.useTranslation(),u=l.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),m=new Date,{viewY:p,viewM:h,prevMonth:g,nextMonth:f,setViewYM:b}=oc(e),x=l.useCallback(N=>{const L=window.innerHeight-N.bottom,P=300,V=L<P&&N.top>P;return{position:"fixed",left:N.left,width:N.width,minWidth:260,...V?{bottom:window.innerHeight-N.top+6}:{top:N.bottom+6},zIndex:9999}},[]),{open:v,setOpen:C,toggle:y,style:_,triggerRef:k,menuRef:w}=co({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!v)return;const N=w.current;return(N?.querySelector(".date-picker__day--selected")??N?.querySelector(".date-picker__day--today")??N?.querySelector(br)??N)?.focus?.(),()=>{const L=document.activeElement;(!L||L===document.body)&&k.current?.focus?.()}},[v,w,k]);const[A,T]=l.useState(1),S=l.useRef(null),D=l.useRef(null);l.useEffect(()=>{if(!v)return;const N=$o(m.getFullYear(),m.getMonth(),m.getDate()),L=e&&e.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+e.slice(8):N.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+N.slice(8):1;T(L)},[v]),l.useEffect(()=>{if(D.current==null)return;const N=D.current;D.current=null,S.current?.querySelector(`[data-day="${N}"]`)?.focus()}),l.useEffect(()=>{T(N=>Math.min(N,Am(p,h)))},[p,h]);const H=l.useCallback(N=>{let L=$o(N.getFullYear(),N.getMonth(),N.getDate());r&&L<r&&(L=r),n&&L>n&&(L=n);const[P,V,W]=L.split("-").map(Number);(P!==p||V-1!==h)&&b(P,V-1),T(W),D.current=W},[r,n,p,h,b]),R=l.useCallback(N=>{const L=new Date(p,h,A),P=W=>{L.setDate(L.getDate()+W),H(L)},V=W=>{L.setMonth(L.getMonth()+W),H(L)};switch(N.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-L.getDay());break;case"End":P(6-L.getDay());break;case"PageUp":N.shiftKey?V(-12):V(-1);break;case"PageDown":N.shiftKey?V(12):V(1);break;default:return}N.preventDefault()},[p,h,A,H]),E=l.useCallback(N=>{t($o(p,h,N)),C(!1)},[p,h,t,C]),$=N=>{const L=$o(p,h,N);return!!(r&&L<r||n&&L>n)},B=[];for(let N=0;N<O3(p,h);N++)B.push(null);for(let N=1;N<=Am(p,h);N++)B.push(N);const F=a===64?20:a===40?16:18,X=H3(p,r,n),Q=`${p}-${String(h+1).padStart(2,"0")}`,ee=v?Kt.createPortal(o.jsxs("div",{ref:w,className:"date-picker__dropdown",style:_,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(bd,{size:16,strokeWidth:2})}),o.jsx(Xt,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:X,value:Q,onChange:N=>{const[L,P]=N.split("-");b(+L,+P-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(gd,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:S,onKeyDown:R,children:[u.map(N=>o.jsx("div",{className:"date-picker__dow caption-1",children:N},N)),B.map((N,L)=>{if(N===null)return o.jsx("div",{},`e${L}`);const P=$o(p,h,N),V=P===e,W=P===$o(m.getFullYear(),m.getMonth(),m.getDate()),te=$(N),O=L%7;return o.jsx("button",{type:"button",disabled:te,"data-day":N,tabIndex:N===A?0:-1,"aria-current":W?"date":void 0,onClick:()=>!te&&E(N),className:_e("date-picker__day caption-1",V&&"date-picker__day--selected",W&&!V&&"date-picker__day--today",te&&"date-picker__day--disabled",O===0&&"date-picker__day--sun",O===6&&"date-picker__day--sat"),children:N},N)})]})]}),document.body):null;return o.jsxs("div",{className:_e("date-picker",`date-picker--s${a}`,v&&"date-picker--open",c),children:[o.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&y(),disabled:i,"aria-haspopup":"true","aria-expanded":v,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?F3(e):s}),o.jsx(Ad,{size:F,className:"date-picker__icon",strokeWidth:1.5})]}),ee]})}var V3=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-bar,.ihabdevteam-core-scope .manager-bar-chart-stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";ae(V3);var W3=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";ae(W3);function An({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function kr({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function Sn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function Za(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function G3(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Za(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-Za(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function Bm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,n=new Map;n.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());n.has(u)||n.set(u,[]),n.get(u).push(d)}const i=new Map;for(const[d,u]of n){const m=d.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),h=Number(m[2])-1,g=new Date(p,h+1,0).getDate(),f=u.reduce((C,y)=>Math.max(C,y.parts?.length??0),0),b=new Array(g+1).fill(0),x=new Array(g+1).fill(0),v=Array.from({length:g+1},()=>new Array(f).fill(0));for(const C of u){const y=C.date.getDate();if(b[y]+=C.a,x[y]+=C.b,C.parts)for(let _=0;_<f;_++)v[y][_]+=C.parts[_]??0}i.set(d,{year:p,month:h,daysInMonth:g,partsLen:f,dayA:b,dayB:x,dayParts:v})}const s=(d,u,m)=>new Date(d,u,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[d,u]of i){const{year:m,month:p,daysInMonth:h,dayA:g,dayB:f,dayParts:b}=u,x=m===t.getFullYear()&&p===t.getMonth(),v=t.getDate(),C=i.get(r(p===11?m+1:m,(p+1)%12)),y=u.partsLen,_=[];for(let w=1;w<=h;w++){const A=x&&w>v;_.push({label:String(w),a:A&&g[w]===0&&f[w]===0?-1:g[w],b:f[w],...y?{parts:b[w]}:{}})}const k=[];for(let w=Za(m,p);w<=h;w+=7){const A=Math.max(0,w+6-h),T=A&&C?Math.max(y,C.partsLen):y;let S=0,D=0;const H=new Array(T).fill(0);for(let E=w;E<=Math.min(w+6,h);E++){S+=g[E],D+=f[E];for(let $=0;$<y;$++)H[$]+=b[E][$]}if(A&&C)for(let E=1;E<=A&&!s(C.year,C.month,E);E++){S+=C.dayA[E],D+=C.dayB[E];for(let $=0;$<C.partsLen;$++)H[$]+=C.dayParts[E][$]}const R=A?`${(p+1)%12+1}/${A}`:`${w+6}`;k.push({label:`${k.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${R}\uC77C]`,a:S,b:D,...T?{parts:H}:{}})}c[d]={weekly:k,daily:_}}return c}function U3(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const Y3=U3(),Nm=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function rc(e){const{t,i18n:a}=he.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>Y3.filter(S=>S.value in e),[e]),s=l.useMemo(()=>{const S=[];for(const D of i){const H=new Date(D.year,D.month,0).getDate(),R=Za(D.year,D.month-1),E=Math.ceil((H-R+1)/7);for(let $=E-1;$>=0;$--)S.push({value:`${D.value}#${$}`,monthKey:D.value,year:D.year,month:D.month,week:$})}return S},[i]),c=l.useCallback(S=>{const D=t("calendar.yearMonth",{year:S.year,month:S.month});return a.language?.startsWith("ko")?`${D} ${Nm[S.week]??`${S.week+1}`}\uC8FC`:`${D} Week ${S.week+1}`},[t,a.language]),d=l.useMemo(()=>i.map(S=>({value:S.value,label:t("calendar.yearMonth",{year:S.year,month:S.month})})),[t,i]),u=l.useMemo(()=>s.map(S=>({value:S.value,label:c(S)})),[s,c]),m=l.useMemo(()=>G3(),[]),p=l.useMemo(()=>i.find(S=>S.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),h=l.useMemo(()=>s.find(S=>S.value===m.value)?.value??s[0]?.value??"",[s,m]),[g,f]=l.useState(""),[b,x]=l.useState("");l.useEffect(()=>{i.find(S=>S.value===g)||f(p)},[i,g,p]),l.useEffect(()=>{s.find(S=>S.value===b)||x(h)},[s,b,h]);const v=r==="month"?d:u,C=r==="month"?g:b,y=r==="month"?f:x,_=l.useMemo(()=>{const S=t("calendar.dow",{returnObjects:!0});return Array.isArray(S)?S:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=v.findIndex(S=>S.value===C),w=l.useCallback(()=>{const S=v.findIndex(D=>D.value===C);S<v.length-1&&y(v[S+1].value)},[v,C,y]),A=l.useCallback(()=>{const S=v.findIndex(D=>D.value===C);S>0&&y(v[S-1].value)},[v,C,y]),T=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:C,setRange:y,activeOptions:v,activeIdx:k,handlePrev:w,handleNext:A,periodOptions:T,monthRange:g,weekRange:b,weekRanges:s,DOW:_}}function q3({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:d,seriesColors:u,seriesLabels:m,rateLabels:p}){const h=!a,g=!!(u&&u.length>0),f=l.useMemo(()=>g?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((T,S)=>T+Math.max(0,S),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>h?[A.a]:[A.a,A.b])),[e,h,g]),b=l.useMemo(()=>c??(d?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,d]),x=s,v=g||h?1:2,C={"--bar-width":`${l.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(A*v)+6)))},[e.length,v,i])}px`},y=l.useMemo(()=>{const A=Math.round(b/2);return A!==b?[b,A,0]:[b,0]},[b]),[_,k]=l.useState(null),w=l.useCallback(()=>k(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[y.slice(0,-1).map((A,T)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:T*(x/(y.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},T)),e.map((A,T)=>{const S=A.a===-1,D=S?0:A.a/b*x,H=S?0:A.b/b*x,R=A.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:S?"default":"pointer"},onMouseEnter:S?void 0:E=>{const $=E.currentTarget.getBoundingClientRect(),B=[A.label,A.sublabel].filter(Boolean).join(" ");let F;if(g){const X=(m??[]).map((ee,N)=>({text:`${ee}: ${R[N]??0}`,color:(u??[])[N]})),Q=X.filter((ee,N)=>(R[N]??0)>0);F=Q.length?Q:X}else p&&!h?F=[{text:`${r} ${A.a}%`,color:t},{text:`${n} ${A.b}%`,color:a}]:p&&A.rawB!==void 0?F=[{text:`${p.total} ${A.rawB}`},{text:`${p.done} ${A.rawA??0}`,color:t}]:h?F=[{text:`${r}: ${A.a}`,color:t}]:F=[{text:`${r}: ${A.a}`,color:t},{text:`${n}: ${A.b}`,color:a}];k({rect:{left:$.left,top:$.top,right:$.right,bottom:$.bottom,width:$.width,height:$.height},title:B,items:F})},onMouseLeave:w,children:!S&&(g?o.jsx("div",{className:"manager-bar-chart-stack",style:C,children:(()=>{const E=R.reduce(($,B,F)=>B>0?F:$,-1);return R.map(($,B)=>$>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:$/b*x,background:(u??[])[B],borderRadius:B===E?"6px 6px 0 0":void 0}},B):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:D,background:t}}),!h&&o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:H,background:a}})]}))},T)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,T)=>{const S=A.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${S?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),A.label]}),A.sublabel&&o.jsx("span",{className:"caption-1",children:A.sublabel})]},T)})})]})})}),_&&o.jsx(Ua,{anchorRect:_.rect,title:_.title,items:_.items,showIndex:!1,closeOnOutsideClick:!1})]})}function nc({control:e}){const{t}=he.useTranslation(),{activeOptions:a,activeIdx:r,range:n,setRange:i,handlePrev:s,handleNext:c,periodOptions:d,period:u,setPeriod:m}=e,p=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(ie,{size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:s}),o.jsx(Xt,{value:n,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(ie,{size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),o.jsx(Ka,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:g=>m(g),size:32})]})}function Dm(e,t,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(n,i)=>{const s=new Date(t);s.setDate(t.getDate()+i);const c=(e[`${s.getFullYear()}\uB144 ${s.getMonth()+1}\uC6D4`]?.daily??[])[s.getDate()-1],d=c?.a===-1||s>r;return{dt:s,entry:c,isFuture:d}})}function K3(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:d}=t,u=r?.startsWith("ko"),m=new Date,p=m.getFullYear(),h=m.getMonth()+1,g=m.getDate();if(n==="month"){const x=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),C=v?Number(v[1]):null,y=v?Number(v[2]):null,_=C&&y?Za(C,y-1):1;return x.weekly.map((k,w)=>{const A=w+1;let T=k.label,S=!1,D=!1;if(C&&y){const H=_+w*7,R=new Date(C,y-1,H+6),E=R.getMonth()+1,$=R.getDate(),B=E===y?`${$}`:`${E}/${$}`;T=a("manager.chart.weekRange",{start:H,end:B});const F=new Date(p,h-1,g).getTime();S=F>=new Date(C,y-1,H).getTime()&&F<=R.getTime(),D=C>p||C===p&&(y>h||y===h&&H>g)}return{...k,label:T,sublabel:u?`${Nm[A-1]??A}\uC8FC`:`Week ${A}`,isToday:S,a:D?-1:k.a,b:D?0:k.b}})}const f=c.find(x=>x.value===s);if(!f)return[];const b=new Date(f.year,f.month-1,Za(f.year,f.month-1)+f.week*7);return Dm(e,b,m).map(({dt:x,entry:v,isFuture:C})=>{const y=x.getMonth()+1,_=x.getDate(),k=x.getFullYear();return{label:y===f.month&&k===f.year?`${_}`:`${y}/${_}`,sublabel:d[x.getDay()]??"",a:C?-1:v&&v.a>0?v.a:0,b:C?0:v&&v.b>0?v.b:0,isToday:k===p&&y===h&&_===g,...v?.parts?{parts:C?v.parts.map(()=>0):v.parts}:{}}})}const Z3={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function jm({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:n,colorB:i,labelAKey:s,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:m,control:p,hideControls:h=!1,rate:g=!1,tightMax:f=!1,avgMode:b=!1,totalFormat:x,series:v,loading:C=!1,onDetail:y}){const{t:_,i18n:k}=he.useTranslation(),w=Z3[e],A=rc(r),T=p??A,S=l.useMemo(()=>K3(r,T,_,k.language),[r,T,_,k.language]),D=l.useMemo(()=>{if(!g)return S;const $=T.period==="month"?T.monthRange.match(/^(\d+)년 (\d+)월$/):null,B=new Date;return S.map((F,X)=>{let Q=F.a===-1?-1:F.b>0?Math.round(F.a/F.b*100):0;if($&&F.a!==-1){const ee=Number($[1]),N=Number($[2])-1,L=Dm(r,new Date(ee,N,Za(ee,N)+X*7),B).filter(P=>!P.isFuture);Q=L.length?Math.round(L.reduce((P,{entry:V})=>P+(V&&V.b>0?V.a/V.b*100:0),0)/L.length):0}return{...F,a:Q,b:F.a===-1?0:c&&F.parts&&F.parts[1]>0?Math.round(F.parts[0]/F.parts[1]*100):0,rawA:F.a===-1?-1:F.a,rawB:F.b}})},[S,g,c,T.period,T.monthRange,r]),H=l.useMemo(()=>{if(g||b){const $=(T.period==="week"?S:r[T.monthRange]?.daily??[]).filter(F=>F.a!==-1);if($.length===0)return 0;const B=g?$.reduce((F,X)=>F+(X.b>0?X.a/X.b*100:0),0):$.reduce((F,X)=>F+(X.a>0?X.a:0),0);return Math.round(B/$.length)}return D.reduce(($,B)=>$+(B.a>0?B.a:0)+(c&&B.b>0?B.b:0),0)},[D,S,g,b,c,T.period,T.monthRange,r]),R=v&&v.length>0?v.map($=>({color:$.color,label:$.label})):[{color:n,label:_(s)},...c?[{color:i,label:_(c)}]:[]],E=e==="small";return o.jsx(Sn,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:_(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:o.jsxs(o.Fragment,{children:[!h&&o.jsx(nc,{control:T}),y&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(ie,{size:32,type:"dot",icon:"list",ariaLabel:_("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:y})})]}),subRow:o.jsxs(o.Fragment,{children:[d?g||b||m&&x?o.jsx(kr,{label:E?void 0:`${_(T.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${_(m??s)}`,children:x?(x(H).match(/(\d+|[^\d]+)/g)??[]).map(($,B)=>/\d/.test($)?o.jsx("span",{className:"barchart-total__num h0",children:$},B):o.jsx("span",{className:"barchart-total__unit h5",children:$},B)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:H}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]})}):o.jsxs(kr,{children:[o.jsx("span",{className:"barchart-total__num h0",children:H}),o.jsx("span",{className:"barchart-total__unit h5",children:_(s)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]}):o.jsx("span",{}),o.jsx(An,{items:R,className:"caption-1"})]}),children:C?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Mo,{size:32})}):o.jsx(q3,{data:D,colorA:n,colorB:c?i:void 0,labelA:_(s),labelB:c?_(c):void 0,barWidth:t??w.barWidth,height:w.height,maxOverride:g?100:void 0,tightMax:f,seriesColors:v?.map($=>$.color),seriesLabels:v?.map($=>$.label),rateLabels:g?{total:_("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:_("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Em(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),d=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,d-1,1,0,0,0),to:new Date(c,d,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=Za(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var X3=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ae(X3);const Tm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Lm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof n=="number"?n:Tm[n].diameter,m=i??(typeof n=="number"?12:Tm[n].strokeWidth),p=u/2,h=(u-m)/2,g=2*Math.PI*h;if(a&&a.length>0){const v=a.reduce((C,y)=>{const _=C.length>0?C[C.length-1].acc:0,k=Math.max(0,Math.min(y.ratio,1-_));return C.push({color:y.color,rotate:-90+_*360,dash:g*k,acc:_+k}),C},[]);return o.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v.map((C,y)=>C.dash>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:C.color,strokeWidth:m,strokeDasharray:`${C.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},y))]})})}const f=(t??0)>0?Math.min((e??0)/t,1):0,b=g*f,x=g-b;return o.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),f>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${b} ${x}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Math.round(f*100)}),!d&&o.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function Mm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...d}){const{t:u}=he.useTranslation();if(!e)return o.jsx(Lm,{...d});const m=(d.total??0)>0?Math.round(Math.min((d.done??0)/d.total,1)*100):0,p=d.size==="small",h=d.size==="large",g=[c,p?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(He,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(Sn,{className:g,title:u(e),titleClassName:p?"h5 chart-section-title--small":void 0,headRight:f||(p?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(kr,{label:!p&&n?u(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:m}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(An,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Mo,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(Lm,{...d,hideCenter:p||d.hideCenter})})})}var J3=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";ae(J3);function $m({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:d,openAt:u,close:m}=To(),p=l.useCallback(()=>{i&&c.current&&u(c.current)},[i,u]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?f:void 0,onPointerEnter:p,onPointerLeave:m,onFocus:p,onBlur:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&d&&o.jsx(va,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(He,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),g&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:g})]})})]})}var Q3='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';ae(Q3);function ic({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:d,length:u,className:m,label:p,formatValue:h,labelPos:g,labelAlign:f="right",showMinMax:b=!1,minLabel:x,maxLabel:v,showBgTick:C=!1,showFillTick:y=!1,tickStep:_,tickShape:k="dot"}){t&&!d&&Zn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const w=Math.min(r,Math.max(a,e)),A=r>a?(w-a)/(r-a):0,T=i==="vertical",S=!t,D=V=>t?.(Number(V.target.value)),H=typeof u=="number"?`${u}px`:u,R={"--slider-ratio":String(A),"--slider-thumb":`${s}px`,...H?T?{height:H}:{width:H}:{}},E=_??n,$=(C||y)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if($>0&&$<=100){const V=k!=="dash",W=ce=>V?`radial-gradient(circle, ${ce} 0.5px, transparent 1px)`:T?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`,te=V?"2px":"4px",O=[],Y=[],I=[];for(let ce=0;ce<=$;ce++){const pe=ce*E/(r-a);if(pe>1+1e-6)break;const me=`${((T?1-pe:pe)*100).toFixed(4)}%`,ye=pe<=A+1e-6;if(ye?!y:!C)continue;const be=ye?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(W(be)),Y.push(T?`${te} var(--slider-thumb)`:`var(--slider-thumb) ${te}`),I.push(T?`center ${me}`:`${me} center`)}O.push(T?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),Y.push("100% 100%"),I.push("0 0"),R.backgroundImage=O.join(", "),R.backgroundSize=Y.join(", "),R.backgroundPosition=I.join(", "),R.backgroundRepeat="no-repeat"}const B=o.jsx("input",{type:"range",className:_e("slider",`slider--${i}`,S&&"slider--static",!p&&!b&&m),min:a,max:r,step:n,value:w,disabled:c,readOnly:S,tabIndex:S?-1:void 0,"aria-label":d,"aria-orientation":i,onChange:D,style:R});if(!p&&!b)return B;const F=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:x??a}),X=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),Q=b?o.jsxs("div",{className:_e("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[T?X:F,B,T?F:X]}):B;if(!p)return Q;const ee=g??(T?"bottom":"right"),N=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,L=h?h(w):p==="percent"?N:p==="count"?`${w} / ${r}`:String(w),P=o.jsx("span",{className:"slider-wrap__value body-3b",children:L});return o.jsxs("div",{className:_e("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${ee}`,`slider-wrap--align-${f}`,m),children:[Q,P]})}var e8='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ae(e8);const t8=.86,a8=250,sc=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function Bn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:m=25,className:p,ariaLabel:h}){const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),[x,v]=l.useState(null);l.useEffect(()=>{const k=e??xi(t)??(x&&x.el===t?x.node:null),w=g.current;if(!k||!w){w?.style.setProperty("--meter-level","0"),f.current&&(f.current.textContent=sc(c,d,u,m));let $=!1;return!e&&t&&xo(t).then(B=>{!$&&B&&v({el:t,node:B})}),()=>{$=!0}}qo();const A=new Float32Array(k.fftSize);let T=0,S=0,D=0,H=0,R=null;const E=$=>{const B=_i(k,A);T=B>T?B:T*t8;const F=T>1e-5?20*Math.log10(T):-1/0,X=Math.max(c,F),Q=X-d,ee=Math.min(1,Math.max(0,(Q-u)/(m-u)));if(w.style.setProperty("--meter-level",ee.toFixed(3)),f.current&&(S+=X,D+=1,$-H>=a8)){const N=S/D;R=R==null?N:R*.6+N*.4,f.current.textContent=sc(R,d,u,m),S=0,D=0,H=$}b.current=requestAnimationFrame(E)};return b.current=requestAnimationFrame(E),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,x,c,d,u,m]);const C=typeof r=="number"?`${r}px`:r,y=o.jsx("div",{className:"audio-meter__track",style:C?a==="vertical"?{height:C}:{width:C}:{},children:o.jsx("div",{ref:g,className:"audio-meter__fill"})}),_=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:_e("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${_}`,n&&`audio-meter--align-${s}`,p),role:"meter","aria-label":h,children:[y,n&&o.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:sc(c,d,u,m)})]})}const Rm=500;function lc({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),d=l.useRef(s),u=l.useRef(n);l.useEffect(()=>{d.current=s},[s]),l.useEffect(()=>{u.current=n},[n]);const m=l.useRef(null),p=l.useRef(""),h=l.useRef(r);l.useEffect(()=>{h.current=r});const g=a,f=l.useRef(null),b=l.useRef(0),x=l.useRef(0),v=l.useRef(!1),C=l.useRef(null),y=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(()=>{});w.current=S=>{S<0||(b.current=Date.now(),x.current=S,f.current=setTimeout(()=>{f.current=null,i(!1),C.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Rm)},S))};const A=l.useCallback(()=>{v.current||!f.current||(v.current=!0,clearTimeout(f.current),f.current=null,x.current=Math.max(0,x.current-(Date.now()-b.current)))},[]),T=l.useCallback(()=>{v.current&&(v.current=!1,w.current(x.current))},[]);return l.useEffect(()=>{if(e!==p.current&&(f.current&&(clearTimeout(f.current),f.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(u.current)return g>0&&!f.current&&(v.current=!1,w.current(g)),p.current=e,()=>{};const S=()=>{const D=m.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(S(),i(!0)):(c(!0),y.current=requestAnimationFrame(()=>{_.current=requestAnimationFrame(()=>{S(),i(!0)})})),g>0&&(v.current=!1,w.current(g))}else i(!1),C.current=setTimeout(()=>c(!1),Rm);return p.current=e,()=>{f.current&&clearTimeout(f.current),C.current&&clearTimeout(C.current),y.current&&cancelAnimationFrame(y.current),_.current&&cancelAnimationFrame(_.current),k.current&&clearTimeout(k.current),f.current=null,C.current=null,y.current=null,_.current=null,k.current=null}},[e,g,t]),{mounted:s,showing:n,popupRef:m,pause:A,resume:T}}var o8=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ae(o8);function uo({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c,pause:d,resume:u}=lc({message:e,position:t,duration:n,onClose:r});if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",p=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:d,onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:o.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Kt.createPortal(p,document.body):p}var r8='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ae(r8);const n8=24;function Pm({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:d="right",ariaLabel:u,className:m}){const p=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),g=h/p*100,f=c??(a>=n8?"inside":"bottom"),b=f==="center"?"inside":f,x=b==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),v={};return r&&(v["--progress-bar-fill"]=r),n&&(v["--progress-bar-track"]=n),o.jsxs("div",{className:_e("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${d}`,i&&x&&"progress-bar--label-on-fill",m),style:v,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":p,"aria-label":u,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(h):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(h):`${h} / ${p}`})]})}var i8=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";ae(i8);const s8="rgba(255, 255, 255, 0.16)";function cc({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:d}=he.useTranslation(),u=na("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=c??d("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),n&&(a||(h["--pi-inactive-bg"]=s8),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:h,role:s?"status":"img","aria-label":p,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<m?" done":f===m?" active":""}`},f))}):u?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":p,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":p,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{role:"listitem","aria-current":f===m?"step":void 0,className:`progress-indicator-dot ${f<m?" done":f===m?" active":""} body-3`,children:f+1},f))})}function l8(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var c8=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{position:relative}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px}.ihabdevteam-core-scope .table-fields__reset{position:absolute;right:2px;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";ae(c8);var d8=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";ae(d8);var u8='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';ae(u8);function p8({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function dc({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,expandedContent:u}){const m=l.useCallback(p=>{n&&p.target===p.currentTarget&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(Mo,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?m:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),u&&o.jsx("div",{className:"table-row-expand",children:u})]})}function h8({dir:e}){return o.jsx(e==="asc"?Bd:Sd,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function m8({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:_e("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(h8,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function Nn({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:d,draggingId:u,gridTemplateColumns:m,resizable:p=!1,resizeMode:h="grow",resizeStorageKey:g,size:f="small",title:b,icon:x,count:v,collapsed:C=!1,onToggleCollapse:y,headerActions:_,empty:k,loading:w,dragOver:A=!1,onDragOver:T,onDragLeave:S,onDrop:D,renderExpandedRow:H,expandedId:R}){const{t:E}=he.useTranslation(),$=48,B=g?`table-cols:${g}`:null,F=l.useRef(null),X=l.useRef(()=>!1),Q=l.useRef([]),ee=l.useRef(null),[N,L]=l.useState(()=>{if(!B||typeof window>"u")return null;try{const M=JSON.parse(window.localStorage.getItem(B)??"null");return Array.isArray(M)&&M.every(U=>typeof U=="number")?M:null}catch{return null}}),P=l.useRef(N);l.useEffect(()=>{P.current=N},[N]);const V=l.useCallback(M=>{const U=ee.current;U&&L(oe=>{if(!oe)return oe;const we=[...oe];if(U.next!=null&&U.startWNext!=null){const de=M.clientX-U.startX,z=Math.max($-U.startW,Math.min(U.startWNext-$,de));we[U.index]=U.startW+z,we[U.next]=U.startWNext-z}else we[U.index]=Math.max($,U.startW+(M.clientX-U.startX));return we})},[]),W=l.useCallback(()=>{if(ee.current=null,window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="",B&&P.current)try{window.localStorage.setItem(B,JSON.stringify(P.current))}catch{}},[V,B]),te=l.useCallback((M,U)=>{U.preventDefault(),U.stopPropagation();const oe=F.current;if(!oe)return;const we=Array.from(oe.children).map(z=>z.getBoundingClientRect().width),de=h==="fit"?e.findIndex((z,K)=>K>M&&z.resizable!==!1):-1;ee.current=de>=0?{index:M,startX:U.clientX,startW:we[M],next:de,startWNext:we[de]}:{index:M,startX:U.clientX,startW:we[M]},L(we),window.addEventListener("pointermove",V),window.addEventListener("pointerup",W),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[V,W,h,e]),O=l.useCallback(()=>{const M=F.current,U=M?.closest(".table-wrap");if(!M||!U)return;const oe=U.style.getPropertyValue("--table-grid-cols");U.style.setProperty("--table-grid-cols",e.map((Le,Te)=>X.current(Te)?Q.current[Te]:"max-content").join(" "));const we=Array.from(U.querySelectorAll(".table-row")).filter(Le=>!Le.classList.contains("table-row--loading")&&!Le.classList.contains("table-row--empty")),de=e.map((Le,Te)=>{let Ee=M.children[Te]?.getBoundingClientRect().width??0;for(const Be of we){const Ue=Be.children[Te];Ue&&(Ee=Math.max(Ee,Ue.getBoundingClientRect().width))}return Math.max($,Math.ceil(Ee))}),z=window.getComputedStyle(M),K=M.clientWidth-(parseFloat(z.paddingLeft)||0)-(parseFloat(z.paddingRight)||0);oe?U.style.setProperty("--table-grid-cols",oe):U.style.removeProperty("--table-grid-cols");let Z=de;const ge=de.reduce((Le,Te,Ee)=>Le+(X.current(Ee)?Te:0),0),je=de.reduce((Le,Te,Ee)=>Le+(X.current(Ee)?0:Te),0),Fe=K-ge;if(K>0&&je>0&&Fe>0){const Le=Fe/je;Z=de.map((Ee,Be)=>X.current(Be)?Ee:Math.max($,Math.round(Ee*Le)));const Te=Math.round(Fe-Z.reduce((Ee,Be,Ue)=>Ee+(X.current(Ue)?0:Be),0));if(Te!==0){let Ee=-1;Z.forEach((Be,Ue)=>{!X.current(Ue)&&(Ee<0||Be>Z[Ee])&&(Ee=Ue)}),Ee>=0&&(Z[Ee]=Math.max($,Z[Ee]+Te))}}if(L(Z),B)try{window.localStorage.setItem(B,JSON.stringify(Z))}catch{}},[e,h,B]);l.useEffect(()=>()=>{ee.current&&(window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="")},[V,W]);const Y=l8(m),I=Y.filter(M=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(M));I.length>0&&Zn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${I.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ce=M=>/^\d+(\.\d+)?px$/.test(Y[M]??"");X.current=ce,Q.current=Y;const pe=M=>h==="fit"&&!ce(M)?"fr":"px",me=N&&N.length===e.length&&(h==="fit"||a.length>0)?e.map((M,U)=>M.resizable===!1&&Y[U]?Y[U]:`${N[U]}${pe(U)}`).join(" "):m,ye=me?{"--table-grid-cols":me}:void 0,be=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${f}${p?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${C?" table-wrap--collapsed":""}`,style:ye,onDragOver:T,onDragLeave:S,onDrop:D,children:o.jsxs("div",{className:"table body-2",children:[be&&o.jsxs("div",{className:"table-header",onClick:y,role:y?"button":void 0,tabIndex:y?0:void 0,"aria-expanded":y?!C:void 0,onKeyDown:y?M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),y())}:void 0,children:[y&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:C?"chevron-right":"chevron-down",ariaLabel:C?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&o.jsx(He,{icon:x,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),v!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:v}),_&&o.jsx("span",{className:"table-header__actions",onClick:M=>M.stopPropagation(),children:_})]}),!C&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map((M,U)=>o.jsx("div",{className:_e("table-field body-3",M.className),style:{gridColumn:`span ${M.span}`},children:M.label},U))}),o.jsxs("div",{className:_e("table-fields-strip",p&&"table-fields-strip--resizable"),children:[o.jsx("div",{className:"table-fields",ref:F,children:e.map((M,U)=>o.jsx(m8,{onClick:M.onClick,className:M.className,sortDir:M.sortDir,onResizeStart:p&&U<e.length-1&&M.resizable!==!1&&(h!=="fit"||e.some((oe,we)=>we>U&&oe.resizable!==!1))?oe=>te(U,oe):void 0,children:M.label},U))}),p&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:O})]}),o.jsx("div",{className:"table-body",children:w?o.jsx(dc,{variant:"loading"}):a.length===0&&k?o.jsx(dc,{variant:"empty",children:k}):a.map((M,U)=>{const oe=u!=null&&M.id===u,we=R!=null&&(R instanceof Set?R.has(M.id):M.id===R);return o.jsx(dc,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${oe?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n(M):void 0,onMouseEnter:i?de=>i(M,de):void 0,onMouseLeave:s?de=>s(M,de):void 0,onDragStart:c?de=>c(M,de):void 0,onDragEnd:d?de=>d(M,de):void 0,expandedContent:we&&H?H(M):void 0,children:r(M).map((de,z)=>o.jsx(p8,{className:de.className,style:de.style,children:de.content},z))},String(M.id??U))})})]})]})})}function zm(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var b8=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";ae(b8);function Im(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Om({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=he.useTranslation(),c=f=>f==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:u}=Cl(),m=l.useMemo(()=>{if(!d)return e;const{key:f,asc:b}=d;return[...e].sort((x,v)=>{const C=f==="worn"?Number(v.worn)-Number(x.worn):Im(x,f).localeCompare(Im(v,f),"ko");return b?C:-C})},[e,d]),{pageRows:p,pageSizeProps:h,paginationProps:g}=_l(m,d);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(kn,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:h,pagination:g,actions:i&&o.jsx(ie,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(Nn,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...u(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},u(s("device.direction.label","\uBC29\uD5A5"),"side"),u(s("device.deviceType","\uC885\uB958"),"device"),u(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),u(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),u(s("device.productName","\uC81C\uD488\uBA85"),"productName"),u(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:p.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(ac,{checked:f.worn,disabled:!r||!n,ariaLabel:f.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):n?.(f)}})})},{content:o.jsx("span",{children:c(f.side)})},{content:f.device?o.jsx(pt,{size:"small",variant:zm(f.device),fill:"soft",label:f.device}):o.jsx("span",{})},{content:o.jsx("span",{children:f.brand})},{content:o.jsx("span",{children:f.fitType||"-"})},{content:o.jsx("span",{children:f.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(ie,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>t(f),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var g8=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
|
|
836
|
+
`)}const T3=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),L3=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function M3(e,t){let a=e;const r=[],n=/sh|bash/.test(t.toLowerCase()),i=(s,c)=>r.push({type:s,content:c});for(;a.length>0;){const s=a.match(/^\s+/);if(s){i("whitespace",s[0]),a=a.slice(s[0].length);continue}if(!n&&a.startsWith("//")){const g=a.indexOf(`
|
|
837
|
+
`),b=g===-1?a:a.slice(0,g);i("comment",b),a=a.slice(b.length);continue}if(n&&a.startsWith("#")){const g=a.indexOf(`
|
|
838
|
+
`),b=g===-1?a:a.slice(0,g);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const m=a.match(L3);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const g=p[0];i(n&&T3.has(g)?"command":"identifier",g),a=a.slice(g.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const f=a.match(/^[()[\]{};.,]/);if(f){i("punctuation",f[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function wm({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=he.useTranslation(),[c,d]=l.useState(!1),u=E3(ym(e)),m=l.useRef(null);l.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await _s(u))return;d(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}catch{}},h=M3(u,t),f=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:_e("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(ie,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:h.map((g,b)=>o.jsx("span",{className:`code-token ${g.type} ${f}`,children:g.content},b))})})]})}var $3=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";ae($3);function Mo(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var R3='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';ae(R3);function tc({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const d=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&d,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}var P3=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;ae(P3);function ac({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:d}){const u=l.useRef(null),m=l.useId();return l.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:_e("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:m,title:c,children:[o.jsx("input",{ref:u,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:p=>t?.(p.target.checked),disabled:a,"aria-label":!n&&d?d:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var z3=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";ae(z3);function km({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=he.useTranslation(),d=n!==void 0?n:e>0,u=l.useRef(null),[m,p]=l.useState(!1);return l.useEffect(()=>{const h=u.current;if(!h)return;const f=()=>{const b=h.firstElementChild??h,x=Array.from(b.children);if(x.length<2){p(!1);return}const v=x[0].offsetTop;p(x.some(C=>C.offsetTop!==v))};if(f(),typeof ResizeObserver>"u")return;const g=new ResizeObserver(f);return g.observe(h),()=>g.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${d?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:u,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(pt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[o.jsx(ie,{size:40,label:r,onClick:a}),t.map((h,f)=>o.jsx(ie,{size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},f))]})]})}function oc(e){const t=()=>{if(e){const[p,h]=e.split("-");return{y:+p,m:+h-1}}const m=new Date;return{y:m.getFullYear(),m:m.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const m=t();r(m.y),i(m.m)},[e]);const c=l.useCallback(()=>{n===0?(r(m=>m-1),i(11)):i(m=>m-1)},[n]),d=l.useCallback(()=>{n===11?(r(m=>m+1),i(0)):i(m=>m+1)},[n]),u=l.useCallback((m,p)=>{r(m),i(p)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:d,setViewYM:u}}var I3=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";ae(I3);function Am(e,t){return new Date(e,t+1,0).getDate()}function O3(e,t){return new Date(e,t,1).getDay()}function $o(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function F3(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function H3(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const d=`${s}-${String(c+1).padStart(2,"0")}`;t&&d<t.slice(0,7)||a&&d>a.slice(0,7)||i.push({value:d,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function Sm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:d}=he.useTranslation(),u=l.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),m=new Date,{viewY:p,viewM:h,prevMonth:f,nextMonth:g,setViewYM:b}=oc(e),x=l.useCallback(A=>{const T=window.innerHeight-A.bottom,P=300,F=T<P&&A.top>P;return{position:"fixed",left:A.left,width:A.width,minWidth:260,...F?{bottom:window.innerHeight-A.top+6}:{top:A.bottom+6},zIndex:9999}},[]),{open:v,setOpen:C,toggle:y,style:_,triggerRef:k,menuRef:w}=co({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!v)return;const A=w.current;return(A?.querySelector(".date-picker__day--selected")??A?.querySelector(".date-picker__day--today")??A?.querySelector(br)??A)?.focus?.(),()=>{const T=document.activeElement;(!T||T===document.body)&&k.current?.focus?.()}},[v,w,k]);const[S,L]=l.useState(1),B=l.useRef(null),D=l.useRef(null);l.useEffect(()=>{if(!v)return;const A=$o(m.getFullYear(),m.getMonth(),m.getDate()),T=e&&e.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+e.slice(8):A.slice(0,7)===`${p}-${String(h+1).padStart(2,"0")}`?+A.slice(8):1;L(T)},[v]),l.useEffect(()=>{if(D.current==null)return;const A=D.current;D.current=null,B.current?.querySelector(`[data-day="${A}"]`)?.focus()}),l.useEffect(()=>{L(A=>Math.min(A,Am(p,h)))},[p,h]);const H=l.useCallback(A=>{let T=$o(A.getFullYear(),A.getMonth(),A.getDate());r&&T<r&&(T=r),n&&T>n&&(T=n);const[P,F,W]=T.split("-").map(Number);(P!==p||F-1!==h)&&b(P,F-1),L(W),D.current=W},[r,n,p,h,b]),$=l.useCallback(A=>{const T=new Date(p,h,S),P=W=>{T.setDate(T.getDate()+W),H(T)},F=W=>{T.setMonth(T.getMonth()+W),H(T)};switch(A.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-T.getDay());break;case"End":P(6-T.getDay());break;case"PageUp":A.shiftKey?F(-12):F(-1);break;case"PageDown":A.shiftKey?F(12):F(1);break;default:return}A.preventDefault()},[p,h,S,H]),E=l.useCallback(A=>{t($o(p,h,A)),C(!1)},[p,h,t,C]),R=A=>{const T=$o(p,h,A);return!!(r&&T<r||n&&T>n)},N=[];for(let A=0;A<O3(p,h);A++)N.push(null);for(let A=1;A<=Am(p,h);A++)N.push(A);const V=a===64?20:a===40?16:18,J=H3(p,r,n),Q=`${p}-${String(h+1).padStart(2,"0")}`,ee=v?Kt.createPortal(o.jsxs("div",{ref:w,className:"date-picker__dropdown",style:_,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(bd,{size:16,strokeWidth:2})}),o.jsx(Xt,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:J,value:Q,onChange:A=>{const[T,P]=A.split("-");b(+T,+P-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(gd,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:B,onKeyDown:$,children:[u.map(A=>o.jsx("div",{className:"date-picker__dow caption-1",children:A},A)),N.map((A,T)=>{if(A===null)return o.jsx("div",{},`e${T}`);const P=$o(p,h,A),F=P===e,W=P===$o(m.getFullYear(),m.getMonth(),m.getDate()),te=R(A),O=T%7;return o.jsx("button",{type:"button",disabled:te,"data-day":A,tabIndex:A===S?0:-1,"aria-current":W?"date":void 0,onClick:()=>!te&&E(A),className:_e("date-picker__day caption-1",F&&"date-picker__day--selected",W&&!F&&"date-picker__day--today",te&&"date-picker__day--disabled",O===0&&"date-picker__day--sun",O===6&&"date-picker__day--sat"),children:A},A)})]})]}),document.body):null;return o.jsxs("div",{className:_e("date-picker",`date-picker--s${a}`,v&&"date-picker--open",c),children:[o.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&y(),disabled:i,"aria-haspopup":"true","aria-expanded":v,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?F3(e):s}),o.jsx(Ad,{size:V,className:"date-picker__icon",strokeWidth:1.5})]}),ee]})}var V3=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-bar,.ihabdevteam-core-scope .manager-bar-chart-stack{flex:0 1 var(--bar-width);max-width:var(--bar-width)}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";ae(V3);var W3=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";ae(W3);function Sn({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function kr({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function Bn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function Za(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function G3(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Za(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-Za(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function Bm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,n=new Map;n.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());n.has(u)||n.set(u,[]),n.get(u).push(d)}const i=new Map;for(const[d,u]of n){const m=d.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),h=Number(m[2])-1,f=new Date(p,h+1,0).getDate(),g=u.reduce((C,y)=>Math.max(C,y.parts?.length??0),0),b=new Array(f+1).fill(0),x=new Array(f+1).fill(0),v=Array.from({length:f+1},()=>new Array(g).fill(0));for(const C of u){const y=C.date.getDate();if(b[y]+=C.a,x[y]+=C.b,C.parts)for(let _=0;_<g;_++)v[y][_]+=C.parts[_]??0}i.set(d,{year:p,month:h,daysInMonth:f,partsLen:g,dayA:b,dayB:x,dayParts:v})}const s=(d,u,m)=>new Date(d,u,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[d,u]of i){const{year:m,month:p,daysInMonth:h,dayA:f,dayB:g,dayParts:b}=u,x=m===t.getFullYear()&&p===t.getMonth(),v=t.getDate(),C=i.get(r(p===11?m+1:m,(p+1)%12)),y=u.partsLen,_=[];for(let w=1;w<=h;w++){const S=x&&w>v;_.push({label:String(w),a:S&&f[w]===0&&g[w]===0?-1:f[w],b:g[w],...y?{parts:b[w]}:{}})}const k=[];for(let w=Za(m,p);w<=h;w+=7){const S=Math.max(0,w+6-h),L=S&&C?Math.max(y,C.partsLen):y;let B=0,D=0;const H=new Array(L).fill(0);for(let E=w;E<=Math.min(w+6,h);E++){B+=f[E],D+=g[E];for(let R=0;R<y;R++)H[R]+=b[E][R]}if(S&&C)for(let E=1;E<=S&&!s(C.year,C.month,E);E++){B+=C.dayA[E],D+=C.dayB[E];for(let R=0;R<C.partsLen;R++)H[R]+=C.dayParts[E][R]}const $=S?`${(p+1)%12+1}/${S}`:`${w+6}`;k.push({label:`${k.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${$}\uC77C]`,a:B,b:D,...L?{parts:H}:{}})}c[d]={weekly:k,daily:_}}return c}function U3(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const Y3=U3(),Nm=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function rc(e){const{t,i18n:a}=he.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>Y3.filter(B=>B.value in e),[e]),s=l.useMemo(()=>{const B=[];for(const D of i){const H=new Date(D.year,D.month,0).getDate(),$=Za(D.year,D.month-1),E=Math.ceil((H-$+1)/7);for(let R=E-1;R>=0;R--)B.push({value:`${D.value}#${R}`,monthKey:D.value,year:D.year,month:D.month,week:R})}return B},[i]),c=l.useCallback(B=>{const D=t("calendar.yearMonth",{year:B.year,month:B.month});return a.language?.startsWith("ko")?`${D} ${Nm[B.week]??`${B.week+1}`}\uC8FC`:`${D} Week ${B.week+1}`},[t,a.language]),d=l.useMemo(()=>i.map(B=>({value:B.value,label:t("calendar.yearMonth",{year:B.year,month:B.month})})),[t,i]),u=l.useMemo(()=>s.map(B=>({value:B.value,label:c(B)})),[s,c]),m=l.useMemo(()=>G3(),[]),p=l.useMemo(()=>i.find(B=>B.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),h=l.useMemo(()=>s.find(B=>B.value===m.value)?.value??s[0]?.value??"",[s,m]),[f,g]=l.useState(""),[b,x]=l.useState("");l.useEffect(()=>{i.find(B=>B.value===f)||g(p)},[i,f,p]),l.useEffect(()=>{s.find(B=>B.value===b)||x(h)},[s,b,h]);const v=r==="month"?d:u,C=r==="month"?f:b,y=r==="month"?g:x,_=l.useMemo(()=>{const B=t("calendar.dow",{returnObjects:!0});return Array.isArray(B)?B:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=v.findIndex(B=>B.value===C),w=l.useCallback(()=>{const B=v.findIndex(D=>D.value===C);B<v.length-1&&y(v[B+1].value)},[v,C,y]),S=l.useCallback(()=>{const B=v.findIndex(D=>D.value===C);B>0&&y(v[B-1].value)},[v,C,y]),L=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:C,setRange:y,activeOptions:v,activeIdx:k,handlePrev:w,handleNext:S,periodOptions:L,monthRange:f,weekRange:b,weekRanges:s,DOW:_}}function q3({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:d,seriesColors:u,seriesLabels:m,rateLabels:p}){const h=!a,f=!!(u&&u.length>0),g=l.useMemo(()=>f?Math.max(0,...e.filter(S=>S.a!==-1).map(S=>(S.parts??[]).reduce((L,B)=>L+Math.max(0,B),0))):Math.max(0,...e.filter(S=>S.a!==-1).flatMap(S=>h?[S.a]:[S.a,S.b])),[e,h,f]),b=l.useMemo(()=>c??(d?g>0?g:10:Math.ceil(g/10)*10||10),[g,c,d]),x=s,v=f||h?1:2,C={"--bar-width":`${l.useMemo(()=>{const S=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(S*v)+6)))},[e.length,v,i])}px`},y=l.useMemo(()=>{const S=Math.round(b/2);return S!==b?[b,S,0]:[b,0]},[b]),[_,k]=l.useState(null),w=l.useCallback(()=>k(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[y.slice(0,-1).map((S,L)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:L*(x/(y.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:S})},L)),e.map((S,L)=>{const B=S.a===-1,D=B?0:S.a/b*x,H=B?0:S.b/b*x,$=S.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:B?"default":"pointer"},onMouseEnter:B?void 0:E=>{const R=E.currentTarget.getBoundingClientRect(),N=[S.label,S.sublabel].filter(Boolean).join(" ");let V;if(f){const J=(m??[]).map((ee,A)=>({text:`${ee}: ${$[A]??0}`,color:(u??[])[A]})),Q=J.filter((ee,A)=>($[A]??0)>0);V=Q.length?Q:J}else p&&!h?V=[{text:`${r} ${S.a}%`,color:t},{text:`${n} ${S.b}%`,color:a}]:p&&S.rawB!==void 0?V=[{text:`${p.total} ${S.rawB}`},{text:`${p.done} ${S.rawA??0}`,color:t}]:h?V=[{text:`${r}: ${S.a}`,color:t}]:V=[{text:`${r}: ${S.a}`,color:t},{text:`${n}: ${S.b}`,color:a}];k({rect:{left:R.left,top:R.top,right:R.right,bottom:R.bottom,width:R.width,height:R.height},title:N,items:V})},onMouseLeave:w,children:!B&&(f?o.jsx("div",{className:"manager-bar-chart-stack",style:C,children:(()=>{const E=$.reduce((R,N,V)=>N>0?V:R,-1);return $.map((R,N)=>R>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:R/b*x,background:(u??[])[N],borderRadius:N===E?"6px 6px 0 0":void 0}},N):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:D,background:t}}),!h&&o.jsx("div",{className:"manager-bar-chart-bar",style:{...C,height:H,background:a}})]}))},L)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((S,L)=>{const B=S.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${B?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[S.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),S.label]}),S.sublabel&&o.jsx("span",{className:"caption-1",children:S.sublabel})]},L)})})]})})}),_&&o.jsx(Ua,{anchorRect:_.rect,title:_.title,items:_.items,showIndex:!1,closeOnOutsideClick:!1})]})}function nc({control:e}){const{t}=he.useTranslation(),{activeOptions:a,activeIdx:r,range:n,setRange:i,handlePrev:s,handleNext:c,periodOptions:d,period:u,setPeriod:m}=e,p=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(ie,{size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:s}),o.jsx(Xt,{value:n,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(ie,{size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),o.jsx(Ka,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:f=>m(f),size:32})]})}function Dm(e,t,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(n,i)=>{const s=new Date(t);s.setDate(t.getDate()+i);const c=(e[`${s.getFullYear()}\uB144 ${s.getMonth()+1}\uC6D4`]?.daily??[])[s.getDate()-1],d=c?.a===-1||s>r;return{dt:s,entry:c,isFuture:d}})}function K3(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:d}=t,u=r?.startsWith("ko"),m=new Date,p=m.getFullYear(),h=m.getMonth()+1,f=m.getDate();if(n==="month"){const x=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),C=v?Number(v[1]):null,y=v?Number(v[2]):null,_=C&&y?Za(C,y-1):1;return x.weekly.map((k,w)=>{const S=w+1;let L=k.label,B=!1,D=!1;if(C&&y){const H=_+w*7,$=new Date(C,y-1,H+6),E=$.getMonth()+1,R=$.getDate(),N=E===y?`${R}`:`${E}/${R}`;L=a("manager.chart.weekRange",{start:H,end:N});const V=new Date(p,h-1,f).getTime();B=V>=new Date(C,y-1,H).getTime()&&V<=$.getTime(),D=C>p||C===p&&(y>h||y===h&&H>f)}return{...k,label:L,sublabel:u?`${Nm[S-1]??S}\uC8FC`:`Week ${S}`,isToday:B,a:D?-1:k.a,b:D?0:k.b}})}const g=c.find(x=>x.value===s);if(!g)return[];const b=new Date(g.year,g.month-1,Za(g.year,g.month-1)+g.week*7);return Dm(e,b,m).map(({dt:x,entry:v,isFuture:C})=>{const y=x.getMonth()+1,_=x.getDate(),k=x.getFullYear();return{label:y===g.month&&k===g.year?`${_}`:`${y}/${_}`,sublabel:d[x.getDay()]??"",a:C?-1:v&&v.a>0?v.a:0,b:C?0:v&&v.b>0?v.b:0,isToday:k===p&&y===h&&_===f,...v?.parts?{parts:C?v.parts.map(()=>0):v.parts}:{}}})}const Z3={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function jm({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:n,colorB:i,labelAKey:s,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:m,control:p,hideControls:h=!1,rate:f=!1,tightMax:g=!1,avgMode:b=!1,totalFormat:x,series:v,loading:C=!1,onDetail:y}){const{t:_,i18n:k}=he.useTranslation(),w=Z3[e],S=rc(r),L=p??S,B=l.useMemo(()=>K3(r,L,_,k.language),[r,L,_,k.language]),D=l.useMemo(()=>{if(!f)return B;const R=L.period==="month"?L.monthRange.match(/^(\d+)년 (\d+)월$/):null,N=new Date;return B.map((V,J)=>{let Q=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(R&&V.a!==-1){const ee=Number(R[1]),A=Number(R[2])-1,T=Dm(r,new Date(ee,A,Za(ee,A)+J*7),N).filter(P=>!P.isFuture);Q=T.length?Math.round(T.reduce((P,{entry:F})=>P+(F&&F.b>0?F.a/F.b*100:0),0)/T.length):0}return{...V,a:Q,b:V.a===-1?0:c&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b}})},[B,f,c,L.period,L.monthRange,r]),H=l.useMemo(()=>{if(f||b){const R=(L.period==="week"?B:r[L.monthRange]?.daily??[]).filter(V=>V.a!==-1);if(R.length===0)return 0;const N=f?R.reduce((V,J)=>V+(J.b>0?J.a/J.b*100:0),0):R.reduce((V,J)=>V+(J.a>0?J.a:0),0);return Math.round(N/R.length)}return D.reduce((R,N)=>R+(N.a>0?N.a:0)+(c&&N.b>0?N.b:0),0)},[D,B,f,b,c,L.period,L.monthRange,r]),$=v&&v.length>0?v.map(R=>({color:R.color,label:R.label})):[{color:n,label:_(s)},...c?[{color:i,label:_(c)}]:[]],E=e==="small";return o.jsx(Bn,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:_(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:o.jsxs(o.Fragment,{children:[!h&&o.jsx(nc,{control:L}),y&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(ie,{size:32,type:"dot",icon:"list",ariaLabel:_("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:y})})]}),subRow:o.jsxs(o.Fragment,{children:[d?f||b||m&&x?o.jsx(kr,{label:E?void 0:`${_(L.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${_(m??s)}`,children:x?(x(H).match(/(\d+|[^\d]+)/g)??[]).map((R,N)=>/\d/.test(R)?o.jsx("span",{className:"barchart-total__num h0",children:R},N):o.jsx("span",{className:"barchart-total__unit h5",children:R},N)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:H}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]})}):o.jsxs(kr,{children:[o.jsx("span",{className:"barchart-total__num h0",children:H}),o.jsx("span",{className:"barchart-total__unit h5",children:_(s)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:_(u)})]}):o.jsx("span",{}),o.jsx(Sn,{items:$,className:"caption-1"})]}),children:C?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Mo,{size:32})}):o.jsx(q3,{data:D,colorA:n,colorB:c?i:void 0,labelA:_(s),labelB:c?_(c):void 0,barWidth:t??w.barWidth,height:w.height,maxOverride:f?100:void 0,tightMax:g,seriesColors:v?.map(R=>R.color),seriesLabels:v?.map(R=>R.label),rateLabels:f?{total:_("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:_("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Em(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),d=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,d-1,1,0,0,0),to:new Date(c,d,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=Za(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var X3=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";ae(X3);const Tm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Lm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof n=="number"?n:Tm[n].diameter,m=i??(typeof n=="number"?12:Tm[n].strokeWidth),p=u/2,h=(u-m)/2,f=2*Math.PI*h;if(a&&a.length>0){const v=a.reduce((C,y)=>{const _=C.length>0?C[C.length-1].acc:0,k=Math.max(0,Math.min(y.ratio,1-_));return C.push({color:y.color,rotate:-90+_*360,dash:f*k,acc:_+k}),C},[]);return o.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v.map((C,y)=>C.dash>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:C.color,strokeWidth:m,strokeDasharray:`${C.dash} ${f}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},y))]})})}const g=(t??0)>0?Math.min((e??0)/t,1):0,b=f*g,x=f-b;return o.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[o.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),g>0&&o.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${b} ${x}`,strokeLinecap:g<.02||g>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Math.round(g*100)}),!d&&o.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function Mm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...d}){const{t:u}=he.useTranslation();if(!e)return o.jsx(Lm,{...d});const m=(d.total??0)>0?Math.round(Math.min((d.done??0)/d.total,1)*100):0,p=d.size==="small",h=d.size==="large",f=[c,p?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,g=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(He,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(Bn,{className:f,title:u(e),titleClassName:p?"h5 chart-section-title--small":void 0,headRight:g||(p?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(kr,{label:!p&&n?u(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:m}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(Sn,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Mo,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(Lm,{...d,hideCenter:p||d.hideCenter})})})}var J3=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";ae(J3);function $m({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:d,openAt:u,close:m}=To(),p=l.useCallback(()=>{i&&c.current&&u(c.current)},[i,u]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),f=a===void 0?void 0:a>0?`+${a}`:`${a}`,g=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?g:void 0,onPointerEnter:p,onPointerLeave:m,onFocus:p,onBlur:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&d&&o.jsx(va,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(He,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),f&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:f})]})})]})}var Q3='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';ae(Q3);function ic({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:d,length:u,className:m,label:p,formatValue:h,labelPos:f,labelAlign:g="right",showMinMax:b=!1,minLabel:x,maxLabel:v,showBgTick:C=!1,showFillTick:y=!1,tickStep:_,tickShape:k="dot"}){t&&!d&&Xn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const w=Math.min(r,Math.max(a,e)),S=r>a?(w-a)/(r-a):0,L=i==="vertical",B=!t,D=F=>t?.(Number(F.target.value)),H=typeof u=="number"?`${u}px`:u,$={"--slider-ratio":String(S),"--slider-thumb":`${s}px`,...H?L?{height:H}:{width:H}:{}},E=_??n,R=(C||y)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(R>0&&R<=100){const F=k!=="dash",W=ce=>F?`radial-gradient(circle, ${ce} 0.5px, transparent 1px)`:L?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`,te=F?"2px":"4px",O=[],Y=[],I=[];for(let ce=0;ce<=R;ce++){const pe=ce*E/(r-a);if(pe>1+1e-6)break;const me=`${((L?1-pe:pe)*100).toFixed(4)}%`,ye=pe<=S+1e-6;if(ye?!y:!C)continue;const be=ye?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(W(be)),Y.push(L?`${te} var(--slider-thumb)`:`var(--slider-thumb) ${te}`),I.push(L?`center ${me}`:`${me} center`)}O.push(L?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),Y.push("100% 100%"),I.push("0 0"),$.backgroundImage=O.join(", "),$.backgroundSize=Y.join(", "),$.backgroundPosition=I.join(", "),$.backgroundRepeat="no-repeat"}const N=o.jsx("input",{type:"range",className:_e("slider",`slider--${i}`,B&&"slider--static",!p&&!b&&m),min:a,max:r,step:n,value:w,disabled:c,readOnly:B,tabIndex:B?-1:void 0,"aria-label":d,"aria-orientation":i,onChange:D,style:$});if(!p&&!b)return N;const V=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:x??a}),J=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),Q=b?o.jsxs("div",{className:_e("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[L?J:V,N,L?V:J]}):N;if(!p)return Q;const ee=f??(L?"bottom":"right"),A=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,T=h?h(w):p==="percent"?A:p==="count"?`${w} / ${r}`:String(w),P=o.jsx("span",{className:"slider-wrap__value body-3b",children:T});return o.jsxs("div",{className:_e("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${ee}`,`slider-wrap--align-${g}`,m),children:[Q,P]})}var e8='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';ae(e8);const t8=.86,a8=250,sc=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function Nn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:m=25,className:p,ariaLabel:h}){const f=l.useRef(null),g=l.useRef(null),b=l.useRef(null),[x,v]=l.useState(null);l.useEffect(()=>{const k=e??xi(t)??(x&&x.el===t?x.node:null),w=f.current;if(!k||!w){w?.style.setProperty("--meter-level","0"),g.current&&(g.current.textContent=sc(c,d,u,m));let R=!1;return!e&&t&&xo(t).then(N=>{!R&&N&&v({el:t,node:N})}),()=>{R=!0}}qo();const S=new Float32Array(k.fftSize);let L=0,B=0,D=0,H=0,$=null;const E=R=>{const N=_i(k,S);L=N>L?N:L*t8;const V=L>1e-5?20*Math.log10(L):-1/0,J=Math.max(c,V),Q=J-d,ee=Math.min(1,Math.max(0,(Q-u)/(m-u)));if(w.style.setProperty("--meter-level",ee.toFixed(3)),g.current&&(B+=J,D+=1,R-H>=a8)){const A=B/D;$=$==null?A:$*.6+A*.4,g.current.textContent=sc($,d,u,m),B=0,D=0,H=R}b.current=requestAnimationFrame(E)};return b.current=requestAnimationFrame(E),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,x,c,d,u,m]);const C=typeof r=="number"?`${r}px`:r,y=o.jsx("div",{className:"audio-meter__track",style:C?a==="vertical"?{height:C}:{width:C}:{},children:o.jsx("div",{ref:f,className:"audio-meter__fill"})}),_=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:_e("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${_}`,n&&`audio-meter--align-${s}`,p),role:"meter","aria-label":h,children:[y,n&&o.jsx("span",{ref:g,className:"audio-meter__value caption-2",children:sc(c,d,u,m)})]})}const Rm=500;function lc({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),d=l.useRef(s),u=l.useRef(n);l.useEffect(()=>{d.current=s},[s]),l.useEffect(()=>{u.current=n},[n]);const m=l.useRef(null),p=l.useRef(""),h=l.useRef(r);l.useEffect(()=>{h.current=r});const f=a,g=l.useRef(null),b=l.useRef(0),x=l.useRef(0),v=l.useRef(!1),C=l.useRef(null),y=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(()=>{});w.current=B=>{B<0||(b.current=Date.now(),x.current=B,g.current=setTimeout(()=>{g.current=null,i(!1),C.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Rm)},B))};const S=l.useCallback(()=>{v.current||!g.current||(v.current=!0,clearTimeout(g.current),g.current=null,x.current=Math.max(0,x.current-(Date.now()-b.current)))},[]),L=l.useCallback(()=>{v.current&&(v.current=!1,w.current(x.current))},[]);return l.useEffect(()=>{if(e!==p.current&&(g.current&&(clearTimeout(g.current),g.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(u.current)return f>0&&!g.current&&(v.current=!1,w.current(f)),p.current=e,()=>{};const B=()=>{const D=m.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(B(),i(!0)):(c(!0),y.current=requestAnimationFrame(()=>{_.current=requestAnimationFrame(()=>{B(),i(!0)})})),f>0&&(v.current=!1,w.current(f))}else i(!1),C.current=setTimeout(()=>c(!1),Rm);return p.current=e,()=>{g.current&&clearTimeout(g.current),C.current&&clearTimeout(C.current),y.current&&cancelAnimationFrame(y.current),_.current&&cancelAnimationFrame(_.current),k.current&&clearTimeout(k.current),g.current=null,C.current=null,y.current=null,_.current=null,k.current=null}},[e,f,t]),{mounted:s,showing:n,popupRef:m,pause:S,resume:L}}var o8=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";ae(o8);function uo({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c,pause:d,resume:u}=lc({message:e,position:t,duration:n,onClose:r});if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",p=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:d,onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:o.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Kt.createPortal(p,document.body):p}var r8='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';ae(r8);const n8=24;function Pm({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:d="right",ariaLabel:u,className:m}){const p=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),f=h/p*100,g=c??(a>=n8?"inside":"bottom"),b=g==="center"?"inside":g,x=b==="inside"&&(d==="left"?f>=15:d==="center"?f>=50:f>=85),v={};return r&&(v["--progress-bar-fill"]=r),n&&(v["--progress-bar-track"]=n),o.jsxs("div",{className:_e("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${d}`,i&&x&&"progress-bar--label-on-fill",m),style:v,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":p,"aria-label":u,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${f}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(h):i==="percent"?`${Math.round(f)}%`:i==="raw"?String(h):`${h} / ${p}`})]})}var i8=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";ae(i8);const s8="rgba(255, 255, 255, 0.16)";function cc({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:d}=he.useTranslation(),u=na("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=c??d("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),n&&(a||(h["--pi-inactive-bg"]=s8),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:h,role:s?"status":"img","aria-label":p,children:Array.from({length:e}).map((f,g)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${g<m?" done":g===m?" active":""}`},g))}):u?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":p,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":p,children:Array.from({length:e}).map((f,g)=>o.jsx("span",{role:"listitem","aria-current":g===m?"step":void 0,className:`progress-indicator-dot ${g<m?" done":g===m?" active":""} body-3`,children:g+1},g))})}function l8(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var c8=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields-strip{position:relative}.ihabdevteam-core-scope .table-wrap--resizable .table-fields,.ihabdevteam-core-scope .table-wrap--resizable .table-row{padding-right:40px}.ihabdevteam-core-scope .table-fields__reset{position:absolute;right:2px;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";ae(c8);var d8=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";ae(d8);var u8='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';ae(u8);function p8({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function dc({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,expandedContent:u}){const m=l.useCallback(p=>{n&&p.target===p.currentTarget&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(Mo,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?m:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:d,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),u&&o.jsx("div",{className:"table-row-expand",children:u})]})}function h8({dir:e}){return o.jsx(e==="asc"?Bd:Sd,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function m8({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:_e("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(h8,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function Dn({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:d,draggingId:u,gridTemplateColumns:m,resizable:p=!1,resizeMode:h="grow",resizeStorageKey:f,size:g="small",title:b,icon:x,count:v,collapsed:C=!1,onToggleCollapse:y,headerActions:_,empty:k,loading:w,dragOver:S=!1,onDragOver:L,onDragLeave:B,onDrop:D,renderExpandedRow:H,expandedId:$}){const{t:E}=he.useTranslation(),R=48,N=f?`table-cols:${f}`:null,V=l.useRef(null),J=l.useRef(()=>!1),Q=l.useRef([]),ee=l.useRef(null),[A,T]=l.useState(()=>{if(!N||typeof window>"u")return null;try{const M=JSON.parse(window.localStorage.getItem(N)??"null");return Array.isArray(M)&&M.every(U=>typeof U=="number")?M:null}catch{return null}}),P=l.useRef(A);l.useEffect(()=>{P.current=A},[A]);const F=l.useCallback(M=>{const U=ee.current;U&&T(oe=>{if(!oe)return oe;const we=[...oe];if(U.next!=null&&U.startWNext!=null){const de=M.clientX-U.startX,z=Math.max(R-U.startW,Math.min(U.startWNext-R,de));we[U.index]=U.startW+z,we[U.next]=U.startWNext-z}else we[U.index]=Math.max(R,U.startW+(M.clientX-U.startX));return we})},[]),W=l.useCallback(()=>{if(ee.current=null,window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="",N&&P.current)try{window.localStorage.setItem(N,JSON.stringify(P.current))}catch{}},[F,N]),te=l.useCallback((M,U)=>{U.preventDefault(),U.stopPropagation();const oe=V.current;if(!oe)return;const we=Array.from(oe.children).map(z=>z.getBoundingClientRect().width),de=h==="fit"?e.findIndex((z,K)=>K>M&&z.resizable!==!1):-1;ee.current=de>=0?{index:M,startX:U.clientX,startW:we[M],next:de,startWNext:we[de]}:{index:M,startX:U.clientX,startW:we[M]},T(we),window.addEventListener("pointermove",F),window.addEventListener("pointerup",W),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[F,W,h,e]),O=l.useCallback(()=>{const M=V.current,U=M?.closest(".table-wrap");if(!M||!U)return;const oe=U.style.getPropertyValue("--table-grid-cols");U.style.setProperty("--table-grid-cols",e.map((Le,Te)=>J.current(Te)?Q.current[Te]:"max-content").join(" "));const we=Array.from(U.querySelectorAll(".table-row")).filter(Le=>!Le.classList.contains("table-row--loading")&&!Le.classList.contains("table-row--empty")),de=e.map((Le,Te)=>{let Ee=M.children[Te]?.getBoundingClientRect().width??0;for(const Be of we){const Ue=Be.children[Te];Ue&&(Ee=Math.max(Ee,Ue.getBoundingClientRect().width))}return Math.max(R,Math.ceil(Ee))}),z=window.getComputedStyle(M),K=M.clientWidth-(parseFloat(z.paddingLeft)||0)-(parseFloat(z.paddingRight)||0);oe?U.style.setProperty("--table-grid-cols",oe):U.style.removeProperty("--table-grid-cols");let Z=de;const ge=de.reduce((Le,Te,Ee)=>Le+(J.current(Ee)?Te:0),0),je=de.reduce((Le,Te,Ee)=>Le+(J.current(Ee)?0:Te),0),Fe=K-ge;if(K>0&&je>0&&Fe>0){const Le=Fe/je;Z=de.map((Ee,Be)=>J.current(Be)?Ee:Math.max(R,Math.round(Ee*Le)));const Te=Math.round(Fe-Z.reduce((Ee,Be,Ue)=>Ee+(J.current(Ue)?0:Be),0));if(Te!==0){let Ee=-1;Z.forEach((Be,Ue)=>{!J.current(Ue)&&(Ee<0||Be>Z[Ee])&&(Ee=Ue)}),Ee>=0&&(Z[Ee]=Math.max(R,Z[Ee]+Te))}}if(T(Z),N)try{window.localStorage.setItem(N,JSON.stringify(Z))}catch{}},[e,h,N]);l.useEffect(()=>()=>{ee.current&&(window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",W),document.body.style.cursor="",document.body.style.userSelect="")},[F,W]);const Y=l8(m),I=Y.filter(M=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(M));I.length>0&&Xn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${I.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ce=M=>/^\d+(\.\d+)?px$/.test(Y[M]??"");J.current=ce,Q.current=Y;const pe=M=>h==="fit"&&!ce(M)?"fr":"px",me=A&&A.length===e.length&&(h==="fit"||a.length>0)?e.map((M,U)=>M.resizable===!1&&Y[U]?Y[U]:`${A[U]}${pe(U)}`).join(" "):m,ye=me?{"--table-grid-cols":me}:void 0,be=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${g}${p?" table-wrap--resizable":""}${S?" table-wrap--dragover":""}${C?" table-wrap--collapsed":""}`,style:ye,onDragOver:L,onDragLeave:B,onDrop:D,children:o.jsxs("div",{className:"table body-2",children:[be&&o.jsxs("div",{className:"table-header",onClick:y,role:y?"button":void 0,tabIndex:y?0:void 0,"aria-expanded":y?!C:void 0,onKeyDown:y?M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),y())}:void 0,children:[y&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:C?"chevron-right":"chevron-down",ariaLabel:C?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&o.jsx(He,{icon:x,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),v!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:v}),_&&o.jsx("span",{className:"table-header__actions",onClick:M=>M.stopPropagation(),children:_})]}),!C&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map((M,U)=>o.jsx("div",{className:_e("table-field body-3",M.className),style:{gridColumn:`span ${M.span}`},children:M.label},U))}),o.jsxs("div",{className:_e("table-fields-strip",p&&"table-fields-strip--resizable"),children:[o.jsx("div",{className:"table-fields",ref:V,children:e.map((M,U)=>o.jsx(m8,{onClick:M.onClick,className:M.className,sortDir:M.sortDir,onResizeStart:p&&U<e.length-1&&M.resizable!==!1&&(h!=="fit"||e.some((oe,we)=>we>U&&oe.resizable!==!1))?oe=>te(U,oe):void 0,children:M.label},U))}),p&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:O})]}),o.jsx("div",{className:"table-body",children:w?o.jsx(dc,{variant:"loading"}):a.length===0&&k?o.jsx(dc,{variant:"empty",children:k}):a.map((M,U)=>{const oe=u!=null&&M.id===u,we=$!=null&&($ instanceof Set?$.has(M.id):M.id===$);return o.jsx(dc,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${oe?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n(M):void 0,onMouseEnter:i?de=>i(M,de):void 0,onMouseLeave:s?de=>s(M,de):void 0,onDragStart:c?de=>c(M,de):void 0,onDragEnd:d?de=>d(M,de):void 0,expandedContent:we&&H?H(M):void 0,children:r(M).map((de,z)=>o.jsx(p8,{className:de.className,style:de.style,children:de.content},z))},String(M.id??U))})})]})]})})}function zm(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var b8=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";ae(b8);function Im(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Om({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=he.useTranslation(),c=g=>g==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:u}=Cl(),m=l.useMemo(()=>{if(!d)return e;const{key:g,asc:b}=d;return[...e].sort((x,v)=>{const C=g==="worn"?Number(v.worn)-Number(x.worn):Im(x,g).localeCompare(Im(v,g),"ko");return b?C:-C})},[e,d]),{pageRows:p,pageSizeProps:h,paginationProps:f}=_l(m,d);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(An,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:h,pagination:f,actions:i&&o.jsx(ie,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(Dn,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...u(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},u(s("device.direction.label","\uBC29\uD5A5"),"side"),u(s("device.deviceType","\uC885\uB958"),"device"),u(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),u(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),u(s("device.productName","\uC81C\uD488\uBA85"),"productName"),u(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:p.map((g,b)=>({id:g.id??`${g.side}-${b}`,row:g})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:g})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(ac,{checked:g.worn,disabled:!r||!n,ariaLabel:g.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(g):n?.(g)}})})},{content:o.jsx("span",{children:c(g.side)})},{content:g.device?o.jsx(pt,{size:"small",variant:zm(g.device),fill:"soft",label:g.device}):o.jsx("span",{})},{content:o.jsx("span",{children:g.brand})},{content:o.jsx("span",{children:g.fitType||"-"})},{content:o.jsx("span",{children:g.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:g.wornYear?`${g.wornYear}.${g.wornMonth}.${g.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(ie,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(g)}})})}]:[]],onRowClick:({row:g})=>t(g),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var g8=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
|
|
839
839
|
|
|
840
840
|
/* !important \uD544\uC694 \u2014 \uC624\uB298\uC774 \uC77C\uC694\uC77C/\uD1A0\uC694\uC77C\uACFC \uACB9\uCE58\uBA74 \uC544\uB798 nth-child \uC8FC\uB9D0 \uC0C9\uC0C1 \uADDC\uCE59\uACFC
|
|
841
841
|
\uD2B9\uC774\uB3C4\uAC00 \uB3D9\uC77C(3\uD074\uB798\uC2A4)\uD558\uACE0 \uC18C\uC2A4 \uC21C\uC11C\uC0C1 \uB4A4\uB77C !important \uC5C6\uC774\uB294 \uD770 \uAE00\uC790\uAC00 \uC8FC\uB9D0\uC0C9\uC73C\uB85C
|
|
842
|
-
\uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;ae(g8);function Fm(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function f8(e,t){return new Date(e,t+1,0).getDate()}function v8(e,t){return new Date(e,t,1).getDay()}function Hm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=he.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[d,u]=l.useState(new Date().getMonth()),[m,p]=l.useState(null),h=l.useRef(null),g=new Date,f=l.useMemo(()=>{const _={};return e.forEach(k=>{_[k.date]||(_[k.date]=[]),_[k.date].push(k)}),_},[e]),b=l.useMemo(()=>{const _=f8(s,d),k=v8(s,d),w=[];for(let A=0;A<k;A++)w.push(null);for(let A=1;A<=_;A++)w.push(A);for(;w.length<35;)w.push(null);return w},[s,d]),x=l.useCallback(()=>{d===0?(c(_=>_-1),u(11)):u(_=>_-1)},[d]),v=l.useCallback(()=>{d===11?(c(_=>_+1),u(0)):u(_=>_+1)},[d]),C=_=>`${s}-${String(d+1).padStart(2,"0")}-${String(_).padStart(2,"0")}`,y=_=>g.getFullYear()===s&&g.getMonth()===d&&g.getDate()===_;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:x,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(He,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:d+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(He,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(_=>o.jsx("div",{className:"calendar-day-header body-3",children:_},_)),b.map((_,k)=>{if(_===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const w=_,A=C(w),T=f[A]??[],S=m===A;return o.jsxs("div",{className:`calendar-cell${y(w)?" today":""}${S?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(A))}:void 0,onDragOver:a?D=>{D.preventDefault(),p(A)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||p(null)}:void 0,onDrop:a?D=>{D.preventDefault(),h.current!=null&&(a(h.current,A),h.current=null),p(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:w}),o.jsx("div",{className:"calendar-cell__badges",children:T.map((D,H)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?R=>{h.current=D.id,R.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,p(null)}:void 0,onClick:t?R=>{R.stopPropagation(),t(D)}:void 0,...Fm(t?()=>t(D):void 0),"aria-label":[D.time?on(D.time,n):null,D.customer,n(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:on(D.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??H))})]},w)})]})]})}var x8=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";ae(x8);const _8={page:"h3",pagePopup:"h4",popup:"h5"};function po({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const d=_8[e],u=t||n;return o.jsxs("div",{className:_e("section",`section--${e}`,s),style:c,children:[u&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(He,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${d}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var C8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";ae(C8);var y8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}";ae(y8);function Vm({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const d=c==="small",u=_e("category-icon",d?"category-icon--small":""),m=d?16:20,p=l.useRef(null),[h,g]=l.useState(!1),f=l.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!n&&!i?w:{...w,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[x,v]=l.useState(null);l.useLayoutEffect(()=>{h&&v(p.current?.getBoundingClientRect()??null)},[h]),l.useEffect(()=>{if(!s&&h)try{g(!1)}catch{}},[s,h]),l.useEffect(()=>{if(!h)return;const w=A=>{const T=p.current;if(!T)return;const S=A.target;S&&!T.contains(S)&&g(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const C=l.useCallback(()=>{s&&g(!0)},[s]),y=l.useCallback(()=>{s&&g(!1)},[s]),_=l.useCallback(()=>g(!1),[]),k=l.useCallback(w=>{if(w.key==="Escape"){g(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(A=>!A))},[]);return o.jsxs("span",{ref:p,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:y,onFocus:C,onBlur:y,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":h,"data-tooltip-ignore":!0,children:[o.jsx(He,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:m}),h&&b&&o.jsx(va,{anchorRect:x,text:typeof b=="string"?b:void 0,offset:8,onClose:_,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var w8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";ae(w8);function k8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function A8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),d=l.useRef(null),u=l.useRef(!1),m=l.useRef(null),[p,h]=l.useState(!1),g=l.useRef([]),{previewCodes:f,previewBucket:b}=k8(e,t);l.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const C=[],y=[];for(const _ of f)try{const k=$r(_,b);if(!k){C.push("");continue}let w=null;try{w=await Go(k)}catch{}if(!w)try{const A=await Rr(k);A&&(w=URL.createObjectURL(A),y.push(w))}catch{}C.push(w??"")}catch{C.push("")}v?y.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}):(g.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),g.current=y,c(C))})(),()=>{v=!0}},[f.join(","),b]),l.useEffect(()=>()=>{g.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),g.current=[]},[]);const x=l.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),u.current){u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){u.current=!0,r(!0);for(let C=0;C<s.length&&u.current;C++){const y=s[C];if(y){i(C);try{await new Promise((_,k)=>{const w=new Audio(y);d.current=w,w.onended=()=>_(),w.onerror=()=>k(),w.play().catch(k)})}catch{break}}}u.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:p,setPreviewHover:h,previewBtnRef:m,handlePreview:x}}const S8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Dn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:d,selectedIds:u,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:f=!1,onComplete:b,onSelect:x,onMore:v,countLabelOverride:C,size:y="square"}=e||{},{t:_}=he.useTranslation(),[k,w]=l.useState(!1),A=l.useRef(null),[T,S]=l.useState(!1);l.useEffect(()=>{A.current?.matches(":hover")&&S(!0)},[]);const{playing:D,playingIndex:H,previewUrls:R,previewHover:E,setPreviewHover:$,previewBtnRef:B,handlePreview:F}=A8(r,a?.key),X=l.useCallback(()=>{x?x():w(!0)},[x]),Q=l.useCallback(()=>w(!1),[]),ee=l.useCallback(()=>S(!0),[]),N=l.useCallback(()=>S(!1),[]),L=l.useCallback(()=>$(!0),[$]),P=l.useCallback(()=>$(!1),[$]),[V,W]=l.useState(null);l.useLayoutEffect(()=>{E&&W(B.current?.getBoundingClientRect()??null)},[E,B]);const[te,O]=l.useState(null);l.useLayoutEffect(()=>{T&&!k&&p&&O(A.current?.getBoundingClientRect()??null)},[T,k,p]);const Y=l.useCallback(fe=>{(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),X())},[X]),I=r||null,ce=l.useMemo(()=>{if(!p)return null;const fe=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Oe=fe&&fe.length>0?fe:S8(I);return Oe&&Oe.length>0?Oe:null},[p,m,I]),pe=l.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),me=l.useCallback(fe=>fe.stopPropagation(),[]),ye=l.useCallback(fe=>{typeof b=="function"&&b(fe)},[b]),be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),M=!be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);gr("speechear.popup.close",Q);const U=rn(),oe=`${a?.label||""} ${t+1}`,we=I?.title||I?.name||oe;let de=a?.icon,z,K="",Z="";try{const fe=I?.category_0||I?.category_main_code||I?.category_main,Oe=I?.category_1||I?.category_sub_code||I?.category_sub,Re=U.find(Ke=>Ke.key===fe);Re?.icon&&(de=Re.icon),!z&&Re?.color&&(z={"--t-item-fg":Re.color}),!z&&I?.iconColor&&(z={"--t-item-fg":I.iconColor}),K=Re?.label||"";try{Z=Re?.subs?.find(Ke=>Ke.key===Oe)?.label||""}catch{}}catch{}const ge=Z?`${K} / ${Z}`:K||a?.label||we,je=fe=>_("training.countQuestions",{n:fe}),Fe=fe=>_("training.countSentences",{n:fe});let Le="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?fe=I.sentences.length:I.sentences&&(fe=1),Le=Fe(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(I?.questions)?fe=I.questions.length:Array.isArray(I?.sentences)&&(fe=I.sentences.length),Le=je(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(I.items)&&I.items.length>0){const Oe=I.items.reduce((Re,Ke)=>{const Xe=Ke.questionItems;return Array.isArray(Xe)?Re+Xe.length:Array.isArray(Ke.questions)?Re+Ke.questions.length:Re},0);fe=Oe>0?Oe:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?fe=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length);Le=je(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length),Le=Fe(fe)}else Array.isArray(I.items)&&(Le=I.items.length>0?je(I.items.length):"")}catch{}const Te=y==="list",Ee=y==="compact",Be=y==="small",Ue=Be&&a?.key?ys().find(fe=>fe.key===a.key)?.label??"":"",at=!!f&&!!a?.label&&a.label!==String(we)||Be&&!!Ue&&Ue!==String(we);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:A,className:`training-block-button${Te?" training-block-button--list":""}${Ee?" training-block-button--compact":""}${Be?" training-block-button--small":""}${be?" training-block-button--completed":""}${M?" training-block-button--selected":""}${at&&!Be?" training-block-button--withType":""}${Be&&!at?" training-block-button--no-type-label":""}`,onClick:X,onPointerEnter:ee,onPointerLeave:N,role:"button",tabIndex:0,onKeyDown:Y,"aria-label":typeof n=="string"?n:typeof we=="string"?we:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(we)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Be&&Ue&&Ue!==String(we)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Ue}),o.jsx(Vm,{icon:de,label:we,tooltip:ge,wrapperStyle:z,iconSize:Be||Ee?"small":"medium"}),!g&&(be||M)&&!(h&&T)&&o.jsx(pt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?_("training.completed","\uD6C8\uB828 \uC644\uB8CC"):_("training.selected","\uC120\uD0DD\uB428")}),h&&T&&o.jsx(pt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":_("common.remove","\uC81C\uAC70"),onClick:pe}),o.jsx("div",{className:`training-block-button__title ${Ee?"body-3":Be?"body-3b":"h3"}`,children:String(we)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=C!==void 0?C:Le;return fe?o.jsx("div",{className:`training-block-button__count ${Be?"caption-2":"caption-1"}`,children:fe}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(He,{icon:"chevron-right",label:_("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Be?12:20})})]}),(Te||Be)&&R.length>0&&o.jsx("div",{ref:B,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:me,onPointerEnter:L,onPointerLeave:P,children:o.jsx(ie,{size:Be?28:32,type:"dot",icon:D?"pause":"play",variant:Be?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:F})})]}),v&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),v(fe)},children:o.jsx(ie,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:_("common.more","\uB354\uBCF4\uAE30")})})]}),E&&o.jsx(va,{anchorRect:V,text:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),T&&!k&&p&&(ce?o.jsx(Ua,{anchorRect:te,items:ce,activeIndex:H,onClose:N}):I?.subTitle?o.jsx(va,{anchorRect:te,text:I.subTitle,offset:8,onClose:N}):null),k&&s&&s({trainingData:I,typeKey:a?.key??"",onClose:Q,onComplete:ye,popupTitle:String(we),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:de,popupIconTooltip:String(ge),popupWrapperStyle:z})]})}const jn=20;function Wm(e){const{t}=he.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:m,onRemove:p,onMore:h,sectionType:g="page"}=e||{},[,f]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],x=b.length,[v,C]=l.useState(Math.min(x,jn)),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(()=>{C(Math.min(x,jn))},[x]),gr("speechear.data.updated",()=>f(k=>k+1));function _(){C(k=>Math.min(x,k+jn))}return o.jsxs(po,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,v).map((k,w)=>{const A=k;return o.jsx(Dn,{index:w,type:a,trainingData:A,depth:y,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:m,onRemove:typeof p=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>p(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof h=="function"?T=>h(A,T):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${w}`)})}),x>jn&&v<x&&o.jsx("div",{className:"training-block__more",children:o.jsx(ie,{size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function uc(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let Ro=null;function B8(e){if(Ro&&Ro!==e)try{Ro()}catch{}return Ro=e,()=>{Ro===e&&(Ro=null)}}var N8='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',D8='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';ae(D8);const j8=N8,En=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},m){const{t:p}=he.useTranslation(),h=e.word||e.title||"",g=t||!h,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",x=e.colloquialLabel||"",[v,C]=l.useState({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});h&&v.label!==h&&C({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});const y=l.useRef(null),_=na("(max-width: 767px)"),[k,w]=l.useState(!1),[A,T]=l.useState(""),S=Ia()?.(v.label,v.homonum)??e.image??"",{imgRef:D,loading:H,hasImage:R,onLoad:E,onError:$}=uc(S);l.useEffect(()=>{let L=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){T(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const V=f.src;if(V){T(V);return}}}const P=Uo();if(P&&h)try{const V=await Promise.resolve(P(h));!L&&V&&T(V)}catch{}})(),()=>{L=!0}},[f,h]),l.useEffect(()=>()=>{try{y.current?.pause()}catch{}y.current=null},[]);const B=l.useCallback(()=>new Promise(L=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const P=new SpeechSynthesisUtterance(h);P.lang="ko-KR",P.onend=()=>{w(!1);try{a?.()}catch{}L()},P.onerror=()=>{w(!1),L()},window.speechSynthesis.speak(P)}else L()}),[h,a]),F=l.useCallback(L=>new Promise(P=>{let V=!1;const W=()=>{V||(V=!0,w(!1),P(!1))};try{const te=new Audio(L);y.current=te,te.onended=()=>{if(!V){V=!0,w(!1);try{a?.()}catch{}P(!0)}},te.onerror=W,te.play().catch(W)}catch{W()}}),[a]),X=l.useCallback(async()=>{if(t)return;const L=B8(()=>{try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(A&&(w(!0),await F(A)))return;const P=mi();if(P&&h)try{const V=await Promise.resolve(P(h));if(V&&(w(!0),await F(V)))return}catch{}await B()}finally{L()}},[t,A,h,F,B]);l.useImperativeHandle(m,()=>({play:()=>X()}),[X]);const Q=L=>L.stopPropagation(),ee=l.useCallback(L=>{if(L.stopPropagation(),!t){if(k){try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}X()}},[t,k,X]),N=_e("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:N,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?L=>{(L.key==="Enter"||L.key===" "||L.key==="Spacebar")&&(L.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:Q,children:o.jsx(pt,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?p("training.nthSelected",{n:u}):p("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:R?o.jsxs(o.Fragment,{children:[H&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:D,className:"training-word-card__image",src:S,alt:v.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:H?0:1},onLoad:E,onError:$})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!d&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?Q:void 0,children:o.jsx(ie,{size:_?40:48,type:_?"dot":"bar",icon:k?"pause":"play",label:_?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:ee,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:j8,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let Ar=0,Gm="",Um="",Sr=0;function E8(){return Ym(!1)}function T8(){return Ym(!0)}function Ym(e){const t=typeof document<"u";Ar===0&&t&&(Gm=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Sr===0&&(Um=document.body.style.paddingRight),Sr++,document.body.style.paddingRight="0px"),Ar++;let a=!1;return()=>{a||(a=!0,Ar=Math.max(0,Ar-1),e&&t&&(Sr=Math.max(0,Sr-1),Sr===0&&(document.body.style.paddingRight=Um)),Ar===0&&t&&(document.body.style.overflow=Gm))}}var L8=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";ae(L8);const M8=260;function Ta(e){const{t}=he.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:d="",onClose:u,closeDisabled:m=!1,beforeClose:p,className:h="",ariaLabel:g,useTitle:f=!0,inline:b=!1,size:x,resetScrollKey:v}=e||{},[C,y]=l.useState(!1),_=l.useRef(!1),k=l.useRef(null),w=l.useId(),A=l.useRef(null);l.useEffect(()=>{},[b,a,g,h]),l.useEffect(()=>{v!==void 0&&A.current&&(A.current.scrollTop=0)},[v]);const[T,S]=l.useState(!1);l.useEffect(()=>{const B=A.current;if(!B)return;const F=()=>S(B.scrollHeight>B.clientHeight+1);if(F(),typeof ResizeObserver>"u")return;const X=new ResizeObserver(F);X.observe(B);const Q=B.firstElementChild;return Q&&X.observe(Q),()=>X.disconnect()},[i,v]),l.useEffect(()=>{if(!b)return E8()},[b]),l.useEffect(()=>{if(b)return;const B=document.activeElement,F=k.current;return F&&!F.contains(document.activeElement)&&(F.querySelector(br)??F).focus(),()=>{B?.focus?.()}},[b]),Rs(k,!b);const D=l.useCallback(B=>{_.current||(_.current=!0,y(!0),setTimeout(()=>{try{B&&B()}catch{}},M8))},[]),H=l.useCallback(()=>{m||p&&p()===!1||D(u)},[D,u,m,p]),R=l.useRef(H);l.useEffect(()=>{R.current=H});const E=!b&&!!u;l.useEffect(()=>{if(E)return Ml(()=>R.current())},[E]);const $=o.jsx("div",{className:`popup ${b?"popup--inline":""} ${C?"popup--closing":""} ${h}`,children:o.jsxs("div",{ref:k,className:`popup-panel${x?` popup-panel--${x}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?w:void 0,"aria-label":!b&&!a&&g?g:void 0,children:[!f&&(n||u)?o.jsxs("div",{className:"popup-close-float",children:[n,u&&o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||u?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:w,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,u&&o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:A,tabIndex:T?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:D,closeWithAnimation:H}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((B,F)=>o.jsx(ie,{size:48,variant:B.variant??"default",label:B.label,disabled:B.disabled,onClick:()=>B.onClick?.({animateThen:D,closeWithAnimation:H})},F))}):c?o.jsx("div",{className:`popup-footer${d?` ${d}`:""}`,children:typeof c=="function"?c({animateThen:D,closeWithAnimation:H}):c}):null]})});return b||typeof document>"u"?$:Kt.createPortal($,document.body)}function Br(e){return String(e)}const pc=["o","triangle","x"];function hc(e,t){return e===t?null:t}const mc={o:"circle",triangle:"triangle",x:"x"},bc={o:"main",triangle:"warn",x:"danger"};function qm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function Tn(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function gc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Km(e,t){return!t&&e>0}var $8=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
|
|
842
|
+
\uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;ae(g8);function Fm(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function f8(e,t){return new Date(e,t+1,0).getDate()}function v8(e,t){return new Date(e,t,1).getDay()}function Hm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=he.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[d,u]=l.useState(new Date().getMonth()),[m,p]=l.useState(null),h=l.useRef(null),f=new Date,g=l.useMemo(()=>{const _={};return e.forEach(k=>{_[k.date]||(_[k.date]=[]),_[k.date].push(k)}),_},[e]),b=l.useMemo(()=>{const _=f8(s,d),k=v8(s,d),w=[];for(let S=0;S<k;S++)w.push(null);for(let S=1;S<=_;S++)w.push(S);for(;w.length<35;)w.push(null);return w},[s,d]),x=l.useCallback(()=>{d===0?(c(_=>_-1),u(11)):u(_=>_-1)},[d]),v=l.useCallback(()=>{d===11?(c(_=>_+1),u(0)):u(_=>_+1)},[d]),C=_=>`${s}-${String(d+1).padStart(2,"0")}-${String(_).padStart(2,"0")}`,y=_=>f.getFullYear()===s&&f.getMonth()===d&&f.getDate()===_;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:x,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(He,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:d+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(He,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(_=>o.jsx("div",{className:"calendar-day-header body-3",children:_},_)),b.map((_,k)=>{if(_===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const w=_,S=C(w),L=g[S]??[],B=m===S;return o.jsxs("div",{className:`calendar-cell${y(w)?" today":""}${B?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:S}):void 0,onClick:r?()=>r(S):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(S))}:void 0,onDragOver:a?D=>{D.preventDefault(),p(S)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||p(null)}:void 0,onDrop:a?D=>{D.preventDefault(),h.current!=null&&(a(h.current,S),h.current=null),p(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:w}),o.jsx("div",{className:"calendar-cell__badges",children:L.map((D,H)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?$=>{h.current=D.id,$.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,p(null)}:void 0,onClick:t?$=>{$.stopPropagation(),t(D)}:void 0,...Fm(t?()=>t(D):void 0),"aria-label":[D.time?rn(D.time,n):null,D.customer,n(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:rn(D.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??H))})]},w)})]})]})}var x8=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";ae(x8);const _8={page:"h3",pagePopup:"h4",popup:"h5"};function po({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const d=_8[e],u=t||n;return o.jsxs("div",{className:_e("section",`section--${e}`,s),style:c,children:[u&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(He,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${d}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var C8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";ae(C8);var y8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}";ae(y8);function Vm({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const d=c==="small",u=_e("category-icon",d?"category-icon--small":""),m=d?16:20,p=l.useRef(null),[h,f]=l.useState(!1),g=l.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!n&&!i?w:{...w,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[x,v]=l.useState(null);l.useLayoutEffect(()=>{h&&v(p.current?.getBoundingClientRect()??null)},[h]),l.useEffect(()=>{if(!s&&h)try{f(!1)}catch{}},[s,h]),l.useEffect(()=>{if(!h)return;const w=S=>{const L=p.current;if(!L)return;const B=S.target;B&&!L.contains(B)&&f(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const C=l.useCallback(()=>{s&&f(!0)},[s]),y=l.useCallback(()=>{s&&f(!1)},[s]),_=l.useCallback(()=>f(!1),[]),k=l.useCallback(w=>{if(w.key==="Escape"){f(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),f(S=>!S))},[]);return o.jsxs("span",{ref:p,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:y,onFocus:C,onBlur:y,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":h,"data-tooltip-ignore":!0,children:[o.jsx(He,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:g,size:m}),h&&b&&o.jsx(va,{anchorRect:x,text:typeof b=="string"?b:void 0,offset:8,onClose:_,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var w8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";ae(w8);function k8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function A8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),d=l.useRef(null),u=l.useRef(!1),m=l.useRef(null),[p,h]=l.useState(!1),f=l.useRef([]),{previewCodes:g,previewBucket:b}=k8(e,t);l.useEffect(()=>{if(!g.length)return;let v=!1;return(async()=>{const C=[],y=[];for(const _ of g)try{const k=$r(_,b);if(!k){C.push("");continue}let w=null;try{w=await Go(k)}catch{}if(!w)try{const S=await Rr(k);S&&(w=URL.createObjectURL(S),y.push(w))}catch{}C.push(w??"")}catch{C.push("")}v?y.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}):(f.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),f.current=y,c(C))})(),()=>{v=!0}},[g.join(","),b]),l.useEffect(()=>()=>{f.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),f.current=[]},[]);const x=l.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),u.current){u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){u.current=!0,r(!0);for(let C=0;C<s.length&&u.current;C++){const y=s[C];if(y){i(C);try{await new Promise((_,k)=>{const w=new Audio(y);d.current=w,w.onended=()=>_(),w.onerror=()=>k(),w.play().catch(k)})}catch{break}}}u.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:p,setPreviewHover:h,previewBtnRef:m,handlePreview:x}}const S8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function jn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:d,selectedIds:u,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:h,hideCheckBadge:f=!1,showTypeLabel:g=!1,onComplete:b,onSelect:x,onMore:v,countLabelOverride:C,size:y="square"}=e||{},{t:_}=he.useTranslation(),[k,w]=l.useState(!1),S=l.useRef(null),[L,B]=l.useState(!1);l.useEffect(()=>{S.current?.matches(":hover")&&B(!0)},[]);const{playing:D,playingIndex:H,previewUrls:$,previewHover:E,setPreviewHover:R,previewBtnRef:N,handlePreview:V}=A8(r,a?.key),J=l.useCallback(()=>{x?x():w(!0)},[x]),Q=l.useCallback(()=>w(!1),[]),ee=l.useCallback(()=>B(!0),[]),A=l.useCallback(()=>B(!1),[]),T=l.useCallback(()=>R(!0),[R]),P=l.useCallback(()=>R(!1),[R]),[F,W]=l.useState(null);l.useLayoutEffect(()=>{E&&W(N.current?.getBoundingClientRect()??null)},[E,N]);const[te,O]=l.useState(null);l.useLayoutEffect(()=>{L&&!k&&p&&O(S.current?.getBoundingClientRect()??null)},[L,k,p]);const Y=l.useCallback(fe=>{(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),J())},[J]),I=r||null,ce=l.useMemo(()=>{if(!p)return null;const fe=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Oe=fe&&fe.length>0?fe:S8(I);return Oe&&Oe.length>0?Oe:null},[p,m,I]),pe=l.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),me=l.useCallback(fe=>fe.stopPropagation(),[]),ye=l.useCallback(fe=>{typeof b=="function"&&b(fe)},[b]),be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),M=!be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);gr("speechear.popup.close",Q);const U=nn(),oe=`${a?.label||""} ${t+1}`,we=I?.title||I?.name||oe;let de=a?.icon,z,K="",Z="";try{const fe=I?.category_0||I?.category_main_code||I?.category_main,Oe=I?.category_1||I?.category_sub_code||I?.category_sub,Re=U.find(Ke=>Ke.key===fe);Re?.icon&&(de=Re.icon),!z&&Re?.color&&(z={"--t-item-fg":Re.color}),!z&&I?.iconColor&&(z={"--t-item-fg":I.iconColor}),K=Re?.label||"";try{Z=Re?.subs?.find(Ke=>Ke.key===Oe)?.label||""}catch{}}catch{}const ge=Z?`${K} / ${Z}`:K||a?.label||we,je=fe=>_("training.countQuestions",{n:fe}),Fe=fe=>_("training.countSentences",{n:fe});let Le="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?fe=I.sentences.length:I.sentences&&(fe=1),Le=Fe(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(I?.questions)?fe=I.questions.length:Array.isArray(I?.sentences)&&(fe=I.sentences.length),Le=je(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(I.items)&&I.items.length>0){const Oe=I.items.reduce((Re,Ke)=>{const Xe=Ke.questionItems;return Array.isArray(Xe)?Re+Xe.length:Array.isArray(Ke.questions)?Re+Ke.questions.length:Re},0);fe=Oe>0?Oe:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?fe=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length);Le=je(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length),Le=Fe(fe)}else Array.isArray(I.items)&&(Le=I.items.length>0?je(I.items.length):"")}catch{}const Te=y==="list",Ee=y==="compact",Be=y==="small",Ue=Be&&a?.key?ys().find(fe=>fe.key===a.key)?.label??"":"",at=!!g&&!!a?.label&&a.label!==String(we)||Be&&!!Ue&&Ue!==String(we);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:S,className:`training-block-button${Te?" training-block-button--list":""}${Ee?" training-block-button--compact":""}${Be?" training-block-button--small":""}${be?" training-block-button--completed":""}${M?" training-block-button--selected":""}${at&&!Be?" training-block-button--withType":""}${Be&&!at?" training-block-button--no-type-label":""}`,onClick:J,onPointerEnter:ee,onPointerLeave:A,role:"button",tabIndex:0,onKeyDown:Y,"aria-label":typeof n=="string"?n:typeof we=="string"?we:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[g&&a?.label&&a.label!==String(we)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Be&&Ue&&Ue!==String(we)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Ue}),o.jsx(Vm,{icon:de,label:we,tooltip:ge,wrapperStyle:z,iconSize:Be||Ee?"small":"medium"}),!f&&(be||M)&&!(h&&L)&&o.jsx(pt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?_("training.completed","\uD6C8\uB828 \uC644\uB8CC"):_("training.selected","\uC120\uD0DD\uB428")}),h&&L&&o.jsx(pt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":_("common.remove","\uC81C\uAC70"),onClick:pe}),o.jsx("div",{className:`training-block-button__title ${Ee?"body-3":Be?"body-3b":"h3"}`,children:String(we)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=C!==void 0?C:Le;return fe?o.jsx("div",{className:`training-block-button__count ${Be?"caption-2":"caption-1"}`,children:fe}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(He,{icon:"chevron-right",label:_("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Be?12:20})})]}),(Te||Be)&&$.length>0&&o.jsx("div",{ref:N,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:me,onPointerEnter:T,onPointerLeave:P,children:o.jsx(ie,{size:Be?28:32,type:"dot",icon:D?"pause":"play",variant:Be?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:V})})]}),v&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),v(fe)},children:o.jsx(ie,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:_("common.more","\uB354\uBCF4\uAE30")})})]}),E&&o.jsx(va,{anchorRect:F,text:D?_("training.stop","\uC815\uC9C0"):_("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),L&&!k&&p&&(ce?o.jsx(Ua,{anchorRect:te,items:ce,activeIndex:H,onClose:A}):I?.subTitle?o.jsx(va,{anchorRect:te,text:I.subTitle,offset:8,onClose:A}):null),k&&s&&s({trainingData:I,typeKey:a?.key??"",onClose:Q,onComplete:ye,popupTitle:String(we),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:de,popupIconTooltip:String(ge),popupWrapperStyle:z})]})}const En=20;function Wm(e){const{t}=he.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:m,onRemove:p,onMore:h,sectionType:f="page"}=e||{},[,g]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],x=b.length,[v,C]=l.useState(Math.min(x,En)),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(()=>{C(Math.min(x,En))},[x]),gr("speechear.data.updated",()=>g(k=>k+1));function _(){C(k=>Math.min(x,k+En))}return o.jsxs(po,{type:f,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,v).map((k,w)=>{const S=k;return o.jsx(jn,{index:w,type:a,trainingData:S,depth:y,renderPopup:i,completedIds:s,selectedIds:c,size:u,useDescriptionTooltip:m,onRemove:typeof p=="function"&&c!=null&&S?.id!=null&&c.has(String(S.id))?()=>p(S):void 0,onComplete:typeof d=="function"&&S?.id!=null?()=>d(String(S.id)):void 0,onMore:typeof h=="function"?L=>h(S,L):void 0},S?.id!=null?`${a?.key||"t"}-${String(S.id)}`:`${a?.key||"t"}-${w}`)})}),x>En&&v<x&&o.jsx("div",{className:"training-block__more",children:o.jsx(ie,{size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function uc(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let Ro=null;function B8(e){if(Ro&&Ro!==e)try{Ro()}catch{}return Ro=e,()=>{Ro===e&&(Ro=null)}}var N8='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',D8='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';ae(D8);const j8=N8,Tn=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},m){const{t:p}=he.useTranslation(),h=e.word||e.title||"",f=t||!h,g=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",x=e.colloquialLabel||"",[v,C]=l.useState({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});h&&v.label!==h&&C({label:h,subLabel:b,colloquialLabel:x,homonum:e.homonum});const y=l.useRef(null),_=na("(max-width: 767px)"),[k,w]=l.useState(!1),[S,L]=l.useState(""),B=Ia()?.(v.label,v.homonum)??e.image??"",{imgRef:D,loading:H,hasImage:$,onLoad:E,onError:R}=uc(B);l.useEffect(()=>{let T=!1;return(async()=>{if(g){if(typeof g=="string"){if(g.startsWith("http")||g.includes("/")){L(g);return}}else if(typeof g=="object"&&!Array.isArray(g)){const F=g.src;if(F){L(F);return}}}const P=Uo();if(P&&h)try{const F=await Promise.resolve(P(h));!T&&F&&L(F)}catch{}})(),()=>{T=!0}},[g,h]),l.useEffect(()=>()=>{try{y.current?.pause()}catch{}y.current=null},[]);const N=l.useCallback(()=>new Promise(T=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const P=new SpeechSynthesisUtterance(h);P.lang="ko-KR",P.onend=()=>{w(!1);try{a?.()}catch{}T()},P.onerror=()=>{w(!1),T()},window.speechSynthesis.speak(P)}else T()}),[h,a]),V=l.useCallback(T=>new Promise(P=>{let F=!1;const W=()=>{F||(F=!0,w(!1),P(!1))};try{const te=new Audio(T);y.current=te,te.onended=()=>{if(!F){F=!0,w(!1);try{a?.()}catch{}P(!0)}},te.onerror=W,te.play().catch(W)}catch{W()}}),[a]),J=l.useCallback(async()=>{if(t)return;const T=B8(()=>{try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(w(!0),await V(S)))return;const P=mi();if(P&&h)try{const F=await Promise.resolve(P(h));if(F&&(w(!0),await V(F)))return}catch{}await N()}finally{T()}},[t,S,h,V,N]);l.useImperativeHandle(m,()=>({play:()=>J()}),[J]);const Q=T=>T.stopPropagation(),ee=l.useCallback(T=>{if(T.stopPropagation(),!t){if(k){try{y.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}J()}},[t,k,J]),A=_e("training-word-card",t?"training-word-card--disabled":"",f?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:A,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?T=>{(T.key==="Enter"||T.key===" "||T.key==="Spacebar")&&(T.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:f?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:Q,children:o.jsx(pt,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?p("training.nthSelected",{n:u}):p("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:$?o.jsxs(o.Fragment,{children:[H&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:D,className:"training-word-card__image",src:B,alt:v.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:H?0:1},onLoad:E,onError:R})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!d&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?Q:void 0,children:o.jsx(ie,{size:_?40:48,type:_?"dot":"bar",icon:k?"pause":"play",label:_?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:ee,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:j8,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let Ar=0,Gm="",Um="",Sr=0;function E8(){return Ym(!1)}function T8(){return Ym(!0)}function Ym(e){const t=typeof document<"u";Ar===0&&t&&(Gm=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Sr===0&&(Um=document.body.style.paddingRight),Sr++,document.body.style.paddingRight="0px"),Ar++;let a=!1;return()=>{a||(a=!0,Ar=Math.max(0,Ar-1),e&&t&&(Sr=Math.max(0,Sr-1),Sr===0&&(document.body.style.paddingRight=Um)),Ar===0&&t&&(document.body.style.overflow=Gm))}}var L8=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";ae(L8);const M8=260;function Ta(e){const{t}=he.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:d="",onClose:u,closeDisabled:m=!1,beforeClose:p,closeOnBackdrop:h=!0,className:f="",ariaLabel:g,useTitle:b=!0,inline:x=!1,size:v,resetScrollKey:C}=e||{},[y,_]=l.useState(!1),k=l.useRef(!1),w=l.useRef(null),S=l.useId(),L=l.useRef(null);l.useEffect(()=>{},[x,a,g,f]),l.useEffect(()=>{C!==void 0&&L.current&&(L.current.scrollTop=0)},[C]);const[B,D]=l.useState(!1);l.useEffect(()=>{const A=L.current;if(!A)return;const T=()=>D(A.scrollHeight>A.clientHeight+1);if(T(),typeof ResizeObserver>"u")return;const P=new ResizeObserver(T);P.observe(A);const F=A.firstElementChild;return F&&P.observe(F),()=>P.disconnect()},[i,C]),l.useEffect(()=>{if(!x)return E8()},[x]),l.useEffect(()=>{if(x)return;const A=document.activeElement,T=w.current;return T&&!T.contains(document.activeElement)&&(T.querySelector(br)??T).focus(),()=>{A?.focus?.()}},[x]),Rs(w,!x);const H=l.useCallback(A=>{k.current||(k.current=!0,_(!0),setTimeout(()=>{try{A&&A()}catch{}},M8))},[]),$=l.useCallback(()=>{m||p&&p()===!1||H(u)},[H,u,m,p]),E=l.useRef($);l.useEffect(()=>{E.current=$});const R=!x&&!!u;l.useEffect(()=>{if(R)return Ml(()=>E.current())},[R]);const N=R&&h,V=l.useRef(!1),J=A=>{V.current=A.target===A.currentTarget},Q=A=>{const T=V.current;V.current=!1,T&&A.target===A.currentTarget&&$()},ee=o.jsx("div",{className:`popup ${x?"popup--inline":""} ${y?"popup--closing":""} ${f}`,onPointerDown:N?J:void 0,onClick:N?Q:void 0,children:o.jsxs("div",{ref:w,className:`popup-panel${v?` popup-panel--${v}`:""}`,tabIndex:-1,role:x?void 0:"dialog","aria-modal":x?void 0:!0,"aria-labelledby":!x&&a?S:void 0,"aria-label":!x&&!a&&g?g:void 0,children:[!b&&(n||u)?o.jsxs("div",{className:"popup-close-float",children:[n,u&&o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:$,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||u?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:S,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,u&&o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:$,disabled:m,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:L,tabIndex:B?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:H,closeWithAnimation:$}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((A,T)=>o.jsx(ie,{size:48,variant:A.variant??"default",label:A.label,disabled:A.disabled,onClick:()=>A.onClick?.({animateThen:H,closeWithAnimation:$})},T))}):c?o.jsx("div",{className:`popup-footer${d?` ${d}`:""}`,children:typeof c=="function"?c({animateThen:H,closeWithAnimation:$}):c}):null]})});return x||typeof document>"u"?ee:Kt.createPortal(ee,document.body)}function Br(e){return String(e)}const pc=["o","triangle","x"];function hc(e,t){return e===t?null:t}const mc={o:"circle",triangle:"triangle",x:"x"},bc={o:"main",triangle:"warn",x:"danger"};function qm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function Ln(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function gc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Km(e,t){return!t&&e>0}var $8=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
|
|
843
843
|
|
|
844
844
|
/* !important \uD544\uC694: WordTable.tsx\uAC00 \uD654\uBA74 \uD45C\uC2DC\uC6A9 scale/marginLeft\uB97C \uC778\uB77C\uC778 style\uB85C
|
|
845
845
|
\uC9C1\uC811 \uC801\uC6A9\uD558\uBBC0\uB85C(\uC2A4\uD06C\uB9B0 \uCD95\uC18C \uB80C\uB354), \uC778\uC1C4 \uC2DC \uC774\uB97C \uBB34\uD6A8\uD654\uD558\uB824\uBA74 \uD074\uB798\uC2A4 \uADDC\uCE59\uC5D0
|
|
846
|
-
!important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;ae($8);const ho={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Zm(e="landscape"){const{printSize:t,printW:a,printH:r}=ho[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Xm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const R8={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function P8(e,t){const a=R8[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const z8={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},fc={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},vc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Ln(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Jm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const d="#ddd",u=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,m=[],p=[],h=[];return s&&(m.push(u("bottom")),p.push("1px 100%"),h.push("right center")),c&&(m.push(u("right")),p.push("100% 1px"),h.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const I8=280,O8=240,F8=280,H8=400,V8=120,W8=280;function xc(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((d,u)=>{const m=d/e,p=t?u/t:1/0,h=Math.min(1,m,p);n(h),s(Math.max(0,(d-e*h)/2))},[e,t]);return l.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return m.observe(u),()=>m.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let La=null;function Qm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:m}=he.useTranslation(),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(1),[x,v]=l.useState(!1),[C,y]=l.useState(""),[_,k]=l.useState(null),w=t&&t.length>0?t:bi()?.(e,r)??"",A=Ia()?.(e,r)??"",{imgRef:T,loading:S,failed:D,onLoad:H,onError:R}=uc(A),E=l.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),$=l.useCallback(()=>k(null),[]),B=l.useMemo(()=>{if(!u)return null;const N=[];return u.grade&&N.push(`\uB09C\uC774\uB3C4: ${u.grade}\uB4F1\uAE09`),u.syllables&&N.push(`\uC74C\uC808 \uC218: ${u.syllables}\uC74C\uC808`),u.pos&&N.push(`\uD488\uC0AC: ${Ln(u.pos,fc)}`),u.wordType&&N.push(`\uC720\uD615: ${Ln(u.wordType,vc)}`),N.length?N:null},[u]);l.useEffect(()=>{const N=Uo(),L=w||e;if(!N||!L)return;let P=!1;return Promise.resolve(N(L)).then(V=>{!P&&V&&y(V)}),()=>{P=!0}},[w,e]),l.useEffect(()=>()=>{g.current?.pause(),La?.audio===g.current&&(La=null)},[]);const F=l.useCallback(async N=>{if(N.stopPropagation(),x){g.current?.pause(),v(!1),La=null;return}if(C){La?.stop(),v(!0);try{const L=new Audio(C);g.current=L;const P=()=>{v(!1),La?.audio===L&&(La=null)};La={audio:L,stop:()=>{L.pause(),P()}},L.onended=P,L.onerror=P,await L.play()}catch{v(!1),La?.audio===g.current&&(La=null)}}},[x,C]),X=i&&!!A&&!D,Q=X&&n?I8:X?F8:O8,ee=X&&n?H8:X?W8:V8;return l.useEffect(()=>{const N=p.current;if(!N||typeof ResizeObserver>"u")return;const L=new ResizeObserver(([P])=>{const{width:V,height:W}=P.contentRect;b(Math.min(V/Q,W/ee))});return L.observe(N),()=>L.disconnect()},[Q,ee]),o.jsxs("div",{ref:p,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[X&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[S&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:T,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:S?0:1},onLoad:H,onError:R})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&w&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":C,children:[o.jsx("span",{"data-play-state":"play",style:{display:x?"none":void 0},children:o.jsx(ie,{size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),onClick:F})}),o.jsx("span",{"data-play-state":"pause",style:{display:x?void 0:"none"},children:o.jsx(ie,{size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),onClick:F})})]}),u&&o.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:$,onFocus:E,onBlur:$,children:[o.jsx(ie,{size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:N=>N.stopPropagation()}),_&&B&&o.jsx(Ua,{anchorRect:_,items:B,showIndex:!1})]})]})}function mo({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:m,count:p,activeCell:h=null,onActivateCell:g,onRemoveCell:f,onRemoveItem:b,onReorder:x,showFillerAdd:v=!1,contentRef:C,buttonSize:y=40,pageNumber:_,pageNumberPosition:k="right",fitHeight:w=!1,scoring:A=!1,marks:T,onMarkClick:S,scoreIndexOffset:D=0}){const H=l.useCallback((ye,be)=>{S?.(D+ye,be)},[S,D]),R=(ye,be)=>{const M=T?.[Br(D+ye)]??null;return o.jsx("div",{className:_e("word-table-cell__score",M?"word-table-cell__score--marked":""),children:pc.map(U=>o.jsx("span",{className:_e("word-table-cell__score-slot",M===U?"word-table-cell__score-slot--on":""),children:o.jsx(ie,{size:y,type:"dot",icon:mc[U],variant:M===U?bc[U]:"default",selected:M===U,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${U}`,{word:be,defaultValue:`${be} ${U}`}),onClick:oe=>{oe.stopPropagation(),H(ye,U)}})},U))})},{t:E}=he.useTranslation(),$=m!==void 0,B=l.useRef(null),[F,X]=l.useState(null),{width:Q,height:ee}=ho[n],{scalerRef:N,scale:L,offset:P}=xc(Q,w?ee:void 0),V=$?m?.length??0:u?.length??0,W=Math.max(p??V,1),{cols:te,rows:O}=P8(n,W),Y={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},I=$?(m??[]).some(ye=>ye!==null&&ye.length>1):(u??[]).some(ye=>ye.words.length>1),ce=_e("word-table-block__content",z8[s],c&&"word-table-block__content--outline",d&&I&&"word-table-block__content--div-line"),pe={transform:`scale(${1/L})`,transformOrigin:"center center"},me=o.jsx("div",{ref:N,className:"word-table__scaler",style:{height:ee*L},children:o.jsx("div",{className:_e("word-table",r),style:{width:Q,height:ee,transform:`scale(${L})`,transformOrigin:"top left",marginLeft:P},children:o.jsxs("div",{ref:C,className:ce,style:{gridTemplateColumns:`repeat(${te}, 1fr)`,gridTemplateRows:`repeat(${O}, 1fr)`},children:[$?o.jsx(o.Fragment,{children:(m??[]).map((ye,be)=>o.jsx("div",{className:_e("word-table-block__edit-cell",ye?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===be?"word-table-block__edit-cell--active":""),style:Jm(be,te,O,s),children:ye?o.jsxs(o.Fragment,{children:[ye.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Qm,{label:M.word,subLabel:M.pronunciation,homonum:M.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:y})]},U)),A&&R(be,ye.map(M=>M.word).join(" / ")),f&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ie,{size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ye.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ye.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(be)})})]}):g&&o.jsx("div",{style:pe,children:o.jsx(ie,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(be)})})},be))}):o.jsxs(o.Fragment,{children:[(u??[]).map((ye,be)=>o.jsxs("div",{className:`word-table-block__card${x?" word-table-block__card--draggable":""}${F===be?" word-table-block__card--drag-over":""}`,style:Jm(be,te,O,s),draggable:!!x,onDragStart:x?()=>{B.current=be}:void 0,onDragOver:x?M=>{M.preventDefault(),X(be)}:void 0,onDragLeave:x?()=>X(null):void 0,onDrop:x?M=>{M.preventDefault(),B.current!==null&&B.current!==be&&x(B.current,be),B.current=null,X(null)}:void 0,onDragEnd:x?()=>{B.current=null,X(null)}:void 0,children:[ye.words.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Qm,{label:M.label,subLabel:M.subLabel,colloquialLabel:M.colloquialLabel,homonum:M.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:y,wordInfo:M.grade||M.syllables!=null||M.pos||M.wordType?{grade:M.grade,syllables:M.syllables,pos:M.pos,wordType:M.wordType}:void 0})]},U)),A&&R(be,ye.words.map(M=>M.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ie,{size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ye.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ye.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(ye.id)})})]},ye.id)),Array.from({length:Math.max(0,te*O-(u?.length??0))}).map((ye,be)=>{const M=(u?.length??0)+be<W;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&g&&M&&o.jsx("div",{style:pe,children:o.jsx(ie,{size:y,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((u?.length??0)+be)})})},`filler-${be}`)})]}),_&&k!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:E("wordTable.filter.pageIndicator",{current:_.current,total:_.total})})]})})});return e!=null||t||a?o.jsx(po,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",r),children:me}):me}var G8=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ae(G8);function ya({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:d={},onSelect:u,align:m,sectionAlign:p,className:h}){const g=(m??(p==="vertical"?"newline":"inline"))==="inline",{t:f}=he.useTranslation(),[b,x]=l.useState(r),v=n??b,C=()=>{const _=!v;x(_),i?.(_)},y=e||t||a;return o.jsxs("div",{className:_e("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",h),children:[y&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:C}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!v&&t})]}),!v&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:_e("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(_=>{const k=d[_.label],w=k===void 0||(Array.isArray(k)?k.length===0:!1),A=(_.items??[]).filter(S=>S!=null),T=S=>{const D=typeof S=="string"?S:S.value,H=typeof S!="string"&&!!S.disabled,R=typeof S!="string"?S.labels:void 0,E=typeof S!="string"?S.displayLabel:void 0,$=typeof S!="string"?S.tooltip:void 0,B=typeof S!="string"?S.descriptionTooltip:void 0,F=typeof S!="string"?S.shape:void 0,X=Array.isArray(k)?k.includes(D):k===D;return o.jsx(ie,{size:"keyboard",label:R??E??D,type:_.itemType??(R?"bar":D.length===1?"dot":void 0),selected:X,disabled:H,shape:F,showTooltipInfo:!!$,tooltipInfoText:$,tooltipDescription:B,onClick:()=>u?.(D,_.label)},D)};return o.jsxs(l.Fragment,{children:[_.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:_.groupLabel}),_.groupAction]}),o.jsxs("div",{className:_e("filter-panel__section",_.layout==="row"?"filter-panel__section--row":"",_.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:_.displayLabel??_.label}),_.labelAction??(_.labelInfo?o.jsx(Lo,{..._.labelInfo}):null)]}),_.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:_.content}):_.type==="input"?o.jsx(qa,{className:"filter-panel__textfield",placeholder:_.placeholder,ariaLabel:_.displayLabel??_.label,value:d[_.label]??"",onChange:S=>u?.(S,_.label),error:_.error}):!_.multiple&&_.display==="segmented"?o.jsx(Ka,{ariaLabel:_.displayLabel??_.label,options:[..._.allOption?[{key:St,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const D=typeof S=="string"?S:S.value,H=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{key:D,label:H??D,disabled:R}})],value:w&&_.allOption?St:d[_.label],onChange:S=>u?.(S,_.label),size:32}):!_.multiple&&_.display==="dropdown"?o.jsx(Xt,{className:"filter-panel__dropdown",size:40,options:[..._.allOption?[{value:St,label:_.allLabel??f("common.all","\uC804\uCCB4")}]:[],...A.map(S=>{const D=typeof S=="string"?S:S.value,H=typeof S!="string"?S.displayLabel:void 0,R=typeof S!="string"?S.disabled:void 0;return{value:D,label:H??D,disabled:R}})],value:w&&_.allOption?St:d[_.label],onChange:S=>u?.(S,_.label)}):o.jsxs("div",{className:_.groups?"filter-panel__item-groups":"filter-panel__items",children:[_.allOption&&!_.groups&&o.jsx(ie,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(St,_.label)}),_.groups?_.groups.map((S,D)=>o.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&_.allOption&&o.jsx(ie,{size:"keyboard",label:_.allLabel??f("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(St,_.label)}),S.filter(H=>H!=null).map(T)]},D)):A.map(T)]})]})]},_.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const U8=[1,2,3,4,5,6,7,8,9,10,11,12],Y8=[8,4,2,1];function eb(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function tb(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function ab(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ob(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function rb(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function nb(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Y8.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ib(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const sb={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function lb(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function cb(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function db(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===St?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function q8(e){return"sections"in e}function Mn(e){const{t}=he.useTranslation(),{title:a,className:r}=e;if(q8(e))return o.jsx(ya,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m,setters:p,showCutLine:h=!1,showDivLine2:g=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:x}=e,v=[eb(t,{hasImage:n,hasColloquial:i}),tb(t),...f,ab(t),...h?[ob(t)]:[],...g?[rb(t)]:[]],C={...cb(t,{contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m}),...b},y=(_,k)=>{db(t,_,k,p)||x?.(_,k)};return o.jsx(ya,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:C,onSelect:y,sectionAlign:"horizontal"})}function ub(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function _c(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function K8(e,t,a,r="",n=""){if(e.length===0)return;const i=r?_c(r):"";if(i){const d=document.title;document.title=i;const u=()=>{document.title=d,window.removeEventListener("afterprint",u)};window.addEventListener("afterprint",u)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(Cc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function Cc(e,t,a,r=!1,n="",i=""){n=n?_c(n):"";const s=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
846
|
+
!important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;ae($8);const ho={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Zm(e="landscape"){const{printSize:t,printW:a,printH:r}=ho[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Xm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const R8={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function P8(e,t){const a=R8[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const z8={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},fc={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},vc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Mn(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Jm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const d="#ddd",u=f=>`repeating-linear-gradient(to ${f}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,m=[],p=[],h=[];return s&&(m.push(u("bottom")),p.push("1px 100%"),h.push("right center")),c&&(m.push(u("right")),p.push("100% 1px"),h.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const I8=280,O8=240,F8=280,H8=400,V8=120,W8=280;function xc(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((d,u)=>{const m=d/e,p=t?u/t:1/0,h=Math.min(1,m,p);n(h),s(Math.max(0,(d-e*h)/2))},[e,t]);return l.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return m.observe(u),()=>m.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let La=null;function Qm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:m}=he.useTranslation(),p=l.useRef(null),h=l.useRef(null),f=l.useRef(null),[g,b]=l.useState(1),[x,v]=l.useState(!1),[C,y]=l.useState(""),[_,k]=l.useState(null),w=t&&t.length>0?t:bi()?.(e,r)??"",S=Ia()?.(e,r)??"",{imgRef:L,loading:B,failed:D,onLoad:H,onError:$}=uc(S),E=l.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),R=l.useCallback(()=>k(null),[]),N=l.useMemo(()=>{if(!u)return null;const A=[];return u.grade&&A.push(`\uB09C\uC774\uB3C4: ${u.grade}\uB4F1\uAE09`),u.syllables&&A.push(`\uC74C\uC808 \uC218: ${u.syllables}\uC74C\uC808`),u.pos&&A.push(`\uD488\uC0AC: ${Mn(u.pos,fc)}`),u.wordType&&A.push(`\uC720\uD615: ${Mn(u.wordType,vc)}`),A.length?A:null},[u]);l.useEffect(()=>{const A=Uo(),T=w||e;if(!A||!T)return;let P=!1;return Promise.resolve(A(T)).then(F=>{!P&&F&&y(F)}),()=>{P=!0}},[w,e]),l.useEffect(()=>()=>{f.current?.pause(),La?.audio===f.current&&(La=null)},[]);const V=l.useCallback(async A=>{if(A.stopPropagation(),x){f.current?.pause(),v(!1),La=null;return}if(C){La?.stop(),v(!0);try{const T=new Audio(C);f.current=T;const P=()=>{v(!1),La?.audio===T&&(La=null)};La={audio:T,stop:()=>{T.pause(),P()}},T.onended=P,T.onerror=P,await T.play()}catch{v(!1),La?.audio===f.current&&(La=null)}}},[x,C]),J=i&&!!S&&!D,Q=J&&n?I8:J?F8:O8,ee=J&&n?H8:J?W8:V8;return l.useEffect(()=>{const A=p.current;if(!A||typeof ResizeObserver>"u")return;const T=new ResizeObserver(([P])=>{const{width:F,height:W}=P.contentRect;b(Math.min(F/Q,W/ee))});return T.observe(A),()=>T.disconnect()},[Q,ee]),o.jsxs("div",{ref:p,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${g})`},children:[J&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[B&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:L,className:"word-table-cell__image",src:S,alt:e,draggable:!1,style:{opacity:B?0:1},onLoad:H,onError:$})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&w&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":C,children:[o.jsx("span",{"data-play-state":"play",style:{display:x?"none":void 0},children:o.jsx(ie,{size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),onClick:V})}),o.jsx("span",{"data-play-state":"pause",style:{display:x?void 0:"none"},children:o.jsx(ie,{size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),onClick:V})})]}),u&&o.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:R,onFocus:E,onBlur:R,children:[o.jsx(ie,{size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:A=>A.stopPropagation()}),_&&N&&o.jsx(Ua,{anchorRect:_,items:N,showIndex:!1})]})]})}function mo({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:m,count:p,activeCell:h=null,onActivateCell:f,onRemoveCell:g,onRemoveItem:b,onReorder:x,showFillerAdd:v=!1,contentRef:C,buttonSize:y=40,pageNumber:_,pageNumberPosition:k="right",fitHeight:w=!1,scoring:S=!1,marks:L,onMarkClick:B,scoreIndexOffset:D=0}){const H=l.useCallback((ye,be)=>{B?.(D+ye,be)},[B,D]),$=(ye,be)=>{const M=L?.[Br(D+ye)]??null;return o.jsx("div",{className:_e("word-table-cell__score",M?"word-table-cell__score--marked":""),children:pc.map(U=>o.jsx("span",{className:_e("word-table-cell__score-slot",M===U?"word-table-cell__score-slot--on":""),children:o.jsx(ie,{size:y,type:"dot",icon:mc[U],variant:M===U?bc[U]:"default",selected:M===U,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${U}`,{word:be,defaultValue:`${be} ${U}`}),onClick:oe=>{oe.stopPropagation(),H(ye,U)}})},U))})},{t:E}=he.useTranslation(),R=m!==void 0,N=l.useRef(null),[V,J]=l.useState(null),{width:Q,height:ee}=ho[n],{scalerRef:A,scale:T,offset:P}=xc(Q,w?ee:void 0),F=R?m?.length??0:u?.length??0,W=Math.max(p??F,1),{cols:te,rows:O}=P8(n,W),Y={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},I=R?(m??[]).some(ye=>ye!==null&&ye.length>1):(u??[]).some(ye=>ye.words.length>1),ce=_e("word-table-block__content",z8[s],c&&"word-table-block__content--outline",d&&I&&"word-table-block__content--div-line"),pe={transform:`scale(${1/T})`,transformOrigin:"center center"},me=o.jsx("div",{ref:A,className:"word-table__scaler",style:{height:ee*T},children:o.jsx("div",{className:_e("word-table",r),style:{width:Q,height:ee,transform:`scale(${T})`,transformOrigin:"top left",marginLeft:P},children:o.jsxs("div",{ref:C,className:ce,style:{gridTemplateColumns:`repeat(${te}, 1fr)`,gridTemplateRows:`repeat(${O}, 1fr)`},children:[R?o.jsx(o.Fragment,{children:(m??[]).map((ye,be)=>o.jsx("div",{className:_e("word-table-block__edit-cell",ye?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===be?"word-table-block__edit-cell--active":""),style:Jm(be,te,O,s),children:ye?o.jsxs(o.Fragment,{children:[ye.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Qm,{label:M.word,subLabel:M.pronunciation,homonum:M.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:y})]},U)),S&&$(be,ye.map(M=>M.word).join(" / ")),g&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ie,{size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ye.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ye.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>g(be)})})]}):f&&o.jsx("div",{style:pe,children:o.jsx(ie,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f(be)})})},be))}):o.jsxs(o.Fragment,{children:[(u??[]).map((ye,be)=>o.jsxs("div",{className:`word-table-block__card${x?" word-table-block__card--draggable":""}${V===be?" word-table-block__card--drag-over":""}`,style:Jm(be,te,O,s),draggable:!!x,onDragStart:x?()=>{N.current=be}:void 0,onDragOver:x?M=>{M.preventDefault(),J(be)}:void 0,onDragLeave:x?()=>J(null):void 0,onDrop:x?M=>{M.preventDefault(),N.current!==null&&N.current!==be&&x(N.current,be),N.current=null,J(null)}:void 0,onDragEnd:x?()=>{N.current=null,J(null)}:void 0,children:[ye.words.map((M,U)=>o.jsxs(l.Fragment,{children:[U>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Qm,{label:M.label,subLabel:M.subLabel,colloquialLabel:M.colloquialLabel,homonum:M.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:y,wordInfo:M.grade||M.syllables!=null||M.pos||M.wordType?{grade:M.grade,syllables:M.syllables,pos:M.pos,wordType:M.wordType}:void 0})]},U)),S&&$(be,ye.words.map(M=>M.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(ie,{size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ye.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ye.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(ye.id)})})]},ye.id)),Array.from({length:Math.max(0,te*O-(u?.length??0))}).map((ye,be)=>{const M=(u?.length??0)+be<W;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&f&&M&&o.jsx("div",{style:pe,children:o.jsx(ie,{size:y,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f((u?.length??0)+be)})})},`filler-${be}`)})]}),_&&k!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:E("wordTable.filter.pageIndicator",{current:_.current,total:_.total})})]})})});return e!=null||t||a?o.jsx(po,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",r),children:me}):me}var G8=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";ae(G8);function ya({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:d={},onSelect:u,align:m,sectionAlign:p,className:h}){const f=(m??(p==="vertical"?"newline":"inline"))==="inline",{t:g}=he.useTranslation(),[b,x]=l.useState(r),v=n??b,C=()=>{const _=!v;x(_),i?.(_)},y=e||t||a;return o.jsxs("div",{className:_e("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",h),children:[y&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:C}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!v&&t})]}),!v&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:_e("filter-panel__sections",f?"filter-panel__sections--row":""),children:c.map(_=>{const k=d[_.label],w=k===void 0||(Array.isArray(k)?k.length===0:!1),S=(_.items??[]).filter(B=>B!=null),L=B=>{const D=typeof B=="string"?B:B.value,H=typeof B!="string"&&!!B.disabled,$=typeof B!="string"?B.labels:void 0,E=typeof B!="string"?B.displayLabel:void 0,R=typeof B!="string"?B.tooltip:void 0,N=typeof B!="string"?B.descriptionTooltip:void 0,V=typeof B!="string"?B.shape:void 0,J=Array.isArray(k)?k.includes(D):k===D;return o.jsx(ie,{size:"keyboard",label:$??E??D,type:_.itemType??($?"bar":D.length===1?"dot":void 0),selected:J,disabled:H,shape:V,showTooltipInfo:!!R,tooltipInfoText:R,tooltipDescription:N,onClick:()=>u?.(D,_.label)},D)};return o.jsxs(l.Fragment,{children:[_.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:_.groupLabel}),_.groupAction]}),o.jsxs("div",{className:_e("filter-panel__section",_.layout==="row"?"filter-panel__section--row":"",_.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:_.displayLabel??_.label}),_.labelAction??(_.labelInfo?o.jsx(Lo,{..._.labelInfo}):null)]}),_.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:_.content}):_.type==="input"?o.jsx(qa,{className:"filter-panel__textfield",placeholder:_.placeholder,ariaLabel:_.displayLabel??_.label,value:d[_.label]??"",onChange:B=>u?.(B,_.label),error:_.error}):!_.multiple&&_.display==="segmented"?o.jsx(Ka,{ariaLabel:_.displayLabel??_.label,options:[..._.allOption?[{key:St,label:_.allLabel??g("common.all","\uC804\uCCB4")}]:[],...S.map(B=>{const D=typeof B=="string"?B:B.value,H=typeof B!="string"?B.displayLabel:void 0,$=typeof B!="string"?B.disabled:void 0;return{key:D,label:H??D,disabled:$}})],value:w&&_.allOption?St:d[_.label],onChange:B=>u?.(B,_.label),size:32}):!_.multiple&&_.display==="dropdown"?o.jsx(Xt,{className:"filter-panel__dropdown",size:40,options:[..._.allOption?[{value:St,label:_.allLabel??g("common.all","\uC804\uCCB4")}]:[],...S.map(B=>{const D=typeof B=="string"?B:B.value,H=typeof B!="string"?B.displayLabel:void 0,$=typeof B!="string"?B.disabled:void 0;return{value:D,label:H??D,disabled:$}})],value:w&&_.allOption?St:d[_.label],onChange:B=>u?.(B,_.label)}):o.jsxs("div",{className:_.groups?"filter-panel__item-groups":"filter-panel__items",children:[_.allOption&&!_.groups&&o.jsx(ie,{size:"keyboard",label:_.allLabel??g("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(St,_.label)}),_.groups?_.groups.map((B,D)=>o.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&_.allOption&&o.jsx(ie,{size:"keyboard",label:_.allLabel??g("common.all","\uC804\uCCB4"),selected:w,disabled:_.allOptionDisabled,onClick:()=>u?.(St,_.label)}),B.filter(H=>H!=null).map(L)]},D)):S.map(L)]})]})]},_.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const U8=[1,2,3,4,5,6,7,8,9,10,11,12],Y8=[8,4,2,1];function eb(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function tb(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function ab(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ob(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function rb(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function nb(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Y8.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ib(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const sb={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function lb(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function cb(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function db(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===St?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function q8(e){return"sections"in e}function $n(e){const{t}=he.useTranslation(),{title:a,className:r}=e;if(q8(e))return o.jsx(ya,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m,setters:p,showCutLine:h=!1,showDivLine2:f=!1,middleSections:g=[],extraSelected:b={},onExtraSelect:x}=e,v=[eb(t,{hasImage:n,hasColloquial:i}),tb(t),...g,ab(t),...h?[ob(t)]:[],...f?[rb(t)]:[]],C={...cb(t,{contentTypes:s,orientation:c,showOutline:d,cutLine:u,showDivLine:m}),...b},y=(_,k)=>{db(t,_,k,p)||x?.(_,k)};return o.jsx(ya,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:C,onSelect:y,sectionAlign:"horizontal"})}function ub(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function _c(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function K8(e,t,a,r="",n=""){if(e.length===0)return;const i=r?_c(r):"";if(i){const d=document.title;document.title=i;const u=()=>{document.title=d,window.removeEventListener("afterprint",u)};window.addEventListener("afterprint",u)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(Cc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function Cc(e,t,a,r=!1,n="",i=""){n=n?_c(n):"";const s=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
847
847
|
`),c=document.documentElement.getAttribute("data-theme")||"light",d=i?`<div class="paper-head">${ub(i)}</div>`:"",u=e.map(m=>{const p=m.cloneNode(!0);return p.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),p.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),p.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),`<div class="paper-wrap">${d}${p.outerHTML}</div>`}).join(`
|
|
848
848
|
`);return`<!DOCTYPE html>
|
|
849
849
|
<html data-theme="${c}">
|
|
@@ -970,16 +970,16 @@ ${y.badge}`:y.badge:void 0;if(k&&d(y.code))return null;if(!y.badge&&!u)return m(
|
|
|
970
970
|
`:""}
|
|
971
971
|
<\/script>
|
|
972
972
|
</body>
|
|
973
|
-
</html>`}function $n({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{K8(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=window.open("","_blank");if(!m){n?.();return}m.document.write(Cc(u,t,a,!1,r,i)),m.document.close()},[e,t,a,r,n,i]),d=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=Cc(u,t,a,!1,r,i),p=new Blob([m],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(p),g=r&&_c(r),f=Object.assign(document.createElement("a"),{href:h,download:`${g}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(h)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:d}}function yc(e){const{t}=he.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[d,u]=l.useState(!0),[m,p]=l.useState(!0),[h,g]=l.useState(8),[f,b]=l.useState("right"),x=e.length,v=e.some(R=>R.words.length>1),C=e.some(R=>R.words.some(E=>!!E.colloquialLabel)),y=Math.min(h,Math.max(x,1)),_=l.useMemo(()=>Xm(e,y),[e,y]),k=_.length>1,w=y,[A,T]=l.useState(!1);l.useEffect(()=>{let R=!1;if(!Ia()){T(!1);return}return Promise.all(e.flatMap(E=>E.words.map($=>Xo($.label,$.homonum)))).then(E=>{R||T(E.some(Boolean))}),()=>{R=!0}},[e]);const S=l.useMemo(()=>[eb(t,{hasImage:A,hasColloquial:C}),tb(t),...x>0?[nb(t,{hasPairs:v,itemCount:x})]:[],...k?[ib(t)]:[],ab(t),...w>1?[ob(t)]:[],...v?[rb(t)]:[]],[t,A,C,x,v,k,w]),D={...cb(t,{contentTypes:n,orientation:a,showOutline:d,cutLine:s,showDivLine:m}),...x>0?{[t(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${y}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:sb[f]}:{}},H=l.useCallback((R,E)=>{db(t,R,E,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:p})||(E===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(R)):E===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(lb(R)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:d,showDivLine:m,count:w},filterSections:S,filterSelected:D,handleSelect:H,pages:_,isPaginated:k,pageNumberPosition:f}}var Z8=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";ae(Z8);function pb({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:d,printFileName:u,showSettings:m,autoPrint:p,className:h,onClose:g,scoring:f=!1,onScoreChange:b,printHeader:x,beforeClose:v}){const{t:C}=he.useTranslation(),y=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ce=>typeof ce=="string"&&ce.length>0).map((ce,pe)=>({id:`${ce}-${pe}`,words:[{label:ce}]})),[e,t]),{settings:_,filterSections:k,filterSelected:w,handleSelect:A,pages:T,isPaginated:S,pageNumberPosition:D}=yc(y),H=l.useMemo(()=>gc(T.map(ce=>ce.length)),[T]),[R,E]=l.useState({}),$=l.useCallback((ce,pe)=>{E(me=>({...me,[Br(ce)]:hc(me[Br(ce)]??null,pe)}))},[]),B=l.useRef(b);l.useEffect(()=>{B.current=b}),l.useEffect(()=>{B.current?.(Tn(R))},[R]);const F=l.useMemo(()=>Tn(R),[R]),X=l.useRef(null),{toastMessage:Q,toastKey:ee,showWarning:N,clearToast:L}=Cn("warning"),P=l.useRef([]),V=l.useCallback(()=>S?P.current.filter(ce=>ce!==null):X.current?[X.current]:[],[S]),{print:W,openNewWindow:te}=$n({getElements:V,paperW:ho[_.orientation].width,paperH:ho[_.orientation].height,fileName:u??"",header:x??"",onPopupBlocked:()=>N(C("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),O=l.useMemo(()=>c?void 0:s?s({print:W,openNewWindow:te}):u?[{label:C("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>te()},{label:C("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>W()},...i??[]]:i,[c,s,u,i,C,W,te]),Y=l.useMemo(()=>c?c({print:W,openNewWindow:te}):void 0,[c,W,te]),I=l.useRef(!1);return l.useEffect(()=>{if(!p||I.current)return;I.current=!0;const ce=window.setTimeout(()=>W(),100);return()=>window.clearTimeout(ce)},[p,W]),o.jsxs(Ta,{title:a??C("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:_e("word-table-popup",h),buttons:O,footer:Y,footerClassName:d,beforeClose:v,onClose:g,children:[y.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[m&&o.jsx(Mn,{sections:k,selected:w,onSelect:A}),S?o.jsx("div",{className:"word-table-popup__pages",children:T.map((ce,pe)=>o.jsx(mo,{items:ce,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:me=>{P.current[pe]=me},pageNumber:{current:pe+1,total:T.length},pageNumberPosition:D,scoring:f,scoreIndexOffset:H[pe],marks:F,onMarkClick:$},pe))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(mo,{items:y,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:X,fitHeight:!0,scoring:f,marks:F,onMarkClick:$})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??C("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(uo,{message:Q,position:"top",onClose:L},ee)]})}const X8=new Set(["x","triangle"]);function hb(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&X8.has(n)&&a.push(e[r])}return a}function mb(e,t){const[,a,r]=Da(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const u=i.exec(s);if(!u)break;c=Math.max(c,(u[1]?Number(u[1]):1)+1),s=s.slice(0,u.index).trim()}const d=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${d}\uBCF5\uC2B5 ${n}`}function bb(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function gb(e){return e.map(t=>t.label).join(" / ")}function fb(e,t,a){const r=an(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}const J8=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Rn(e,t){return J8().compare(e,t)}function Q8(e,t){return typeof e=="number"&&typeof t=="number"?e-t:Rn(e==null?"":String(e),t==null?"":String(t))}function vb(e,t,a){return a===0?0:(e+t*.5)/a}function xb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")d.o++;else if(s==="triangle")d.triangle++;else if(s==="x")d.x++;else continue;d.latest=s,d.latestAt=n.scoredAt,t.set(c,d)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:vb(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||Rn(n.label,i.label)),r}function _b(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),d=c.filter(m=>m==="o").length,u=c.filter(m=>m==="triangle").length;return vb(d,u,c.filter(m=>m==="o"||m==="triangle"||m==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Cb(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function yb(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const d=s.itemId?.trim()||c,u=`${s.trainingType}|${d}`,m=t.get(u)??{trainingType:s.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};m.tried++,s.isCorrect||m.wrong++,m.title=c,m.latestCorrect=s.isCorrect,m.latestAt=s.answeredAt,m.lastSelected=s.selected,s.setId&&!m.setIds.includes(s.setId)&&m.setIds.unshift(s.setId),t.set(u,m)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||Rn(s.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function wb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function kb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const Pn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Ab(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,d=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>Pn.includes(i.trainingType)).sort(r),word:n.filter(i=>!Pn.includes(i.trainingType)).sort(r),noSet:a}}function Sb(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const d of i.cellLabels)r.has(d)&&!s.has(d)&&(s.add(d),c.push(d));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||Rn(i.name,s.name)),n.slice(0,Math.max(0,a))}function Bb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function Nb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function Db(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function jb(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function Eb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function Tb(e,t){return e.filter(a=>a.key!==t)}function Lb(e,t,a){const r=e.filter(u=>u.pinned),n=new Set(r.map(u=>u.key)),i=e.length-r.length,s=[],c=new Set(n);for(const u of t){if(s.length>=i)break;const m=a(u);c.has(m)||(c.add(m),s.push({key:m,value:u,pinned:!1}))}const d=[...s];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function Mb(e){return e.map(t=>t.value)}var e7=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
|
|
973
|
+
</html>`}function Rn({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{K8(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=window.open("","_blank");if(!m){n?.();return}m.document.write(Cc(u,t,a,!1,r,i)),m.document.close()},[e,t,a,r,n,i]),d=l.useCallback(()=>{const u=e();if(u.length===0)return;const m=Cc(u,t,a,!1,r,i),p=new Blob([m],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(p),f=r&&_c(r),g=Object.assign(document.createElement("a"),{href:h,download:`${f}.html`});document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(h)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:d}}function yc(e){const{t}=he.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[d,u]=l.useState(!0),[m,p]=l.useState(!0),[h,f]=l.useState(8),[g,b]=l.useState("right"),x=e.length,v=e.some($=>$.words.length>1),C=e.some($=>$.words.some(E=>!!E.colloquialLabel)),y=Math.min(h,Math.max(x,1)),_=l.useMemo(()=>Xm(e,y),[e,y]),k=_.length>1,w=y,[S,L]=l.useState(!1);l.useEffect(()=>{let $=!1;if(!Ia()){L(!1);return}return Promise.all(e.flatMap(E=>E.words.map(R=>Xo(R.label,R.homonum)))).then(E=>{$||L(E.some(Boolean))}),()=>{$=!0}},[e]);const B=l.useMemo(()=>[eb(t,{hasImage:S,hasColloquial:C}),tb(t),...x>0?[nb(t,{hasPairs:v,itemCount:x})]:[],...k?[ib(t)]:[],ab(t),...w>1?[ob(t)]:[],...v?[rb(t)]:[]],[t,S,C,x,v,k,w]),D={...cb(t,{contentTypes:n,orientation:a,showOutline:d,cutLine:s,showDivLine:m}),...x>0?{[t(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${y}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:sb[g]}:{}},H=l.useCallback(($,E)=>{db(t,$,E,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:p})||(E===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?f(parseInt($)):E===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(lb($)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:d,showDivLine:m,count:w},filterSections:B,filterSelected:D,handleSelect:H,pages:_,isPaginated:k,pageNumberPosition:g}}var Z8=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";ae(Z8);function pb({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:d,printFileName:u,showSettings:m,autoPrint:p,className:h,onClose:f,scoring:g=!1,onScoreChange:b,printHeader:x,beforeClose:v}){const{t:C}=he.useTranslation(),y=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ce=>typeof ce=="string"&&ce.length>0).map((ce,pe)=>({id:`${ce}-${pe}`,words:[{label:ce}]})),[e,t]),{settings:_,filterSections:k,filterSelected:w,handleSelect:S,pages:L,isPaginated:B,pageNumberPosition:D}=yc(y),H=l.useMemo(()=>gc(L.map(ce=>ce.length)),[L]),[$,E]=l.useState({}),R=l.useCallback((ce,pe)=>{E(me=>({...me,[Br(ce)]:hc(me[Br(ce)]??null,pe)}))},[]),N=l.useRef(b);l.useEffect(()=>{N.current=b}),l.useEffect(()=>{N.current?.(Ln($))},[$]);const V=l.useMemo(()=>Ln($),[$]),J=l.useRef(null),{toastMessage:Q,toastKey:ee,showWarning:A,clearToast:T}=yn("warning"),P=l.useRef([]),F=l.useCallback(()=>B?P.current.filter(ce=>ce!==null):J.current?[J.current]:[],[B]),{print:W,openNewWindow:te}=Rn({getElements:F,paperW:ho[_.orientation].width,paperH:ho[_.orientation].height,fileName:u??"",header:x??"",onPopupBlocked:()=>A(C("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),O=l.useMemo(()=>c?void 0:s?s({print:W,openNewWindow:te}):u?[{label:C("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>te()},{label:C("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>W()},...i??[]]:i,[c,s,u,i,C,W,te]),Y=l.useMemo(()=>c?c({print:W,openNewWindow:te}):void 0,[c,W,te]),I=l.useRef(!1);return l.useEffect(()=>{if(!p||I.current)return;I.current=!0;const ce=window.setTimeout(()=>W(),100);return()=>window.clearTimeout(ce)},[p,W]),o.jsxs(Ta,{title:a??C("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:_e("word-table-popup",h),buttons:O,footer:Y,footerClassName:d,beforeClose:v,onClose:f,children:[y.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[m&&o.jsx($n,{sections:k,selected:w,onSelect:S}),B?o.jsx("div",{className:"word-table-popup__pages",children:L.map((ce,pe)=>o.jsx(mo,{items:ce,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:me=>{P.current[pe]=me},pageNumber:{current:pe+1,total:L.length},pageNumberPosition:D,scoring:g,scoreIndexOffset:H[pe],marks:V,onMarkClick:R},pe))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(mo,{items:y,orientation:_.orientation,contentTypes:_.contentTypes,cutLine:_.cutLine,showOutline:_.showOutline,showDivLine:_.showDivLine,count:_.count,contentRef:J,fitHeight:!0,scoring:g,marks:V,onMarkClick:R})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??C("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(uo,{message:Q,position:"top",onClose:T},ee)]})}const X8=new Set(["x","triangle"]);function hb(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&X8.has(n)&&a.push(e[r])}return a}function mb(e,t){const[,a,r]=Da(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const u=i.exec(s);if(!u)break;c=Math.max(c,(u[1]?Number(u[1]):1)+1),s=s.slice(0,u.index).trim()}const d=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${d}\uBCF5\uC2B5 ${n}`}function bb(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function gb(e){return e.map(t=>t.label).join(" / ")}function fb(e,t,a){const r=on(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}const J8=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Pn(e,t){return J8().compare(e,t)}function Q8(e,t){return typeof e=="number"&&typeof t=="number"?e-t:Pn(e==null?"":String(e),t==null?"":String(t))}function vb(e,t,a){return a===0?0:(e+t*.5)/a}function xb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")d.o++;else if(s==="triangle")d.triangle++;else if(s==="x")d.x++;else continue;d.latest=s,d.latestAt=n.scoredAt,t.set(c,d)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:vb(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||Pn(n.label,i.label)),r}function _b(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),d=c.filter(m=>m==="o").length,u=c.filter(m=>m==="triangle").length;return vb(d,u,c.filter(m=>m==="o"||m==="triangle"||m==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Cb(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function yb(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const d=s.itemId?.trim()||c,u=`${s.trainingType}|${d}`,m=t.get(u)??{trainingType:s.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};m.tried++,s.isCorrect||m.wrong++,m.title=c,m.latestCorrect=s.isCorrect,m.latestAt=s.answeredAt,m.lastSelected=s.selected,s.setId&&!m.setIds.includes(s.setId)&&m.setIds.unshift(s.setId),t.set(u,m)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||Pn(s.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function wb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function kb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const zn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Ab(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,d=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>zn.includes(i.trainingType)).sort(r),word:n.filter(i=>!zn.includes(i.trainingType)).sort(r),noSet:a}}function Sb(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const d of i.cellLabels)r.has(d)&&!s.has(d)&&(s.add(d),c.push(d));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||Pn(i.name,s.name)),n.slice(0,Math.max(0,a))}function Bb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function Nb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function Db(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function jb(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function Eb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function Tb(e,t){return e.filter(a=>a.key!==t)}function Lb(e,t,a){const r=e.filter(u=>u.pinned),n=new Set(r.map(u=>u.key)),i=e.length-r.length,s=[],c=new Set(n);for(const u of t){if(s.length>=i)break;const m=a(u);c.has(m)||(c.add(m),s.push({key:m,value:u,pinned:!1}))}const d=[...s];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function Mb(e){return e.map(t=>t.value)}var e7=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
|
|
974
974
|
|
|
975
975
|
/* !important \uD544\uC694: Icon.tsx\uC758 \uD3F4\uBC31 SVG(nullSvg)\uB294 style="stroke:...;stroke-width:.." \uC778\uB77C\uC778
|
|
976
976
|
\uC18D\uC131\uC73C\uB85C \uB80C\uB354\uB9C1\uB418\uC5B4 \uD074\uB798\uC2A4 \uADDC\uCE59\uBCF4\uB2E4 \uC6B0\uC120\uC21C\uC704\uAC00 \uB192\uC74C. \uC774 \uADDC\uCE59\uC744 \uBAA8\uB4E0 \uC544\uC774\uCF58(\uC77C\uBC18 lucide
|
|
977
|
-
\uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;ae(e7);function t7(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(He,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function $b(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const d=l.useRef(r),u=l.useRef(s),m=l.useRef(a!==void 0);l.useEffect(()=>{!m.current&&u.current&&typeof d.current=="function"&&d.current(u.current)},[]);const p=l.useCallback(h=>{const g=s===h?null:h;c(g),r?.(g)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(h=>o.jsx(t7,{category:h,isSelected:s===h.key,onClick:()=>p(h.key)},h.key))})}var a7=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(a7);function Rb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(ie,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var o7=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";ae(o7);function Pb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=he.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
977
|
+
\uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;ae(e7);function t7(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(He,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function $b(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const d=l.useRef(r),u=l.useRef(s),m=l.useRef(a!==void 0);l.useEffect(()=>{!m.current&&u.current&&typeof d.current=="function"&&d.current(u.current)},[]);const p=l.useCallback(h=>{const f=s===h?null:h;c(f),r?.(f)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(h=>o.jsx(t7,{category:h,isSelected:s===h.key,onClick:()=>p(h.key)},h.key))})}var a7=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ae(a7);function Rb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(ie,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var o7=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";ae(o7);function Pb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=he.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
978
978
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
979
979
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
980
|
-
`).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Kl,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var r7='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';ae(r7);function zb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),p=s?`${s} landing-header__inner`:"landing-header__inner",h=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:p,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:h(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:h(g,()=>m(!1))},g.href))})})]})}var n7=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ae(n7);function Ib({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,...Fm(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const Ob=9,wc=2,i7=.1,Fb=e=>Math.min(wc,Math.max(0,e)),s7=e=>Math.round(e*10)/10;function zn(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return Fb(t);const a=Math.min(Ob,Math.max(0,Number(e.level)||0))/Ob,r=Number(e.mainVolume);return r>0?s7(Fb(a/r)):1}const Hb=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function l7(e){return Hb(e)}function Vb(e){return Hb(e)*zn(e)}function Wb(e,t=pi()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Vb(e)/a)}function kc(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=zn({level:a.level,mainVolume:a.mainVolume})),a}const Ac={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Gb=l.createContext(null);function Sc(){return l.useContext(Gb)}const Bc=e=>`${ui()}/${e}`,Ub=e=>Array.from({length:10},(t,a)=>Bc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),In={get defaultNoise(){return Bc("noise1.mp3")},get street(){return Ub("noise2")},get restaurant(){return Ub("noise3")},get buzz(){return Bc("noise4.mp3")}};function c7(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return In.defaultNoise;case"street":return In.street[t];case"restaurant":return In.restaurant[t];case"buzz":return In.buzz;default:return null}}function d7({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),p=l.useRef(null),h=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),g=l.useCallback((v,C=250)=>{const y=n.current;if(!y||!y.src)return;m.current+=1,h();try{qo(),xo(y).then(A=>{try{r.current?.("noise",A)}catch{}})}catch{}const _=y.paused?0:_o(y);y.paused&&pa(y,0),y.play().catch(()=>{});const k=performance.now(),w=()=>{const A=Math.min(1,(performance.now()-k)/C);try{pa(y,_+(v-_)*A)}catch{}A<1?u.current=requestAnimationFrame(w):u.current=null};u.current=requestAnimationFrame(w)},[h]),f=l.useCallback((v=250,C)=>{const y=n.current;if(!y||y.paused){C?.();return}const _=++m.current;h();const k=performance.now(),w=_o(y),A=()=>{const T=Math.min(1,(performance.now()-k)/v);try{pa(y,w*(1-T))}catch{}if(T<1)u.current=requestAnimationFrame(A);else{u.current=null,p.current!==null&&(clearTimeout(p.current),p.current=null);try{y.pause()}catch{}C?.()}};u.current=requestAnimationFrame(A),p.current=setTimeout(()=>{if(p.current=null,m.current===_){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{y.paused||(pa(y,0),y.pause(),C?.())}catch{}}},v+150)},[h]);l.useEffect(()=>{const v=document.createElement("audio");return v.loop=!0,v.crossOrigin="anonymous",n.current=v,()=>{h();try{v.pause(),v.src=""}catch{}n.current=null}},[h]);const b=e?Wb(e.settings):0,x=!!e?.settings.enabled&&b>0;return l.useEffect(()=>{if(!x)return;let v=0;const C=setInterval(()=>{const y=n.current;if(!y||y.paused){v=0;return}const _=t.current;if(_&&!_.paused&&!_.ended||a.current==="playing"){v=0;return}v+=1,v>=2&&(v=0,f())},400);return()=>clearInterval(C)},[f,x,t,a]),l.useEffect(()=>{const v=()=>{if(!document.hidden)return;const C=n.current;if(C&&!C.paused){h();try{C.pause()}catch{}}};return document.addEventListener("visibilitychange",v),()=>document.removeEventListener("visibilitychange",v)},[h]),l.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:b,type:e.settings.type}:null},[e,e?.settings.enabled,b,e?.settings.type]),l.useEffect(()=>{const v=e?.settings,C=n.current;if(!C)return;const y=v?Wb(v):0;if(!v||!v.enabled||y===0){f();return}if(c.current!==v.type){const _=c7(v.type);_&&(c.current=v.type,s(_),f(150,()=>{C.src=_,C.load();const k=t.current;k&&!k.paused&&C.addEventListener("canplay",function w(){C.removeEventListener("canplay",w);const A=t.current;A&&!A.paused&&!A.ended&&g(y)})}))}else{const _=t.current,k=!!_&&!_.paused&&!_.ended;if(k&&C.paused&&C.src)g(y);else if(!C.paused)if(!k)f();else{h();const w=_o(C),A=performance.now(),T=()=>{const S=Math.min(1,(performance.now()-A)/150);try{pa(C,w+(y-w)*S)}catch{}S<1?u.current=requestAnimationFrame(T):u.current=null};u.current=requestAnimationFrame(T)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,h,g,f,t]),l.useEffect(()=>{const v=n.current;if(v)try{v.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:h,fadeInNoise:g,fadeOutNoise:f}}function u7({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:p,handleEndRef:h}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const x=(y,_=1)=>{try{const k=(y||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(y||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,_)))}catch{return 1200}},v=l.useCallback(y=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!0)}catch{}return}const _=window.speechSynthesis;try{try{_.cancel()}catch{}const k=y??e,w=(Array.isArray(k)?k[0]??"":k)||"",A=new SpeechSynthesisUtterance(w);try{A.rate=Math.max(.3,Math.min(3,t))}catch{}try{A.volume=Math.max(0,Math.min(1,a))}catch{}f.current=x(w,A.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const T=m.current;T?.enabled&&(T?.volume??0)>0&&d(T.volume);const S=()=>{try{const D=g.current||performance.now(),H=performance.now()-D,R=f.current||1200,E=Math.min(1,H/R);i(E);try{r.current&&(r.current.style.left=`${E*100}%`),n.current&&n.current.style.setProperty("--progress",String(E))}catch{}E<1&&(b.current=requestAnimationFrame(S))}catch{}};A.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{h.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},A.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(S)}catch{}};try{_.speak(A)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,p,h]),C=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:v,stopTTS:C}}var p7='.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%}';ae(p7);async function h7(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((p,h)=>{const g=h*u,f=Math.min(g+u,d);let b=0;for(let x=g;x<f;x++){const v=Math.abs(s[x]);v>b&&(b=v)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function Yb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await h7(r,t,a)}catch(r){try{const n=Jr(r)}catch{}return null}}const m7=45;function On(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function qb(e){return On(e)/45}const Kb=4;function b7(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseRatio:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:p=!0}=e,h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[x,v]=l.useState(!1),[C,y]=l.useState(null),[_,k]=l.useState(2),[w,A]=l.useState(0),[T,S]=l.useState(null),[D,H]=l.useState(!1),R=3,E=3,$=1,B=300,F=l.useRef(0),X=l.useCallback(async(pe,me)=>{const ye=++F.current,be=()=>F.current===ye;try{if(v(!1),!pe){be()&&b(null);return}let M=me;if(!M)try{for(let Fe=0;Fe<4&&!(h.current||g.current);Fe++)await new Promise(Le=>requestAnimationFrame(Le));await new Promise(Fe=>requestAnimationFrame(Fe));const oe=h.current,we=g&&g.current?g.current:oe?oe.closest(".audio-player__wave"):null,de=we?we.getBoundingClientRect():oe?oe.getBoundingClientRect():null,z=de?Math.max(100,de.width):320,K=de?de.height:0;K>0&&A(K),M=Math.max($,Math.min(B,Math.floor((z+E)/(R+E))));const Z=M*R,ge=Math.max(0,M-1),je=ge>0?(z-Z)/ge:E;k(Math.max(0,je))}catch{M=120}const U=await Yb(pe,M);if(!be())return;if(!U){b(null),v(!1);return}b(U),y(M),v(!0)}catch{if(!be())return;b(null),v(!1)}},[v,b,A,k,y]);l.useEffect(()=>{const pe=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;X(typeof pe=="string"?pe:void 0).catch(()=>{}),H(!1)},[t,a,X]),l.useEffect(()=>{let pe=!1;if(!i||!C){S(null);return}const me=d>0?d*(c||1):void 0;return Yb(i,C,me).then(ye=>{pe||S(ye)}).catch(()=>{pe||S(null)}),()=>{pe=!0}},[i,C,d,c]);const Q=Math.max(0,Math.min(1,u)),ee=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),N=C||40,L=l.useMemo(()=>Array.from({length:N}).map((pe,me)=>{const ye=f&&f[me]!=null?f[me]:null,be=ye==null?null:Math.min(1,ye/ee*Q),M=be!=null&&w>0&&On(be)<=Kb,U=be==null?.15:M?0:qb(be),oe=N>1?me/(N-1):0;return o.jsx("div",{className:M?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":me,"--mix":oe}},me)}),[N,f,ee,Q,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},V=i?Math.max(1,s):1,W={"--bar-gap":`${_}px`,"--wave-h":`${On(V)}px`,"--wave-h1":`${m7}px`},te=Q*Math.max(0,s),O=x&&(i?!!T:!0);l.useEffect(()=>{O&&H(!0)},[O]);const Y=D?x:O;l.useEffect(()=>{m?.(Y)},[Y,m]);const I=C||40,ce=l.useMemo(()=>Array.from({length:I}).map((pe,me)=>{const ye=T&&T[me]!=null?T[me]:null,be=ye==null?0:ye/ee*te,M=w>0&&On(be)<=Kb,U=M?0:qb(be),oe=I>1?me/(I-1):0;return o.jsx("div",{className:M?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":me,"--mix":oe}},me)}),[I,T,ee,te,w]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:W,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${O?"is-ready":""}`,"aria-hidden":"true",children:ce}),p&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${Y?"is-ready":""}`,ref:h,children:L}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${Y?"is-ready":""}`,ref:n,style:P,children:L})]})]})}const g7={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 Nc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const f7=2e3;function Zb(e,t=f7){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function v7({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function x7(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function _7({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function C7({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function y7(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function w7({ended:e,completedByEnd:t}){return!!e||!!t}function k7(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function A7(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function S7(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function B7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const m=e.current,p=C7({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${p*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(p))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function Nr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=he.useTranslation(),m=e,p=Sc(),h=l.useRef(p?.registerAnalyser);l.useEffect(()=>{h.current=p?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),x=x7(),v=l.useRef(null),C=l.useRef(!1),y=l.useRef(0),_=l.useRef(null),{ref:k,rect:w,show:A,hide:T}=_7();l.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[S,D]=l.useState(!1),[H,R]=l.useState("idle"),[E,$]=l.useState("stopped"),B=l.useRef("stopped");l.useEffect(()=>{B.current=E},[E]);const[F,X]=l.useState(0),[Q,ee]=l.useState("active"),[N,L]=l.useState(null),[P,V]=l.useState(null),[W,te]=l.useState(0),[O,Y]=l.useState(!1),[I,ce]=l.useState(0),pe=p?.playbackRate??1,me=p?.mainVolume??1,ye=p?Vb(p.settings):0,be=p?l7(p.settings):me,[M,U]=l.useState("idle"),[oe,we]=l.useState(""),[de]=l.useState("top"),z=l.useRef(null),K=l.useRef(0),Z=l.useRef(null),{start:ge,stop:je,settleTo:Fe}=B7({audioRef:g,fillRef:f,waveProgressRef:Z,sourcesRef:z,currentIndexRef:K}),{onReadyChange:Le,waitForReady:Te,markNotReady:Ee}=v7({showSoundWaveForm:c,showNoiseWaveForm:d}),Be=l.useRef(null),Ue=l.useRef(n),at=l.useRef(r),fe=l.useRef(null),Oe=l.useRef(!1),[Re,Ke]=l.useState(!1),Xe=l.useCallback(J=>{Oe.current=J,Ke(J)},[]),Je=l.useRef(null),{activeNoiseUrl:Ve,noiseSettingsRef:vt,fadeInNoise:gt,fadeOutNoise:qe}=d7({noisePlayer:p,audioRef:g,playbackStateRef:B}),{startTTS:dt,stopTTS:Pe}=u7({ttsText:i,playbackRate:pe,mainVolume:be,fillRef:f,waveProgressRef:Z,setProgress:X,setPlaybackState:$,setStateLocal:ee,fadeInNoise:gt,fadeOutNoise:qe,noiseSettingsRef:vt,onDoneRef:at,handleEndRef:Je}),ze=Array.isArray(t)?t.filter(Boolean):t?[t]:[],it=(!ze||ze.length===0)&&!!i,Bt=Array.isArray(N)&&N.length>0?N:Array.isArray(P)&&P.length>0?P:null,et=Math.max(Array.isArray(Bt)?Bt.length:0,ze.length),tt=l.useCallback(async(J,ne=3,Ce=50)=>{for(let ke=0;ke<ne;ke++)try{return await J.play(),!0}catch(Me){if((Me instanceof Error||typeof Me=="object"&&Me&&"name"in Me?Me.name:void 0)==="AbortError"){await new Promise(re=>setTimeout(re,Ce));continue}try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),_t=l.useCallback(()=>{const J=g.current;if(!J)return;const ne=()=>{$("playing"),ee("playMode"),Y(!0),ge();try{qo(),xo(J).then(re=>{try{h.current?.("main",re)}catch{}})}catch{}const Me=vt.current;Me?.enabled&&(Me?.volume??0)>0&>(Me.volume)},Ce=()=>{w7({ended:!!J?.ended,completedByEnd:Oe.current})||($("paused"),je(),qe())},ke=()=>{try{const Me=z.current,re=y7(Me,K.current);if(re!==null){K.current=re,te(re),Y(!0);const Se=Me?.[re]&&Me[re].src;if(Se&&J){J.src=Se,J.load(),tt(J).catch(()=>{});return}}}catch{}$("stopped"),X(1);try{if(J)try{J.currentTime=0}catch{}}catch{}je(),Y(!1),qe();try{!Ue.current&&Je.current&&Je.current()}catch{}};return J.addEventListener("play",ne),J.addEventListener("pause",Ce),J.addEventListener("ended",ke),()=>{try{J.removeEventListener("play",ne),J.removeEventListener("pause",Ce),J.removeEventListener("ended",ke),je()}catch{}}},[gt,qe,tt,vt,ge,je]);l.useEffect(()=>_t(),[_t]),l.useEffect(()=>{Ue.current=n},[n]),l.useEffect(()=>{at.current=r},[r]),l.useEffect(()=>{if(n||Q!=="active")return;const J=_.current;if(!J)return;let ne=null;const Ce=requestAnimationFrame(()=>{try{const ke=J.getTotalLength();if(!ke)return;const Me=ke*.2;J.style.strokeDasharray=`${ke-Me} ${Me}`;const re="triFlow_"+Math.random().toString(36).slice(2);ne=document.createElement("style"),ne.textContent=`@keyframes ${re}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ke}}}`,document.head.appendChild(ne),J.style.animation=`${re} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ce),ne?.remove()}},[Q,n]),l.useEffect(()=>{z.current=N},[N]),l.useEffect(()=>{K.current=W},[W]),l.useEffect(()=>{const J=b.current,ne=v.current;if(!J||!ne)return;let Ce=null;const ke=32,Me=60,re=()=>{try{const We=Array.from(J.querySelectorAll(":scope > .button"));let nt=0;We.forEach(zt=>{if(zt===ne)return;const eo=zt.getBoundingClientRect();nt+=eo.width});const Nt=J.getBoundingClientRect().width,Pt=Math.max(0,Math.floor(Nt-nt-8)),Yt=et;if(!Yt||Pt<=0){Array.from(ne.children).forEach(zt=>{try{zt.style.width=""}catch{}});return}let qt=Math.floor(Pt/Yt);qt>Me&&(qt=Me),qt<ke&&(qt=Math.max(ke,Math.floor(Pt/Yt))),Array.from(ne.querySelectorAll(".button")).forEach(zt=>{try{zt.style.width=`${qt}px`}catch{}})}catch{}},Se=requestAnimationFrame(re);try{Ce=new ResizeObserver(()=>{requestAnimationFrame(re)}),Ce.observe(J),Ce.observe(ne),window.addEventListener("resize",re)}catch{}return()=>{try{cancelAnimationFrame(Se)}catch{}try{Ce&&(Ce.disconnect(),Ce=null)}catch{}try{window.removeEventListener("resize",re)}catch{}}},[N,P,et]),l.useEffect(()=>()=>{try{Be.current&&(clearTimeout(Be.current),Be.current=null),fe.current&&(clearTimeout(fe.current),fe.current=null)}catch{}},[]);const Vt=(J,ne)=>{L(J),ce(ne),Ee(),V(k7(J)),z.current=J},rt=async(J,ne)=>{Xe(!1),C.current=!1,J.src=ne,J.load(),await Zb(J),await Te(),D(!1),await tt(J),ee("playMode"),te(0),Y(!0)},jt=async(J,ne=!1)=>{const Ce=g.current;D(!0),R("measuring_duration");try{const ke=await Nc(J,{timeoutMs:1e4,rejectOnError:!0});Vt([{src:J,objectUrl:null,duration:ke}],ke),R("ready"),ne&&Ce&&await rt(Ce,J)}finally{C.current=!1,D(!1)}},Wt=async(J,ne=!1)=>{const Ce=g.current;D(!0),R("measuring_duration");try{const ke=await Promise.all(J.map(re=>Nc(re,{timeoutMs:1e4}))),Me=J.map((re,Se)=>({src:re,objectUrl:null,duration:ke[Se]||0}));Vt(Me,A7(Me)),R("ready"),ne&&Ce&&Me.length>0&&await rt(Ce,Me[0].src)}finally{C.current=!1,D(!1)}},wa=async(J=!1,ne=!0)=>{const Ce=g.current,ke=t?Array.isArray(t)?t:[t]:[];if(!(!ke||ke.length===0||!ke.some(Boolean))&&!C.current){C.current=!0,ne&&D(!0),R("resolving");try{const Me=S7(t,a,$r),re=[];let Se=0;for(const We of Me){let nt=We.src??null,Nt=null;if(!nt&&We.resolvedPath){try{R("getting_signed_url"),nt=await Go(We.resolvedPath)}catch{nt=null}if(!nt)try{R("downloading");const Yt=await Rr(We.resolvedPath);if(Yt){const qt=Yt instanceof Blob?Yt:new Blob([Yt]);Nt=x.track(URL.createObjectURL(qt)),nt=Nt}}catch{R("error");try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ee("active")}catch{}}}if(!nt)continue;let Pt=0;try{R("measuring_duration"),Pt=await Nc(nt,{timeoutMs:3e3})}catch{Pt=0}Se+=Pt||0,re.push({...We,src:nt,objectUrl:Nt,duration:Pt})}if(Vt(re,Se),re.length>0&&J&&Ce){const We=re[0];Xe(!1);try{x.keepOnly(re.map(nt=>nt.objectUrl))}catch{}if(R("ready"),C.current=!1,We.src&&Ce)try{Ce.src=We.src,Ce.load(),await Zb(Ce),await Te(),ne&&D(!1),Ce&&await tt(Ce)}catch{ne&&D(!1)}else ne&&D(!1);ee("playMode"),te(0),Y(!0)}}finally{C.current=!1,ne&&D(!1),R(Me=>Me==="ready"?"ready":"idle")}}},Ra=async()=>{const J=g.current;if(!(!J&&!it)){if(it){const ne=window.speechSynthesis;if(Q==="active"){const Ce=Uo(),ke=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ce&&ke.length>0){ee("load"),D(!0),R("resolving"),C.current=!0;try{const Me=await Promise.all(ke.map(re=>Promise.resolve(Ce(re))));Me.length>1?await Wt(Me,!0):await jt(Me[0],!0)}catch{C.current=!1,D(!1),ee("active"),dt(ke[0]||void 0)}return}dt(ke[0]||void 0);return}if(Q==="playMode"){if(J){if(J.paused){if(Oe.current){await Jt();return}await tt(J),$("playing")}else J.pause(),$("paused");return}try{if(ne&&ne.paused)try{ne.resume(),$("playing")}catch{}else try{ne.pause(),$("paused")}catch{}}catch{}}return}if(Q==="active"){if(n&&Array.isArray(z.current)&&z.current.length>0){const ne=z.current[0];try{if(ne.src&&J)try{J.src=ne.src,J.load(),J&&await tt(J)}catch{}ee("playMode"),te(0),Y(!0);return}catch{}}ee("load"),await wa(!0);return}if(Q!=="load"&&(Q==="playMode"||Q==="active"))try{if(J&&J.paused){if(Oe.current){await Jt();return}J&&await tt(J),$("playing")}else J&&(J.pause(),$("paused"))}catch(ne){(ne instanceof Error||typeof ne=="object"&&ne&&"name"in ne)&&ne.name}}},Jt=async()=>{const J=g.current;if(J)try{const ne=z.current;if(Array.isArray(ne)&&ne.length>1){await ka(0);return}Xe(!1);try{J.currentTime=0}catch{}J&&await tt(J),$("playing"),ee("playMode")}catch{}},la=()=>{if(it){Pe();return}const J=g.current;try{if(J){try{J.pause()}catch{}try{J.currentTime=0}catch{}}}catch{}qe(),$("stopped"),ee("active"),X(0),Y(!1)},ca=async(J,{sameSegment:ne=!1}={})=>{const Ce=++y.current,ke=g.current,Me=z.current?.[J]?.src;try{if(Xe(!1),te(J),Y(!0),K.current=J,!Me||!ke||(ne||Ee(),ke.src=Me,ke.load(),ne||await Te(),Ce!==y.current)||(await tt(ke),Ce!==y.current))return;$("playing"),ee("playMode")}catch{}},Et=async()=>{const J=z.current,ne=K.current||0;if(!J||ne<=0){await Jt();return}await ca(ne-1)},Ja=async()=>{const J=z.current,ne=K.current||0;if(!J||ne>=J.length-1){la();return}await ca(ne+1)},Tt=()=>{if(Oe.current)return;const J=200,ne=340;Xe(!0);try{X(1)}catch{}Fe(1);try{U("hold")}catch{}try{const Ce=g.current,ke=it&&!!Ce?.src;if(!it||ke){if(Ce){Ce.pause();try{Ce.currentTime=0}catch{}}}else Pe();qe()}catch{}try{$("stopped")}catch{}if(Y(!1),!Ue.current)try{fe.current&&(clearTimeout(fe.current),fe.current=null),fe.current=setTimeout(()=>{try{U("out")}catch{}fe.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{U("idle")}catch{}fe.current=null},ne)},J)}catch{}};l.useEffect(()=>{Je.current=Tt});const Qa=l.useCallback(()=>we(""),[]),ka=async J=>{(z.current||[])[J]&&await ca(J,{sameSegment:J===K.current})},Qe=E==="playing",Gt=l.useMemo(()=>{if(!P||P.length<=1)return P;const J=P[W];return J?[J]:P},[P,W]),Lt=n===!0;l.useEffect(()=>{try{const J=g.current;J&&typeof J.playbackRate=="number"&&(J.playbackRate=pe||1)}catch{}},[pe]);const Aa=l.useRef({raf:null,timer:null});l.useEffect(()=>{const J=g.current;if(!J)return;const ne=Math.max(0,Math.min(1,be)),Ce=Aa.current,ke=()=>{Ce.raf!==null&&(cancelAnimationFrame(Ce.raf),Ce.raf=null),Ce.timer!==null&&(clearTimeout(Ce.timer),Ce.timer=null)};ke();const Me=_o(J);if(J.paused||Math.abs(Me-ne)<.001||typeof requestAnimationFrame!="function"){try{pa(J,ne)}catch{}return}const re=performance.now(),Se=()=>{const We=Math.min(1,(performance.now()-re)/150);try{pa(J,Me+(ne-Me)*We)}catch{}Ce.raf=We<1?requestAnimationFrame(Se):null};return Ce.raf=requestAnimationFrame(Se),Ce.timer=setTimeout(()=>{ke();try{pa(J,ne)}catch{}},200),ke},[be]);const Qt=M==="hold",Ut=M==="out",da=Q==="playMode"&&!S&&!Re||Qt||Ut,le=E!=="stopped"||Qt||Ut,ve=E==="paused",xe=Math.max(0,Math.min(100,(F||0)*100)),Ne=_e("audio-player__fill",da?"is-visible":"",le?"is-expanded":"",ve?"is-paused":"",Ut?"is-out":"");return o.jsxs("div",{className:`audio-player ${Lt?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${Qe?"is-playing":""} ${S?"is-loading":""} ${Q!=="default"?"is-revealed":""}`,children:[S?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:g7[H]})]}):null,Q==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{T(),Ra()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:T,onFocus:A,onBlur:T,children:o.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:_,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&o.jsx(va,{anchorRect:w,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${Q==="playMode"||Qe?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Et,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Qe?"pause":"play",onClick:Ra,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:la,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),et>1?o.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:et}).map((J,ne)=>o.jsx(ie,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ne+1),onClick:()=>{try{ka(ne)}catch{}},ariaLabel:u("training.sourcePlay",{n:ne+1}),variant:"transparent-white",selected:O&&W===ne,disabled:Q!=="playMode"||!(Array.isArray(N)&&N[ne]),showTooltipInfo:!0},ne))}):null,!Array.isArray(N)||N.length<=1?o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Jt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}):null,o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ja,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Tt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:Ne,ref:f,style:{left:`${xe}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(b7,{segments:Gt,progress:F,totalDuration:I,onSegmentClick:ka,waveProgressRef:Z,showSoundWaveForm:c,noiseSrc:d&&p?.settings.enabled&&ye>0?Ve:null,noiseRatio:p?zn(p.settings):0,noiseSpeed:p?.settings.speed??1,mainVolume:me,onReadyChange:Le})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(He,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),o.jsx(uo,{message:oe,position:de,onClose:Qa})]})}var N7=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";ae(N7);function Po(e){const{t}=he.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:p,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}=pn({storageKey:"tooltip-fontScale"}),x=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),v=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],y={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},_=o.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:y,children:C.map((k,w)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:x,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(ja,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:_}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:_})}var D7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ae(D7);var j7='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';ae(j7);function Dc({state:e="disabled"}){const{t}=he.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(He,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var E7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ae(E7);function jc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:p}=he.useTranslation(),h=na("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[x,v]=l.useState(!1),[C,y]=l.useState(null),[_,k]=l.useState(null),w=l.useRef(i);l.useEffect(()=>{w.current=i});const A=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(D=>typeof D=="string"||typeof D=="number")?s.join(""):"",[s]),T=l.useCallback(()=>{v(!1),y(null),k(null)},[]);l.useEffect(()=>{if(!x)return;let D;try{typeof w.current=="function"&&(D=w.current())}catch{}if(D===!1){T();return}k(typeof D<"u"&&D!==null?D:null)},[A]);const S=l.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:s),!b.current){v(H=>!H);return}if(x)v(!1),y(null),k(null);else{const H=b.current.getBoundingClientRect();y(H),v(!0)}}},[i,s,x]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(ie,{size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(ie,{size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:x,onClick:S,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),x&&o.jsx(Po,{text:_??s,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:T,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ec(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Xa({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=he.useTranslation(),[m,p]=l.useState(()=>Ec(e,t));l.useEffect(()=>{const k=Ec(e,t);if(k!==m){const w=setTimeout(()=>p(k),0);return()=>clearTimeout(w)}},[e,t,m]);const h=l.useCallback((...k)=>{Ec(e,t)==="done"||m==="done"||typeof c=="function"&&c(...k)},[e,t,m,c]),[g,f]=l.useState(!1),[b,x]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=l.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const S=w.currentTarget??w.target;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect()}if(k instanceof DOMRect)return k;const A=k;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const T=k?.current;return T&&typeof T.getBoundingClientRect=="function"?T.getBoundingClientRect():null}catch{return null}},[]),C=l.useCallback((k,{text:w="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:T=!1,alignX:S="center",alignY:D="top"}={})=>{const H=v(k);x({text:w,label:A,anchorRect:H,backdrop:T,alignX:S,alignY:D}),f(!0)},[v]),y=l.useCallback(()=>{f(!1),x(k=>({...k,anchorRect:null}))},[]),_=l.Children.map(i,k=>{if(l.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const A=w.props??{},T=typeof A.onDone=="function"?A.onDone:h,S=typeof A.disabled=="boolean";let D=m==="disabled";return S&&(D=!!A.disabled),l.cloneElement(w,{onDone:T,disabled:D,showTooltip:C,hideTooltip:y})}return k});return o.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${s}`,"aria-current":m==="active",children:[o.jsx(Dc,{state:m}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(jc,{state:m,title:r,...n,useFaded:d}),_]}),g?o.jsx(ja,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:y,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:o.jsx(Po,{text:b.text,onClose:y})}):null]})}var T7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ae(T7);function Tc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=he.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const d=()=>c(S=>S==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:p,canDecrease:h,fontSize:g,lineHeight:f}=pn({storageKey:"textbox_fontScale"}),[b,x]=l.useState(""),v=l.useCallback(()=>i("active"),[]),C=l.useCallback(()=>x(""),[]),y=S=>{try{x(S)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const S=setTimeout(()=>i(t),0);return()=>clearTimeout(S)}},[t]);const k=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const S=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(S)},[k]);const w=t==="disabled"?n:t,A=w==="disabled"?"training-text-box--disabled":w==="active"?"training-text-box--active":w==="done"?"training-text-box--done":"",T=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${A} ${w!=="disabled"&&s==="dark"?"is-dark":""}`,children:[w==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(ie,{size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":w==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:T,children:k})}),w!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":w==="disabled",children:[o.jsx(ie,{size:32,type:"dot",onClick:m,onDisabledClick:()=>y(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ie,{size:32,type:"dot",onClick:u,onDisabledClick:()=>y(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(uo,{message:b,position:"top",onClose:C})]})}function Fn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=he.useTranslation(),x=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",y=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,_=d?d.join("||"):"",k=u?u.join("||"):"",[w,A]=l.useState(()=>Array.isArray(y)?f?Ge(y):y.slice():void 0);l.useEffect(()=>{Array.isArray(y)&&y.length?A(f?Ge(y):y.slice()):A(void 0)},[c,_,k,f]);const[T,S]=l.useState(null),[D,H]=l.useState(()=>new Set);l.useEffect(()=>{S(null),H(new Set)},[k]);const R=l.useRef(void 0);l.useEffect(()=>{const B=R.current;typeof B=="number"&&typeof t=="number"&&typeof e=="number"&&B>=e&&t<e&&(S(null),H(new Set)),R.current=t},[t,e]);const E=l.useCallback(B=>{if(C!=="active")return;const F=w?.[B];if(F==null)return;const X=F,Q=C==="active"||C==="done";if(m){const ee=new Set(D),N=ee.has(X);N?ee.delete(X):ee.add(X),H(ee),typeof s=="function"&&s({selectedValues:[...ee],__ts:Date.now()}),Q&&(typeof p=="number"&&p>0?ee.size>=p:!N)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else S(X),typeof s=="function"&&s({selectedIndex:B,selectedValue:X,__ts:Date.now()}),Q&&typeof i=="function"&&C==="active"&&i({selectedIndex:B,selectedValue:X,__ts:Date.now()})},[w,C,m,s,i,p,D]),$=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:x,useTitleFaded:n,children:o.jsx("div",{className:$,children:Array.isArray(w)&&w.length>0?w.map((B,F)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>E(F),ariaLabel:String(B),label:B,useLabel:!0,icon:g?g[String(B)]:void 0,variant:"default",disabled:C==="disabled",selected:m?D.has(B):T===B,useDisabledCovered:h,minWidth:0},String(B))):null})})}function Hn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=he.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",h=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const y=setTimeout(()=>b(null),0);return()=>clearTimeout(y)}},[h,c,f]);const x=l.useCallback(y=>{const _=typeof y=="object"&&y!==null?Object.assign({},y,{__ts:Date.now()}):{value:y,__ts:Date.now()};typeof i=="function"&&i(_),p==="active"&&typeof n=="function"&&n(_)},[i,p,n]),v=l.useCallback(()=>{p==="active"&&(b(!1),x(!1))},[x,p]),C=l.useCallback(()=>{p==="active"&&(b(!0),x(!0))},[x,p]);return o.jsxs(Xa,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(Tc,{context:s,state:p}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((y,_)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>{p==="active"&&(b(_),x&&x(_))},disabled:p==="disabled",ariaLabel:String(y),label:y,variant:p,selected:f===_},_)):o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:56,type:"bar",onClick:v,disabled:p==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(ie,{size:56,type:"bar",onClick:C,disabled:p==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Vn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:p,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=he.useTranslation(),x=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:x,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(Nr,{soundSrc:s,ttsText:s?null:u??x,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${h??0}-s${e}`)})}var L7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";ae(L7);var M7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ae(M7);function Wn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=he.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[m,p]=l.useState(Array.isArray(s)?s:[]),[h,g]=l.useState(()=>(m||[]).map((L,P)=>({id:P,text:u(L)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const L=Array.isArray(s)?s:[];p(L);const P=(V=>{const W=(V||[]).map((I,ce)=>({id:ce,text:u(I)}));if(W.length<=1)return W;const te=(I,ce)=>{if(I.length!==ce.length)return!1;for(let pe=0;pe<I.length;pe++)if(I[pe].text!==ce[pe].text)return!1;return!0};let O=Ge(W),Y=0;for(;te(O,W)&&Y<20;)O=Ge(W),Y+=1;return O})(L);g(P);try{if(typeof i=="function"){const V=P.filter((W,te)=>W.text===u(L[te])).length;i({shuffled:P,score:V,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const V=P.filter((W,te)=>W.text===u(L[te])).length;n({shuffled:P,score:V,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(L,P)=>{const V=[...h],W=L+P;if(W<0||W>=V.length)return;const te=V[W];V[W]=V[L],V[L]=te,$(V);try{if(typeof n=="function"&&f==="active"){const O=V.filter((Y,I)=>Y.text===u(m[I])).length;n({shuffled:V,score:O,total:(m||[]).length,__ts:Date.now()})}}catch{}},[x,v]=l.useState(null),C=l.useRef(null),y=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(null),A=l.useRef({x:0,y:0}),T=l.useRef(null),S=l.useRef({dx:0,dy:0}),D=()=>{if(T.current!==null)return;const L=()=>{T.current=requestAnimationFrame(L);const P=A.current,V=S.current||{dx:0,dy:0};C.current&&(C.current.style.transform=`translate3d(${P.x-V.dx}px, ${P.y-V.dy}px, 0)`)};T.current=requestAnimationFrame(L)},H=l.useRef(new Map),R=l.useRef(new Map),E=()=>{const L=new Map;return H.current.forEach((P,V)=>{P&&P.getBoundingClientRect&&L.set(V,P.getBoundingClientRect())}),L},$=L=>{const P=E();g(L);try{if(typeof i=="function"){const V=L.filter((W,te)=>W.text===u(m[te])).length;i({shuffled:L,score:V,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const V=E();L.forEach(W=>{const te=P.get(W.id),O=V.get(W.id),Y=H.current.get(W.id);if(!Y||!te||!O)return;const I=te.top-O.top;I&&(Y.style.transition="none",Y.style.transform=`translateY(${I}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const ce=()=>{Y.style.transition="",Y.removeEventListener("transitionend",ce)};Y.addEventListener("transitionend",ce)}))})})},B=(L,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(L))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const V=document.createElement("div");V.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(V),P.dataTransfer?.setDragImage(V,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(V)}catch{}})}catch{}}catch{}v(L);try{const V=h[L],W=document.createElement("div");W.className="order-list__dragging-object order-list__dragging-object--visible",W.textContent=V&&V.text?V.text:"",document.body.appendChild(W),C.current=W;const te=H.current.get(V.id);let O=P.clientX||0,Y=P.clientY||0;try{if(te&&te.getBoundingClientRect){const be=te.getBoundingClientRect();O=be.left+be.width/2,Y=be.top+be.height/2}}catch{}const I=W.getBoundingClientRect(),ce=I.width/2,pe=I.height/2;S.current={dx:ce,dy:pe},W.style.transition="none",A.current={x:O,y:Y},W.style.transform=`translate3d(${O-ce}px, ${Y-pe}px, 0)`,requestAnimationFrame(()=>{try{W.style.transition=""}catch{}D()});const me=be=>{const M=be;A.current={x:M.clientX,y:M.clientY},D()};_.current=me,document.addEventListener("mousemove",me);const ye=be=>{const M=be;A.current={x:M.clientX,y:M.clientY},D()};y.current=ye,document.addEventListener("dragover",ye);try{P.dataTransfer?.setData("text/plain",String(L));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},F=(L,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const V=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if(V&&k.current!==V){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{V.classList.add("drag-over")}catch{}k.current=V}}catch{}},X=(L,P)=>{P.preventDefault();const V=P.dataTransfer?.getData("text/plain")||"",W=V?parseInt(V,10):x,te=L;if(typeof W!="number"||isNaN(W)||W===te){v(null),N(),Q();return}const O=Qi(h,W,te);$(O),v(null),Q();try{if(typeof n=="function"&&f==="active"){const Y=O.filter((I,ce)=>I.text===u(m[ce])).length;n({shuffled:O,score:Y,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[te];if(!Y)return;const I=Y.querySelector(".order-list__slot")||Y;try{I.classList.add("pulse"),I.offsetHeight,I.classList.add("to-dark");const ce=()=>{I.classList.remove("pulse","to-dark"),I.removeEventListener("transitionend",ce)};I.addEventListener("transitionend",ce)}catch{}})}catch{}N()},Q=()=>{if(C.current){try{document.body.removeChild(C.current)}catch{}C.current=null}y.current&&(document.removeEventListener("dragover",y.current),y.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null)},ee=()=>{v(null),N(),Q()};l.useEffect(()=>()=>Q(),[]);const N=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const L=Math.max(1,(h||[]).length);h.forEach((P,V)=>{const W=R.current.get(P.id);if(!W)return;let te=50;L>1&&(te=Math.round(V/(L-1)*100));try{W.style.setProperty("--marker-pos",te+"%")}catch{}})}catch{}},[h]),l.useEffect(()=>()=>{Q(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:h.map((L,P)=>{const V=Math.max(1,(h||[]).length),W=V>1?Math.round(P/(V-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":W+"%"},ref:te=>{const O=R.current;te?O.set(L.id,te):O.delete(L.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,o.jsxs("div",{ref:te=>{const O=H.current;te?O.set(L.id,te):O.delete(L.id)},className:`order-list__draggable ${x===P?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?te=>B(P,te):void 0,onDragEnter:f==="active"?te=>F(P,te):void 0,onDragOver:f==="active"?te=>F(P,te):void 0,onDragLeave:f==="active"?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const te=document.querySelectorAll(".order-list .order-list__item");te&&te[P]&&(te[P].classList.remove("drag-over"),k.current===te[P]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?te=>X(P,te):void 0,onDragEnd:f==="active"?ee:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(ie,{size:32,type:"dot",onClick:()=>b(P,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(ie,{size:32,type:"dot",onClick:()=>b(P,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var $7="";ae($7);const R7=8e3;function P7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function Lc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:p}=he.useTranslation(),h=r??p("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=m??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const x=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":x<t?"done":x===t?"active":"disabled",[C,y]=l.useState(null),_=l.useRef([]),[k,w]=l.useState(!1),A=l.useMemo(()=>g.map(H=>H?.id??H?.word??"").join("|"),[g]);l.useEffect(()=>{y(null),_.current=[]},[A]);const T=l.useCallback((H,R)=>{if(c)return;const E={item:H,index:R,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[c,i,v,n]),S=l.useCallback(async()=>{if(!(k||v==="disabled")){w(!0);try{for(const H of _.current)H&&await P7(H.play(),R7)}finally{w(!1)}}},[k,v]),D=l.useCallback((H,R)=>{if(v!=="active")return;y(R);const E={selectedValue:H.word||H.title||"",selectedIndex:R,item:H,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[i,v,n]);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:h,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:S,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:p("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((H,R)=>o.jsx(En,{ref:E=>{_.current[R]=E},item:H,disabled:v==="disabled",onPlayDone:()=>T(H,R),selectable:c,selected:c&&C===R,onSelect:c?()=>D(H,R):void 0,flipDelay:R*120,hideLabel:d,hideAudio:u},H&&H.id||R))})})}const z7=160;var I7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";ae(I7);const Xb=()=>{};function Ma(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:v,children:C,align:y="horizontal",icon:_}=e,k=w=>{v&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return o.jsxs("div",{className:_e("panel-row",y==="vertical"?"panel-row--vertical":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?k:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[_!=null&&o.jsx("div",{className:"panel-row__icon",children:_}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),x&&o.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),o.jsx("div",{className:"panel-row__right",children:C})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(Mo,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:m}=e;let p=null;const h=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;p=o.jsx(tc,{checked:b.checked,onChange:b.onChange,id:h})}else if(a==="segmented"){const b=e;p=o.jsx(Ka,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,C)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Xt,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:u,error:!!c,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},C))}):o.jsx(Xt,{options:b.options??[],value:b.value??"",onChange:b.onChange??Xb,block:u,error:!!c,ariaLabel:r});p=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[x,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const b=e;b.buttons?.length?p=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,v)=>o.jsx(ie,{size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},v))}):p=o.jsx(ie,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;p=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;p=o.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[o.jsx(qa,{value:b.value,onChange:b.onChange??Xb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(p=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:_e("panel-row",d==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[h?o.jsxs("label",{htmlFor:h,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:p})]})}function Jb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Qb({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=he.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(n=>{const i=e[n],s=n==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:s}),i&&t&&o.jsx(ie,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(n)})]}),i?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&o.jsx(pt,{size:"small",variant:zm(i.device),fill:"soft",label:i.device}),Jb(i)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Jb(i)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},n)})})}function Dr({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,useBorder:u=!0,useBg:m=!0,useRowBorder:p=!0,labelWidth:h,form:g=!1,loading:f,empty:b,children:x}){const v=_e("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",p?"":"panel--no-row-border",c),C={};return i!==void 0&&(C.minHeight=i),s!==void 0&&(C.maxWidth=typeof s=="number"?`${s}px`:s),h!==void 0&&(C["--panel-label-width"]=typeof h=="number"?`${h}px`:h),o.jsxs("div",{className:v,style:Object.keys(C).length?C:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:_e("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(He,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Ma,{variant:"loading"}):b!=null&&(x==null||Array.isArray(x)&&x.length===0)?o.jsx(Ma,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:x}):x]})}function eg({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function O7(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 tg(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"}]}O7(Sa.t.bind(Sa)),tg(Sa.t.bind(Sa));var F7='.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}';ae(F7);const Mc="none",H7=.5,V7=1.5,W7=.25;function $c({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Ma,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(ic,{value:a,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Rc({anchorRect:e,onClose:t}){const{t:a}=he.useTranslation(),r=na("(max-width: 767px)")?40:24,n=Sc(),i=zn(n?.settings??Ac),s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=n?.playbackRate??1,u=n?.mainVolume??1,m=Math.round(u*100),p=l.useCallback(b=>{try{n?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[n]),h=l.useCallback(b=>{try{n?.setPlaybackRate(b)}catch{}},[n]),g=l.useCallback(b=>{const x=Math.min(wc,Math.max(0,Math.round(b*10)/10));try{n?.setSettings({noiseRatio:x})}catch{}},[n]),f=l.useCallback(b=>{try{b===Mc?n?.setSettings({enabled:!1}):n?.setSettings({type:b,enabled:!0})}catch{}},[n]);return o.jsx(ja,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(Dr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx($c,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),o.jsx($c,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:H7,max:V7,step:W7,size:r,onChange:h}),o.jsx(Ma,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Ka,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Mc,label:a("training.noise.type.none","\uC5C6\uC74C")},...tg(a).map(b=>({key:b.value,label:b.label}))],value:c?s:Mc,onChange:f})}),o.jsx($c,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:wc,step:i7,size:r,onChange:g})]})})}var G7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";ae(G7);function Pc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=he.useTranslation(),[u,m]=l.useState(!1),[p,h]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),x=l.useRef(null),v=Sc(),C=s<c-1,y=s===c-1,_=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),h(null))},[e]);const k=l.useCallback(()=>{m(!1),h(null)},[]),w=l.useCallback(()=>{if(u){m(!1),h(null);return}const S=b?.current?.getBoundingClientRect();S&&h(S),t?.(),m(!0)},[u,t]),A=l.useCallback(()=>{if(u){m(!1),h(null);return}const S=x?.current?.getBoundingClientRect();S&&h(S),t?.(),m(!0)},[u,t]),T=l.useCallback(()=>f(S=>!S),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ie,{size:56,type:"bar",icon:"settings",onClick:w,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:x,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ie,{size:56,type:"dot",icon:"settings",onClick:A,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(ie,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:T,selected:g,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Bn,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(Bn,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[y&&o.jsx(ie,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),C&&o.jsx(ie,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&u&&o.jsx(Rc,{anchorRect:p,onClose:k})]})}var U7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ae(U7);function zc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:p,onClose:h}){const{t:g}=he.useTranslation(),f=na("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,x=Number.isInteger(u)?u:d||0,v=p||h,C=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,y=typeof e=="string"?e.trim():e,_=typeof t=="string"?t.trim():t,k=!!(y||_),w=k?y||_:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=C||t,T=f&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,S=l.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[v?o.jsx(ie,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(Vm,{icon:n,label:e,tooltip:s,wrapperStyle:S}):null}),o.jsxs("div",{className:"pp-title__text",children:[T?o.jsx("span",{className:"pp-title__depth caption-1",children:T}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(cc,{max:Math.max(0,x??0),index:Math.max(0,b??0)})]})}function ag(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function og(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function Ic(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=rn().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function Gn(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function rg(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function ng({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Ic(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function ig(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function sg(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 lg(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 Oc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function cg(e,t,a,r){return Oc(e,t*a+r)}function dg({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function ug(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 pg=l.createContext(null);function Y7(){const e=l.useContext(pg);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function q7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),p=n.join("|");l.useEffect(()=>{m(p?p.split("|").map(()=>null):[])},[p]);const h=l.useMemo(()=>u.filter(f=>f!==null).length+1,[u]),g=l.useCallback(f=>{d==="active"&&m(b=>{const x=[...b];if(x[f]!==null){const C=x[f];return x.map(y=>y!==null&&y>=C?null:y)}x[f]=h;const v={selectedOrder:x,words:n,__ts:Date.now()};try{typeof s=="function"&&s(v)}catch{}if(x.every(C=>C!==null))try{typeof i=="function"&&i(v)}catch{}return x})},[d,h,s,i,n]);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(En,{item:{word:f},disabled:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function jr(e){return null}jr.__isTrainingPage=!0;function zo(e,t){const a=Y7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Fc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=zo(e,t);return o.jsx(Vn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function Hc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Fn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Hn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Wc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Wn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Gc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Lc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function K7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(q7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var Z7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
|
|
980
|
+
`).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Kl,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var r7='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';ae(r7);function zb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),p=s?`${s} landing-header__inner`:"landing-header__inner",h=(f,g)=>c?c(f,{onClick:g}):o.jsx("a",{href:f.href,onClick:g,"aria-current":f.current?"page":void 0,children:f.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:p,children:[e!=null&&(()=>{const f=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:f}):o.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(f=>o.jsx("span",{children:h(f)},f.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(f=>!f),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(f=>o.jsx("span",{className:"landing-header__drawer-item",children:h(f,()=>m(!1))},f.href))})})]})}var n7=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ae(n7);function Ib({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,...Fm(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const Ob=9,wc=2,i7=.1,Fb=e=>Math.min(wc,Math.max(0,e)),s7=e=>Math.round(e*10)/10;function In(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return Fb(t);const a=Math.min(Ob,Math.max(0,Number(e.level)||0))/Ob,r=Number(e.mainVolume);return r>0?s7(Fb(a/r)):1}const Hb=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function l7(e){return Hb(e)}function Vb(e){return Hb(e)*In(e)}function Wb(e,t=Pr()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Vb(e)/a)}function kc(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=In({level:a.level,mainVolume:a.mainVolume})),a}const Ac={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Gb=l.createContext(null);function Sc(){return l.useContext(Gb)}const Bc=e=>`${pi()}/${e}`,Ub=e=>Array.from({length:10},(t,a)=>Bc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),On={get defaultNoise(){return Bc("noise1.mp3")},get street(){return Ub("noise2")},get restaurant(){return Ub("noise3")},get buzz(){return Bc("noise4.mp3")}};function c7(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return On.defaultNoise;case"street":return On.street[t];case"restaurant":return On.restaurant[t];case"buzz":return On.buzz;default:return null}}function d7({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),p=l.useRef(null),h=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),f=l.useCallback((v,C=250)=>{const y=n.current;if(!y||!y.src)return;m.current+=1,h();try{qo(),xo(y).then(S=>{try{r.current?.("noise",S)}catch{}})}catch{}const _=y.paused?0:_o(y);y.paused&&pa(y,0),y.play().catch(()=>{});const k=performance.now(),w=()=>{const S=Math.min(1,(performance.now()-k)/C);try{pa(y,_+(v-_)*S)}catch{}S<1?u.current=requestAnimationFrame(w):u.current=null};u.current=requestAnimationFrame(w)},[h]),g=l.useCallback((v=250,C)=>{const y=n.current;if(!y||y.paused){C?.();return}const _=++m.current;h();const k=performance.now(),w=_o(y),S=()=>{const L=Math.min(1,(performance.now()-k)/v);try{pa(y,w*(1-L))}catch{}if(L<1)u.current=requestAnimationFrame(S);else{u.current=null,p.current!==null&&(clearTimeout(p.current),p.current=null);try{y.pause()}catch{}C?.()}};u.current=requestAnimationFrame(S),p.current=setTimeout(()=>{if(p.current=null,m.current===_){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{y.paused||(pa(y,0),y.pause(),C?.())}catch{}}},v+150)},[h]);l.useEffect(()=>{const v=document.createElement("audio");return v.loop=!0,v.crossOrigin="anonymous",n.current=v,()=>{h();try{v.pause(),v.src=""}catch{}n.current=null}},[h]);const b=e?Wb(e.settings):0,x=!!e?.settings.enabled&&b>0;return l.useEffect(()=>{if(!x)return;let v=0;const C=setInterval(()=>{const y=n.current;if(!y||y.paused){v=0;return}const _=t.current;if(_&&!_.paused&&!_.ended||a.current==="playing"){v=0;return}v+=1,v>=2&&(v=0,g())},400);return()=>clearInterval(C)},[g,x,t,a]),l.useEffect(()=>{const v=()=>{if(!document.hidden)return;const C=n.current;if(C&&!C.paused){h();try{C.pause()}catch{}}};return document.addEventListener("visibilitychange",v),()=>document.removeEventListener("visibilitychange",v)},[h]),l.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:b,type:e.settings.type}:null},[e,e?.settings.enabled,b,e?.settings.type]),l.useEffect(()=>{const v=e?.settings,C=n.current;if(!C)return;const y=v?Wb(v):0;if(!v||!v.enabled||y===0){g();return}if(c.current!==v.type){const _=c7(v.type);_&&(c.current=v.type,s(_),g(150,()=>{C.src=_,C.load();const k=t.current;k&&!k.paused&&C.addEventListener("canplay",function w(){C.removeEventListener("canplay",w);const S=t.current;S&&!S.paused&&!S.ended&&f(y)})}))}else{const _=t.current,k=!!_&&!_.paused&&!_.ended;if(k&&C.paused&&C.src)f(y);else if(!C.paused)if(!k)g();else{h();const w=_o(C),S=performance.now(),L=()=>{const B=Math.min(1,(performance.now()-S)/150);try{pa(C,w+(y-w)*B)}catch{}B<1?u.current=requestAnimationFrame(L):u.current=null};u.current=requestAnimationFrame(L)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,h,f,g,t]),l.useEffect(()=>{const v=n.current;if(v)try{v.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:h,fadeInNoise:f,fadeOutNoise:g}}function u7({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:p,handleEndRef:h}){const f=l.useRef(null),g=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const x=(y,_=1)=>{try{const k=(y||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(y||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,_)))}catch{return 1200}},v=l.useCallback(y=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!0)}catch{}return}const _=window.speechSynthesis;try{try{_.cancel()}catch{}const k=y??e,w=(Array.isArray(k)?k[0]??"":k)||"",S=new SpeechSynthesisUtterance(w);try{S.rate=Math.max(.3,Math.min(3,t))}catch{}try{S.volume=Math.max(0,Math.min(1,a))}catch{}g.current=x(w,S.rate||1),f.current=performance.now(),i(0),s("playing"),c("playMode");const L=m.current;L?.enabled&&(L?.volume??0)>0&&d(L.volume);const B=()=>{try{const D=f.current||performance.now(),H=performance.now()-D,$=g.current||1200,E=Math.min(1,H/$);i(E);try{r.current&&(r.current.style.left=`${E*100}%`),n.current&&n.current.style.setProperty("--progress",String(E))}catch{}E<1&&(b.current=requestAnimationFrame(B))}catch{}};S.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{h.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},S.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(B)}catch{}};try{_.speak(S)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,p,h]),C=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),f.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:v,stopTTS:C}}var p7='.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%}';ae(p7);async function h7(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((p,h)=>{const f=h*u,g=Math.min(f+u,d);let b=0;for(let x=f;x<g;x++){const v=Math.abs(s[x]);v>b&&(b=v)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function Yb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await h7(r,t,a)}catch(r){try{const n=Qr(r)}catch{}return null}}const m7=45;function Fn(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function qb(e){return Fn(e)/45}const Kb=4;function b7(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseRatio:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:p=!0}=e,h=l.useRef(null),f=l.useRef(null),[g,b]=l.useState(null),[x,v]=l.useState(!1),[C,y]=l.useState(null),[_,k]=l.useState(2),[w,S]=l.useState(0),[L,B]=l.useState(null),[D,H]=l.useState(!1),$=3,E=3,R=1,N=300,V=l.useRef(0),J=l.useCallback(async(pe,me)=>{const ye=++V.current,be=()=>V.current===ye;try{if(v(!1),!pe){be()&&b(null);return}let M=me;if(!M)try{for(let Fe=0;Fe<4&&!(h.current||f.current);Fe++)await new Promise(Le=>requestAnimationFrame(Le));await new Promise(Fe=>requestAnimationFrame(Fe));const oe=h.current,we=f&&f.current?f.current:oe?oe.closest(".audio-player__wave"):null,de=we?we.getBoundingClientRect():oe?oe.getBoundingClientRect():null,z=de?Math.max(100,de.width):320,K=de?de.height:0;K>0&&S(K),M=Math.max(R,Math.min(N,Math.floor((z+E)/($+E))));const Z=M*$,ge=Math.max(0,M-1),je=ge>0?(z-Z)/ge:E;k(Math.max(0,je))}catch{M=120}const U=await Yb(pe,M);if(!be())return;if(!U){b(null),v(!1);return}b(U),y(M),v(!0)}catch{if(!be())return;b(null),v(!1)}},[v,b,S,k,y]);l.useEffect(()=>{const pe=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;J(typeof pe=="string"?pe:void 0).catch(()=>{}),H(!1)},[t,a,J]),l.useEffect(()=>{let pe=!1;if(!i||!C){B(null);return}const me=d>0?d*(c||1):void 0;return Yb(i,C,me).then(ye=>{pe||B(ye)}).catch(()=>{pe||B(null)}),()=>{pe=!0}},[i,C,d,c]);const Q=Math.max(0,Math.min(1,u)),ee=l.useMemo(()=>g&&g.length&&Math.max(...g)||1,[g]),A=C||40,T=l.useMemo(()=>Array.from({length:A}).map((pe,me)=>{const ye=g&&g[me]!=null?g[me]:null,be=ye==null?null:Math.min(1,ye/ee*Q),M=be!=null&&w>0&&Fn(be)<=Kb,U=be==null?.15:M?0:qb(be),oe=A>1?me/(A-1):0;return o.jsx("div",{className:M?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":me,"--mix":oe}},me)}),[A,g,ee,Q,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},F=i?Math.max(1,s):1,W={"--bar-gap":`${_}px`,"--wave-h":`${Fn(F)}px`,"--wave-h1":`${m7}px`},te=Q*Math.max(0,s)/Pr(),O=x&&(i?!!L:!0);l.useEffect(()=>{O&&H(!0)},[O]);const Y=D?x:O;l.useEffect(()=>{m?.(Y)},[Y,m]);const I=C||40,ce=l.useMemo(()=>Array.from({length:I}).map((pe,me)=>{const ye=L&&L[me]!=null?L[me]:null,be=ye==null?0:ye/ee*te,M=w>0&&Fn(be)<=Kb,U=M?0:qb(be),oe=I>1?me/(I-1):0;return o.jsx("div",{className:M?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":me,"--mix":oe}},me)}),[I,L,ee,te,w]);return o.jsxs("div",{className:"audio-player__wave",ref:f,style:W,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${O?"is-ready":""}`,"aria-hidden":"true",children:ce}),p&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${Y?"is-ready":""}`,ref:h,children:T}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${Y?"is-ready":""}`,ref:n,style:P,children:T})]})]})}const g7={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 Nc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const f7=2e3;function Zb(e,t=f7){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function v7({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function x7(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function _7({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function C7({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function y7(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function w7({ended:e,completedByEnd:t}){return!!e||!!t}function k7(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function A7(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function S7(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function B7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const m=e.current,p=C7({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${p*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(p))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function Nr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=he.useTranslation(),m=e,p=Sc(),h=l.useRef(p?.registerAnalyser);l.useEffect(()=>{h.current=p?.registerAnalyser});const f=l.useRef(null),g=l.useRef(null),b=l.useRef(null),x=x7(),v=l.useRef(null),C=l.useRef(!1),y=l.useRef(0),_=l.useRef(null),{ref:k,rect:w,show:S,hide:L}=_7();l.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[B,D]=l.useState(!1),[H,$]=l.useState("idle"),[E,R]=l.useState("stopped"),N=l.useRef("stopped");l.useEffect(()=>{N.current=E},[E]);const[V,J]=l.useState(0),[Q,ee]=l.useState("active"),[A,T]=l.useState(null),[P,F]=l.useState(null),[W,te]=l.useState(0),[O,Y]=l.useState(!1),[I,ce]=l.useState(0),pe=p?.playbackRate??1,me=p?.mainVolume??1,ye=p?Vb(p.settings):0,be=p?l7(p.settings):me,[M,U]=l.useState("idle"),[oe,we]=l.useState(""),[de]=l.useState("top"),z=l.useRef(null),K=l.useRef(0),Z=l.useRef(null),{start:ge,stop:je,settleTo:Fe}=B7({audioRef:f,fillRef:g,waveProgressRef:Z,sourcesRef:z,currentIndexRef:K}),{onReadyChange:Le,waitForReady:Te,markNotReady:Ee}=v7({showSoundWaveForm:c,showNoiseWaveForm:d}),Be=l.useRef(null),Ue=l.useRef(n),at=l.useRef(r),fe=l.useRef(null),Oe=l.useRef(!1),[Re,Ke]=l.useState(!1),Xe=l.useCallback(X=>{Oe.current=X,Ke(X)},[]),Je=l.useRef(null),{activeNoiseUrl:Ve,noiseSettingsRef:vt,fadeInNoise:gt,fadeOutNoise:qe}=d7({noisePlayer:p,audioRef:f,playbackStateRef:N}),{startTTS:dt,stopTTS:Pe}=u7({ttsText:i,playbackRate:pe,mainVolume:be,fillRef:g,waveProgressRef:Z,setProgress:J,setPlaybackState:R,setStateLocal:ee,fadeInNoise:gt,fadeOutNoise:qe,noiseSettingsRef:vt,onDoneRef:at,handleEndRef:Je}),ze=Array.isArray(t)?t.filter(Boolean):t?[t]:[],it=(!ze||ze.length===0)&&!!i,Bt=Array.isArray(A)&&A.length>0?A:Array.isArray(P)&&P.length>0?P:null,et=Math.max(Array.isArray(Bt)?Bt.length:0,ze.length),tt=l.useCallback(async(X,ne=3,Ce=50)=>{for(let ke=0;ke<ne;ke++)try{return await X.play(),!0}catch(Me){if((Me instanceof Error||typeof Me=="object"&&Me&&"name"in Me?Me.name:void 0)==="AbortError"){await new Promise(re=>setTimeout(re,Ce));continue}try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),_t=l.useCallback(()=>{const X=f.current;if(!X)return;const ne=()=>{R("playing"),ee("playMode"),Y(!0),ge();try{qo(),xo(X).then(re=>{try{h.current?.("main",re)}catch{}})}catch{}const Me=vt.current;Me?.enabled&&(Me?.volume??0)>0&>(Me.volume)},Ce=()=>{w7({ended:!!X?.ended,completedByEnd:Oe.current})||(R("paused"),je(),qe())},ke=()=>{try{const Me=z.current,re=y7(Me,K.current);if(re!==null){K.current=re,te(re),Y(!0);const Se=Me?.[re]&&Me[re].src;if(Se&&X){X.src=Se,X.load(),tt(X).catch(()=>{});return}}}catch{}R("stopped"),J(1);try{if(X)try{X.currentTime=0}catch{}}catch{}je(),Y(!1),qe();try{!Ue.current&&Je.current&&Je.current()}catch{}};return X.addEventListener("play",ne),X.addEventListener("pause",Ce),X.addEventListener("ended",ke),()=>{try{X.removeEventListener("play",ne),X.removeEventListener("pause",Ce),X.removeEventListener("ended",ke),je()}catch{}}},[gt,qe,tt,vt,ge,je]);l.useEffect(()=>_t(),[_t]),l.useEffect(()=>{Ue.current=n},[n]),l.useEffect(()=>{at.current=r},[r]),l.useEffect(()=>{if(n||Q!=="active")return;const X=_.current;if(!X)return;let ne=null;const Ce=requestAnimationFrame(()=>{try{const ke=X.getTotalLength();if(!ke)return;const Me=ke*.2;X.style.strokeDasharray=`${ke-Me} ${Me}`;const re="triFlow_"+Math.random().toString(36).slice(2);ne=document.createElement("style"),ne.textContent=`@keyframes ${re}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ke}}}`,document.head.appendChild(ne),X.style.animation=`${re} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ce),ne?.remove()}},[Q,n]),l.useEffect(()=>{z.current=A},[A]),l.useEffect(()=>{K.current=W},[W]),l.useEffect(()=>{const X=b.current,ne=v.current;if(!X||!ne)return;let Ce=null;const ke=32,Me=60,re=()=>{try{const We=Array.from(X.querySelectorAll(":scope > .button"));let nt=0;We.forEach(zt=>{if(zt===ne)return;const eo=zt.getBoundingClientRect();nt+=eo.width});const Nt=X.getBoundingClientRect().width,Pt=Math.max(0,Math.floor(Nt-nt-8)),Yt=et;if(!Yt||Pt<=0){Array.from(ne.children).forEach(zt=>{try{zt.style.width=""}catch{}});return}let qt=Math.floor(Pt/Yt);qt>Me&&(qt=Me),qt<ke&&(qt=Math.max(ke,Math.floor(Pt/Yt))),Array.from(ne.querySelectorAll(".button")).forEach(zt=>{try{zt.style.width=`${qt}px`}catch{}})}catch{}},Se=requestAnimationFrame(re);try{Ce=new ResizeObserver(()=>{requestAnimationFrame(re)}),Ce.observe(X),Ce.observe(ne),window.addEventListener("resize",re)}catch{}return()=>{try{cancelAnimationFrame(Se)}catch{}try{Ce&&(Ce.disconnect(),Ce=null)}catch{}try{window.removeEventListener("resize",re)}catch{}}},[A,P,et]),l.useEffect(()=>()=>{try{Be.current&&(clearTimeout(Be.current),Be.current=null),fe.current&&(clearTimeout(fe.current),fe.current=null)}catch{}},[]);const Vt=(X,ne)=>{T(X),ce(ne),Ee(),F(k7(X)),z.current=X},rt=async(X,ne)=>{Xe(!1),C.current=!1,X.src=ne,X.load(),await Zb(X),await Te(),D(!1),await tt(X),ee("playMode"),te(0),Y(!0)},jt=async(X,ne=!1)=>{const Ce=f.current;D(!0),$("measuring_duration");try{const ke=await Nc(X,{timeoutMs:1e4,rejectOnError:!0});Vt([{src:X,objectUrl:null,duration:ke}],ke),$("ready"),ne&&Ce&&await rt(Ce,X)}finally{C.current=!1,D(!1)}},Wt=async(X,ne=!1)=>{const Ce=f.current;D(!0),$("measuring_duration");try{const ke=await Promise.all(X.map(re=>Nc(re,{timeoutMs:1e4}))),Me=X.map((re,Se)=>({src:re,objectUrl:null,duration:ke[Se]||0}));Vt(Me,A7(Me)),$("ready"),ne&&Ce&&Me.length>0&&await rt(Ce,Me[0].src)}finally{C.current=!1,D(!1)}},wa=async(X=!1,ne=!0)=>{const Ce=f.current,ke=t?Array.isArray(t)?t:[t]:[];if(!(!ke||ke.length===0||!ke.some(Boolean))&&!C.current){C.current=!0,ne&&D(!0),$("resolving");try{const Me=S7(t,a,$r),re=[];let Se=0;for(const We of Me){let nt=We.src??null,Nt=null;if(!nt&&We.resolvedPath){try{$("getting_signed_url"),nt=await Go(We.resolvedPath)}catch{nt=null}if(!nt)try{$("downloading");const Yt=await Rr(We.resolvedPath);if(Yt){const qt=Yt instanceof Blob?Yt:new Blob([Yt]);Nt=x.track(URL.createObjectURL(qt)),nt=Nt}}catch{$("error");try{we(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ee("active")}catch{}}}if(!nt)continue;let Pt=0;try{$("measuring_duration"),Pt=await Nc(nt,{timeoutMs:3e3})}catch{Pt=0}Se+=Pt||0,re.push({...We,src:nt,objectUrl:Nt,duration:Pt})}if(Vt(re,Se),re.length>0&&X&&Ce){const We=re[0];Xe(!1);try{x.keepOnly(re.map(nt=>nt.objectUrl))}catch{}if($("ready"),C.current=!1,We.src&&Ce)try{Ce.src=We.src,Ce.load(),await Zb(Ce),await Te(),ne&&D(!1),Ce&&await tt(Ce)}catch{ne&&D(!1)}else ne&&D(!1);ee("playMode"),te(0),Y(!0)}}finally{C.current=!1,ne&&D(!1),$(Me=>Me==="ready"?"ready":"idle")}}},Ra=async()=>{const X=f.current;if(!(!X&&!it)){if(it){const ne=window.speechSynthesis;if(Q==="active"){const Ce=Uo(),ke=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ce&&ke.length>0){ee("load"),D(!0),$("resolving"),C.current=!0;try{const Me=await Promise.all(ke.map(re=>Promise.resolve(Ce(re))));Me.length>1?await Wt(Me,!0):await jt(Me[0],!0)}catch{C.current=!1,D(!1),ee("active"),dt(ke[0]||void 0)}return}dt(ke[0]||void 0);return}if(Q==="playMode"){if(X){if(X.paused){if(Oe.current){await Jt();return}await tt(X),R("playing")}else X.pause(),R("paused");return}try{if(ne&&ne.paused)try{ne.resume(),R("playing")}catch{}else try{ne.pause(),R("paused")}catch{}}catch{}}return}if(Q==="active"){if(n&&Array.isArray(z.current)&&z.current.length>0){const ne=z.current[0];try{if(ne.src&&X)try{X.src=ne.src,X.load(),X&&await tt(X)}catch{}ee("playMode"),te(0),Y(!0);return}catch{}}ee("load"),await wa(!0);return}if(Q!=="load"&&(Q==="playMode"||Q==="active"))try{if(X&&X.paused){if(Oe.current){await Jt();return}X&&await tt(X),R("playing")}else X&&(X.pause(),R("paused"))}catch(ne){(ne instanceof Error||typeof ne=="object"&&ne&&"name"in ne)&&ne.name}}},Jt=async()=>{const X=f.current;if(X)try{const ne=z.current;if(Array.isArray(ne)&&ne.length>1){await ka(0);return}Xe(!1);try{X.currentTime=0}catch{}X&&await tt(X),R("playing"),ee("playMode")}catch{}},la=()=>{if(it){Pe();return}const X=f.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}qe(),R("stopped"),ee("active"),J(0),Y(!1)},ca=async(X,{sameSegment:ne=!1}={})=>{const Ce=++y.current,ke=f.current,Me=z.current?.[X]?.src;try{if(Xe(!1),te(X),Y(!0),K.current=X,!Me||!ke||(ne||Ee(),ke.src=Me,ke.load(),ne||await Te(),Ce!==y.current)||(await tt(ke),Ce!==y.current))return;R("playing"),ee("playMode")}catch{}},Et=async()=>{const X=z.current,ne=K.current||0;if(!X||ne<=0){await Jt();return}await ca(ne-1)},Ja=async()=>{const X=z.current,ne=K.current||0;if(!X||ne>=X.length-1){la();return}await ca(ne+1)},Tt=()=>{if(Oe.current)return;const X=200,ne=340;Xe(!0);try{J(1)}catch{}Fe(1);try{U("hold")}catch{}try{const Ce=f.current,ke=it&&!!Ce?.src;if(!it||ke){if(Ce){Ce.pause();try{Ce.currentTime=0}catch{}}}else Pe();qe()}catch{}try{R("stopped")}catch{}if(Y(!1),!Ue.current)try{fe.current&&(clearTimeout(fe.current),fe.current=null),fe.current=setTimeout(()=>{try{U("out")}catch{}fe.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{U("idle")}catch{}fe.current=null},ne)},X)}catch{}};l.useEffect(()=>{Je.current=Tt});const Qa=l.useCallback(()=>we(""),[]),ka=async X=>{(z.current||[])[X]&&await ca(X,{sameSegment:X===K.current})},Qe=E==="playing",Gt=l.useMemo(()=>{if(!P||P.length<=1)return P;const X=P[W];return X?[X]:P},[P,W]),Lt=n===!0;l.useEffect(()=>{try{const X=f.current;X&&typeof X.playbackRate=="number"&&(X.playbackRate=pe||1)}catch{}},[pe]);const Aa=l.useRef({raf:null,timer:null});l.useEffect(()=>{const X=f.current;if(!X)return;const ne=Math.max(0,Math.min(1,be)),Ce=Aa.current,ke=()=>{Ce.raf!==null&&(cancelAnimationFrame(Ce.raf),Ce.raf=null),Ce.timer!==null&&(clearTimeout(Ce.timer),Ce.timer=null)};ke();const Me=_o(X);if(X.paused||Math.abs(Me-ne)<.001||typeof requestAnimationFrame!="function"){try{pa(X,ne)}catch{}return}const re=performance.now(),Se=()=>{const We=Math.min(1,(performance.now()-re)/150);try{pa(X,Me+(ne-Me)*We)}catch{}Ce.raf=We<1?requestAnimationFrame(Se):null};return Ce.raf=requestAnimationFrame(Se),Ce.timer=setTimeout(()=>{ke();try{pa(X,ne)}catch{}},200),ke},[be]);const Qt=M==="hold",Ut=M==="out",da=Q==="playMode"&&!B&&!Re||Qt||Ut,le=E!=="stopped"||Qt||Ut,ve=E==="paused",xe=Math.max(0,Math.min(100,(V||0)*100)),Ne=_e("audio-player__fill",da?"is-visible":"",le?"is-expanded":"",ve?"is-paused":"",Ut?"is-out":"");return o.jsxs("div",{className:`audio-player ${Lt?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${Qe?"is-playing":""} ${B?"is-loading":""} ${Q!=="default"?"is-revealed":""}`,children:[B?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:g7[H]})]}):null,Q==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{L(),Ra()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:L,onFocus:S,onBlur:L,children:o.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:_,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&o.jsx(va,{anchorRect:w,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${Q==="playMode"||Qe?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Et,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Qe?"pause":"play",onClick:Ra,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:la,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),et>1?o.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:et}).map((X,ne)=>o.jsx(ie,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ne+1),onClick:()=>{try{ka(ne)}catch{}},ariaLabel:u("training.sourcePlay",{n:ne+1}),variant:"transparent-white",selected:O&&W===ne,disabled:Q!=="playMode"||!(Array.isArray(A)&&A[ne]),showTooltipInfo:!0},ne))}):null,!Array.isArray(A)||A.length<=1?o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Jt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}):null,o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ja,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Tt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:Ne,ref:g,style:{left:`${xe}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(b7,{segments:Gt,progress:V,totalDuration:I,onSegmentClick:ka,waveProgressRef:Z,showSoundWaveForm:c,noiseSrc:d&&p?.settings.enabled&&ye>0?Ve:null,noiseRatio:p?In(p.settings):0,noiseSpeed:p?.settings.speed??1,mainVolume:me,onReadyChange:Le})]})]}),o.jsx("audio",{ref:f,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(He,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),o.jsx(uo,{message:oe,position:de,onClose:Qa})]})}var N7=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";ae(N7);function Po(e){const{t}=he.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:p,canIncrease:h,canDecrease:f,fontSize:g,lineHeight:b}=hn({storageKey:"tooltip-fontScale"}),x=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),v=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],y={fontSize:`${g}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},_=o.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:y,children:C.map((k,w)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!f}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:x,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(ja,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:_}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:_})}var D7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ae(D7);var j7='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';ae(j7);function Dc({state:e="disabled"}){const{t}=he.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(He,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var E7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ae(E7);function jc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:p}=he.useTranslation(),h=na("(max-width: 767px)"),f=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),g=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[x,v]=l.useState(!1),[C,y]=l.useState(null),[_,k]=l.useState(null),w=l.useRef(i);l.useEffect(()=>{w.current=i});const S=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(D=>typeof D=="string"||typeof D=="number")?s.join(""):"",[s]),L=l.useCallback(()=>{v(!1),y(null),k(null)},[]);l.useEffect(()=>{if(!x)return;let D;try{typeof w.current=="function"&&(D=w.current())}catch{}if(D===!1){L();return}k(typeof D<"u"&&D!==null?D:null)},[S]);const B=l.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:s),!b.current){v(H=>!H);return}if(x)v(!1),y(null),k(null);else{const H=b.current.getBoundingClientRect();y(H),v(!0)}}},[i,s,x]);return o.jsxs("div",{className:g,children:[o.jsx("p",{className:f,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(ie,{size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(ie,{size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:x,onClick:B,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),x&&o.jsx(Po,{text:_??s,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:L,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ec(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Xa({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=he.useTranslation(),[m,p]=l.useState(()=>Ec(e,t));l.useEffect(()=>{const k=Ec(e,t);if(k!==m){const w=setTimeout(()=>p(k),0);return()=>clearTimeout(w)}},[e,t,m]);const h=l.useCallback((...k)=>{Ec(e,t)==="done"||m==="done"||typeof c=="function"&&c(...k)},[e,t,m,c]),[f,g]=l.useState(!1),[b,x]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=l.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const B=w.currentTarget??w.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(k instanceof DOMRect)return k;const S=k;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect();const L=k?.current;return L&&typeof L.getBoundingClientRect=="function"?L.getBoundingClientRect():null}catch{return null}},[]),C=l.useCallback((k,{text:w="",label:S="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:L=!1,alignX:B="center",alignY:D="top"}={})=>{const H=v(k);x({text:w,label:S,anchorRect:H,backdrop:L,alignX:B,alignY:D}),g(!0)},[v]),y=l.useCallback(()=>{g(!1),x(k=>({...k,anchorRect:null}))},[]),_=l.Children.map(i,k=>{if(l.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const S=w.props??{},L=typeof S.onDone=="function"?S.onDone:h,B=typeof S.disabled=="boolean";let D=m==="disabled";return B&&(D=!!S.disabled),l.cloneElement(w,{onDone:L,disabled:D,showTooltip:C,hideTooltip:y})}return k});return o.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${s}`,"aria-current":m==="active",children:[o.jsx(Dc,{state:m}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(jc,{state:m,title:r,...n,useFaded:d}),_]}),f?o.jsx(ja,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:y,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:o.jsx(Po,{text:b.text,onClose:y})}):null]})}var T7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ae(T7);function Tc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=he.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(B=>B==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:p,canDecrease:h,fontSize:f,lineHeight:g}=hn({storageKey:"textbox_fontScale"}),[b,x]=l.useState(""),v=l.useCallback(()=>i("active"),[]),C=l.useCallback(()=>x(""),[]),y=B=>{try{x(B)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const B=setTimeout(()=>i(t),0);return()=>clearTimeout(B)}},[t]);const k=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const B=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(B)},[k]);const w=t==="disabled"?n:t,S=w==="disabled"?"training-text-box--disabled":w==="active"?"training-text-box--active":w==="done"?"training-text-box--done":"",L=l.useMemo(()=>({fontSize:`${f}px`,lineHeight:`${g}px`}),[f,g]);return o.jsxs("div",{className:`training-text-box ${S} ${w!=="disabled"&&s==="dark"?"is-dark":""}`,children:[w==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(ie,{size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":w==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:L,children:k})}),w!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":w==="disabled",children:[o.jsx(ie,{size:32,type:"dot",onClick:m,onDisabledClick:()=>y(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ie,{size:32,type:"dot",onClick:u,onDisabledClick:()=>y(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(uo,{message:b,position:"top",onClose:C})]})}function Hn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:h=!1,choiceIcons:f,shuffleChoices:g=!0}){const{t:b}=he.useTranslation(),x=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",y=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,_=d?d.join("||"):"",k=u?u.join("||"):"",[w,S]=l.useState(()=>Array.isArray(y)?g?Ge(y):y.slice():void 0);l.useEffect(()=>{Array.isArray(y)&&y.length?S(g?Ge(y):y.slice()):S(void 0)},[c,_,k,g]);const[L,B]=l.useState(null),[D,H]=l.useState(()=>new Set);l.useEffect(()=>{B(null),H(new Set)},[k]);const $=l.useRef(void 0);l.useEffect(()=>{const N=$.current;typeof N=="number"&&typeof t=="number"&&typeof e=="number"&&N>=e&&t<e&&(B(null),H(new Set)),$.current=t},[t,e]);const E=l.useCallback(N=>{if(C!=="active")return;const V=w?.[N];if(V==null)return;const J=V,Q=C==="active"||C==="done";if(m){const ee=new Set(D),A=ee.has(J);A?ee.delete(J):ee.add(J),H(ee),typeof s=="function"&&s({selectedValues:[...ee],__ts:Date.now()}),Q&&(typeof p=="number"&&p>0?ee.size>=p:!A)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else B(J),typeof s=="function"&&s({selectedIndex:N,selectedValue:J,__ts:Date.now()}),Q&&typeof i=="function"&&C==="active"&&i({selectedIndex:N,selectedValue:J,__ts:Date.now()})},[w,C,m,s,i,p,D]),R=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:x,useTitleFaded:n,children:o.jsx("div",{className:R,children:Array.isArray(w)&&w.length>0?w.map((N,V)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>E(V),ariaLabel:String(N),label:N,useLabel:!0,icon:f?f[String(N)]:void 0,variant:"default",disabled:C==="disabled",selected:m?D.has(N):L===N,useDisabledCovered:h,minWidth:0},String(N))):null})})}function Vn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=he.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",h=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",f=s&&typeof s=="object"?s.choices:void 0,[g,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&g!==null){const y=setTimeout(()=>b(null),0);return()=>clearTimeout(y)}},[h,c,g]);const x=l.useCallback(y=>{const _=typeof y=="object"&&y!==null?Object.assign({},y,{__ts:Date.now()}):{value:y,__ts:Date.now()};typeof i=="function"&&i(_),p==="active"&&typeof n=="function"&&n(_)},[i,p,n]),v=l.useCallback(()=>{p==="active"&&(b(!1),x(!1))},[x,p]),C=l.useCallback(()=>{p==="active"&&(b(!0),x(!0))},[x,p]);return o.jsxs(Xa,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(Tc,{context:s,state:p}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(f)&&f.length>0?f.slice(0,6).map((y,_)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>{p==="active"&&(b(_),x&&x(_))},disabled:p==="disabled",ariaLabel:String(y),label:y,variant:p,selected:g===_},_)):o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:56,type:"bar",onClick:v,disabled:p==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!1}),o.jsx(ie,{size:56,type:"bar",onClick:C,disabled:p==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!0})]})})]})}function Wn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:p,_pageIndex:h,showSoundWaveForm:f,showNoiseWaveForm:g}){const{t:b}=he.useTranslation(),x=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:x,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(Nr,{soundSrc:s,ttsText:s?null:u??x,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:f,showNoiseWaveForm:g},`audio-p${h??0}-s${e}`)})}var L7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";ae(L7);var M7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ae(M7);function Gn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=he.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=T=>typeof T=="string"?T:T&&(T.context||T.sentence||T.question||"")||"",[m,p]=l.useState(Array.isArray(s)?s:[]),[h,f]=l.useState(()=>(m||[]).map((T,P)=>({id:P,text:u(T)}))),g=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const T=Array.isArray(s)?s:[];p(T);const P=(F=>{const W=(F||[]).map((I,ce)=>({id:ce,text:u(I)}));if(W.length<=1)return W;const te=(I,ce)=>{if(I.length!==ce.length)return!1;for(let pe=0;pe<I.length;pe++)if(I[pe].text!==ce[pe].text)return!1;return!0};let O=Ge(W),Y=0;for(;te(O,W)&&Y<20;)O=Ge(W),Y+=1;return O})(T);f(P);try{if(typeof i=="function"){const F=P.filter((W,te)=>W.text===u(T[te])).length;i({shuffled:P,score:F,total:(T||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&g==="active"){const F=P.filter((W,te)=>W.text===u(T[te])).length;n({shuffled:P,score:F,total:(T||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(T,P)=>{const F=[...h],W=T+P;if(W<0||W>=F.length)return;const te=F[W];F[W]=F[T],F[T]=te,R(F);try{if(typeof n=="function"&&g==="active"){const O=F.filter((Y,I)=>Y.text===u(m[I])).length;n({shuffled:F,score:O,total:(m||[]).length,__ts:Date.now()})}}catch{}},[x,v]=l.useState(null),C=l.useRef(null),y=l.useRef(null),_=l.useRef(null),k=l.useRef(null),w=l.useRef(null),S=l.useRef({x:0,y:0}),L=l.useRef(null),B=l.useRef({dx:0,dy:0}),D=()=>{if(L.current!==null)return;const T=()=>{L.current=requestAnimationFrame(T);const P=S.current,F=B.current||{dx:0,dy:0};C.current&&(C.current.style.transform=`translate3d(${P.x-F.dx}px, ${P.y-F.dy}px, 0)`)};L.current=requestAnimationFrame(T)},H=l.useRef(new Map),$=l.useRef(new Map),E=()=>{const T=new Map;return H.current.forEach((P,F)=>{P&&P.getBoundingClientRect&&T.set(F,P.getBoundingClientRect())}),T},R=T=>{const P=E();f(T);try{if(typeof i=="function"){const F=T.filter((W,te)=>W.text===u(m[te])).length;i({shuffled:T,score:F,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=E();T.forEach(W=>{const te=P.get(W.id),O=F.get(W.id),Y=H.current.get(W.id);if(!Y||!te||!O)return;const I=te.top-O.top;I&&(Y.style.transition="none",Y.style.transform=`translateY(${I}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const ce=()=>{Y.style.transition="",Y.removeEventListener("transitionend",ce)};Y.addEventListener("transitionend",ce)}))})})},N=(T,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(T))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const F=document.createElement("div");F.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(F),P.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}v(T);try{const F=h[T],W=document.createElement("div");W.className="order-list__dragging-object order-list__dragging-object--visible",W.textContent=F&&F.text?F.text:"",document.body.appendChild(W),C.current=W;const te=H.current.get(F.id);let O=P.clientX||0,Y=P.clientY||0;try{if(te&&te.getBoundingClientRect){const be=te.getBoundingClientRect();O=be.left+be.width/2,Y=be.top+be.height/2}}catch{}const I=W.getBoundingClientRect(),ce=I.width/2,pe=I.height/2;B.current={dx:ce,dy:pe},W.style.transition="none",S.current={x:O,y:Y},W.style.transform=`translate3d(${O-ce}px, ${Y-pe}px, 0)`,requestAnimationFrame(()=>{try{W.style.transition=""}catch{}D()});const me=be=>{const M=be;S.current={x:M.clientX,y:M.clientY},D()};_.current=me,document.addEventListener("mousemove",me);const ye=be=>{const M=be;S.current={x:M.clientX,y:M.clientY},D()};y.current=ye,document.addEventListener("dragover",ye);try{P.dataTransfer?.setData("text/plain",String(T));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:T}))}catch{}}catch{}}catch{}},V=(T,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const F=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if(F&&k.current!==F){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}k.current=F}}catch{}},J=(T,P)=>{P.preventDefault();const F=P.dataTransfer?.getData("text/plain")||"",W=F?parseInt(F,10):x,te=T;if(typeof W!="number"||isNaN(W)||W===te){v(null),A(),Q();return}const O=Qi(h,W,te);R(O),v(null),Q();try{if(typeof n=="function"&&g==="active"){const Y=O.filter((I,ce)=>I.text===u(m[ce])).length;n({shuffled:O,score:Y,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[te];if(!Y)return;const I=Y.querySelector(".order-list__slot")||Y;try{I.classList.add("pulse"),I.offsetHeight,I.classList.add("to-dark");const ce=()=>{I.classList.remove("pulse","to-dark"),I.removeEventListener("transitionend",ce)};I.addEventListener("transitionend",ce)}catch{}})}catch{}A()},Q=()=>{if(C.current){try{document.body.removeChild(C.current)}catch{}C.current=null}y.current&&(document.removeEventListener("dragover",y.current),y.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),L.current!==null&&(cancelAnimationFrame(L.current),L.current=null)},ee=()=>{v(null),A(),Q()};l.useEffect(()=>()=>Q(),[]);const A=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(T=>T.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const T=Math.max(1,(h||[]).length);h.forEach((P,F)=>{const W=$.current.get(P.id);if(!W)return;let te=50;T>1&&(te=Math.round(F/(T-1)*100));try{W.style.setProperty("--marker-pos",te+"%")}catch{}})}catch{}},[h]),l.useEffect(()=>()=>{Q(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:h.map((T,P)=>{const F=Math.max(1,(h||[]).length),W=F>1?Math.round(P/(F-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":g==="disabled","aria-disabled":g==="disabled",children:[g!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":W+"%"},ref:te=>{const O=$.current;te?O.set(T.id,te):O.delete(T.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,o.jsxs("div",{ref:te=>{const O=H.current;te?O.set(T.id,te):O.delete(T.id)},className:`order-list__draggable ${x===P?"dragging":""}`,"data-disabled":g==="disabled","aria-disabled":g==="disabled",tabIndex:g==="disabled"?-1:0,draggable:g==="active",onDragStart:g==="active"?te=>N(P,te):void 0,onDragEnter:g==="active"?te=>V(P,te):void 0,onDragOver:g==="active"?te=>V(P,te):void 0,onDragLeave:g==="active"?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const te=document.querySelectorAll(".order-list .order-list__item");te&&te[P]&&(te[P].classList.remove("drag-over"),k.current===te[P]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:g==="active"?te=>J(P,te):void 0,onDragEnd:g==="active"?ee:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:T.text}),g==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(ie,{size:32,type:"dot",onClick:()=>b(P,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(ie,{size:32,type:"dot",onClick:()=>b(P,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},T.id)})})})}var $7="";ae($7);const R7=8e3;function P7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function Lc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:p}=he.useTranslation(),h=r??p("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),f=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),g=m??3,b=(f||[]).slice(0,g);(f||[]).length>g&&console.warn(`TrainingStepCard: ${f.length} items passed but only ${g} shown`);const x=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":x<t?"done":x===t?"active":"disabled",[C,y]=l.useState(null),_=l.useRef([]),[k,w]=l.useState(!1),S=l.useMemo(()=>f.map(H=>H?.id??H?.word??"").join("|"),[f]);l.useEffect(()=>{y(null),_.current=[]},[S]);const L=l.useCallback((H,$)=>{if(c)return;const E={item:H,index:$,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[c,i,v,n]),B=l.useCallback(async()=>{if(!(k||v==="disabled")){w(!0);try{for(const H of _.current)H&&await P7(H.play(),R7)}finally{w(!1)}}},[k,v]),D=l.useCallback((H,$)=>{if(v!=="active")return;y($);const E={selectedValue:H.word||H.title||"",selectedIndex:$,item:H,__ts:Date.now()};try{typeof i=="function"&&i(E)}catch{}if(v==="active"&&typeof n=="function")try{n(E)}catch{}},[i,v,n]);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:h,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:B,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:p("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((H,$)=>o.jsx(Tn,{ref:E=>{_.current[$]=E},item:H,disabled:v==="disabled",onPlayDone:()=>L(H,$),selectable:c,selected:c&&C===$,onSelect:c?()=>D(H,$):void 0,flipDelay:$*120,hideLabel:d,hideAudio:u},H&&H.id||$))})})}const z7=160;var I7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";ae(I7);const Xb=()=>{};function Ma(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:v,children:C,align:y="horizontal",icon:_}=e,k=w=>{v&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())};return o.jsxs("div",{className:_e("panel-row",y==="vertical"?"panel-row--vertical":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?k:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[_!=null&&o.jsx("div",{className:"panel-row__icon",children:_}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),x&&o.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),o.jsx("div",{className:"panel-row__right",children:C})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(Mo,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:m}=e;let p=null;const h=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;p=o.jsx(tc,{checked:b.checked,onChange:b.onChange,id:h})}else if(a==="segmented"){const b=e;p=o.jsx(Ka,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,C)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Xt,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:u,error:!!c,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},C))}):o.jsx(Xt,{options:b.options??[],value:b.value??"",onChange:b.onChange??Xb,block:u,error:!!c,ariaLabel:r});p=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[x,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const b=e;b.buttons?.length?p=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,v)=>o.jsx(ie,{size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},v))}):p=o.jsx(ie,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;p=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;p=o.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[o.jsx(qa,{value:b.value,onChange:b.onChange??Xb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(p=e.children);const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,g=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:_e("panel-row",d==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?g:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[h?o.jsxs("label",{htmlFor:h,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:p})]})}function Jb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Qb({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=he.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(n=>{const i=e[n],s=n==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:s}),i&&t&&o.jsx(ie,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(n)})]}),i?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&o.jsx(pt,{size:"small",variant:zm(i.device),fill:"soft",label:i.device}),Jb(i)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Jb(i)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},n)})})}function Dr({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,useBorder:u=!0,useBg:m=!0,useRowBorder:p=!0,labelWidth:h,form:f=!1,loading:g,empty:b,children:x}){const v=_e("panel",`panel--${n}`,f?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",p?"":"panel--no-row-border",c),C={};return i!==void 0&&(C.minHeight=i),s!==void 0&&(C.maxWidth=typeof s=="number"?`${s}px`:s),h!==void 0&&(C["--panel-label-width"]=typeof h=="number"?`${h}px`:h),o.jsxs("div",{className:v,style:Object.keys(C).length?C:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:_e("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(He,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),g?o.jsx(Ma,{variant:"loading"}):b!=null&&(x==null||Array.isArray(x)&&x.length===0)?o.jsx(Ma,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:x}):x]})}function eg({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function O7(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 tg(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"}]}O7(Sa.t.bind(Sa)),tg(Sa.t.bind(Sa));var F7='.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}';ae(F7);const Mc="none",H7=.5,V7=1.5,W7=.25;function $c({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Ma,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(ic,{value:a,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Rc({anchorRect:e,onClose:t}){const{t:a}=he.useTranslation(),r=na("(max-width: 767px)")?40:24,n=Sc(),i=In(n?.settings??Ac),s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=n?.playbackRate??1,u=n?.mainVolume??1,m=Math.round(u*100),p=l.useCallback(b=>{try{n?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[n]),h=l.useCallback(b=>{try{n?.setPlaybackRate(b)}catch{}},[n]),f=l.useCallback(b=>{const x=Math.min(wc,Math.max(0,Math.round(b*10)/10));try{n?.setSettings({noiseRatio:x})}catch{}},[n]),g=l.useCallback(b=>{try{b===Mc?n?.setSettings({enabled:!1}):n?.setSettings({type:b,enabled:!0})}catch{}},[n]);return o.jsx(ja,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(ie,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(Dr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx($c,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),o.jsx($c,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:H7,max:V7,step:W7,size:r,onChange:h}),o.jsx(Ma,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Ka,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Mc,label:a("training.noise.type.none","\uC5C6\uC74C")},...tg(a).map(b=>({key:b.value,label:b.label}))],value:c?s:Mc,onChange:g})}),o.jsx($c,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:wc,step:i7,size:r,onChange:f})]})})}var G7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";ae(G7);function Pc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=he.useTranslation(),[u,m]=l.useState(!1),[p,h]=l.useState(null),[f,g]=l.useState(!1),b=l.useRef(null),x=l.useRef(null),v=Sc(),C=s<c-1,y=s===c-1,_=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),h(null))},[e]);const k=l.useCallback(()=>{m(!1),h(null)},[]),w=l.useCallback(()=>{if(u){m(!1),h(null);return}const B=b?.current?.getBoundingClientRect();B&&h(B),t?.(),m(!0)},[u,t]),S=l.useCallback(()=>{if(u){m(!1),h(null);return}const B=x?.current?.getBoundingClientRect();B&&h(B),t?.(),m(!0)},[u,t]),L=l.useCallback(()=>g(B=>!B),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ie,{size:56,type:"bar",icon:"settings",onClick:w,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:x,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ie,{size:56,type:"dot",icon:"settings",onClick:S,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(ie,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:L,selected:f,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&f&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Nn,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(Nn,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[y&&o.jsx(ie,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),C&&o.jsx(ie,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&u&&o.jsx(Rc,{anchorRect:p,onClose:k})]})}var U7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ae(U7);function zc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:p,onClose:h}){const{t:f}=he.useTranslation(),g=na("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,x=Number.isInteger(u)?u:d||0,v=p||h,C=Array.isArray(r)?g?r[r.length-1]:r.join(" / "):r,y=typeof e=="string"?e.trim():e,_=typeof t=="string"?t.trim():t,k=!!(y||_),w=k?y||_:f("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=C||t,L=g&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,B=l.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[v?o.jsx(ie,{size:48,type:"dot",icon:"chevron-left",ariaLabel:f("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(Vm,{icon:n,label:e,tooltip:s,wrapperStyle:B}):null}),o.jsxs("div",{className:"pp-title__text",children:[L?o.jsx("span",{className:"pp-title__depth caption-1",children:L}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(cc,{max:Math.max(0,x??0),index:Math.max(0,b??0)})]})}function ag(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function og(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function Ic(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=nn().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function Un(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function rg(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function ng({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Ic(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function ig(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function sg(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 lg(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 Oc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function cg(e,t,a,r){return Oc(e,t*a+r)}function dg({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function ug(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 pg=l.createContext(null);function Y7(){const e=l.useContext(pg);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function q7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),p=n.join("|");l.useEffect(()=>{m(p?p.split("|").map(()=>null):[])},[p]);const h=l.useMemo(()=>u.filter(g=>g!==null).length+1,[u]),f=l.useCallback(g=>{d==="active"&&m(b=>{const x=[...b];if(x[g]!==null){const C=x[g];return x.map(y=>y!==null&&y>=C?null:y)}x[g]=h;const v={selectedOrder:x,words:n,__ts:Date.now()};try{typeof s=="function"&&s(v)}catch{}if(x.every(C=>C!==null))try{typeof i=="function"&&i(v)}catch{}return x})},[d,h,s,i,n]);return o.jsx(Xa,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((g,b)=>o.jsx(Tn,{item:{word:g},disabled:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[b],onSelect:()=>f(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${g}-${b}`))})})}function jr(e){return null}jr.__isTrainingPage=!0;function zo(e,t){const a=Y7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Fc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=zo(e,t);return o.jsx(Wn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function Hc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Hn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Vn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Wc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Gn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Gc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(Lc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function K7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=zo(e,t);return o.jsx(q7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var Z7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
|
|
981
981
|
/* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
|
|
982
|
-
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ae(Z7);function Uc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function X7(e){return Uc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function hg(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=Uc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Yc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=he.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const x=hg(b),v=Uc(b?.wording,b?.label);return x===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,p=t??0,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>h.map(b=>{const x=b??{},v=X7(x)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:C,label:y}=u(x),_=Array.isArray(x.corrects)?x.corrects:[],k=_.length?_.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,w=typeof x.selectedText=="string"?x.selectedText:null,A=hg(x)===!0;return{problem:v,variant:C,label:y,answer:k,selectedText:w,isCorrect:A}}),[h,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:x})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ie,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ie,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:p,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:p}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,x)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(x+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(pt,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function J7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||ms({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function qc(e,t){return e&&e.id||`page-${t??0}`}function Kc(e,t){return e&&e.key||`step-${t??0}`}function Un(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function Q7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const mg=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),ek=e=>o.jsx(Yc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function tk(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:p,onBack:h,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:x=!0,children:v,ariaLabel:C,label:y,buildResults:_,onResult:k,typeKey:w,entryPoint:A,dailyTotal:T,itemRef:S,renderResultPopup:D,noiseOverride:H}=e;J7(w&&!mg.has(w)?w:"");const R=l.useRef(0);l.useEffect(()=>{R.current=Date.now()},[]);const{t:E}=he.useTranslation(),$=k,B=!!t,F=t?.id||null,X=t?.meta||{},Q=Array.isArray(t?.pages)?t.pages:[],ee=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],N=ee.length>0,L=le=>le===jr||le?.__isTrainingPage===!0,P=N&&ee.some(le=>L(le.type)),V=P?ee.filter(le=>L(le.type)).map((le,ve)=>{const xe=le.props||{};return{id:`children-page-${ve}`,steps:l.Children.toArray(xe.children).filter(l.isValidElement),pageTop:xe.pageTop||xe.top||null,pageBottom:xe.pageBottom||xe.bottom||null}}):[{id:"children-page-0",steps:ee}],W=N&&!B&&typeof v!="function",te=W?Math.max(1,V.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const le=document.body;return le.dataset.ihabTrainingPopupCount=String(Number(le.dataset.ihabTrainingPopupCount||"0")+1),le.classList.add("ihab-training-popup-open"),()=>{const ve=Number(le.dataset.ihabTrainingPopupCount||"1")-1;ve>0?le.dataset.ihabTrainingPopupCount=String(ve):(delete le.dataset.ihabTrainingPopupCount,le.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return T8()},[]);const[O,Y]=l.useState({...Ac,enabled:!1}),I=l.useRef(O);l.useEffect(()=>{I.current=O},[O]);const ce=l.useRef(H);l.useEffect(()=>{let le=!1;return vs().then(ve=>{if(le)return;const xe=ve?kc(I.current,ve):{...Ac};I.current=xe,Y(xe),ir(xe);const Ne=ce.current;if(Ne){const J=typeof Ne=="function"?Ne(xe):Ne,ne=kc(xe,J);I.current=ne,Y(ne),ir(ne)}}),()=>{le=!0}},[]);const[pe,me]=l.useState(null),[ye,be]=l.useState(null),M=l.useCallback((le,ve)=>{le==="main"?me(ve):be(ve)},[]),U=l.useCallback(le=>{const ve=kc(I.current,le);I.current=ve,Y(ve),ce.current||xs(ve),ir(ve)},[]),oe=O.mainSpeed,we=O.mainVolume,de=l.useCallback(le=>U({mainSpeed:le}),[U]),z=l.useCallback(le=>U({mainVolume:le}),[U]),K=l.useMemo(()=>({settings:O,setSettings:U,registerAnalyser:M,mainAnalyser:pe,noiseAnalyser:ye,playbackRate:oe,setPlaybackRate:de,mainVolume:we,setMainVolume:z}),[O,U,M,pe,ye,oe,de,we,z]),Z=l.useRef(null),[ge,je]=l.useState("center"),[Fe,Le]=l.useState(!1),Te=l.useRef(!1),Ee=l.useRef(null),Be=l.useCallback(le=>{Te.current||(Te.current=!0,Le(!0),Ee.current=setTimeout(le,z7))},[]);l.useEffect(()=>()=>{Ee.current&&clearTimeout(Ee.current)},[]),l.useEffect(()=>{const le=Z.current;if(!le)return;const ve=Array.from(le.querySelectorAll(br)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(ve)try{ve.focus()}catch{}const xe=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Be(()=>{typeof h=="function"&&h()});return}};return le.addEventListener("keydown",xe),()=>le.removeEventListener("keydown",xe)},[h,Be]),Rs(Z,!0);const[Ue,at]=l.useState(!1),fe=l.useRef(!1),[Oe,Re]=l.useState(null),[Ke,Xe]=l.useState(""),[Je,Ve]=l.useState(()=>Un()),vt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!B&&!W||(Ve(Un()),Re(null))},[B,F,W]),l.useEffect(()=>{W&&Ve(le=>{const ve=Math.max(0,Math.min(le.pageIndex,Math.max(0,te-1)));return ve!==le.pageIndex?{...le,pageIndex:ve,stepIndex:0}:le})},[W,te]);const gt=W?Math.max(0,Math.min(Je.pageIndex,te-1)):0,qe=W?V[gt]:null,dt=W&&qe&&Array.isArray(qe.steps)?qe.steps:[],Pe=B?Je.pageIndex:W?gt:typeof d=="number"?d:0,ze=B?Q[Math.max(0,Math.min(Je.pageIndex,Math.max(0,Q.length-1)))]:null,it=B&&ze&&Array.isArray(ze.steps)?ze.steps:[],Bt=B?it.length:W?dt.length:typeof p=="number"?p:0,et=B||W?Math.max(0,Math.min(Je.stepIndex,Math.max(0,Bt))):typeof m=="number"?m:0,tt=B?Q.length:W?te:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const le=vt.current;if(typeof Pe=="number"&&le!==null&&Pe!==le&&Pe>le)try{Xe(E("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,d,E]),l.useLayoutEffect(()=>{const le=Z.current;if(!le)return;const ve=()=>le.querySelector(".page-popup__scroll");let xe=null,Ne=null,J=null;const ne=Se=>{const We=ve();if(!We)return;const nt=We.scrollHeight<=We.clientHeight;if(je(nt?"center":"top"),Se&&!fe.current){fe.current=!0;try{at(!0)}catch{}try{Me.disconnect()}catch{}}},Ce=()=>{xe!==null&&cancelAnimationFrame(xe),xe=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>ne(!0),60)})},ke=()=>{J!==null&&cancelAnimationFrame(J),J=requestAnimationFrame(()=>ne(!1))};Ce(),window.addEventListener("resize",ke);const Me=new MutationObserver(Ce);Me.observe(le,{childList:!0,subtree:!0,attributes:!0});const re=setTimeout(()=>{fe.current||ne(!0)},400);return()=>{window.removeEventListener("resize",ke),xe!==null&&cancelAnimationFrame(xe),Ne!==null&&clearTimeout(Ne),J!==null&&cancelAnimationFrame(J),clearTimeout(re);try{Me.disconnect()}catch{}}},[Z]);const _t=l.useCallback(le=>{Z.current&&(Z.current._childOnNext=le)},[]),Vt=l.useCallback(le=>{Z.current&&(Z.current._childOnResult=le)},[]),rt=l.useCallback((le,ve,xe)=>{Ve(Ne=>{const J=Ne.answersByPage[le]||{},ne=J[ve],Ce=Gn(xe),ke=Gn(ne);return ne&&ke>Ce?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[le]:{...J,[ve]:xe}}}})},[Ve]),jt=l.useCallback((le,ve,xe)=>{const Ne=qc(ze,Pe),J=Kc(le,ve);rt(Ne,J,xe)},[ze,Pe,rt]),Wt=l.useCallback((le,ve,xe)=>{const Ne=qc(ze,Pe),J=Kc(le,ve);rt(Ne,J,xe),!xe?.allowChange&&le?.autoAdvance!==!1&&Ve(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,ve+1)}))},[ze,Pe,rt,Ve]),wa=l.useCallback((le,ve)=>{const xe=qe?.id||`children-page-${Pe??0}`,Ne=typeof ve=="number"?ve:et??0,J=`step-${Ne}`;rt(xe,J,le),le?.allowChange||Ve(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,Ne+1)}))},[qe,Pe,et,rt,Ve]),Ra=l.useCallback((le,ve)=>{const xe=qe?.id||`children-page-${Pe??0}`,Ne=`step-${typeof ve=="number"?ve:et??0}`;rt(xe,Ne,le)},[qe,Pe,et,rt]),Jt=W?{currentPageIndex:Pe??0,currentStepIndex:et??0,totalStepsInPage:dt.length,handleStepDone:wa,handleStepChange:Ra}:null,la=async()=>{const le=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:Q,flowState:Je,answersByPage:Je.answersByPage})):null;return typeof $=="function"&&await Promise.resolve($(le))||le},ca=async()=>{const le=qe?.id||`children-page-${Je.pageIndex}`,ve=Je.answersByPage[le]||{},xe=P?(()=>{const ne={};let Ce=0;return V.forEach(ke=>{const Me=Je.answersByPage[ke.id]||{},re=Array.isArray(ke.steps)?ke.steps.length:0;for(let Se=0;Se<re;Se+=1){const We=Me[`step-${Se}`];typeof We<"u"&&(ne[`step-${Ce+Se}`]=We)}Ce+=re}),ne})():ve;if(typeof _=="function"){const ne=await Promise.resolve(_(xe,{pageAnswers:ve,answersByPage:Je.answersByPage,pages:V,currentPageId:le}));return typeof $=="function"&&await Promise.resolve($(ne))||ne}const Ne=Object.entries(ve).map(([ne,Ce],ke)=>({index:ke,key:ne,payload:Ce})),J={results:Ne,answers:Ne,score:0};return typeof $=="function"&&await Promise.resolve($(J))||J},Et=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(B){const xe=la();Re({});const Ne=xe;Promise.resolve(Ne).then(J=>{Re(J||{isEmpty:!0})}).catch(J=>{Re({isEmpty:!0})});return}if(W){const xe=ca();Re({});const Ne=xe;Promise.resolve(Ne).then(J=>{Re(J||{isEmpty:!0})}).catch(J=>{Re({isEmpty:!0})});return}const le=Z.current&&Z.current._childOnResult,ve=xe=>{try{return xe?xe():void 0}catch{return}};if(typeof le=="function"){const xe=ve(le);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?Re(xe):Re(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{Ne&&Re(Ne)}).catch(Ne=>{});return}if(typeof $=="function"){const xe=ve($);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?Re(xe):Re(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ne&&Re(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},Ja=()=>{if(B){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ve(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Et()}if(W){const ve=dt.length;if(typeof et=="number"&&et<ve-1){Ve(xe=>({...xe,stepIndex:xe.stepIndex+1}));return}if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ve(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return Et()}if(typeof f=="function"){try{f()}catch{}return}const le=Z.current&&Z.current._childOnNext;if(typeof le=="function"){try{le()}catch{}return}},Tt=B?X.title||X.label||C||E("common.popup","\uD31D\uC5C5"):a||y||(Array.isArray(n)?n[n.length-1]:void 0)||C||E("common.popup","\uD31D\uC5C5"),Qa=B?X.title??X.label??Tt:a??y??Tt,ka=(le,ve)=>{const xe=qc(ze,Pe),Ne=Kc(le,ve),J=Je.answersByPage[xe]?.[Ne],ne=Q7(le,{page:ze,pageIndex:Pe,step:le,stepIndex:ve,storedPayload:J,answersByPage:Je.answersByPage,flowState:Je}),Ce={key:Ne,index:ve,stepIndex:et,isLast:ve===it.length-1};switch(le?.type){case"listen":return o.jsx(Vn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke)});case"confirm":return o.jsx(Fn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});case"confirmWithText":return o.jsx(Hn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});case"orderList":return o.jsx(Wn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});default:return null}},Qe=B?Q.length>0?o.jsx("div",{className:"training-steps",children:it.map((le,ve)=>ka(le,ve))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Gt=W?o.jsxs(pg.Provider,{value:Jt,children:[qe?.pageTop?o.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,o.jsx("div",{className:"training-steps",children:dt.map((le,ve)=>{const xe=le;return l.cloneElement(xe,{...xe.props,_stepIndex:ve,_totalSteps:dt.length,_stepKey:`step-${ve}`,_pageIndex:Pe})})}),qe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,Lt=l.useCallback(()=>{let le;if(w){const ve=Oe,xe=ve?.results||ve?.answers||[],Ne=Array.isArray(xe)&&xe.length>0?xe.length:null,J=Array.isArray(xe)?xe.filter(Ce=>Ce?.correct===!0||Ce?.isCorrect===!0||Ce?.score===1||Ce?.heard===!0||Ce?.judgement===!0).length:null,ne=Ne!=null?J:null;bs({items:fs(xe),category:mg.has(w)?"sentence":"word",trainingType:w,entryPoint:A??"sentence",itemRef:S??null,correct:ne,total:Ne,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:T??null}),le={correct:ne,total:Ne}}Re(null),Be(()=>{typeof g=="function"&&g(le),typeof h=="function"&&h()})},[g,h,w,A,T,S,Oe,Re,Be]),Aa=l.useCallback(()=>Xe(""),[Xe]),Qt=l.useCallback(()=>{Be(()=>{typeof h=="function"&&h()})},[h,Be]),Ut=o.jsxs("div",{className:`page-popup${Fe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Tt,children:[o.jsxs("div",{ref:Z,className:`page-popup__panel ${Ue?"":"page-popup__panel--measuring"} ${ge==="center"?"page-popup__panel--center":ge==="top"?"page-popup__panel--top":""}`,children:[o.jsx(zc,{title:Qa,subtitle:B?X.subtitle||X.label:Array.isArray(n)?n.join(" / "):void 0,desc:B?void 0:r,depth:B?X.depth:n,icon:B?X.icon:i,wrapperStyle:B?X.wrapperStyle:s,iconTooltip:B?X.iconTooltip:c,progressMax:tt,progressIndex:Pe,pageIndex:Pe,pageCount:tt,onBack:Qt,onClose:Qt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${ge==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?Gt:B?Qe:typeof v=="function"?v({registerOnNext:_t,registerOnResult:Vt,panelRef:Z,setResultOverlay:Re}):v})}),o.jsx(Pc,{onSettings:b,onNext:Ja,onResult:Et,useNoiseSettingBtn:!!(B?X.useNoiseSetting??!0:x),stepIndex:et,stepCount:Bt,pageIndex:Pe,pageCount:tt})]}),Oe&&!Oe.isEmpty&&(D??ek)({score:Oe.score,results:Oe.results||Oe.answers||[],contextsLength:Oe.results?Oe.results.length:Oe.answers?Oe.answers.length:0,onReplay:()=>{if(Re(null),B){if(Ve(Un()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Ve(Un());return}try{const le=Z.current&&Z.current._childOnResult;typeof le=="function"&&le({replay:!0})}catch{}},onClose:Lt}),Oe?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(ie,{variant:"main",size:48,onClick:Lt,label:E("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(uo,{message:Ke,position:"top",onClose:Aa})]}),da=o.jsx(Gb.Provider,{value:K,children:Ut});return typeof document<"u"&&document.body?Kt.createPortal(da,document.body):da}const $a=tk;$a.Page=jr,$a.ListenStep=Fc,$a.ConfirmStep=Hc,$a.ConfirmWithTextStep=Vc,$a.OrderListStep=Wc,$a.CardStep=Gc,$a.CardOrderStep=K7;var ak=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ae(ak);var ok='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ae(ok);function rk({label:e,homonum:t}){const a=Ia()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=uc(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Zc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:Kt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(rk,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function bg({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:p,className:h,emptyHint:g,sectionType:f="page",disc:b,notice:x}){const{t:v,i18n:C}=he.useTranslation(),y=C.language?.startsWith("ko")??!1,{anchorRect:_,openAt:k,close:w}=To(),[A,T]=l.useState(null),S=l.useCallback(()=>{w(),T(null)},[w]);$l(S,!!A);const D=(r??"").trim(),H=/^[^,[\]\s]+$/.test(D)?D:"",R=H.length>0,[E,$]=l.useState("ganada"),[B,F]=l.useState("50"),[X,Q]=l.useState(1),[ee,N]=l.useState(R);ee!==R&&(N(R),$(R?"match":"ganada"));const L=E==="match"&&!R?"ganada":E,P=l.useMemo(()=>[...R?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,R]),V=l.useMemo(()=>["10","25","50","100"].map(z=>({value:z,label:v("wordSearch.pageSize",{count:Number(z),defaultValue:`${z}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),W=z=>z.words[0],te=l.useCallback((z,K)=>{const Z=Fe=>W(Fe)?.label??"",ge=Fe=>W(Fe)?.syllables??[...Z(Fe)].length,je=Fe=>{const Le=parseInt(W(Fe)?.grade??"",10);return Number.isFinite(Le)?Le:999};switch(L){case"match":{const Fe=[...H].length,Le=Te=>Co(Z(Te).slice(0,Fe),H)?0:1;return Le(z)-Le(K)||Z(z).localeCompare(Z(K),"ko")}case"ganada":return Z(z).localeCompare(Z(K),"ko");case"ganada_desc":return Z(K).localeCompare(Z(z),"ko");case"syllable":return ge(z)-ge(K)||Z(z).localeCompare(Z(K),"ko");case"syllable_desc":return ge(K)-ge(z)||Z(z).localeCompare(Z(K),"ko");case"grade":return je(z)-je(K)||Z(z).localeCompare(Z(K),"ko");case"grade_desc":return je(K)-je(z)||Z(z).localeCompare(Z(K),"ko");default:return 0}},[L,H]),O=l.useMemo(()=>n.slice().sort(te),[n,te]),Y=Number(B)||10,I=l.useMemo(()=>(i??[]).flatMap(z=>z.items.slice().sort(te).map(K=>({item:K,label:z.label}))),[i,te]),ce=i?I.length:O.length,pe=Math.max(1,Math.ceil(ce/Y)),me=Math.min(X,pe),ye=l.useMemo(()=>O.slice((me-1)*Y,me*Y),[O,me,Y]),be=l.useMemo(()=>{if(!i)return null;const z=I.slice((me-1)*Y,me*Y),K=new Map;for(const{item:Z,label:ge}of z)K.has(ge)||K.set(ge,[]),K.get(ge).push(Z);return[...K.entries()].map(([Z,ge])=>({label:Z,items:ge}))},[i,I,me,Y]);l.useEffect(()=>{Q(1)},[E,B,ce]);const M=ce>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Xt,{size:40,options:P,value:L,onChange:$,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Xt,{size:40,options:V,value:B,onChange:F,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(wr,{page:me,totalPages:pe,onChange:Q})]}):void 0,U=z=>{c&&c(z)},oe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:y?Yi(a):a})]}):void 0,we=t!==void 0&&t>0&&d!==void 0&&a?v("wordSearch.resultDisc",{unit:y?Ki(a):a,max:d,selected:s.length}):void 0,de=b??(x?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:x}),we?o.jsx("span",{className:"word-search-result-block__disc",children:we}):null]}):we);return o.jsxs(po,{type:f,icon:e,title:oe,action:M,disc:de,className:_e("word-search-result-block",h),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(be??[]).map(z=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:z.items.map(K=>{const Z=s.includes(K.id);return o.jsx("div",{onMouseEnter:ge=>{k(ge.currentTarget),T(K.words)},onMouseLeave:S,children:o.jsx(ie,{size:"word",align:"grid",label:K.words.map(ge=>ge.label),subLabel:K.words.map(ge=>ge.subLabel).filter(Boolean).length>0?K.words.map(ge=>ge.subLabel):void 0,selected:Z,onClick:()=>U(K.id),minWidth:200})},K.id)})})},z.label)):o.jsx("div",{className:"word-search-result-block__items",children:ye.map(z=>{const K=s.includes(z.id);return o.jsx("div",{onMouseEnter:Z=>{k(Z.currentTarget),T(z.words)},onMouseLeave:S,children:o.jsx(ie,{size:"word",align:"grid",label:z.words.map(Z=>Z.label),subLabel:z.words.map(Z=>Z.subLabel).filter(Boolean).length>0?z.words.map(Z=>Z.subLabel):void 0,selected:K,onClick:()=>U(z.id),minWidth:200})},z.id)})}),A&&_&&o.jsx(Zc,{words:A,anchorRect:_})]}),pe>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(wr,{page:me,totalPages:pe,onChange:Q})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ie,{size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?p:void 0,children:o.jsx(ie,{size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var nk='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ae(nk);function ik(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function gg({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:p,titleIcon:h,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:x,onSearchEmpty:v,searchDisabled:C=!1,searchLabel:y,searchChecking:_=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:A,beforeContent:T,afterContent:S,hideCountControl:D=!1,ordinal:H=!1}){const{t:R}=he.useTranslation(),E=l.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),$=l.useMemo(()=>Array.from({length:n-i+1},(O,Y)=>{const I=i+Y;return{key:String(I),label:R("wordPairs.count",{n:I})}}),[R,n,i]),B=l.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),F=l.useCallback(O=>H?R("wordPairs.phonemeOrdinalLabel",{ordinal:B[O-1]??O}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:O}),[H,B,a,R]),X=l.useCallback(O=>H?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:B[O-1]??O}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:O}),[H,B,a,R]),Q=l.useCallback((O,Y)=>Y?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:ee,toggleAt:N,close:L}=To(),P=l.useCallback(O=>r(Number(O)),[r]),V=na("(max-width: 767px)"),W=l.useCallback(O=>ik(O,e).map(({label:Y,value:I,displayLabel:ce})=>{const pe=!!I&&I!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||u}),pe&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ce??Y})]},Y)}),[e,u]),te=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ie,{size:40,type:V?"dot":void 0,icon:"info",label:V?void 0:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ee,onClick:O=>N(O.currentTarget)})}),ee&&o.jsx(Ua,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:ee,onClose:L})]});return o.jsxs(po,{type:w,title:p,icon:h,disc:g,action:te,className:_e("phoneme-select-block",m),children:[T,(!D||f&&!(p||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&o.jsx(Ka,{options:$,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),f&&!(p||g)&&te]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:X(Y+1)})]},Y)})})]}):t.map((O,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2]??{};return o.jsx(ya,{title:Q(F(Y+1),Y===0),sections:c?c(I,Y*2):s,selected:I,onSelect:d?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2+1]??{};return o.jsx(ya,{title:X(Y+1),sections:c?c(I,Y*2+1):s,selected:I,onSelect:d?.(Y*2+1),align:"newline"},Y)})})]}):t.map((O,Y)=>o.jsx(ya,{title:Q(F(Y+1),Y===0),sections:c?c(O,Y):s,selected:O,onSelect:d?.(Y),align:"newline"},Y))})}),A&&o.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(b||x||_)&&(()=>{const O=t.every(Y=>Object.entries(Y).every(([I,ce])=>!ce||I==="\uC885\uC131"&&ce==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?v:void 0,children:[b&&o.jsx(ie,{size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:O,onClick:O?void 0:b}),_?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:y??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):x&&o.jsx(ie,{size:"56",type:"bar",variant:"main",label:y??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||C,onClick:O||C?void 0:x})]})})(),S]})}function fg({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=he.useTranslation();return o.jsx(ya,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function vg({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=he.useTranslation();return a.length===0?null:o.jsx(ya,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function xg({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=he.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=x=>m("wordPairs.count",{n:x}),g=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:o.jsx(Lo,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:o.jsx(Lo,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[h(1),h(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:o.jsx(Lo,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:h(i),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},b=(x,v)=>{v===p.searchMode?a(x===p.explicit?"explicit":x===p.pick?"pick":"include"):v===p.phonemeOrder?n(x===p.orderMatch?"ordered":"unordered"):v===p.count?s(x===h(2)?2:1):v===p.inputMode&&d(x===p.pronInput?"phoneme":"word")};return o.jsx(ya,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var sk=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ae(sk);function _g(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:p,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:x,topContent:v,className:C=""}=e,{t:y}=he.useTranslation(),_=i??y("common.search","\uAC80\uC0C9"),k=b??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,A]=l.useState(""),[T,S]=l.useState(c??r[0]?.key??""),[D,H]=l.useState(d),[R,E]=l.useState(String(f??g[0]??10)),[$,B]=l.useState(1);l.useEffect(()=>{B(1)},[w,R]);const F=s!==null,X=l.useCallback((O,Y)=>{if(!Y)return!0;const I=Y.toLowerCase();return r.some(ce=>{const pe=O[ce.key];return pe==null?!1:String(pe).toLowerCase().includes(I)})},[r]),Q=s??X,ee=l.useMemo(()=>{const O=F?a.filter(Y=>Q(Y,w)):a;return T?[...O].sort((Y,I)=>{const ce=Y[T]??"",pe=I[T]??"";if(ce===pe)return 0;const me=Q8(ce,pe);return D?me:-me}):O},[a,w,T,D,F,Q]),N=Math.max(1,Math.ceil(ee.length/Number(R))),L=ee.slice(($-1)*Number(R),$*Number(R)),P=l.useCallback(O=>{T===O?H(Y=>!Y):(S(O),H(!0))},[T]),V=l.useMemo(()=>{if(typeof x=="string"&&x.includes("{n}")){const[O,Y]=x.split("{n}");return{prefix:O,suffix:Y}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[x,y]),W=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>P(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&T===O.key?D?"asc":"desc":null})),[r,T,D,P]),te=l.useMemo(()=>g.map(O=>({value:String(O),label:y("common.pageSizeLabel",{n:O})})),[g,y]);return o.jsxs(Ta,{className:`popup-list ${C}`,title:t,onClose:h,children:[v,o.jsx(kn,{count:{value:ee.length,prefix:V.prefix,suffix:V.suffix},search:F?{value:w,onChange:A,placeholder:_}:void 0,pageSize:{options:te,value:R,onChange:E},pagination:{page:$,total:N,onChange:B}}),o.jsx(Nn,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:W,items:L,onRowClick:p,renderRow:O=>{const Y=m!=null?O.id!=null&&m.has(O.id):u!=null&&O.id===u;return r.map(I=>({content:I.render?I.render(O):O[I.key]??"",className:Y?"popup-list__row--selected":I.className}))},empty:k})]})}function Cg(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:f,inline:b,size:x="small",className:v}=e,{t:C}=he.useTranslation(),y=l.useRef(!1),[_,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:_,inline:b,size:x,className:_e("confirm-popup",v),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:w})=>{if(!y.current){y.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{y.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??C("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:w})=>w()}],{label:s??C("common.confirm","\uD655\uC778"),variant:m,disabled:p||_,onClick:async({closeWithAnimation:w})=>{if(!y.current){y.current=!0,k(!0);try{await h(w),g&&w()}finally{y.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(Dr,{children:n.map((w,A)=>o.jsx(Ma,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},A))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var lk=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ae(lk);function yg({onApply:e,onCancel:t}){const{t:a}=he.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Jr(b)),s(!1)}}},[r,e]),p=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),h=g=>{n(g.target.value),d(null)};return o.jsx(Ta,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:f=>p(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var ck=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ae(ck);const wg=200;function dk(e){return e.itemId?(Ds()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function kg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=he.useTranslation(),i=l.useMemo(()=>nn.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,p)=>{const h=dk(m);return h?o.jsx(Dn,{index:p,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},c.key)])})});return t?o.jsx(ja,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var uk=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ae(uk);const Ag=["var(--color-main)","var(--color-sub)"];function Xc({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),x=t-b,v=(C,y)=>Array.from({length:C}).map((_,k)=>{const w=6+Math.random()*12,A=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),T=Ag[Math.floor(Math.random()*Ag.length)],S=Math.random()*300,D=(360+Math.random()*260)*r*1.2,H=(y==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,R=Math.cos(H)*D,E=Math.sin(H)*D*1.35,$=Math.random()*720-360,B=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${y}-${k}`,side:y,size:A,color:T,delay:S,vx:R,vy:E,angularVel:$,life:B,borderRadius:F}});return[...v(b,"left"),...v(x,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const p=l.useRef(null),h=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&h.current==null&&(h.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,x=performance.now(),v=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),y=N=>Math.max(40,(N||window.innerWidth)*.02),_=v?.width||window.innerWidth||375,k=v?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((P,V)=>P-V);return L[Math.floor(L.length/2)]||1},A=w(s.map(N=>Math.abs(N.vy))),T=w(s.map(N=>Math.abs(N.vx))),S=Math.sqrt(2*b*(k*.72+C))/A,D=A*S/b,H=_*.5/(T*D),R=(N,L,P)=>Math.min(P,Math.max(L,N)),E=R(S,.8,2.4),$=R(H,.7,2.2),B=s.map(N=>({...N,vx:N.vx*$,vy:N.vy*E,startTime:x+N.delay,ended:!1})),F=v?{x:v.left-y(v.width),y:v.top+v.height+C}:{x:-y(window.innerWidth),y:window.innerHeight+C},X=v?{x:v.left+v.width+y(v.width),y:v.top+v.height+C}:{x:window.innerWidth+y(window.innerWidth),y:window.innerHeight+C},Q=N=>{let L=!1;for(const P of B){const V=d.current[P.id];if(!V||!V)continue;if(N<P.startTime){V.style.display="none";continue}if(!P._inited){const be=P.side==="left"?F.x:X.x,M=P.side==="left"?F.y:X.y;V.style.left=`${be}px`,V.style.top=`${M}px`,V.style.transform="translate3d(0px, 0px, 0)",V.style.display="block",V.style.zIndex="100000";try{if(typeof window<"u"&&typeof P.color=="string"&&P.color.startsWith("var(")){const U=P.color.slice(4,-1).trim(),oe=getComputedStyle(document.documentElement).getPropertyValue(U).trim();oe?V.style.background=oe:V.style.background="#FF0060"}}catch{}P._inited=!0}const W=(N-P.startTime)/1e3;if(W<0)continue;const te=P.life/1e3;if(W>=te){V.style.opacity="0",V.style.display="none",P.ended=!0;continue}L=!0;const O=P.side==="left"?F.x:X.x,Y=P.side==="left"?F.y:X.y,I=O+P.vx*W,ce=Y+P.vy*W+.5*b*W*W,pe=(P.angularVel||0)*W,me=I-O,ye=ce-Y;V.style.transform=`translate3d(${me}px, ${ye}px, 0) rotate(${pe}deg)`,V.style.opacity=`${Math.max(0,1-W/te)}`}L?u.current=requestAnimationFrame(Q):m.current?.()};u.current=requestAnimationFrame(Q);const ee=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const P=document.createElement("span");P.className=`confetti confetti--${L.side}`,P.setAttribute("aria-hidden","true"),P.style.display="none",P.style.position="fixed",P.style.left="0px",P.style.top="0px",P.style.width=`${L.size}px`,P.style.height=`${Math.max(4,L.size*.6)}px`;let V=L.color;try{if(typeof V=="string"&&V.startsWith("var(")){const W=V.slice(4,-1).trim(),te=getComputedStyle(document.documentElement).getPropertyValue(W).trim();te&&(V=te)}}catch{}P.style.background=V,P.style.borderRadius=L.borderRadius,P.style.transform="translate3d(0,0,0)",P.style.opacity="0",N.appendChild(P),d.current[L.id]=P}(document.body||h.current).appendChild(N),p.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(ee),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:x=>{d.current[b.id]=x},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Kt.createPortal(f,h.current||document.body):f}function Sg({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Xc,{active:t,trigger:e})}var pk=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ae(pk);function Bg({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=he.useTranslation();fl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(ie,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(pt,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function Ng(e){return e??""}const Dg=l.createContext({words:[],loading:!1});function jg(){return l.useContext(Dg)}function Eg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(Dg.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var hk=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ae(hk);function Tg({items:e,actions:t,columns:a,flat:r=!1,className:n,style:i}){const s=a??e.length;return o.jsx("section",{className:_e("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var mk='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ae(mk);const bk=(e,t)=>`${e} / ${t}`;function Lg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=bk,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=he.useTranslation(),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,x]=l.useState(null),[v,C]=l.useState(!1);l.useEffect(()=>{const D=p.current;if(!D)return;const H=()=>C(D.scrollWidth>D.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(H);return R.observe(D),()=>R.disconnect()},[b]);const y=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");l.useLayoutEffect(()=>{const D=h.current,H=f.current;if(!D||!H)return;const R=g.current?.offsetHeight??0,E=H.offsetHeight-R,$=Array.from(D.children).map(N=>N.offsetHeight),B=[];e.forEach((N,L)=>{const P=B[B.length-1],V=P?e[P[0]]:void 0;V&&N.group!=null&&V.group===N.group?P.push(L):B.push([L])});const F=[];let X=[],Q=0;const ee=()=>{X.length&&F.push(X),X=[],Q=0};B.forEach(N=>{const L=N.reduce((P,V)=>P+$[V],0);X.length&&e[X[0]].section!==e[N[0]].section&&ee(),X.length&&Q+L>E&&ee(),L>E?N.forEach(P=>{X.length&&Q+$[P]>E&&ee(),X.push(P),Q+=$[P]}):(N.forEach(P=>X.push(P)),Q+=L)}),ee(),x(F)},[y]);const _=Kl,k=_,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),A=(D,H,R)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:R!=null&&t?.[R]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(D,H)})]})}),T=A(1,1,e[0]?.section),S={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:p,className:_e("report-doc",d),style:S,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[T.header,T.footer]}),o.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(D=>o.jsx("div",{children:D.content},D.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((D,H)=>{const{header:R,footer:E}=A(H+1,b.length,e[D[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[R,D.map($=>o.jsx("div",{children:e[$].content},e[$].id)),E]},H)})})]})}var gk=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ae(gk);function Mg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var fk=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ae(fk);function $g({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=he.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(vd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(ie,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var vk=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ae(vk);function Rg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const p=n!=null||i!=null,h=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&o.jsx("div",{className:"training-card__body",children:r}),p&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var xk=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ae(xk);function Pg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:p,children:h,className:g}){const{t:f}=he.useTranslation(),b=r!=null,x=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return o.jsxs("div",{className:x,onDragOver:u,onDragLeave:m,onDrop:p,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[n&&o.jsx(Xt,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:h}))]})}var _k=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ae(_k);const Ck="speechear:saved_word_tables";function yk(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 wk(){try{const e=localStorage.getItem(Ck);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(yk):[]}catch{return[]}}function zg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:p,showCellCount:h,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:x,hideControls:v,saveOnly:C,tableName:y,nameValue:_,onNameChange:k,descriptionValue:w,onDescriptionChange:A,namePlaceholder:T,descriptionPlaceholder:S,existingNames:D,editingName:H,onCancel:R}){const{t:E}=he.useTranslation(),$=d??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),B=r===void 0,F=!!k,[X,Q]=l.useState([]),ee=(_??"").trim(),N=ee||(T??"").trim(),L=(w??"").trim()||(S??"").trim(),P=(D??[]).map(re=>re.trim().toLowerCase()),V=[H?.trim().toLowerCase(),...X].filter(re=>!!re),W=[...P];for(const re of V){const Se=W.indexOf(re);Se!==-1&&W.splice(Se,1)}const te=ee!==""&&W.includes(ee.toLowerCase()),[O,Y]=l.useState(Array(4).fill(null)),[I,ce]=l.useState(4),[pe,me]=l.useState(null),[ye,be]=l.useState("landscape"),[M,U]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[oe,we]=l.useState("\uD45C\uC2DC"),[de,z]=l.useState(!0),[K,Z]=l.useState(!0),ge=l.useRef(null),je=l.useRef([]),[Fe,Le]=l.useState(8),[Te,Ee]=l.useState("right"),[Be,Ue]=l.useState(!1),[at,fe]=l.useState(!1),{toastMessage:Oe,toastType:Re,showWarning:Ke,clearToast:Xe}=Cn("warning"),Je=l.useCallback(()=>me(null),[me]),[Ve,vt]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{B||vt(re=>Math.max(re,r?.length??1))},[r?.length,B]);const gt=B?I:h?Math.max(Ve,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:dt}=ho[ye],Pe=!B&&!h,ze=r?.length??0,it=Math.min(Fe,Math.max(ze,1)),Bt=Pe?it:gt,et=Pe?Xm(r??[],Bt):null,tt=!!et&&et.length>1,_t=B?O.some(re=>re!==null&&re.length>1):(r??[]).some(re=>re.words.length>1),Vt=y?.trim()||`${an(en())} ${_t?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,rt=l.useCallback(()=>tt?je.current.filter(re=>re!==null):ge.current?[ge.current]:[],[tt]),{print:jt,openNewWindow:Wt,downloadHtml:wa}=$n({getElements:rt,paperW:qe,paperH:dt,fileName:Vt,onPopupBlocked:()=>{Ke(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ra=re=>{ce(re),Y(Se=>{const We=Array(re).fill(null);return Se.slice(0,re).forEach((nt,Nt)=>{We[Nt]=nt}),We}),me(null)},Jt=re=>{Y(Se=>{const We=[...Se];return We[re]=null,We}),pe===re&&me(null)},la=re=>{if(pe===null)return;const Se=pe;Y(nt=>{const Nt=[...nt];return Nt[Se]=re,Nt});const We=O.findIndex((nt,Nt)=>Nt>Se&&nt===null);me(We!==-1?We:null)},ca=B?O.some(re=>re?.some(Se=>!!Se.colloquialPronunciation)):(r??[]).some(re=>re.words.some(Se=>!!Se.colloquialLabel)),Et=l.useMemo(()=>Ia()?B?O.flatMap(re=>(re??[]).map(Se=>[Se.word,Se.homonum])):(r??[]).flatMap(re=>re.words.map(Se=>[Se.label,Se.homonum])):[],[B,O,r]),[Ja,Tt]=l.useState(!1);l.useEffect(()=>{if(Et.length===0)return;let re=!1;return Promise.all(Et.map(([Se,We])=>Xo(Se,We))).then(Se=>{re||Tt(Se.some(Boolean))}),()=>{re=!0}},[Et]);const Qa=Et.length>0&&Ja,ka=l.useMemo(()=>[...B||h?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:U8.map(re=>({value:`${re}\uCE78`,displayLabel:E("wordTable.filter.column",{count:re})})),display:"segmented"}]:[],...Pe&&(r?.length??0)>0?[nb(E,{hasPairs:_t,itemCount:ze})]:[],...tt?[ib(E)]:[]],[E,B,h,Pe,r?.length,_t,ze,tt]),Qe={...B||h?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${B?I:Ve}\uCE78`}:{},...Pe&&(r?.length??0)>0?{[E(_t?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${it}\uAC1C`}:{},...tt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:sb[Te]}:{}},Gt=(re,Se)=>{Se===E("wordTable.filter.columns","\uCE78 \uC218")?B?Ra(parseInt(re)):vt(parseInt(re)):Se===E(_t?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Le(parseInt(re)):Se===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ee(lb(re))},Lt=B?O.filter(re=>re!==null).map(re=>({id:re[0].word,words:re.map(Se=>({label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}))})):r??[],Aa=(re=!1)=>{if(fe(re),F&&n){const Se=N.trim().toLowerCase();Se&&Q(We=>We.includes(Se)?We:[...We,Se]),n(N,Lt,L||void 0,re);return}if(C&&n){n("",Lt,void 0,re);return}if(n){Ue(!0);return}wa()},[Qt,Ut]=l.useState(!1),[da,le]=l.useState(""),ve=da.trim(),xe=ve!==""&&P.includes(ve.toLowerCase()),Ne=()=>{le(N?`${N} (\uBCF5\uC0AC)`:""),Ut(!0)},J=()=>{!ve||xe||!n||(n(ve,Lt,L||void 0,!0),Ut(!1))},ne=Lt.length===0,Ce=ne||F&&(N===""||te),ke=()=>{if(ne){Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&N===""){Ke(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&te&&Ke(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Me=o.jsx(mo,{items:Lt,orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:gt});return o.jsxs(o.Fragment,{children:[o.jsxs(po,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",f),children:[Qt&&o.jsx(Ta,{size:"small",title:m??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ut(!1),footer:({closeWithAnimation:re})=>o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:re}),o.jsx(ie,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!ve||xe,onClick:J})]}),children:o.jsx(qa,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:da,onChange:le,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:J,error:xe?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Be&&n&&b?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Me,previewW:qe,previewH:dt,items:Lt,existingNames:wk().map(re=>re.name),saveAsNew:at,onSave:(re,Se)=>{n(re,Lt,Se,at),Ue(!1)},onCancel:()=>Ue(!1)}),(B||g)&&pe!==null&&x?.({cellIndex:pe,onConfirm:B?la:re=>{if(g){const Se=re[0];Se&&g({id:Se.word,words:[{label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}]})}me(null)},onClose:Je}),!v&&o.jsx(Mn,{hasImage:Qa,hasColloquial:ca,contentTypes:M,orientation:ye,showOutline:de,cutLine:oe,showDivLine:K,setters:{setContentTypes:U,setOrientation:be,setShowOutline:z,setCutLine:we,setShowDivLine:Z},showCutLine:(Pe?Bt:gt)>1,showDivLine2:_t,middleSections:ka,extraSelected:Qe,onExtraSelect:Gt}),tt&&et?o.jsx("div",{className:"word-table-block__pages",children:et.map((re,Se)=>o.jsx(mo,{orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:Bt,items:re,onRemoveItem:s,contentRef:We=>{je.current[Se]=We},pageNumber:{current:Se+1,total:et.length},pageNumberPosition:Te},Se))}):o.jsx(mo,{orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:gt,items:B?void 0:r??[],editCells:B?O:void 0,activeCell:pe,onActivateCell:B||g?me:void 0,onRemoveCell:B?Jt:void 0,onRemoveItem:B?void 0:s,onReorder:B?void 0:p,showFillerAdd:!!g,contentRef:ge}),F&&!v&&o.jsxs(Dr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Ma,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(qa,{required:!0,value:_??"",onChange:k,placeholder:T?T+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:te?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(_??"").trim()&&(T??"").trim()&&(re.preventDefault(),k?.(T??""))}})}),o.jsx(Ma,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(qa,{value:w??"",onChange:A,placeholder:S?S+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(w??"").trim()&&(S??"").trim()&&(re.preventDefault(),A?.(S??""))}})})]})]}),!v&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!C&&c&&o.jsx(ie,{size:40,type:"bar",label:$,onClick:c}),!C&&i&&o.jsx(ie,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!C&&o.jsx(ie,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Wt})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[R&&o.jsx(ie,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:R}),!C&&o.jsx(ie,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:jt}),m&&o.jsx(ie,{size:"56",type:"bar",label:m,onClick:()=>F?Ne():Aa(!0),disabled:ne,onDisabledClick:()=>{Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(ie,{size:"56",type:"bar",variant:"main",label:u??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Aa(!1),disabled:Ce,onDisabledClick:ke})]})]}),o.jsx(uo,{message:Oe,type:Re,onClose:Xe})]})}var kk=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ae(kk);function Jc({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var Ak=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ae(Ak);function Ig({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:p,downloadCount:h,onPublisherClick:g,selected:f,onClick:b,onMore:x,titleNode:v,className:C}){const{t:y}=he.useTranslation(),_=v!=null,k=u!=null||m!=null||p!=null||h!=null,w=A=>{!_&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",C),role:"button",tabIndex:0,"aria-label":t,onClick:_?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":y("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Jc,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[v??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),x&&!_&&o.jsx(ie,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:y("common.moreFor",{name:t}),onClick:A=>{A.stopPropagation(),x(A)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?tn(r,y):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(pt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(pt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:tn(m,y)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[p!=null&&o.jsx(pt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(p)}),h!=null&&o.jsx(pt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
982
|
+
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ae(Z7);function Uc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function X7(e){return Uc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function hg(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=Uc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Yc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=he.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const x=hg(b),v=Uc(b?.wording,b?.label);return x===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,p=t??0,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),f=l.useMemo(()=>h.map(b=>{const x=b??{},v=X7(x)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:C,label:y}=u(x),_=Array.isArray(x.corrects)?x.corrects:[],k=_.length?_.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,w=typeof x.selectedText=="string"?x.selectedText:null,S=hg(x)===!0;return{problem:v,variant:C,label:y,answer:k,selectedText:w,isCorrect:S}}),[h,u]),g=l.useMemo(()=>f.some(b=>b.answer!==null||b.selectedText!==null),[f]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:x})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ie,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ie,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:p,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:p}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),f.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${g?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),g&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),f.map((b,x)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(x+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),g&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(pt,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function J7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||ms({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function qc(e,t){return e&&e.id||`page-${t??0}`}function Kc(e,t){return e&&e.key||`step-${t??0}`}function Yn(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function Q7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const mg=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),ek=e=>o.jsx(Yc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function tk(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:p,onBack:h,onComplete:f,onNext:g,onSettings:b,useNoiseSetting:x=!0,children:v,ariaLabel:C,label:y,buildResults:_,onResult:k,typeKey:w,entryPoint:S,dailyTotal:L,itemRef:B,renderResultPopup:D,noiseOverride:H}=e;J7(w&&!mg.has(w)?w:"");const $=l.useRef(0);l.useEffect(()=>{$.current=Date.now()},[]);const{t:E}=he.useTranslation(),R=k,N=!!t,V=t?.id||null,J=t?.meta||{},Q=Array.isArray(t?.pages)?t.pages:[],ee=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],A=ee.length>0,T=le=>le===jr||le?.__isTrainingPage===!0,P=A&&ee.some(le=>T(le.type)),F=P?ee.filter(le=>T(le.type)).map((le,ve)=>{const xe=le.props||{};return{id:`children-page-${ve}`,steps:l.Children.toArray(xe.children).filter(l.isValidElement),pageTop:xe.pageTop||xe.top||null,pageBottom:xe.pageBottom||xe.bottom||null}}):[{id:"children-page-0",steps:ee}],W=A&&!N&&typeof v!="function",te=W?Math.max(1,F.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const le=document.body;return le.dataset.ihabTrainingPopupCount=String(Number(le.dataset.ihabTrainingPopupCount||"0")+1),le.classList.add("ihab-training-popup-open"),()=>{const ve=Number(le.dataset.ihabTrainingPopupCount||"1")-1;ve>0?le.dataset.ihabTrainingPopupCount=String(ve):(delete le.dataset.ihabTrainingPopupCount,le.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return T8()},[]);const[O,Y]=l.useState({...Ac,enabled:!1}),I=l.useRef(O);l.useEffect(()=>{I.current=O},[O]);const ce=l.useRef(H);l.useEffect(()=>{let le=!1;return vs().then(ve=>{if(le)return;const xe=ve?kc(I.current,ve):{...Ac};I.current=xe,Y(xe),ir(xe);const Ne=ce.current;if(Ne){const X=typeof Ne=="function"?Ne(xe):Ne,ne=kc(xe,X);I.current=ne,Y(ne),ir(ne)}}),()=>{le=!0}},[]);const[pe,me]=l.useState(null),[ye,be]=l.useState(null),M=l.useCallback((le,ve)=>{le==="main"?me(ve):be(ve)},[]),U=l.useCallback(le=>{const ve=kc(I.current,le);I.current=ve,Y(ve),ce.current||xs(ve),ir(ve)},[]),oe=O.mainSpeed,we=O.mainVolume,de=l.useCallback(le=>U({mainSpeed:le}),[U]),z=l.useCallback(le=>U({mainVolume:le}),[U]),K=l.useMemo(()=>({settings:O,setSettings:U,registerAnalyser:M,mainAnalyser:pe,noiseAnalyser:ye,playbackRate:oe,setPlaybackRate:de,mainVolume:we,setMainVolume:z}),[O,U,M,pe,ye,oe,de,we,z]),Z=l.useRef(null),[ge,je]=l.useState("center"),[Fe,Le]=l.useState(!1),Te=l.useRef(!1),Ee=l.useRef(null),Be=l.useCallback(le=>{Te.current||(Te.current=!0,Le(!0),Ee.current=setTimeout(le,z7))},[]);l.useEffect(()=>()=>{Ee.current&&clearTimeout(Ee.current)},[]),l.useEffect(()=>{const le=Z.current;if(!le)return;const ve=Array.from(le.querySelectorAll(br)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(ve)try{ve.focus()}catch{}const xe=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Be(()=>{typeof h=="function"&&h()});return}};return le.addEventListener("keydown",xe),()=>le.removeEventListener("keydown",xe)},[h,Be]),Rs(Z,!0);const[Ue,at]=l.useState(!1),fe=l.useRef(!1),[Oe,Re]=l.useState(null),[Ke,Xe]=l.useState(""),[Je,Ve]=l.useState(()=>Yn()),vt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!N&&!W||(Ve(Yn()),Re(null))},[N,V,W]),l.useEffect(()=>{W&&Ve(le=>{const ve=Math.max(0,Math.min(le.pageIndex,Math.max(0,te-1)));return ve!==le.pageIndex?{...le,pageIndex:ve,stepIndex:0}:le})},[W,te]);const gt=W?Math.max(0,Math.min(Je.pageIndex,te-1)):0,qe=W?F[gt]:null,dt=W&&qe&&Array.isArray(qe.steps)?qe.steps:[],Pe=N?Je.pageIndex:W?gt:typeof d=="number"?d:0,ze=N?Q[Math.max(0,Math.min(Je.pageIndex,Math.max(0,Q.length-1)))]:null,it=N&&ze&&Array.isArray(ze.steps)?ze.steps:[],Bt=N?it.length:W?dt.length:typeof p=="number"?p:0,et=N||W?Math.max(0,Math.min(Je.stepIndex,Math.max(0,Bt))):typeof m=="number"?m:0,tt=N?Q.length:W?te:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const le=vt.current;if(typeof Pe=="number"&&le!==null&&Pe!==le&&Pe>le)try{Xe(E("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,d,E]),l.useLayoutEffect(()=>{const le=Z.current;if(!le)return;const ve=()=>le.querySelector(".page-popup__scroll");let xe=null,Ne=null,X=null;const ne=Se=>{const We=ve();if(!We)return;const nt=We.scrollHeight<=We.clientHeight;if(je(nt?"center":"top"),Se&&!fe.current){fe.current=!0;try{at(!0)}catch{}try{Me.disconnect()}catch{}}},Ce=()=>{xe!==null&&cancelAnimationFrame(xe),xe=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>ne(!0),60)})},ke=()=>{X!==null&&cancelAnimationFrame(X),X=requestAnimationFrame(()=>ne(!1))};Ce(),window.addEventListener("resize",ke);const Me=new MutationObserver(Ce);Me.observe(le,{childList:!0,subtree:!0,attributes:!0});const re=setTimeout(()=>{fe.current||ne(!0)},400);return()=>{window.removeEventListener("resize",ke),xe!==null&&cancelAnimationFrame(xe),Ne!==null&&clearTimeout(Ne),X!==null&&cancelAnimationFrame(X),clearTimeout(re);try{Me.disconnect()}catch{}}},[Z]);const _t=l.useCallback(le=>{Z.current&&(Z.current._childOnNext=le)},[]),Vt=l.useCallback(le=>{Z.current&&(Z.current._childOnResult=le)},[]),rt=l.useCallback((le,ve,xe)=>{Ve(Ne=>{const X=Ne.answersByPage[le]||{},ne=X[ve],Ce=Un(xe),ke=Un(ne);return ne&&ke>Ce?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[le]:{...X,[ve]:xe}}}})},[Ve]),jt=l.useCallback((le,ve,xe)=>{const Ne=qc(ze,Pe),X=Kc(le,ve);rt(Ne,X,xe)},[ze,Pe,rt]),Wt=l.useCallback((le,ve,xe)=>{const Ne=qc(ze,Pe),X=Kc(le,ve);rt(Ne,X,xe),!xe?.allowChange&&le?.autoAdvance!==!1&&Ve(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,ve+1)}))},[ze,Pe,rt,Ve]),wa=l.useCallback((le,ve)=>{const xe=qe?.id||`children-page-${Pe??0}`,Ne=typeof ve=="number"?ve:et??0,X=`step-${Ne}`;rt(xe,X,le),le?.allowChange||Ve(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,Ne+1)}))},[qe,Pe,et,rt,Ve]),Ra=l.useCallback((le,ve)=>{const xe=qe?.id||`children-page-${Pe??0}`,Ne=`step-${typeof ve=="number"?ve:et??0}`;rt(xe,Ne,le)},[qe,Pe,et,rt]),Jt=W?{currentPageIndex:Pe??0,currentStepIndex:et??0,totalStepsInPage:dt.length,handleStepDone:wa,handleStepChange:Ra}:null,la=async()=>{const le=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:Q,flowState:Je,answersByPage:Je.answersByPage})):null;return typeof R=="function"&&await Promise.resolve(R(le))||le},ca=async()=>{const le=qe?.id||`children-page-${Je.pageIndex}`,ve=Je.answersByPage[le]||{},xe=P?(()=>{const ne={};let Ce=0;return F.forEach(ke=>{const Me=Je.answersByPage[ke.id]||{},re=Array.isArray(ke.steps)?ke.steps.length:0;for(let Se=0;Se<re;Se+=1){const We=Me[`step-${Se}`];typeof We<"u"&&(ne[`step-${Ce+Se}`]=We)}Ce+=re}),ne})():ve;if(typeof _=="function"){const ne=await Promise.resolve(_(xe,{pageAnswers:ve,answersByPage:Je.answersByPage,pages:F,currentPageId:le}));return typeof R=="function"&&await Promise.resolve(R(ne))||ne}const Ne=Object.entries(ve).map(([ne,Ce],ke)=>({index:ke,key:ne,payload:Ce})),X={results:Ne,answers:Ne,score:0};return typeof R=="function"&&await Promise.resolve(R(X))||X},Et=()=>{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(N){const xe=la();Re({});const Ne=xe;Promise.resolve(Ne).then(X=>{Re(X||{isEmpty:!0})}).catch(X=>{Re({isEmpty:!0})});return}if(W){const xe=ca();Re({});const Ne=xe;Promise.resolve(Ne).then(X=>{Re(X||{isEmpty:!0})}).catch(X=>{Re({isEmpty:!0})});return}const le=Z.current&&Z.current._childOnResult,ve=xe=>{try{return xe?xe():void 0}catch{return}};if(typeof le=="function"){const xe=ve(le);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?Re(xe):Re(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{Ne&&Re(Ne)}).catch(Ne=>{});return}if(typeof R=="function"){const xe=ve(R);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?Re(xe):Re(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Zt&&Zt.tagName.toUpperCase()==="SCRIPT"&&Zt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ne&&Re(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},Ja=()=>{if(N){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ve(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Et()}if(W){const ve=dt.length;if(typeof et=="number"&&et<ve-1){Ve(xe=>({...xe,stepIndex:xe.stepIndex+1}));return}if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ve(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return Et()}if(typeof g=="function"){try{g()}catch{}return}const le=Z.current&&Z.current._childOnNext;if(typeof le=="function"){try{le()}catch{}return}},Tt=N?J.title||J.label||C||E("common.popup","\uD31D\uC5C5"):a||y||(Array.isArray(n)?n[n.length-1]:void 0)||C||E("common.popup","\uD31D\uC5C5"),Qa=N?J.title??J.label??Tt:a??y??Tt,ka=(le,ve)=>{const xe=qc(ze,Pe),Ne=Kc(le,ve),X=Je.answersByPage[xe]?.[Ne],ne=Q7(le,{page:ze,pageIndex:Pe,step:le,stepIndex:ve,storedPayload:X,answersByPage:Je.answersByPage,flowState:Je}),Ce={key:Ne,index:ve,stepIndex:et,isLast:ve===it.length-1};switch(le?.type){case"listen":return o.jsx(Wn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke)});case"confirm":return o.jsx(Hn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});case"confirmWithText":return o.jsx(Vn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});case"orderList":return o.jsx(Gn,{...Ce,...ne,onDone:ke=>Wt(le,ve,ke),onChange:ke=>jt(le,ve,ke)});default:return null}},Qe=N?Q.length>0?o.jsx("div",{className:"training-steps",children:it.map((le,ve)=>ka(le,ve))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Gt=W?o.jsxs(pg.Provider,{value:Jt,children:[qe?.pageTop?o.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,o.jsx("div",{className:"training-steps",children:dt.map((le,ve)=>{const xe=le;return l.cloneElement(xe,{...xe.props,_stepIndex:ve,_totalSteps:dt.length,_stepKey:`step-${ve}`,_pageIndex:Pe})})}),qe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,Lt=l.useCallback(()=>{let le;if(w){const ve=Oe,xe=ve?.results||ve?.answers||[],Ne=Array.isArray(xe)&&xe.length>0?xe.length:null,X=Array.isArray(xe)?xe.filter(Ce=>Ce?.correct===!0||Ce?.isCorrect===!0||Ce?.score===1||Ce?.heard===!0||Ce?.judgement===!0).length:null,ne=Ne!=null?X:null;bs({items:fs(xe),category:mg.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:B??null,correct:ne,total:Ne,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-$.current)/1e3)),dailyTotal:L??null}),le={correct:ne,total:Ne}}Re(null),Be(()=>{typeof f=="function"&&f(le),typeof h=="function"&&h()})},[f,h,w,S,L,B,Oe,Re,Be]),Aa=l.useCallback(()=>Xe(""),[Xe]),Qt=l.useCallback(()=>{Be(()=>{typeof h=="function"&&h()})},[h,Be]),Ut=o.jsxs("div",{className:`page-popup${Fe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Tt,children:[o.jsxs("div",{ref:Z,className:`page-popup__panel ${Ue?"":"page-popup__panel--measuring"} ${ge==="center"?"page-popup__panel--center":ge==="top"?"page-popup__panel--top":""}`,children:[o.jsx(zc,{title:Qa,subtitle:N?J.subtitle||J.label:Array.isArray(n)?n.join(" / "):void 0,desc:N?void 0:r,depth:N?J.depth:n,icon:N?J.icon:i,wrapperStyle:N?J.wrapperStyle:s,iconTooltip:N?J.iconTooltip:c,progressMax:tt,progressIndex:Pe,pageIndex:Pe,pageCount:tt,onBack:Qt,onClose:Qt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${ge==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?Gt:N?Qe:typeof v=="function"?v({registerOnNext:_t,registerOnResult:Vt,panelRef:Z,setResultOverlay:Re}):v})}),o.jsx(Pc,{onSettings:b,onNext:Ja,onResult:Et,useNoiseSettingBtn:!!(N?J.useNoiseSetting??!0:x),stepIndex:et,stepCount:Bt,pageIndex:Pe,pageCount:tt})]}),Oe&&!Oe.isEmpty&&(D??ek)({score:Oe.score,results:Oe.results||Oe.answers||[],contextsLength:Oe.results?Oe.results.length:Oe.answers?Oe.answers.length:0,onReplay:()=>{if(Re(null),N){if(Ve(Yn()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Ve(Yn());return}try{const le=Z.current&&Z.current._childOnResult;typeof le=="function"&&le({replay:!0})}catch{}},onClose:Lt}),Oe?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(ie,{variant:"main",size:48,onClick:Lt,label:E("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(uo,{message:Ke,position:"top",onClose:Aa})]}),da=o.jsx(Gb.Provider,{value:K,children:Ut});return typeof document<"u"&&document.body?Kt.createPortal(da,document.body):da}const $a=tk;$a.Page=jr,$a.ListenStep=Fc,$a.ConfirmStep=Hc,$a.ConfirmWithTextStep=Vc,$a.OrderListStep=Wc,$a.CardStep=Gc,$a.CardOrderStep=K7;var ak=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ae(ak);var ok='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ae(ok);function rk({label:e,homonum:t}){const a=Ia()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=uc(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Zc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:Kt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(rk,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function bg({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:p,className:h,emptyHint:f,sectionType:g="page",disc:b,notice:x}){const{t:v,i18n:C}=he.useTranslation(),y=C.language?.startsWith("ko")??!1,{anchorRect:_,openAt:k,close:w}=To(),[S,L]=l.useState(null),B=l.useCallback(()=>{w(),L(null)},[w]);$l(B,!!S);const D=(r??"").trim(),H=/^[^,[\]\s]+$/.test(D)?D:"",$=H.length>0,[E,R]=l.useState("ganada"),[N,V]=l.useState("50"),[J,Q]=l.useState(1),[ee,A]=l.useState($);ee!==$&&(A($),R($?"match":"ganada"));const T=E==="match"&&!$?"ganada":E,P=l.useMemo(()=>[...$?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,$]),F=l.useMemo(()=>["10","25","50","100"].map(z=>({value:z,label:v("wordSearch.pageSize",{count:Number(z),defaultValue:`${z}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),W=z=>z.words[0],te=l.useCallback((z,K)=>{const Z=Fe=>W(Fe)?.label??"",ge=Fe=>W(Fe)?.syllables??[...Z(Fe)].length,je=Fe=>{const Le=parseInt(W(Fe)?.grade??"",10);return Number.isFinite(Le)?Le:999};switch(T){case"match":{const Fe=[...H].length,Le=Te=>Co(Z(Te).slice(0,Fe),H)?0:1;return Le(z)-Le(K)||Z(z).localeCompare(Z(K),"ko")}case"ganada":return Z(z).localeCompare(Z(K),"ko");case"ganada_desc":return Z(K).localeCompare(Z(z),"ko");case"syllable":return ge(z)-ge(K)||Z(z).localeCompare(Z(K),"ko");case"syllable_desc":return ge(K)-ge(z)||Z(z).localeCompare(Z(K),"ko");case"grade":return je(z)-je(K)||Z(z).localeCompare(Z(K),"ko");case"grade_desc":return je(K)-je(z)||Z(z).localeCompare(Z(K),"ko");default:return 0}},[T,H]),O=l.useMemo(()=>n.slice().sort(te),[n,te]),Y=Number(N)||10,I=l.useMemo(()=>(i??[]).flatMap(z=>z.items.slice().sort(te).map(K=>({item:K,label:z.label}))),[i,te]),ce=i?I.length:O.length,pe=Math.max(1,Math.ceil(ce/Y)),me=Math.min(J,pe),ye=l.useMemo(()=>O.slice((me-1)*Y,me*Y),[O,me,Y]),be=l.useMemo(()=>{if(!i)return null;const z=I.slice((me-1)*Y,me*Y),K=new Map;for(const{item:Z,label:ge}of z)K.has(ge)||K.set(ge,[]),K.get(ge).push(Z);return[...K.entries()].map(([Z,ge])=>({label:Z,items:ge}))},[i,I,me,Y]);l.useEffect(()=>{Q(1)},[E,N,ce]);const M=ce>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Xt,{size:40,options:P,value:T,onChange:R,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Xt,{size:40,options:F,value:N,onChange:V,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(wr,{page:me,totalPages:pe,onChange:Q})]}):void 0,U=z=>{c&&c(z)},oe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:y?Yi(a):a})]}):void 0,we=t!==void 0&&t>0&&d!==void 0&&a?v("wordSearch.resultDisc",{unit:y?Ki(a):a,max:d,selected:s.length}):void 0,de=b??(x?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:x}),we?o.jsx("span",{className:"word-search-result-block__disc",children:we}):null]}):we);return o.jsxs(po,{type:g,icon:e,title:oe,action:M,disc:de,className:_e("word-search-result-block",h),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),f&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:f})]}),i?(be??[]).map(z=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:z.items.map(K=>{const Z=s.includes(K.id);return o.jsx("div",{onMouseEnter:ge=>{k(ge.currentTarget),L(K.words)},onMouseLeave:B,children:o.jsx(ie,{size:"word",align:"grid",label:K.words.map(ge=>ge.label),subLabel:K.words.map(ge=>ge.subLabel).filter(Boolean).length>0?K.words.map(ge=>ge.subLabel):void 0,selected:Z,onClick:()=>U(K.id),minWidth:200})},K.id)})})},z.label)):o.jsx("div",{className:"word-search-result-block__items",children:ye.map(z=>{const K=s.includes(z.id);return o.jsx("div",{onMouseEnter:Z=>{k(Z.currentTarget),L(z.words)},onMouseLeave:B,children:o.jsx(ie,{size:"word",align:"grid",label:z.words.map(Z=>Z.label),subLabel:z.words.map(Z=>Z.subLabel).filter(Boolean).length>0?z.words.map(Z=>Z.subLabel):void 0,selected:K,onClick:()=>U(z.id),minWidth:200})},z.id)})}),S&&_&&o.jsx(Zc,{words:S,anchorRect:_})]}),pe>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(wr,{page:me,totalPages:pe,onChange:Q})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ie,{size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?p:void 0,children:o.jsx(ie,{size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var nk='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ae(nk);function ik(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function gg({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:p,titleIcon:h,disc:f,showInfoButton:g=!1,onClearPhoneme:b,onSearch:x,onSearchEmpty:v,searchDisabled:C=!1,searchLabel:y,searchChecking:_=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:L,afterContent:B,hideCountControl:D=!1,ordinal:H=!1}){const{t:$}=he.useTranslation(),E=l.useMemo(()=>$("wordPairs.infoNotes",{returnObjects:!0}),[$]),R=l.useMemo(()=>Array.from({length:n-i+1},(O,Y)=>{const I=i+Y;return{key:String(I),label:$("wordPairs.count",{n:I})}}),[$,n,i]),N=l.useMemo(()=>$("wordPairs.ordinals",{returnObjects:!0}),[$]),V=l.useCallback(O=>H?$("wordPairs.phonemeOrdinalLabel",{ordinal:N[O-1]??O}):a===1?$("wordPairs.phonemeSingleLabel","\uC74C\uC808"):$("wordPairs.phonemeN",{n:O}),[H,N,a,$]),J=l.useCallback(O=>H?$("wordPairs.phonemeContrastOrdinalLabel",{ordinal:N[O-1]??O}):a===1?$("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):$("wordPairs.phonemeContrast",{n:O}),[H,N,a,$]),Q=l.useCallback((O,Y)=>Y?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:ee,toggleAt:A,close:T}=To(),P=l.useCallback(O=>r(Number(O)),[r]),F=na("(max-width: 767px)"),W=l.useCallback(O=>ik(O,e).map(({label:Y,value:I,displayLabel:ce})=>{const pe=!!I&&I!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||u}),pe&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ce??Y})]},Y)}),[e,u]),te=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ie,{size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:$("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ee,onClick:O=>A(O.currentTarget)})}),ee&&o.jsx(Ua,{title:$("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:ee,onClose:T})]});return o.jsxs(po,{type:w,title:p,icon:h,disc:f,action:te,className:_e("phoneme-select-block",m),children:[L,(!D||g&&!(p||f))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&o.jsx(Ka,{options:R,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),g&&!(p||f)&&te]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:V(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:$("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(I)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:J(Y+1)})]},Y)})})]}):t.map((O,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:W(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:V(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2]??{};return o.jsx(ya,{title:Q(V(Y+1),Y===0),sections:c?c(I,Y*2):s,selected:I,onSelect:d?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const I=t[Y*2+1]??{};return o.jsx(ya,{title:J(Y+1),sections:c?c(I,Y*2+1):s,selected:I,onSelect:d?.(Y*2+1),align:"newline"},Y)})})]}):t.map((O,Y)=>o.jsx(ya,{title:Q(V(Y+1),Y===0),sections:c?c(O,Y):s,selected:O,onSelect:d?.(Y),align:"newline"},Y))})}),S&&o.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(b||x||_)&&(()=>{const O=t.every(Y=>Object.entries(Y).every(([I,ce])=>!ce||I==="\uC885\uC131"&&ce==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?v:void 0,children:[b&&o.jsx(ie,{size:"56",type:"bar",label:$("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:O,onClick:O?void 0:b}),_?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:y??$("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):x&&o.jsx(ie,{size:"56",type:"bar",variant:"main",label:y??$("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||C,onClick:O||C?void 0:x})]})})(),B]})}function fg({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=he.useTranslation();return o.jsx(ya,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function vg({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=he.useTranslation();return a.length===0?null:o.jsx(ya,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function xg({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=he.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=x=>m("wordPairs.count",{n:x}),f=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:o.jsx(Lo,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:o.jsx(Lo,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[h(1),h(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:o.jsx(Lo,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],g={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:h(i),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},b=(x,v)=>{v===p.searchMode?a(x===p.explicit?"explicit":x===p.pick?"pick":"include"):v===p.phonemeOrder?n(x===p.orderMatch?"ordered":"unordered"):v===p.count?s(x===h(2)?2:1):v===p.inputMode&&d(x===p.pronInput?"phoneme":"word")};return o.jsx(ya,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:f,selected:g,onSelect:b,align:"inline"})}var sk=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ae(sk);function _g(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:p,onClose:h,pageSizeOptions:f=[10,25,50,100],initialPageSize:g,emptyText:b,countLabel:x,topContent:v,className:C=""}=e,{t:y}=he.useTranslation(),_=i??y("common.search","\uAC80\uC0C9"),k=b??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=l.useState(""),[L,B]=l.useState(c??r[0]?.key??""),[D,H]=l.useState(d),[$,E]=l.useState(String(g??f[0]??10)),[R,N]=l.useState(1);l.useEffect(()=>{N(1)},[w,$]);const V=s!==null,J=l.useCallback((O,Y)=>{if(!Y)return!0;const I=Y.toLowerCase();return r.some(ce=>{const pe=O[ce.key];return pe==null?!1:String(pe).toLowerCase().includes(I)})},[r]),Q=s??J,ee=l.useMemo(()=>{const O=V?a.filter(Y=>Q(Y,w)):a;return L?[...O].sort((Y,I)=>{const ce=Y[L]??"",pe=I[L]??"";if(ce===pe)return 0;const me=Q8(ce,pe);return D?me:-me}):O},[a,w,L,D,V,Q]),A=Math.max(1,Math.ceil(ee.length/Number($))),T=ee.slice((R-1)*Number($),R*Number($)),P=l.useCallback(O=>{L===O?H(Y=>!Y):(B(O),H(!0))},[L]),F=l.useMemo(()=>{if(typeof x=="string"&&x.includes("{n}")){const[O,Y]=x.split("{n}");return{prefix:O,suffix:Y}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[x,y]),W=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>P(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&L===O.key?D?"asc":"desc":null})),[r,L,D,P]),te=l.useMemo(()=>f.map(O=>({value:String(O),label:y("common.pageSizeLabel",{n:O})})),[f,y]);return o.jsxs(Ta,{className:`popup-list ${C}`,title:t,onClose:h,children:[v,o.jsx(An,{count:{value:ee.length,prefix:F.prefix,suffix:F.suffix},search:V?{value:w,onChange:S,placeholder:_}:void 0,pageSize:{options:te,value:$,onChange:E},pagination:{page:R,total:A,onChange:N}}),o.jsx(Dn,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:W,items:T,onRowClick:p,renderRow:O=>{const Y=m!=null?O.id!=null&&m.has(O.id):u!=null&&O.id===u;return r.map(I=>({content:I.render?I.render(O):O[I.key]??"",className:Y?"popup-list__row--selected":I.className}))},empty:k})]})}function Cg(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:h,closeOnConfirm:f=!0,onClose:g,inline:b,size:x="small",className:v}=e,{t:C}=he.useTranslation(),y=l.useRef(!1),[_,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:g,closeDisabled:_,inline:b,size:x,className:_e("confirm-popup",v),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:w})=>{if(!y.current){y.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{y.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??C("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:w})=>w()}],{label:s??C("common.confirm","\uD655\uC778"),variant:m,disabled:p||_,onClick:async({closeWithAnimation:w})=>{if(!y.current){y.current=!0,k(!0);try{await h(w),f&&w()}finally{y.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(Dr,{children:n.map((w,S)=>o.jsx(Ma,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},S))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var lk=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ae(lk);function yg({onApply:e,onCancel:t}){const{t:a}=he.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async f=>{const g=r.trim();if(g){s(!0),d(null);try{await e(g),f()}catch(b){d(Qr(b)),s(!1)}}},[r,e]),p=l.useCallback((f,g)=>{f.key==="Enter"&&m(g)},[m]),h=f=>{n(f.target.value),d(null)};return o.jsx(Ta,{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:f})=>f()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:f})=>{m(f)}}],children:({closeWithAnimation:f})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:g=>p(g,f),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var ck=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ae(ck);const wg=200;function dk(e){return e.itemId?(Ds()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function kg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=he.useTranslation(),i=l.useMemo(()=>sn.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,p)=>{const h=dk(m);return h?o.jsx(jn,{index:p,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},c.key)])})});return t?o.jsx(ja,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var uk=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ae(uk);const Ag=["var(--color-main)","var(--color-sub)"];function Xc({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),x=t-b,v=(C,y)=>Array.from({length:C}).map((_,k)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),L=Ag[Math.floor(Math.random()*Ag.length)],B=Math.random()*300,D=(360+Math.random()*260)*r*1.2,H=(y==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,$=Math.cos(H)*D,E=Math.sin(H)*D*1.35,R=Math.random()*720-360,N=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),V=Math.random()>.7?"50%":"3px";return{id:`${y}-${k}`,side:y,size:S,color:L,delay:B,vx:$,vy:E,angularVel:R,life:N,borderRadius:V}});return[...v(b,"left"),...v(x,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const p=l.useRef(null),h=l.useRef(null),f=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&h.current==null&&(h.current=f()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,x=performance.now(),v=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),y=A=>Math.max(40,(A||window.innerWidth)*.02),_=v?.width||window.innerWidth||375,k=v?.height||window.innerHeight||812,w=A=>{const T=[...A].sort((P,F)=>P-F);return T[Math.floor(T.length/2)]||1},S=w(s.map(A=>Math.abs(A.vy))),L=w(s.map(A=>Math.abs(A.vx))),B=Math.sqrt(2*b*(k*.72+C))/S,D=S*B/b,H=_*.5/(L*D),$=(A,T,P)=>Math.min(P,Math.max(T,A)),E=$(B,.8,2.4),R=$(H,.7,2.2),N=s.map(A=>({...A,vx:A.vx*R,vy:A.vy*E,startTime:x+A.delay,ended:!1})),V=v?{x:v.left-y(v.width),y:v.top+v.height+C}:{x:-y(window.innerWidth),y:window.innerHeight+C},J=v?{x:v.left+v.width+y(v.width),y:v.top+v.height+C}:{x:window.innerWidth+y(window.innerWidth),y:window.innerHeight+C},Q=A=>{let T=!1;for(const P of N){const F=d.current[P.id];if(!F||!F)continue;if(A<P.startTime){F.style.display="none";continue}if(!P._inited){const be=P.side==="left"?V.x:J.x,M=P.side==="left"?V.y:J.y;F.style.left=`${be}px`,F.style.top=`${M}px`,F.style.transform="translate3d(0px, 0px, 0)",F.style.display="block",F.style.zIndex="100000";try{if(typeof window<"u"&&typeof P.color=="string"&&P.color.startsWith("var(")){const U=P.color.slice(4,-1).trim(),oe=getComputedStyle(document.documentElement).getPropertyValue(U).trim();oe?F.style.background=oe:F.style.background="#FF0060"}}catch{}P._inited=!0}const W=(A-P.startTime)/1e3;if(W<0)continue;const te=P.life/1e3;if(W>=te){F.style.opacity="0",F.style.display="none",P.ended=!0;continue}T=!0;const O=P.side==="left"?V.x:J.x,Y=P.side==="left"?V.y:J.y,I=O+P.vx*W,ce=Y+P.vy*W+.5*b*W*W,pe=(P.angularVel||0)*W,me=I-O,ye=ce-Y;F.style.transform=`translate3d(${me}px, ${ye}px, 0) rotate(${pe}deg)`,F.style.opacity=`${Math.max(0,1-W/te)}`}T?u.current=requestAnimationFrame(Q):m.current?.()};u.current=requestAnimationFrame(Q);const ee=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const A=document.createElement("div");A.className="party-container",A.style.position="fixed",A.style.inset="0",A.style.pointerEvents="none",A.style.overflow="visible",A.style.zIndex="2147483647";for(const T of s){const P=document.createElement("span");P.className=`confetti confetti--${T.side}`,P.setAttribute("aria-hidden","true"),P.style.display="none",P.style.position="fixed",P.style.left="0px",P.style.top="0px",P.style.width=`${T.size}px`,P.style.height=`${Math.max(4,T.size*.6)}px`;let F=T.color;try{if(typeof F=="string"&&F.startsWith("var(")){const W=F.slice(4,-1).trim(),te=getComputedStyle(document.documentElement).getPropertyValue(W).trim();te&&(F=te)}}catch{}P.style.background=F,P.style.borderRadius=T.borderRadius,P.style.transform="translate3d(0,0,0)",P.style.opacity="0",A.appendChild(P),d.current[T.id]=P}(document.body||h.current).appendChild(A),p.current=A}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(ee),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,s]),!e)return null;const g=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:x=>{d.current[b.id]=x},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Kt.createPortal(g,h.current||document.body):g}function Sg({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Xc,{active:t,trigger:e})}var pk=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ae(pk);function Bg({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=he.useTranslation();fl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(ie,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(pt,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function Ng(e){return e??""}const Dg=l.createContext({words:[],loading:!1});function jg(){return l.useContext(Dg)}function Eg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(Dg.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var hk=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ae(hk);function Tg({items:e,actions:t,columns:a,flat:r=!1,className:n,style:i}){const s=a??e.length;return o.jsx("section",{className:_e("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var mk='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ae(mk);const bk=(e,t)=>`${e} / ${t}`;function Lg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=bk,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=he.useTranslation(),p=l.useRef(null),h=l.useRef(null),f=l.useRef(null),g=l.useRef(null),[b,x]=l.useState(null),[v,C]=l.useState(!1);l.useEffect(()=>{const D=p.current;if(!D)return;const H=()=>C(D.scrollWidth>D.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(H);return $.observe(D),()=>$.disconnect()},[b]);const y=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");l.useLayoutEffect(()=>{const D=h.current,H=g.current;if(!D||!H)return;const $=f.current?.offsetHeight??0,E=H.offsetHeight-$,R=Array.from(D.children).map(A=>A.offsetHeight),N=[];e.forEach((A,T)=>{const P=N[N.length-1],F=P?e[P[0]]:void 0;F&&A.group!=null&&F.group===A.group?P.push(T):N.push([T])});const V=[];let J=[],Q=0;const ee=()=>{J.length&&V.push(J),J=[],Q=0};N.forEach(A=>{const T=A.reduce((P,F)=>P+R[F],0);J.length&&e[J[0]].section!==e[A[0]].section&&ee(),J.length&&Q+T>E&&ee(),T>E?A.forEach(P=>{J.length&&Q+R[P]>E&&ee(),J.push(P),Q+=R[P]}):(A.forEach(P=>J.push(P)),Q+=T)}),ee(),x(V)},[y]);const _=Kl,k=_,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(D,H,$)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:$!=null&&t?.[$]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(D,H)})]})}),L=S(1,1,e[0]?.section),B={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:p,className:_e("report-doc",d),style:B,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:g,className:"report-doc__ruler"}),o.jsxs("div",{ref:f,children:[L.header,L.footer]}),o.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(D=>o.jsx("div",{children:D.content},D.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((D,H)=>{const{header:$,footer:E}=S(H+1,b.length,e[D[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[$,D.map(R=>o.jsx("div",{children:e[R].content},e[R].id)),E]},H)})})]})}var gk=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ae(gk);function Mg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var fk=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ae(fk);function $g({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=he.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(vd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(ie,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var vk=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ae(vk);function Rg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const p=n!=null||i!=null,h=r!=null&&r!==!1,f=l.useCallback(g=>{s&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?f:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:g=>g.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&o.jsx("div",{className:"training-card__body",children:r}),p&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var xk=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ae(xk);function Pg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:p,children:h,className:f}){const{t:g}=he.useTranslation(),b=r!=null,x=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",f);return o.jsxs("div",{className:x,onDragOver:u,onDragLeave:m,onDrop:p,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(ie,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[n&&o.jsx(Xt,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:h}))]})}var _k=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ae(_k);const Ck="speechear:saved_word_tables";function yk(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 wk(){try{const e=localStorage.getItem(Ck);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(yk):[]}catch{return[]}}function zg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:p,showCellCount:h,onAddItem:f,className:g,renderSavePopup:b,renderWordSearch:x,hideControls:v,saveOnly:C,tableName:y,nameValue:_,onNameChange:k,descriptionValue:w,onDescriptionChange:S,namePlaceholder:L,descriptionPlaceholder:B,existingNames:D,editingName:H,onCancel:$}){const{t:E}=he.useTranslation(),R=d??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),N=r===void 0,V=!!k,[J,Q]=l.useState([]),ee=(_??"").trim(),A=ee||(L??"").trim(),T=(w??"").trim()||(B??"").trim(),P=(D??[]).map(re=>re.trim().toLowerCase()),F=[H?.trim().toLowerCase(),...J].filter(re=>!!re),W=[...P];for(const re of F){const Se=W.indexOf(re);Se!==-1&&W.splice(Se,1)}const te=ee!==""&&W.includes(ee.toLowerCase()),[O,Y]=l.useState(Array(4).fill(null)),[I,ce]=l.useState(4),[pe,me]=l.useState(null),[ye,be]=l.useState("landscape"),[M,U]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[oe,we]=l.useState("\uD45C\uC2DC"),[de,z]=l.useState(!0),[K,Z]=l.useState(!0),ge=l.useRef(null),je=l.useRef([]),[Fe,Le]=l.useState(8),[Te,Ee]=l.useState("right"),[Be,Ue]=l.useState(!1),[at,fe]=l.useState(!1),{toastMessage:Oe,toastType:Re,showWarning:Ke,clearToast:Xe}=yn("warning"),Je=l.useCallback(()=>me(null),[me]),[Ve,vt]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{N||vt(re=>Math.max(re,r?.length??1))},[r?.length,N]);const gt=N?I:h?Math.max(Ve,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:dt}=ho[ye],Pe=!N&&!h,ze=r?.length??0,it=Math.min(Fe,Math.max(ze,1)),Bt=Pe?it:gt,et=Pe?Xm(r??[],Bt):null,tt=!!et&&et.length>1,_t=N?O.some(re=>re!==null&&re.length>1):(r??[]).some(re=>re.words.length>1),Vt=y?.trim()||`${on(tn())} ${_t?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,rt=l.useCallback(()=>tt?je.current.filter(re=>re!==null):ge.current?[ge.current]:[],[tt]),{print:jt,openNewWindow:Wt,downloadHtml:wa}=Rn({getElements:rt,paperW:qe,paperH:dt,fileName:Vt,onPopupBlocked:()=>{Ke(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ra=re=>{ce(re),Y(Se=>{const We=Array(re).fill(null);return Se.slice(0,re).forEach((nt,Nt)=>{We[Nt]=nt}),We}),me(null)},Jt=re=>{Y(Se=>{const We=[...Se];return We[re]=null,We}),pe===re&&me(null)},la=re=>{if(pe===null)return;const Se=pe;Y(nt=>{const Nt=[...nt];return Nt[Se]=re,Nt});const We=O.findIndex((nt,Nt)=>Nt>Se&&nt===null);me(We!==-1?We:null)},ca=N?O.some(re=>re?.some(Se=>!!Se.colloquialPronunciation)):(r??[]).some(re=>re.words.some(Se=>!!Se.colloquialLabel)),Et=l.useMemo(()=>Ia()?N?O.flatMap(re=>(re??[]).map(Se=>[Se.word,Se.homonum])):(r??[]).flatMap(re=>re.words.map(Se=>[Se.label,Se.homonum])):[],[N,O,r]),[Ja,Tt]=l.useState(!1);l.useEffect(()=>{if(Et.length===0)return;let re=!1;return Promise.all(Et.map(([Se,We])=>Xo(Se,We))).then(Se=>{re||Tt(Se.some(Boolean))}),()=>{re=!0}},[Et]);const Qa=Et.length>0&&Ja,ka=l.useMemo(()=>[...N||h?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:U8.map(re=>({value:`${re}\uCE78`,displayLabel:E("wordTable.filter.column",{count:re})})),display:"segmented"}]:[],...Pe&&(r?.length??0)>0?[nb(E,{hasPairs:_t,itemCount:ze})]:[],...tt?[ib(E)]:[]],[E,N,h,Pe,r?.length,_t,ze,tt]),Qe={...N||h?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${N?I:Ve}\uCE78`}:{},...Pe&&(r?.length??0)>0?{[E(_t?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${it}\uAC1C`}:{},...tt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:sb[Te]}:{}},Gt=(re,Se)=>{Se===E("wordTable.filter.columns","\uCE78 \uC218")?N?Ra(parseInt(re)):vt(parseInt(re)):Se===E(_t?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Le(parseInt(re)):Se===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ee(lb(re))},Lt=N?O.filter(re=>re!==null).map(re=>({id:re[0].word,words:re.map(Se=>({label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}))})):r??[],Aa=(re=!1)=>{if(fe(re),V&&n){const Se=A.trim().toLowerCase();Se&&Q(We=>We.includes(Se)?We:[...We,Se]),n(A,Lt,T||void 0,re);return}if(C&&n){n("",Lt,void 0,re);return}if(n){Ue(!0);return}wa()},[Qt,Ut]=l.useState(!1),[da,le]=l.useState(""),ve=da.trim(),xe=ve!==""&&P.includes(ve.toLowerCase()),Ne=()=>{le(A?`${A} (\uBCF5\uC0AC)`:""),Ut(!0)},X=()=>{!ve||xe||!n||(n(ve,Lt,T||void 0,!0),Ut(!1))},ne=Lt.length===0,Ce=ne||V&&(A===""||te),ke=()=>{if(ne){Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(V&&A===""){Ke(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}V&&te&&Ke(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Me=o.jsx(mo,{items:Lt,orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:gt});return o.jsxs(o.Fragment,{children:[o.jsxs(po,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",g),children:[Qt&&o.jsx(Ta,{size:"small",title:m??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ut(!1),footer:({closeWithAnimation:re})=>o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:re}),o.jsx(ie,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!ve||xe,onClick:X})]}),children:o.jsx(qa,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:da,onChange:le,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:X,error:xe?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Be&&n&&b?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Me,previewW:qe,previewH:dt,items:Lt,existingNames:wk().map(re=>re.name),saveAsNew:at,onSave:(re,Se)=>{n(re,Lt,Se,at),Ue(!1)},onCancel:()=>Ue(!1)}),(N||f)&&pe!==null&&x?.({cellIndex:pe,onConfirm:N?la:re=>{if(f){const Se=re[0];Se&&f({id:Se.word,words:[{label:Se.word,subLabel:Se.pronunciation,homonum:Se.homonum}]})}me(null)},onClose:Je}),!v&&o.jsx($n,{hasImage:Qa,hasColloquial:ca,contentTypes:M,orientation:ye,showOutline:de,cutLine:oe,showDivLine:K,setters:{setContentTypes:U,setOrientation:be,setShowOutline:z,setCutLine:we,setShowDivLine:Z},showCutLine:(Pe?Bt:gt)>1,showDivLine2:_t,middleSections:ka,extraSelected:Qe,onExtraSelect:Gt}),tt&&et?o.jsx("div",{className:"word-table-block__pages",children:et.map((re,Se)=>o.jsx(mo,{orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:Bt,items:re,onRemoveItem:s,contentRef:We=>{je.current[Se]=We},pageNumber:{current:Se+1,total:et.length},pageNumberPosition:Te},Se))}):o.jsx(mo,{orientation:ye,contentTypes:M,cutLine:oe,showOutline:de,showDivLine:K,count:gt,items:N?void 0:r??[],editCells:N?O:void 0,activeCell:pe,onActivateCell:N||f?me:void 0,onRemoveCell:N?Jt:void 0,onRemoveItem:N?void 0:s,onReorder:N?void 0:p,showFillerAdd:!!f,contentRef:ge}),V&&!v&&o.jsxs(Dr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Ma,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(qa,{required:!0,value:_??"",onChange:k,placeholder:L?L+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:te?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(_??"").trim()&&(L??"").trim()&&(re.preventDefault(),k?.(L??""))}})}),o.jsx(Ma,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(qa,{value:w??"",onChange:S,placeholder:B?B+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(w??"").trim()&&(B??"").trim()&&(re.preventDefault(),S?.(B??""))}})})]})]}),!v&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!C&&c&&o.jsx(ie,{size:40,type:"bar",label:R,onClick:c}),!C&&i&&o.jsx(ie,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!C&&o.jsx(ie,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Wt})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[$&&o.jsx(ie,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:$}),!C&&o.jsx(ie,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:jt}),m&&o.jsx(ie,{size:"56",type:"bar",label:m,onClick:()=>V?Ne():Aa(!0),disabled:ne,onDisabledClick:()=>{Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(ie,{size:"56",type:"bar",variant:"main",label:u??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Aa(!1),disabled:Ce,onDisabledClick:ke})]})]}),o.jsx(uo,{message:Oe,type:Re,onClose:Xe})]})}var kk=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ae(kk);function Jc({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var Ak=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ae(Ak);function Ig({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:p,downloadCount:h,onPublisherClick:f,selected:g,onClick:b,onMore:x,titleNode:v,className:C}){const{t:y}=he.useTranslation(),_=v!=null,k=u!=null||m!=null||p!=null||h!=null,w=S=>{!_&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",g?"word-table-button--selected":"",k?"":"word-table-button--no-footer",C),role:"button",tabIndex:0,"aria-label":t,onClick:_?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":y("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Jc,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[v??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),x&&!_&&o.jsx(ie,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:y("common.moreFor",{name:t}),onClick:S=>{S.stopPropagation(),x(S)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?an(r,y):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(pt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(pt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),f?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:an(m,y)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[p!=null&&o.jsx(pt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(p)}),h!=null&&o.jsx(pt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
983
983
|
* @license lucide-react v1.38.0 - ISC
|
|
984
984
|
*
|
|
985
985
|
* This source code is licensed under the ISC license.
|
|
@@ -993,4 +993,4 @@ ${y.badge}`:y.badge:void 0;if(k&&d(y.code))return null;if(!y.badge&&!u)return m(
|
|
|
993
993
|
|
|
994
994
|
/* !important \uBD88\uD544\uC694 \u2014 WordDataUpdatePopup.tsx\uC758 \uC778\uB77C\uC778 width\uB294 pct/isDone/isError\uC77C \uB54C\uB9CC
|
|
995
995
|
\uC124\uC815\uB418\uACE0 \uC774 indeterminate \uD074\uB798\uC2A4\uAC00 \uBD99\uB294 \uC0C1\uD0DC(state==='active' && pct===undefined)\uC5D0\uC11C\uB294
|
|
996
|
-
\uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;ae(jk);function Ek(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Qc({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=he.useTranslation(),s=a==="done",c=a==="pending",d=a==="error",u=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(yd,{size:22,color:"white",strokeWidth:2.5}):d?o.jsx(Dk,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(pt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?o.jsx(pt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||d?`${d?100:u}%`:void 0}})})]})]})}function Og({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=he.useTranslation(),{phase:s,error:c,wordCount:d,imagePage:u,imageDone:m,imageTotal:p,pairPercent:h}=t,g=Ek(s),f=s==="done",b=!!c;function x(w){return b&&g===w?"error":g>w?"done":g===w?"active":"pending"}const v=x(1),C=x(2),y=x(3),_=s==="image-match"&&p?Math.round((m??0)/p*100):void 0,k=l.useMemo(()=>{if(C!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:u??1});if(s==="image-match"&&p)return i("wordData.imageCount",{done:cr(m),total:cr(p)})}},[C,s,u,p,m,i]);return o.jsx(Ta,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(ie,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(ie,{size:56,variant:"main",disabled:!f,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Qc,{icon:o.jsx(fd,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?i("wordData.downloadingCount",{n:cr(d)}):void 0}),o.jsx(Qc,{icon:o.jsx(Bk,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:C,pct:_,subText:k}),o.jsx(Qc,{icon:o.jsx(_d,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?h??0:void 0,subText:void 0})]})})}var Tk=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";ae(Tk);function Fg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=h=>{let g=null;h==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:h==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:h==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:h==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(g),r(h)},c=l.useCallback(()=>{r(null),i(null)},[]),d=l.useCallback(()=>s("noise"),[]),u=l.useCallback(()=>s("short"),[]),m=l.useCallback(()=>s("long"),[]),p=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:d,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:u,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:p,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var Lk=Object.freeze({__proto__:null,Accordion:Hh,ActionCard:ah,Alert:nm,AppHeader:Gh,AudioMeter:Bn,AudioPlayer:Nr,Avatar:lm,Badge:pt,BarChart:jm,BarChartControls:nc,Board:bm,BottomNav:zl,BrandIdentity:Hl,Breadcrumb:dm,BulkBar:km,Button:ie,CORE_VERSION:Lr,Calendar:Hm,CardStep:Gc,ChartLegend:An,ChartSection:Sn,ChartTotal:kr,Checkbox:ac,ChoiceChips:Rb,CircleBadge:am,CodeBox:wm,ColorPicker:pm,CompanyMeta:Cm,ConfirmPopup:Cg,ConfirmStep:Hc,ConfirmWithTextStep:Vc,ContrastFilterPanel:xg,CoreScope:oh,CountTile:hm,CouponInputPopup:yg,DatePicker:Sm,DebugResultLauncher:Fg,DescriptionTooltip:Ua,DeviceSideTable:Om,Dialog:mm,Divider:om,Dropdown:Xt,EffectPartyPopper:Xc,EffectPartyPopperHost:Sg,EmptyState:eh,ErrorState:th,FILTER_ALL_VALUE:St,FileUpload:cm,FilterPanel:ya,FilterSectionInfo:Lo,Footer:Pb,Header:Vl,Icon:He,IconGridMenu:$b,IconRenderer:He,InfoTooltip:va,LandingBottomSticky:Ib,LandingHeader:zb,ListPopup:_g,ListenStep:Fc,Loader:Mo,MARKS:pc,MARK_ICON:mc,MARK_VARIANT:bc,MediaQueryOverrideContext:hn,MenuTooltip:_r,NoiseSettingsTooltip:Rc,NoticeBox:rh,OrderListStep:Wc,PASS_CARD_BG_VARS:Ya,POS_LABEL:fc,PROMO_BANNER_BG_COMPONENTS:hl,PROMO_BANNER_BG_OPTIONS:nh,PROMO_BANNER_BG_VARS:Do,Page:jr,PageTitle:Bg,Pagination:wr,Panel:Dr,PanelGrid:eg,PanelRow:Ma,PanelRowDevice:Qb,PassCard:ql,PassCardBg:Jh,PassCardBgIHAB:Qh,PassCardBgLeftColorGrid:em,PassCardBgTwoCircle:Yl,PaymentPlan:Xh,PersonCard:gm,PhonemeFilterPanel:vg,PhonemeSelectBlock:gg,Popup:Ta,ProgressBar:Pm,ProgressIndicator:cc,PromoBanner:Oh,PromoBannerBgDark:Js,PromoBannerBgDeep:Us,PromoBannerBgDiagonal:al,PromoBannerBgDots:rl,PromoBannerBgInstagram:pl,PromoBannerBgMain:Os,PromoBannerBgNaver:dl,PromoBannerBgOutline:il,PromoBannerBgRadial:el,PromoBannerBgSoft:Hs,PromoBannerBgSoftSub:qs,PromoBannerBgSub:Ws,PromoBannerBgSuccess:ll,PromoBannerBgWarm:Zs,PublicationCard:vm,Radio:Ql,RadioGroup:rm,Rating:um,ReportDocument:Lg,ReportInfoPanel:Mg,RingChart:Mm,SENTENCE_TRAINING_TYPES:Pn,SearchSummary:im,Section:po,SectionHeader:_m,SegmentedControl:Ka,ShortcutBadge:Jl,SideNav:Il,Slider:ic,SoundCompass:tm,SplashLogo:xm,StatChart:$m,SummaryStrip:Tg,TRAINING_TOOLTIP_HOVER_DELAY_MS:wg,Table:Nn,TableFilterPanel:Mn,Tabs:sm,TextBoxTooltip:Po,TextField:qa,Timeline:fm,Toast:uo,Toggle:tc,Toolbar:kn,Tooltip:ja,TooltipInfo:va,TooltipTextBox:Po,TopBanner:Fh,TrainingBlock:Wm,TrainingBlockButton:Dn,TrainingCard:Rg,TrainingCardGroup:Pg,TrainingPagePopup:$a,TrainingPagePopupBottom:Pc,TrainingPagePopupTitle:zc,TrainingResultPopup:Yc,TrainingStep:Xa,TrainingStepAudioPlayer:Nr,TrainingStepBullet:Dc,TrainingStepCard:Lc,TrainingStepConfirm:Fn,TrainingStepConfirmWithText:Hn,TrainingStepListen:Vn,TrainingStepOrderList:Wn,TrainingStepTextBox:Tc,TrainingStepTitle:jc,TrainingTooltip:kg,TrainingWordCard:En,UpdateAlert:$g,WORD_TABLE_PAPER:ho,WORD_TYPE_LABEL:vc,WordDataProvider:Eg,WordDataUpdatePopup:Og,WordImageTooltip:Zc,WordSearchFilterPanel:fg,WordSearchResultBlock:bg,WordTable:mo,WordTableBlock:zg,WordTableButton:Ig,WordTablePopup:pb,WordTableThumbnail:Jc,buildMonthChartData:Bm,cellLabel:gb,cellsForLabels:Nb,clearPassCardBgTheme:Ca,clearPromoBannerBgTheme:At,closeTrainingPopup:ag,companyTypeLabel:Ng,createTrainingScenario:ng,cx:_e,deriveNoiseContexts:ug,derivePassCard:Wl,draftValues:Mb,expandSlashLabel:Ln,formatDuration:Db,getControlDateRange:Em,getPayloadTimestamp:Gn,getPromoBannerBgTheme:zs,getSelectedFromPayload:sg,getSelectedText:lg,getStepPayload:Oc,getSteppedPayload:cg,injectPassCardBgTheme:_a,injectPromoBannerBgTheme:kt,isSelectionCorrect:dg,labelsForSave:bb,markAfterClick:hc,marksForSave:Tn,missesByType:kb,nextFocus:Cb,nextMisses:wb,pageStartIndexes:gc,passCardBgIhabTheme:Zl,passCardBgLeftColorGridTheme:Xl,passCardBgTwoCircleTheme:Ul,printWordTable:Zm,promoBannerBgDarkTheme:Xs,promoBannerBgDeepTheme:Gs,promoBannerBgDiagonalTheme:tl,promoBannerBgDotsTheme:ol,promoBannerBgInstagramTheme:ul,promoBannerBgMainTheme:Is,promoBannerBgNaverTheme:cl,promoBannerBgOutlineTheme:nl,promoBannerBgRadialTheme:Qs,promoBannerBgSoftSubTheme:Ys,promoBannerBgSoftTheme:Fs,promoBannerBgSubTheme:Vs,promoBannerBgSuccessTheme:sl,promoBannerBgWarmTheme:Ks,recommendTables:Sb,regenerateUnpinned:Lb,removeItem:Tb,resolveTrainingItems:rg,resolveTrainingPopupMeta:Ic,reviewCells:hb,reviewSetPlan:Ab,reviewTableName:mb,scoreKey:Br,scoreSheetHeader:fb,shouldConfirmDiscard:Km,splitTrainingVariants:og,summarize:qm,summarizeMisses:yb,tableTrends:_b,toDraft:jb,toTrainingText:ig,togglePin:Eb,uncoveredLabels:Bb,useAnchoredMenu:co,useBarChartControl:rc,useCalendarMonth:oc,useComboboxSuggestions:ec,useFitScale:xc,useSoundCompassExam:Pl,useToastLifecycle:lc,useWordData:jg,useWordTableDisplaySettings:yc,useWordTablePrint:$n,weakItems:xb}),Mk=Object.freeze({__proto__:null});const $k={...Lk,...G4,...Kw,...Mk};exports.Accordion=Hh,exports.ActionCard=ah,exports.Alert=nm,exports.AppHeader=Gh,exports.AudioMeter=Bn,exports.AudioPlayer=Nr,exports.Avatar=lm,exports.Badge=pt,exports.BarChart=jm,exports.BarChartControls=nc,exports.Board=bm,exports.BottomNav=zl,exports.BrandIdentity=Hl,exports.Breadcrumb=dm,exports.BulkBar=km,exports.Button=ie,exports.CACHE_GROUPS=vl,exports.CAPABILITY=Ao,exports.CHOSEONG=Ze,exports.CORE_VERSION=Lr,exports.Calendar=Hm,exports.CardStep=Gc,exports.ChartLegend=An,exports.ChartSection=Sn,exports.ChartTotal=kr,exports.Checkbox=ac,exports.ChoiceChips=Rb,exports.CircleBadge=am,exports.CodeBox=wm,exports.ColorPicker=pm,exports.CompanyMeta=Cm,exports.ConfirmPopup=Cg,exports.ConfirmStep=Hc,exports.ConfirmWithTextStep=Vc,exports.ContrastFilterPanel=xg,exports.CoreScope=oh,exports.CountTile=hm,exports.CouponInputPopup=yg,exports.DEFAULT_LOCALE=bo,exports.DatePicker=Sm,exports.DebugResultLauncher=Fg,exports.DescriptionTooltip=Ua,exports.DeviceSideTable=Om,exports.Dialog=mm,exports.Divider=om,exports.DocumentTitleSuppressContext=gl,exports.Dropdown=Xt,exports.EMPTY_COMPOSITION=fn,exports.EffectPartyPopper=Xc,exports.EffectPartyPopperHost=Sg,exports.EmptyState=eh,exports.ErrorState=th,exports.FILTER_ALL_VALUE=St,exports.FileUpload=cm,exports.FilterPanel=ya,exports.FilterSectionInfo=Lo,exports.Footer=Pb,exports.Header=Vl,exports.I18nProvider=hf,exports.Icon=He,exports.IconGridMenu=$b,exports.IconRenderer=He,exports.InfoTooltip=va,exports.JONGSEONG=mt,exports.JUNGSEONG=ct,exports.LOCALE_STORAGE_KEY=Kn,exports.LONG_STORIES=Va,exports.LandingBottomSticky=Ib,exports.LandingHeader=zb,exports.ListPopup=_g,exports.ListenStep=Fc,exports.Loader=Mo,exports.MARKS=pc,exports.MARK_ICON=mc,exports.MARK_VARIANT=bc,exports.MediaQueryOverrideContext=hn,exports.MenuTooltip=_r,exports.NETWORK_ERROR_MESSAGE=us,exports.NOISE_DATAS=Fa,exports.NO_CODA=ia,exports.NoiseSettingsTooltip=Rc,exports.NoticeBox=rh,exports.ORDER_SETS=Wa,exports.OrderListStep=Wc,exports.PASS_CARD_BG_VARS=Ya,exports.PLAN_FEATURES=Up,exports.PLAN_LIMITS=qp,exports.POS_LABEL=fc,exports.PROMO_BANNER_BG_COMPONENTS=hl,exports.PROMO_BANNER_BG_OPTIONS=nh,exports.PROMO_BANNER_BG_VARS=Do,exports.Page=jr,exports.PageTitle=Bg,exports.Pagination=wr,exports.Panel=Dr,exports.PanelGrid=eg,exports.PanelRow=Ma,exports.PanelRowDevice=Qb,exports.PassCard=ql,exports.PassCardBg=Jh,exports.PassCardBgIHAB=Qh,exports.PassCardBgLeftColorGrid=em,exports.PassCardBgTwoCircle=Yl,exports.PaymentPlan=Xh,exports.PersonCard=gm,exports.PhonemeFilterPanel=vg,exports.PhonemeSelectBlock=gg,exports.Popup=Ta,exports.ProgressBar=Pm,exports.ProgressIndicator=cc,exports.PromoBanner=Oh,exports.PromoBannerBgDark=Js,exports.PromoBannerBgDeep=Us,exports.PromoBannerBgDiagonal=al,exports.PromoBannerBgDots=rl,exports.PromoBannerBgInstagram=pl,exports.PromoBannerBgMain=Os,exports.PromoBannerBgNaver=dl,exports.PromoBannerBgOutline=il,exports.PromoBannerBgRadial=el,exports.PromoBannerBgSoft=Hs,exports.PromoBannerBgSoftSub=qs,exports.PromoBannerBgSub=Ws,exports.PromoBannerBgSuccess=ll,exports.PromoBannerBgWarm=Zs,exports.PublicationCard=vm,exports.Radio=Ql,exports.RadioGroup=rm,exports.Rating=um,exports.ReportDocument=Lg,exports.ReportInfoPanel=Mg,exports.RingChart=Mm,exports.SENTENCE_TRAINING_TYPES=Pn,exports.SHORT_STORIES=Ha,exports.SUPPORTED_LOCALES=Io,exports.SYLLABLE_MIN=sa,exports.SearchSummary=im,exports.Section=po,exports.SectionHeader=_m,exports.SegmentedControl=Ka,exports.ShortcutBadge=Jl,exports.SideNav=Il,exports.Slider=ic,exports.SoundCompass=tm,exports.SplashLogo=xm,exports.StatChart=$m,exports.SummaryStrip=Tg,exports.TIER_RANK=Yp,exports.TOPIC_TYPES=Lp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=wg,exports.TRAINING_TYPES=nn,exports.TRAINING_TYPE_I18N_KEY=Ls,exports.Table=Nn,exports.TableFilterPanel=Mn,exports.Tabs=sm,exports.TextBoxTooltip=Po,exports.TextField=qa,exports.Timeline=fm,exports.Toast=uo,exports.Toggle=tc,exports.Toolbar=kn,exports.Tooltip=ja,exports.TooltipInfo=va,exports.TooltipTextBox=Po,exports.TopBanner=Fh,exports.TrainingBlock=Wm,exports.TrainingBlockButton=Dn,exports.TrainingCard=Rg,exports.TrainingCardGroup=Pg,exports.TrainingPagePopup=$a,exports.TrainingPagePopupBottom=Pc,exports.TrainingPagePopupTitle=zc,exports.TrainingResultPopup=Yc,exports.TrainingStep=Xa,exports.TrainingStepAudioPlayer=Nr,exports.TrainingStepBullet=Dc,exports.TrainingStepCard=Lc,exports.TrainingStepConfirm=Fn,exports.TrainingStepConfirmWithText=Hn,exports.TrainingStepListen=Vn,exports.TrainingStepOrderList=Wn,exports.TrainingStepTextBox=Tc,exports.TrainingStepTitle=jc,exports.TrainingTooltip=kg,exports.TrainingWordCard=En,exports.UpdateAlert=$g,exports.VAP_PAGE_SIZE_OPTIONS=bn,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Xp,exports.WORD_SUGGESTION_EXISTING_ERROR=Qp,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Zp,exports.WORD_TABLE_PAPER=ho,exports.WORD_TYPE_LABEL=vc,exports.WordDataProvider=Eg,exports.WordDataUpdatePopup=Og,exports.WordImageTooltip=Zc,exports.WordSearchFilterPanel=fg,exports.WordSearchResultBlock=bg,exports.WordTable=mo,exports.WordTableBlock=zg,exports.WordTableButton=Ig,exports.WordTablePopup=pb,exports.WordTableThumbnail=Jc,exports.applyFontScale=Ss,exports.applyTheme=ks,exports.buildChangeWholeSyllableProblem=ds,exports.buildDropCompoundProblem=ns,exports.buildDropContrast3Problem=rs,exports.buildDropContrastProblem=os,exports.buildDropFinalConsonantProblem=is,exports.buildGradeSection=wl,exports.buildMonthChartData=Bm,exports.buildMultiPartPosContrast=zi,exports.buildPairIndex=yu,exports.buildPartOfSpeechSection=kl,exports.buildPositionSection=_h,exports.buildRemoveConsonantProblem=ls,exports.buildSelectSection=xh,exports.buildSyllableMaskIndex=cs,exports.buildSyllableSection=vh,exports.buildWordTypeSection=Al,exports.bulkSetImageExistence=uu,exports.cardQuestionTitle=Vu,exports.cellLabel=gb,exports.cellsForLabels=Nb,exports.charToPronValue=jl,exports.checkImageExists=Xo,exports.classifyPairDifficulty=Ai,exports.clearAudioExistsCache=au,exports.clearImageExistenceCache=wi,exports.clearPairIndexCache=$i,exports.clearPassCardBgTheme=Ca,exports.clearPromoBannerBgTheme=At,exports.closeTrainingPopup=ag,exports.companyTypeLabel=Ng,exports.composeSyllable=ma,exports.computeDailySelection=Ns,exports.configureImageResolver=cu,exports.configureNoiseSettingsStore=pp,exports.configurePronunciationResolver=ru,exports.configureStorage=ci,exports.configureTTS=tu,exports.configureTrainingCategories=Ap,exports.convertComposition=Tl,exports.copyText=_s,exports.createDecompCache=ki,exports.createTTSUrlResolver=bp,exports.createTrainingScenario=ng,exports.cx=_e,exports.dateToDb=kp,exports.default=$k,exports.deriveNoiseContexts=ug,exports.derivePassCard=Wl,exports.downloadCsvText=Ku,exports.downloadSound=Rr,exports.draftValues=Mb,exports.ensureTrainingDataLoaded=Ts,exports.escapeCsvField=qu,exports.expandSlashLabel=Ln,exports.fileExists=di,exports.filterContrastCandidates=Pi,exports.finalToPhoneme=Kr,exports.firstChoseongOf=Si,exports.fmtBytes=ch,exports.formatCount=cr,exports.formatDateKo=gp,exports.formatDateLocale=vp,exports.formatDateLongKo=fp,exports.formatDateLongLocale=xp,exports.formatDatetimeKo=_p,exports.formatDuration=Db,exports.formatPhone=yp,exports.formatRelativeTime=tn,exports.formatTimeHM=on,exports.formatYmd=an,exports.getAssetBaseUrl=si,exports.getControlDateRange=Em,exports.getDailySelection=Ep,exports.getElementAnalyser=xi,exports.getElementVolume=_o,exports.getErrorMessage=Jr,exports.getImageExistenceStats=Ir,exports.getImageExistsCached=yi,exports.getImageResolver=Ia,exports.getNoiseBaseUrl=ui,exports.getNoiseFileGain=pi,exports.getPairIndex=oo,exports.getPayloadTimestamp=Gn,exports.getPlanTier=Kp,exports.getPromoBannerBgTheme=zs,exports.getPronunciationResolver=bi,exports.getSavedFontScale=As,exports.getSavedTheme=ws,exports.getSelectedFromPayload=sg,exports.getSelectedText=lg,exports.getSignedOrPublicUrl=Go,exports.getStepPayload=Oc,exports.getSteppedPayload=cg,exports.getTTSFallbackUrlResolver=mi,exports.getTTSUrlResolver=Uo,exports.getTodayKst=en,exports.getTopicTypes=rn,exports.getTrainingPools=Ds,exports.getTrainingTypes=ys,exports.getWordPool=So,exports.hasQuestionWordConstraint=Ru,exports.hasSel=bt,exports.hasStructureContrast=Qo,exports.initFontScale=Dp,exports.initTheme=Bp,exports.injectPassCardBgTheme=_a,exports.injectPromoBannerBgTheme=kt,exports.isAllChoseong=Ni,exports.isManualOnlyType=zu,exports.isNetworkErrorMessage=ps,exports.isSelectionCorrect=dg,exports.isSyllablePattern=Ei,exports.isThisWeekPick=Jp,exports.isTrainingDataLoaded=Tp,exports.isValidQuestionWord=Pu,exports.itemCorrectness=gs,exports.jamoToNamesForSpeech=Wu,exports.labelsForSave=bb,exports.loadGameLeaderboard=up,exports.loadMyGameRanks=dp,exports.loadNoiseSettings=vs,exports.loadTrainingData=Es,exports.logCrossword=tp,exports.logTrainingCompletion=bs,exports.logTrainingTime=ms,exports.lsBytes=xl,exports.markAfterClick=hc,exports.marksForSave=Tn,exports.matchSyllables=io,exports.matchesChoseongSearch=pu,exports.matchesSyllablePattern=Ti,exports.matchesWordQuery=Co,exports.meaningKey=_n,exports.mergeQuestionText=ts,exports.minimalPairDistractors=Or,exports.missesByType=kb,exports.nextFocus=Cb,exports.nextMisses=wb,exports.normalizeDate=wp,exports.officialSoundPath=mp,exports.pageStartIndexes=gc,exports.parseSortValue=Yu,exports.parseSyllable=$e,exports.passCardBgIhabTheme=Zl,exports.passCardBgLeftColorGridTheme=Xl,exports.passCardBgTwoCircleTheme=Ul,exports.patternToComposition=vu,exports.phonemePartsOf=Hu,exports.pickEuRo=Ji,exports.pickEulReul=qi,exports.pickEunNeun=Zi,exports.pickIga=Ui,exports.pickWaGwa=Xi,exports.prewarmImageCache=du,exports.primarySelPart=nr,exports.printWordTable=Zm,exports.promoBannerBgDarkTheme=Xs,exports.promoBannerBgDeepTheme=Gs,exports.promoBannerBgDiagonalTheme=tl,exports.promoBannerBgDotsTheme=ol,exports.promoBannerBgInstagramTheme=ul,exports.promoBannerBgMainTheme=Is,exports.promoBannerBgNaverTheme=cl,exports.promoBannerBgOutlineTheme=nl,exports.promoBannerBgRadialTheme=Qs,exports.promoBannerBgSoftSubTheme=Ys,exports.promoBannerBgSoftTheme=Fs,exports.promoBannerBgSubTheme=Vs,exports.promoBannerBgSuccessTheme=sl,exports.promoBannerBgWarmTheme=Ks,exports.pronToCharValue=El,exports.readLevel=_i,exports.recommendTables=Sb,exports.regenerateUnpinned=Lb,exports.removeItem=Tb,exports.reorderArray=Qi,exports.reportAppliedNoiseSettings=ir,exports.resolveAssetUrl=Wo,exports.resolveSoundPath=$r,exports.resolveTrainingItems=rg,exports.resolveTrainingPopupMeta=Ic,exports.resumeAudioMeter=qo,exports.reviewCells=hb,exports.reviewSetPlan=Ab,exports.reviewTableName=mb,exports.routeElementAudio=xo,exports.sample=ta,exports.saveLocale=uf,exports.saveNoiseSettings=xs,exports.scoreKey=Br,exports.scoreSheetHeader=fb,exports.searchAndRankWords=_u,exports.setAssetBaseUrl=Qd,exports.setCrosswordLogger=ep,exports.setElementVolume=pa,exports.setGameLeaderboardLoader=lp,exports.setGameRanksLoader=sp,exports.setGameScoreSubmitter=ip,exports.setTrainingCompletionLogger=Qu,exports.setTrainingTimeLogger=Ju,exports.setWordPool=Xu,exports.shouldConfirmDiscard=Km,exports.shuffle=Ge,exports.sortToValue=Uu,exports.soundOf=Xr,exports.speak=Zd,exports.splitTrainingVariants=og,exports.stopSpeaking=Xd,exports.submitGameScore=cp,exports.summarize=qm,exports.summarizeMisses=yb,exports.syllMatchesComp=Oa,exports.syllableContrasts=so,exports.syllableLength=wo,exports.syllablePron=as,exports.syllableToFilter=gn,exports.tableTrends=_b,exports.toBase64UrlSafe=hp,exports.toChoseong=Bi,exports.toDraft=jb,exports.toItemResults=fs,exports.toKstHm=Cp,exports.toKstYmd=Da,exports.toStandardPronunciation=Tu,exports.toStorageName=sr,exports.toTrainingText=ig,exports.toUserErrorMessage=Gu,exports.today=jo,exports.toggleAttributeFilter=Ch,exports.togglePin=Eb,exports.uncoveredLabels=Bb,exports.useAnchoredMenu=co,exports.useBarChartControl=rc,exports.useCacheManagement=dh,exports.useCalendarMonth=oc,exports.useComboboxSuggestions=ec,exports.useDailyTrainingSelection=Mh,exports.useDelayedHoverAnchor=Ph,exports.useDeviceManagement=fh,exports.useDocumentTitle=fl,exports.useEscToClose=$l,exports.useFitScale=xc,exports.useFontScale=pn,exports.useHoverAnchor=To,exports.useI18n=pf,exports.useMediaQuery=na,exports.usePagedList=zh,exports.usePasswordChange=lh,exports.useRelativeDay=sh,exports.useSoundCompassExam=Pl,exports.useTablePaging=_l,exports.useTableSort=Cl,exports.useToastLifecycle=lc,exports.useToastState=Cn,exports.useTrainingTypeLabels=Ih,exports.useVisitAllPanel=gh,exports.useVisitHistory=hh,exports.useVisitSchedule=bh,exports.useWindowEvent=gr,exports.useWordAttributeFilterKeys=yl,exports.useWordData=jg,exports.useWordDataStats=uh,exports.useWordMeanings=Rh,exports.useWordTableDisplaySettings=yc,exports.useWordTablePrint=$n,exports.useWordTrainingDataGeneration=Eh,exports.useWordTrainingFilter=jh,exports.validateSyllableSearchInput=xu,exports.valueToJamos=xa,exports.weakItems=xb,exports.withEuRo=$u,exports.withEulReul=Ki,exports.withEunNeun=Lu,exports.withIga=Yi,exports.withWaGwa=Mu,exports.wordContainsChoseong=mu,exports.wordContainsJongseong=gu,exports.wordContainsJungseong=bu,exports.wordHasNoCoda=Di,exports.wordHasSyllableMatching=ji,exports.wrongItems=ap;
|
|
996
|
+
\uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;ae(jk);function Ek(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Qc({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=he.useTranslation(),s=a==="done",c=a==="pending",d=a==="error",u=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(yd,{size:22,color:"white",strokeWidth:2.5}):d?o.jsx(Dk,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(pt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?o.jsx(pt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||d?`${d?100:u}%`:void 0}})})]})]})}function Og({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=he.useTranslation(),{phase:s,error:c,wordCount:d,imagePage:u,imageDone:m,imageTotal:p,pairPercent:h}=t,f=Ek(s),g=s==="done",b=!!c;function x(w){return b&&f===w?"error":f>w?"done":f===w?"active":"pending"}const v=x(1),C=x(2),y=x(3),_=s==="image-match"&&p?Math.round((m??0)/p*100):void 0,k=l.useMemo(()=>{if(C!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:u??1});if(s==="image-match"&&p)return i("wordData.imageCount",{done:cr(m),total:cr(p)})}},[C,s,u,p,m,i]);return o.jsx(Ta,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(ie,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(ie,{size:56,variant:"main",disabled:!g,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Qc,{icon:o.jsx(fd,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?i("wordData.downloadingCount",{n:cr(d)}):void 0}),o.jsx(Qc,{icon:o.jsx(Bk,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:C,pct:_,subText:k}),o.jsx(Qc,{icon:o.jsx(_d,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?h??0:void 0,subText:void 0})]})})}var Tk=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";ae(Tk);function Fg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=h=>{let f=null;h==="noise"?f={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:h==="short"?f={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:h==="long"?f={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:h==="order"&&(f={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(f),r(h)},c=l.useCallback(()=>{r(null),i(null)},[]),d=l.useCallback(()=>s("noise"),[]),u=l.useCallback(()=>s("short"),[]),m=l.useCallback(()=>s("long"),[]),p=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:d,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:u,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:p,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var Lk=Object.freeze({__proto__:null,Accordion:Hh,ActionCard:ah,Alert:nm,AppHeader:Gh,AudioMeter:Nn,AudioPlayer:Nr,Avatar:lm,Badge:pt,BarChart:jm,BarChartControls:nc,Board:bm,BottomNav:zl,BrandIdentity:Hl,Breadcrumb:dm,BulkBar:km,Button:ie,CORE_VERSION:Lr,Calendar:Hm,CardStep:Gc,ChartLegend:Sn,ChartSection:Bn,ChartTotal:kr,Checkbox:ac,ChoiceChips:Rb,CircleBadge:am,CodeBox:wm,ColorPicker:pm,CompanyMeta:Cm,ConfirmPopup:Cg,ConfirmStep:Hc,ConfirmWithTextStep:Vc,ContrastFilterPanel:xg,CoreScope:oh,CountTile:hm,CouponInputPopup:yg,DatePicker:Sm,DebugResultLauncher:Fg,DescriptionTooltip:Ua,DeviceSideTable:Om,Dialog:mm,Divider:om,Dropdown:Xt,EffectPartyPopper:Xc,EffectPartyPopperHost:Sg,EmptyState:eh,ErrorState:th,FILTER_ALL_VALUE:St,FileUpload:cm,FilterPanel:ya,FilterSectionInfo:Lo,Footer:Pb,Header:Vl,Icon:He,IconGridMenu:$b,IconRenderer:He,InfoTooltip:va,LandingBottomSticky:Ib,LandingHeader:zb,ListPopup:_g,ListenStep:Fc,Loader:Mo,MARKS:pc,MARK_ICON:mc,MARK_VARIANT:bc,MediaQueryOverrideContext:mn,MenuTooltip:_r,NoiseSettingsTooltip:Rc,NoticeBox:rh,OrderListStep:Wc,PASS_CARD_BG_VARS:Ya,POS_LABEL:fc,PROMO_BANNER_BG_COMPONENTS:hl,PROMO_BANNER_BG_OPTIONS:nh,PROMO_BANNER_BG_VARS:Do,Page:jr,PageTitle:Bg,Pagination:wr,Panel:Dr,PanelGrid:eg,PanelRow:Ma,PanelRowDevice:Qb,PassCard:ql,PassCardBg:Jh,PassCardBgIHAB:Qh,PassCardBgLeftColorGrid:em,PassCardBgTwoCircle:Yl,PaymentPlan:Xh,PersonCard:gm,PhonemeFilterPanel:vg,PhonemeSelectBlock:gg,Popup:Ta,ProgressBar:Pm,ProgressIndicator:cc,PromoBanner:Oh,PromoBannerBgDark:Js,PromoBannerBgDeep:Us,PromoBannerBgDiagonal:al,PromoBannerBgDots:rl,PromoBannerBgInstagram:pl,PromoBannerBgMain:Os,PromoBannerBgNaver:dl,PromoBannerBgOutline:il,PromoBannerBgRadial:el,PromoBannerBgSoft:Hs,PromoBannerBgSoftSub:qs,PromoBannerBgSub:Ws,PromoBannerBgSuccess:ll,PromoBannerBgWarm:Zs,PublicationCard:vm,Radio:Ql,RadioGroup:rm,Rating:um,ReportDocument:Lg,ReportInfoPanel:Mg,RingChart:Mm,SENTENCE_TRAINING_TYPES:zn,SearchSummary:im,Section:po,SectionHeader:_m,SegmentedControl:Ka,ShortcutBadge:Jl,SideNav:Il,Slider:ic,SoundCompass:tm,SplashLogo:xm,StatChart:$m,SummaryStrip:Tg,TRAINING_TOOLTIP_HOVER_DELAY_MS:wg,Table:Dn,TableFilterPanel:$n,Tabs:sm,TextBoxTooltip:Po,TextField:qa,Timeline:fm,Toast:uo,Toggle:tc,Toolbar:An,Tooltip:ja,TooltipInfo:va,TooltipTextBox:Po,TopBanner:Fh,TrainingBlock:Wm,TrainingBlockButton:jn,TrainingCard:Rg,TrainingCardGroup:Pg,TrainingPagePopup:$a,TrainingPagePopupBottom:Pc,TrainingPagePopupTitle:zc,TrainingResultPopup:Yc,TrainingStep:Xa,TrainingStepAudioPlayer:Nr,TrainingStepBullet:Dc,TrainingStepCard:Lc,TrainingStepConfirm:Hn,TrainingStepConfirmWithText:Vn,TrainingStepListen:Wn,TrainingStepOrderList:Gn,TrainingStepTextBox:Tc,TrainingStepTitle:jc,TrainingTooltip:kg,TrainingWordCard:Tn,UpdateAlert:$g,WORD_TABLE_PAPER:ho,WORD_TYPE_LABEL:vc,WordDataProvider:Eg,WordDataUpdatePopup:Og,WordImageTooltip:Zc,WordSearchFilterPanel:fg,WordSearchResultBlock:bg,WordTable:mo,WordTableBlock:zg,WordTableButton:Ig,WordTablePopup:pb,WordTableThumbnail:Jc,buildMonthChartData:Bm,cellLabel:gb,cellsForLabels:Nb,clearPassCardBgTheme:Ca,clearPromoBannerBgTheme:At,closeTrainingPopup:ag,companyTypeLabel:Ng,createTrainingScenario:ng,cx:_e,deriveNoiseContexts:ug,derivePassCard:Wl,draftValues:Mb,expandSlashLabel:Mn,formatDuration:Db,getControlDateRange:Em,getPayloadTimestamp:Un,getPromoBannerBgTheme:zs,getSelectedFromPayload:sg,getSelectedText:lg,getStepPayload:Oc,getSteppedPayload:cg,injectPassCardBgTheme:_a,injectPromoBannerBgTheme:kt,isSelectionCorrect:dg,labelsForSave:bb,markAfterClick:hc,marksForSave:Ln,missesByType:kb,nextFocus:Cb,nextMisses:wb,pageStartIndexes:gc,passCardBgIhabTheme:Zl,passCardBgLeftColorGridTheme:Xl,passCardBgTwoCircleTheme:Ul,printWordTable:Zm,promoBannerBgDarkTheme:Xs,promoBannerBgDeepTheme:Gs,promoBannerBgDiagonalTheme:tl,promoBannerBgDotsTheme:ol,promoBannerBgInstagramTheme:ul,promoBannerBgMainTheme:Is,promoBannerBgNaverTheme:cl,promoBannerBgOutlineTheme:nl,promoBannerBgRadialTheme:Qs,promoBannerBgSoftSubTheme:Ys,promoBannerBgSoftTheme:Fs,promoBannerBgSubTheme:Vs,promoBannerBgSuccessTheme:sl,promoBannerBgWarmTheme:Ks,recommendTables:Sb,regenerateUnpinned:Lb,removeItem:Tb,resolveTrainingItems:rg,resolveTrainingPopupMeta:Ic,reviewCells:hb,reviewSetPlan:Ab,reviewTableName:mb,scoreKey:Br,scoreSheetHeader:fb,shouldConfirmDiscard:Km,splitTrainingVariants:og,summarize:qm,summarizeMisses:yb,tableTrends:_b,toDraft:jb,toTrainingText:ig,togglePin:Eb,uncoveredLabels:Bb,useAnchoredMenu:co,useBarChartControl:rc,useCalendarMonth:oc,useComboboxSuggestions:ec,useFitScale:xc,useSoundCompassExam:Pl,useToastLifecycle:lc,useWordData:jg,useWordTableDisplaySettings:yc,useWordTablePrint:Rn,weakItems:xb}),Mk=Object.freeze({__proto__:null});const $k={...Lk,...G4,...Kw,...Mk};exports.Accordion=Hh,exports.ActionCard=ah,exports.Alert=nm,exports.AppHeader=Gh,exports.AudioMeter=Nn,exports.AudioPlayer=Nr,exports.Avatar=lm,exports.Badge=pt,exports.BarChart=jm,exports.BarChartControls=nc,exports.Board=bm,exports.BottomNav=zl,exports.BrandIdentity=Hl,exports.Breadcrumb=dm,exports.BulkBar=km,exports.Button=ie,exports.CACHE_GROUPS=vl,exports.CAPABILITY=Ao,exports.CHOSEONG=Ze,exports.CORE_VERSION=Lr,exports.Calendar=Hm,exports.CardStep=Gc,exports.ChartLegend=Sn,exports.ChartSection=Bn,exports.ChartTotal=kr,exports.Checkbox=ac,exports.ChoiceChips=Rb,exports.CircleBadge=am,exports.CodeBox=wm,exports.ColorPicker=pm,exports.CompanyMeta=Cm,exports.ConfirmPopup=Cg,exports.ConfirmStep=Hc,exports.ConfirmWithTextStep=Vc,exports.ContrastFilterPanel=xg,exports.CoreScope=oh,exports.CountTile=hm,exports.CouponInputPopup=yg,exports.DEFAULT_LOCALE=bo,exports.DatePicker=Sm,exports.DebugResultLauncher=Fg,exports.DescriptionTooltip=Ua,exports.DeviceSideTable=Om,exports.Dialog=mm,exports.Divider=om,exports.DocumentTitleSuppressContext=gl,exports.Dropdown=Xt,exports.EMPTY_COMPOSITION=vn,exports.EffectPartyPopper=Xc,exports.EffectPartyPopperHost=Sg,exports.EmptyState=eh,exports.ErrorState=th,exports.FILTER_ALL_VALUE=St,exports.FileUpload=cm,exports.FilterPanel=ya,exports.FilterSectionInfo=Lo,exports.Footer=Pb,exports.Header=Vl,exports.I18nProvider=hf,exports.Icon=He,exports.IconGridMenu=$b,exports.IconRenderer=He,exports.InfoTooltip=va,exports.JONGSEONG=mt,exports.JUNGSEONG=ct,exports.LOCALE_STORAGE_KEY=Zn,exports.LONG_STORIES=Va,exports.LandingBottomSticky=Ib,exports.LandingHeader=zb,exports.ListPopup=_g,exports.ListenStep=Fc,exports.Loader=Mo,exports.MARKS=pc,exports.MARK_ICON=mc,exports.MARK_VARIANT=bc,exports.MediaQueryOverrideContext=mn,exports.MenuTooltip=_r,exports.NETWORK_ERROR_MESSAGE=us,exports.NOISE_DATAS=Fa,exports.NO_CODA=ia,exports.NoiseSettingsTooltip=Rc,exports.NoticeBox=rh,exports.ORDER_SETS=Wa,exports.OrderListStep=Wc,exports.PASS_CARD_BG_VARS=Ya,exports.PLAN_FEATURES=Up,exports.PLAN_LIMITS=qp,exports.POS_LABEL=fc,exports.PROMO_BANNER_BG_COMPONENTS=hl,exports.PROMO_BANNER_BG_OPTIONS=nh,exports.PROMO_BANNER_BG_VARS=Do,exports.Page=jr,exports.PageTitle=Bg,exports.Pagination=wr,exports.Panel=Dr,exports.PanelGrid=eg,exports.PanelRow=Ma,exports.PanelRowDevice=Qb,exports.PassCard=ql,exports.PassCardBg=Jh,exports.PassCardBgIHAB=Qh,exports.PassCardBgLeftColorGrid=em,exports.PassCardBgTwoCircle=Yl,exports.PaymentPlan=Xh,exports.PersonCard=gm,exports.PhonemeFilterPanel=vg,exports.PhonemeSelectBlock=gg,exports.Popup=Ta,exports.ProgressBar=Pm,exports.ProgressIndicator=cc,exports.PromoBanner=Oh,exports.PromoBannerBgDark=Js,exports.PromoBannerBgDeep=Us,exports.PromoBannerBgDiagonal=al,exports.PromoBannerBgDots=rl,exports.PromoBannerBgInstagram=pl,exports.PromoBannerBgMain=Os,exports.PromoBannerBgNaver=dl,exports.PromoBannerBgOutline=il,exports.PromoBannerBgRadial=el,exports.PromoBannerBgSoft=Hs,exports.PromoBannerBgSoftSub=qs,exports.PromoBannerBgSub=Ws,exports.PromoBannerBgSuccess=ll,exports.PromoBannerBgWarm=Zs,exports.PublicationCard=vm,exports.Radio=Ql,exports.RadioGroup=rm,exports.Rating=um,exports.ReportDocument=Lg,exports.ReportInfoPanel=Mg,exports.RingChart=Mm,exports.SENTENCE_TRAINING_TYPES=zn,exports.SHORT_STORIES=Ha,exports.SUPPORTED_LOCALES=Io,exports.SYLLABLE_MIN=sa,exports.SearchSummary=im,exports.Section=po,exports.SectionHeader=_m,exports.SegmentedControl=Ka,exports.ShortcutBadge=Jl,exports.SideNav=Il,exports.Slider=ic,exports.SoundCompass=tm,exports.SplashLogo=xm,exports.StatChart=$m,exports.SummaryStrip=Tg,exports.TIER_RANK=Yp,exports.TOPIC_TYPES=Lp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=wg,exports.TRAINING_TYPES=sn,exports.TRAINING_TYPE_I18N_KEY=Ls,exports.Table=Dn,exports.TableFilterPanel=$n,exports.Tabs=sm,exports.TextBoxTooltip=Po,exports.TextField=qa,exports.Timeline=fm,exports.Toast=uo,exports.Toggle=tc,exports.Toolbar=An,exports.Tooltip=ja,exports.TooltipInfo=va,exports.TooltipTextBox=Po,exports.TopBanner=Fh,exports.TrainingBlock=Wm,exports.TrainingBlockButton=jn,exports.TrainingCard=Rg,exports.TrainingCardGroup=Pg,exports.TrainingPagePopup=$a,exports.TrainingPagePopupBottom=Pc,exports.TrainingPagePopupTitle=zc,exports.TrainingResultPopup=Yc,exports.TrainingStep=Xa,exports.TrainingStepAudioPlayer=Nr,exports.TrainingStepBullet=Dc,exports.TrainingStepCard=Lc,exports.TrainingStepConfirm=Hn,exports.TrainingStepConfirmWithText=Vn,exports.TrainingStepListen=Wn,exports.TrainingStepOrderList=Gn,exports.TrainingStepTextBox=Tc,exports.TrainingStepTitle=jc,exports.TrainingTooltip=kg,exports.TrainingWordCard=Tn,exports.UpdateAlert=$g,exports.VAP_PAGE_SIZE_OPTIONS=gn,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Xp,exports.WORD_SUGGESTION_EXISTING_ERROR=Qp,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Zp,exports.WORD_TABLE_PAPER=ho,exports.WORD_TYPE_LABEL=vc,exports.WordDataProvider=Eg,exports.WordDataUpdatePopup=Og,exports.WordImageTooltip=Zc,exports.WordSearchFilterPanel=fg,exports.WordSearchResultBlock=bg,exports.WordTable=mo,exports.WordTableBlock=zg,exports.WordTableButton=Ig,exports.WordTablePopup=pb,exports.WordTableThumbnail=Jc,exports.applyFontScale=Ss,exports.applyTheme=ks,exports.buildChangeWholeSyllableProblem=ds,exports.buildDropCompoundProblem=ns,exports.buildDropContrast3Problem=rs,exports.buildDropContrastProblem=os,exports.buildDropFinalConsonantProblem=is,exports.buildGradeSection=wl,exports.buildMonthChartData=Bm,exports.buildMultiPartPosContrast=zi,exports.buildPairIndex=yu,exports.buildPartOfSpeechSection=kl,exports.buildPositionSection=_h,exports.buildRemoveConsonantProblem=ls,exports.buildSelectSection=xh,exports.buildSyllableMaskIndex=cs,exports.buildSyllableSection=vh,exports.buildWordTypeSection=Al,exports.bulkSetImageExistence=uu,exports.cardQuestionTitle=Vu,exports.cellLabel=gb,exports.cellsForLabels=Nb,exports.charToPronValue=jl,exports.checkImageExists=Xo,exports.classifyPairDifficulty=Ai,exports.clearAudioExistsCache=au,exports.clearImageExistenceCache=wi,exports.clearPairIndexCache=$i,exports.clearPassCardBgTheme=Ca,exports.clearPromoBannerBgTheme=At,exports.closeTrainingPopup=ag,exports.companyTypeLabel=Ng,exports.composeSyllable=ma,exports.computeDailySelection=Ns,exports.configureImageResolver=cu,exports.configureNoiseSettingsStore=pp,exports.configurePronunciationResolver=ru,exports.configureStorage=di,exports.configureTTS=tu,exports.configureTrainingCategories=Ap,exports.convertComposition=Tl,exports.copyText=_s,exports.createDecompCache=ki,exports.createTTSUrlResolver=bp,exports.createTrainingScenario=ng,exports.cx=_e,exports.dateToDb=kp,exports.default=$k,exports.deriveNoiseContexts=ug,exports.derivePassCard=Wl,exports.downloadCsvText=Ku,exports.downloadSound=Rr,exports.draftValues=Mb,exports.ensureTrainingDataLoaded=Ts,exports.escapeCsvField=qu,exports.expandSlashLabel=Mn,exports.fileExists=ui,exports.filterContrastCandidates=Pi,exports.finalToPhoneme=Zr,exports.firstChoseongOf=Si,exports.fmtBytes=ch,exports.formatCount=cr,exports.formatDateKo=gp,exports.formatDateLocale=vp,exports.formatDateLongKo=fp,exports.formatDateLongLocale=xp,exports.formatDatetimeKo=_p,exports.formatDuration=Db,exports.formatPhone=yp,exports.formatRelativeTime=an,exports.formatTimeHM=rn,exports.formatYmd=on,exports.getAssetBaseUrl=li,exports.getControlDateRange=Em,exports.getDailySelection=Ep,exports.getElementAnalyser=xi,exports.getElementVolume=_o,exports.getErrorMessage=Qr,exports.getImageExistenceStats=Or,exports.getImageExistsCached=yi,exports.getImageResolver=Ia,exports.getNoiseBaseUrl=pi,exports.getNoiseFileGain=Pr,exports.getPairIndex=oo,exports.getPayloadTimestamp=Un,exports.getPlanTier=Kp,exports.getPromoBannerBgTheme=zs,exports.getPronunciationResolver=bi,exports.getSavedFontScale=As,exports.getSavedTheme=ws,exports.getSelectedFromPayload=sg,exports.getSelectedText=lg,exports.getSignedOrPublicUrl=Go,exports.getStepPayload=Oc,exports.getSteppedPayload=cg,exports.getTTSFallbackUrlResolver=mi,exports.getTTSUrlResolver=Uo,exports.getTodayKst=tn,exports.getTopicTypes=nn,exports.getTrainingPools=Ds,exports.getTrainingTypes=ys,exports.getWordPool=So,exports.hasQuestionWordConstraint=Ru,exports.hasSel=bt,exports.hasStructureContrast=Qo,exports.initFontScale=Dp,exports.initTheme=Bp,exports.injectPassCardBgTheme=_a,exports.injectPromoBannerBgTheme=kt,exports.isAllChoseong=Ni,exports.isManualOnlyType=zu,exports.isNetworkErrorMessage=ps,exports.isSelectionCorrect=dg,exports.isSyllablePattern=Ei,exports.isThisWeekPick=Jp,exports.isTrainingDataLoaded=Tp,exports.isValidQuestionWord=Pu,exports.itemCorrectness=gs,exports.jamoToNamesForSpeech=Wu,exports.labelsForSave=bb,exports.loadGameLeaderboard=up,exports.loadMyGameRanks=dp,exports.loadNoiseSettings=vs,exports.loadTrainingData=Es,exports.logCrossword=tp,exports.logTrainingCompletion=bs,exports.logTrainingTime=ms,exports.lsBytes=xl,exports.markAfterClick=hc,exports.marksForSave=Ln,exports.matchSyllables=io,exports.matchesChoseongSearch=pu,exports.matchesSyllablePattern=Ti,exports.matchesWordQuery=Co,exports.meaningKey=Cn,exports.mergeQuestionText=ts,exports.minimalPairDistractors=Fr,exports.missesByType=kb,exports.nextFocus=Cb,exports.nextMisses=wb,exports.normalizeDate=wp,exports.officialSoundPath=mp,exports.pageStartIndexes=gc,exports.parseSortValue=Yu,exports.parseSyllable=$e,exports.passCardBgIhabTheme=Zl,exports.passCardBgLeftColorGridTheme=Xl,exports.passCardBgTwoCircleTheme=Ul,exports.patternToComposition=vu,exports.phonemePartsOf=Hu,exports.pickEuRo=Ji,exports.pickEulReul=qi,exports.pickEunNeun=Zi,exports.pickIga=Ui,exports.pickWaGwa=Xi,exports.prewarmImageCache=du,exports.primarySelPart=nr,exports.printWordTable=Zm,exports.promoBannerBgDarkTheme=Xs,exports.promoBannerBgDeepTheme=Gs,exports.promoBannerBgDiagonalTheme=tl,exports.promoBannerBgDotsTheme=ol,exports.promoBannerBgInstagramTheme=ul,exports.promoBannerBgMainTheme=Is,exports.promoBannerBgNaverTheme=cl,exports.promoBannerBgOutlineTheme=nl,exports.promoBannerBgRadialTheme=Qs,exports.promoBannerBgSoftSubTheme=Ys,exports.promoBannerBgSoftTheme=Fs,exports.promoBannerBgSubTheme=Vs,exports.promoBannerBgSuccessTheme=sl,exports.promoBannerBgWarmTheme=Ks,exports.pronToCharValue=El,exports.readLevel=_i,exports.recommendTables=Sb,exports.regenerateUnpinned=Lb,exports.removeItem=Tb,exports.reorderArray=Qi,exports.reportAppliedNoiseSettings=ir,exports.resolveAssetUrl=Wo,exports.resolveSoundPath=$r,exports.resolveTrainingItems=rg,exports.resolveTrainingPopupMeta=Ic,exports.resumeAudioMeter=qo,exports.reviewCells=hb,exports.reviewSetPlan=Ab,exports.reviewTableName=mb,exports.routeElementAudio=xo,exports.sample=ta,exports.saveLocale=uf,exports.saveNoiseSettings=xs,exports.scoreKey=Br,exports.scoreSheetHeader=fb,exports.searchAndRankWords=_u,exports.setAssetBaseUrl=Qd,exports.setCrosswordLogger=ep,exports.setElementVolume=pa,exports.setGameLeaderboardLoader=lp,exports.setGameRanksLoader=sp,exports.setGameScoreSubmitter=ip,exports.setTrainingCompletionLogger=Qu,exports.setTrainingTimeLogger=Ju,exports.setWordPool=Xu,exports.shouldConfirmDiscard=Km,exports.shuffle=Ge,exports.sortToValue=Uu,exports.soundOf=Jr,exports.speak=Zd,exports.splitTrainingVariants=og,exports.stopSpeaking=Xd,exports.submitGameScore=cp,exports.summarize=qm,exports.summarizeMisses=yb,exports.syllMatchesComp=Oa,exports.syllableContrasts=so,exports.syllableLength=wo,exports.syllablePron=as,exports.syllableToFilter=fn,exports.tableTrends=_b,exports.toBase64UrlSafe=hp,exports.toChoseong=Bi,exports.toDraft=jb,exports.toItemResults=fs,exports.toKstHm=Cp,exports.toKstYmd=Da,exports.toStandardPronunciation=Tu,exports.toStorageName=sr,exports.toTrainingText=ig,exports.toUserErrorMessage=Gu,exports.today=jo,exports.toggleAttributeFilter=Ch,exports.togglePin=Eb,exports.uncoveredLabels=Bb,exports.useAnchoredMenu=co,exports.useBarChartControl=rc,exports.useCacheManagement=dh,exports.useCalendarMonth=oc,exports.useComboboxSuggestions=ec,exports.useDailyTrainingSelection=Mh,exports.useDelayedHoverAnchor=Ph,exports.useDeviceManagement=fh,exports.useDocumentTitle=fl,exports.useEscToClose=$l,exports.useFitScale=xc,exports.useFontScale=hn,exports.useHoverAnchor=To,exports.useI18n=pf,exports.useMediaQuery=na,exports.usePagedList=zh,exports.usePasswordChange=lh,exports.useRelativeDay=sh,exports.useSoundCompassExam=Pl,exports.useTablePaging=_l,exports.useTableSort=Cl,exports.useToastLifecycle=lc,exports.useToastState=yn,exports.useTrainingTypeLabels=Ih,exports.useVisitAllPanel=gh,exports.useVisitHistory=hh,exports.useVisitSchedule=bh,exports.useWindowEvent=gr,exports.useWordAttributeFilterKeys=yl,exports.useWordData=jg,exports.useWordDataStats=uh,exports.useWordMeanings=Rh,exports.useWordTableDisplaySettings=yc,exports.useWordTablePrint=Rn,exports.useWordTrainingDataGeneration=Eh,exports.useWordTrainingFilter=jh,exports.validateSyllableSearchInput=xu,exports.valueToJamos=xa,exports.weakItems=xb,exports.withEuRo=$u,exports.withEulReul=Ki,exports.withEunNeun=Lu,exports.withIga=Yi,exports.withWaGwa=Mu,exports.wordContainsChoseong=mu,exports.wordContainsJongseong=gu,exports.wordContainsJungseong=bu,exports.wordHasNoCoda=Di,exports.wordHasSyllableMatching=ji,exports.wrongItems=ap;
|