@ihabdevteam/core 0.393.0 → 0.394.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 +52 -0
- package/dist/components.cjs.js +2 -2
- 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 +2 -2
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/components/Popup/Popup.css +19 -3
- package/dist/packages/core/src/components/Popup/Popup.js +1 -1
- 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
package/dist/components.cjs.js
CHANGED
|
@@ -819,9 +819,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
819
819
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
820
820
|
\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"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",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",bizNoValue:"526-81-02926"},Nb={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Eb={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"},Db={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Sb={ariaLabel:"\uC120\uD0DD \uD0ED"},jb={ariaLabel:"\uD0ED"},Tb={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Mb={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Lb={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},$b={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},Rb={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"}},Pb={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Ib={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.",runs:"{{count}}\uD310"},Fb={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},Ob={viewWords:"\uB0B1\uB9D0"},zb={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Wb={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Hb={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Vb={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},qb={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Ub={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Gb={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Kb={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Yb={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Zb={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Xb={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Jb={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Qb={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},eg={common:Qf,calendar:eb,passCard:tb,rating:nb,colorPicker:ab,dropdown:rb,accordion:ob,header:sb,nav:lb,settings:ib,usage:ub,account:cb,training:db,customers:pb,payment:hb,coupons:mb,visits:Cb,trainingType:fb,myWordTable:bb,keyWords:gb,wordTable:yb,wordSearch:vb,wordPrint:_b,topic:xb,device:wb,manager:Bb,wordPairs:kb,footer:Ab,date:Nb,wordData:Eb,textField:Db,segmentedControl:Sb,tabs:jb,fileUpload:Tb,avatar:Mb,myHomework:Lb,trainingStatus:$b,store:Rb,progress:Pb,trainingMiss:Ib,table:Fb,wordScore:Ob,topBanner:zb,datePicker:Wb,report:Hb,tooltip:Vb,phonemeProfile:qb,bulkBar:Ub,debug:Gb,badge:Kb,loader:Yb,soundCompass:Zb,breadcrumb:Xb,board:Jb,promoBannerBg:Qb},tg={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",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",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},ng={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekLabel:"Week {{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},ag={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",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},rg={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},og={selected:"selected"},sg={placeholder:"Select"},lg={collapse:"Collapse",expand:"Expand"},ig={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},ug={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},cg={cache:{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"}}}},dg={couponButton:"Enter Coupon"},pg={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},hg={settings:"Settings",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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",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",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},mg={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"},consent:{record:"Record consent",kinds:"Kinds given",methodTitle:"How it was given",sourceTitle:"Who gave it",day:"Date given",note:"Note",notePlaceholder:"Referring clinic and the like \u2014 do not write anything sensitive",submit:"Save",allTaken:"All three kinds are already on record. Revoke one first to record it again.",kind:{personal:"General personal data",sensitive:"Sensitive data (hearing, diagnosis)",marketing:"Marketing messages"},method:{paper:"On paper",verbal:"Spoken",electronic:"Electronic"},source:{self:"The customer",guardian:"A guardian",referral:"A referring body"}}},Cg={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},fg={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},bg={showN:"Show {{n}}"},gg={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."}},yg={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},vg={title:"Key Words",empty:"No key words available."},_g={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",caption:"Form",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",copyItem:"Duplicate",copyItemAria:"Duplicate the word in cell {{n}}",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"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_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"},thumbMore:"+{{count}}"},xg={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",gradeNone:"None",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",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size"},wg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Bg={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"}},kg={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Ag={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},Ng={phonemeSelect:{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}}",countLabel:"Number of phonemes",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:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlyHighUsage:"High-use words only",onlySameStructure:"Only same phoneme structure"},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."]},Eg={lead:`IHAB builds trust
|
|
821
821
|
through sound
|
|
822
|
-
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"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Dg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Sg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},jg={clearAriaLabel:"Clear input"},Tg={ariaLabel:"Select tab"},Mg={ariaLabel:"Tabs"},Lg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},$g={ariaLabel:"User avatar"},Rg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Pg={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},Ig={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"}},Fg={steps:"Step {{current}} of {{total}}"},Og={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},zg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Wg={viewWords:"Words"},Hg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Vg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},qg={previewRegion:"Report preview \u2014 scrollable sideways"},Ug={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Gg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Kg={clearSelection:"Clear selection"},Yg={showResult:"Show {{type}} result"},Zg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Xg={loading:"Loading"},Jg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Qg={ariaLabel:"Breadcrumb"},ey={empty:"No items yet."},ty={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},ny={common:tg,calendar:ng,passCard:ag,rating:rg,colorPicker:og,dropdown:sg,accordion:lg,header:ig,nav:ug,settings:cg,usage:dg,account:pg,training:hg,customers:mg,payment:Cg,coupons:fg,visits:bg,trainingType:gg,myWordTable:yg,keyWords:vg,wordTable:_g,wordSearch:xg,wordPrint:wg,topic:Bg,device:kg,manager:Ag,wordPairs:Ng,footer:Eg,date:Dg,wordData:Sg,textField:jg,segmentedControl:Tg,tabs:Mg,fileUpload:Lg,avatar:$g,myHomework:Rg,trainingStatus:Pg,store:Ig,progress:Fg,trainingMiss:Og,table:zg,wordScore:Wg,topBanner:Hg,datePicker:Vg,report:qg,tooltip:Ug,phonemeProfile:Gg,bulkBar:Kg,debug:Yg,badge:Zg,loader:Xg,soundCompass:Jg,breadcrumb:Qg,board:ey,promoBannerBg:ty};const ay="0.393.0",ry=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],mo="ko",oy="ihab_display_language";function Jl(){if(typeof window>"u")return mo;try{const e=localStorage.getItem(oy);if(e&&ry.some(t=>t.code===e))return e}catch{}return mo}function Ql(e){try{document.documentElement.lang=e}catch{}}Vt.on("languageChanged",Ql),Ql(Jl()),Vt.use(_e.initReactI18next).init({resources:{ko:{translation:eg},en:{translation:ny}},lng:Jl(),fallbackLng:mo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const sy=new Map;try{Vt.store?.on?.("added",()=>sy.clear())}catch{}let pr=null,ei=null,ti=null;function ly(){const e=zl();if(e&&e.entries.length>0){const t=yf();if(pr&&ei===e&&ti===t)return pr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return pr=r,ei=e,ti=t,pr}return[]}new Proxy([],{get(e,t){const a=ly(),r=a[t];return typeof r=="function"?r.bind(a):r}});function iy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function uy(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&iy(r.attrValue)&&(r.keepAttr=!1)};ia.addHook("uponSanitizeAttribute",t);try{return ia.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{ia.removeHook("uponSanitizeAttribute",t)}}function cy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let m=e;p&&(e.startsWith("/")?m=eo(e):/^(Logo|Symbol)/i.test(p)?m=eo(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function m(){try{let g=await fetch(r);g.ok||(g=await fetch(r));const y=g.headers.get("content-type")||"";if(p)return;if(y.includes("svg")){i("mask");return}if(y.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const _=uy(f);if(!_){i("none");return}c(_),i("inline");return}i("none")}catch{p||i("none")}}return m(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,m=null;return l==="mask"&&r&&fetch(r).then(g=>{if(!g.ok)throw new Error("fetch failed");return g.blob()}).then(g=>{p||(m=URL.createObjectURL(g),h(m))}).catch(()=>{p||i("img")}),()=>{p=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function nt(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,y=JC(g),{iconToUse:C,mode:f,svgText:_,blobUrl:b}=cy(g),B=(w,D={})=>n.jsx("span",{className:d,style:u,...D,children:w}),v=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(w,D={})=>n.jsx("img",{src:w,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...D,style:v?{...D.style,...v}:D.style});if(!t)return null;if(typeof t!="string")return B(t);if(t==="none")return B(n.jsx("span",{className:m,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(y)try{return B(o.createElement(y,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const w={"--icon-url":b?`url(${b})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return B(n.jsx("span",{className:p,style:w}),{"aria-hidden":"true"})}return f==="img"?B(N(C,{onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?B(n.jsx("span",{className:m,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):B(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return N(eo(t),{style:u,onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,E=`<svg width="${x}" height="${x}" 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 B(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:E}}),{"aria-hidden":"true"})}function ni(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function dy({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=ni(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(nt,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(nt,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function py({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=_e.useTranslation(),{pending:u,press:c}=ni(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(nt,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(nt,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function hy({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,h=`${c}-desc`,p=`${c}-cta`,m=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${h} ${p}`,onClick:m,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(nt,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:h,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(nt,{icon:"arrow-right",size:18})})]})]})})}function my({as:e="div",className:t="",children:a,storage:r,...s}){r&&F1({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 l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function Cy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function Co(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(Nn)).filter(Cy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const Nn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',fo=new WeakMap;function bo(e,t){e&&fo.set(e,t)}function go(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!fo.has(r);)r=r.parentElement;if(!r)return t;t=fo.get(r)??null}return t}function ai(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function hr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ai(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(Nn)).filter(c=>!(e&&e.contains(c))&&ai(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function fy({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),h=o.useRef(null),p=o.useCallback(()=>{const C=h.current;C&&C.contains(document.activeElement)&&hr(C),d(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),g=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:m,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,b)=>n.jsx("span",{className:"notice-box__line body-3",children:_},b))}):C.children??null})]},f)),g]});const y=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:h,className:m,role:"note",children:[y,g]})}const by={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function pa(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:by,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const ha=[];let mr=!1;function ri(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=ha[ha.length-1];t&&(e.stopPropagation(),t())}function Zn(e){return ha.push(e),!mr&&typeof document<"u"&&(document.addEventListener("keydown",ri),mr=!0),()=>{const t=ha.lastIndexOf(e);t>=0&&ha.splice(t,1),ha.length===0&&mr&&typeof document<"u"&&(document.removeEventListener("keydown",ri),mr=!1)}}const oi=o.createContext(null);function gy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const si=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function yy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Rs.useSyncExternalStore(t,()=>si(e),()=>!1)}function vy(e){const[t,a]=o.useState(si(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const _y=typeof Rs.useSyncExternalStore=="function"?yy:vy;function gn(e){const t=o.useContext(oi),a=_y(e);return t&&typeof t.mobile=="boolean"&&gy(e)?t.mobile:a}const xy="(prefers-reduced-motion: reduce)";function yo(){return gn(xy)}const li={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar","stat-chart__card":"manager-stat-card"};function wy(e,t){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!t.startsWith(r))continue;const s=t.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function By(e){return wy(li,e)}function le(e){if(!e||Object.keys(li).length===0)return e;const t=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=By(a);r&&t.push(r)}return t.length?`${e} ${t.join(" ")}`:e}function xn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:h,backdrop:p=!1,isMobilePopup:m=!1,useBorder:g=!0,header:y,focusOnOpen:C}=e||{},f=o.useRef(null),[_,b]=o.useState({position:"fixed",left:0,top:-9999}),[B,v]=o.useState(!1),[N,x]=o.useState("bottom"),[E,w]=o.useState(!1),[D,A]=o.useState(!1),k=!t&&!a,R=o.useRef(null),$=o.useCallback((T=!1,q=!1)=>{if(D&&m)return;const Y=a?a.getBoundingClientRect():t,U=q&&R.current?R.current:Y;if(!U||!f.current)return;const S=f.current,{offsetWidth:I,offsetHeight:O}=S,z=window.innerWidth,se=window.innerHeight,te=z-U.right,de=U.left,ee=U.top,V=se-U.bottom;let ne=0,W=0,H="top";if(ee>=O+r)H="top",W=U.top-r-O,ne=U.left+U.width/2-I/2;else if(V>=O+r)H="bottom",W=U.bottom+r,ne=U.left+U.width/2-I/2;else if(te>=I+r)H="right",ne=U.right+r,W=U.top+U.height/2-O/2;else if(de>=I+r)H="left",ne=U.left-r-I,W=U.top+U.height/2-O/2;else{const he=Math.max(ee,V,te,de);he===ee?(H="top",W=U.top-r-O,ne=U.left+U.width/2-I/2):he===V?(H="bottom",W=U.bottom+r,ne=U.left+U.width/2-I/2):he===te?(H="right",ne=U.right+r,W=U.top+U.height/2-O/2):(H="left",ne=U.left-r-I,W=U.top+U.height/2-O/2)}const ie=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,ie),z-I-ie),W=Math.min(Math.max(W,ie),se-O-ie);const Te=Math.round(ne),ye=Math.round(W);T&&f.current?(f.current.style.left=`${Te}px`,f.current.style.top=`${ye}px`,f.current.dataset.placement=H):(x(H||N),b({position:"fixed",left:Te,top:ye}),w(!0))},[D,m,a,t,r,s,N]);o.useEffect(()=>()=>{R.current=null},[a,t]),o.useLayoutEffect(()=>{if(k)return;if(D&&m){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),w(!0);return}R.current===null&&(R.current=a?a.getBoundingClientRect():t??null),$(!1,!0);const T=requestAnimationFrame(()=>$(!1,!0));return()=>cancelAnimationFrame(T)},[t,a,r,h,s,k,D,m,$]),o.useEffect(()=>{if(k||D&&m||!f.current||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{t&&$()});return T.observe(f.current),()=>T.disconnect()},[t,h,s,k,D,m,$]),o.useEffect(()=>{if(k||D&&m)return;let T=null;const q=()=>{if(a&&(R.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}T===null&&(T=requestAnimationFrame(()=>{T=null,$(!0)}))},Y=U=>{if(!a&&l){const S=U.target;if(S&&f.current&&f.current.contains(S))return;try{if(S&&S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}Q.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",Y,{passive:!0,capture:!0}),()=>{T!==null&&cancelAnimationFrame(T),window.removeEventListener("resize",q),document.removeEventListener("scroll",Y,{capture:!0})}},[t,a,l,r,h,s,k,D,m,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const T=window.matchMedia("(max-width: 768px)"),q=()=>A(!!T.matches);q();try{T.addEventListener?T.addEventListener("change",q):T.addListener(q)}catch{try{T.addListener(q)}catch{}}return()=>{try{T.removeEventListener?T.removeEventListener("change",q):T.removeListener(q)}catch{}}},[]);const G=o.useRef(!1),M=o.useRef(null),P=yo(),L=o.useCallback((T=!1)=>{if(l&&!(B||G.current)){if(G.current=!0,T){v(!0);try{l&&l()}catch{G.current=!1,v(!1)}return}v(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{G.current=!1,v(!1)}},P?0:200)}},[B,l,v,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(k)return;const T=U=>{const S=f.current;if(!S)return;const I=U.target;if(I&&!S.contains(I)){try{if(I.closest&&I.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},q=U=>{const S=f.current;if(!S)return;const I=U.target;if(I&&!S.contains(I)){try{if(I.closest&&I.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},Y=U=>{if(U.key==="Tab"){const S=f.current;if(!S)return;const I=S.querySelectorAll(Nn);if(!I||I.length===0)return;const O=I[0],z=I[I.length-1],se=document.activeElement;U.shiftKey?se===O&&(U.preventDefault(),z.focus()):se===z&&(U.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",T,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",Y),()=>{document.removeEventListener("pointerdown",T,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",Y)}},[l,i,L,k]);const Q=o.useRef(L);o.useEffect(()=>{Q.current=L});const Z=!!l;o.useEffect(()=>{if(!(k||!Z))return Zn(()=>Q.current())},[k,Z]),o.useEffect(()=>{const T=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",T),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",T)}},[L]);const F=o.useRef(null);o.useEffect(()=>{if(k||C===!1||!E)return;const T=f.current;if(!T)return;const q=T.querySelector(Nn);if(q)return F.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const Y=F.current;F.current=null,Y&&document.contains(Y)&&Y.focus({preventScroll:!0})}},[k,C,E]),o.useEffect(()=>{c==="dialog"&&!d&&wt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const K=n.jsxs("div",{ref:f,className:le(`tooltip__content ${k?"tooltip__content--inline":""} ${g?"tooltip__content--bordered":""} ${B?"is-closing":""} ${u} ${D&&m?"is-mobile":""}`),role:c,"aria-label":d||void 0,style:k?{}:{..._,visibility:E?"visible":"hidden"},tabIndex:-1,"data-placement":N,"data-left":k?"":_.left,"data-top":k?"":_.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:[y!=null&&n.jsx("div",{className:le("tooltip__header h5"),children:y}),h]});if(k||typeof document>"u")return K;if(p||D&&m){const T=n.jsxs("div",{className:le("tooltip__portal"),children:[n.jsx("div",{className:le("tooltip__backdrop"),onClick:()=>{i&&L(!0)}}),K]});return dn.createPortal(T,document.body)}return dn.createPortal(K,document.body)}function Tn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(xn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:le(`info-tooltip ${l}`),ariaLabel:i||a,children:n.jsx("div",{className:le("info-tooltip__content body-3"),children:a})}):null}function Xn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},h=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!h.length&&!r?null:n.jsx(xn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:le("description-tooltip"),ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:le("description-tooltip__box"),children:[r&&n.jsx("span",{className:le("description-tooltip__title body-2"),children:r}),n.jsx("ol",{className:le("description-tooltip__items"),children:h.map((p,m)=>n.jsxs("li",{className:le(`description-tooltip__item body-3${m===l?" description-tooltip__item--active":""}`),children:[i&&h.length>1&&n.jsxs("span",{className:le("description-tooltip__index button-1"),children:[m+1,"."]}),p.color&&n.jsx("span",{className:le("description-tooltip__dot"),style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},m))})]})})}function Ia(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let vo=0,ii=!1;function ui(){ii||typeof document>"u"||(ii=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(vo=Date.now())},!0),document.addEventListener("touchstart",()=>{vo=Date.now()},{capture:!0,passive:!0}))}ui();function ma(e){return!!e&&e.pointerType==="touch"}function Ca(e=1e3){return ui(),Date.now()-vo<e}function _o(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ia(e),i=Ia(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=p=>{const m=p,g=p.target,y=a.current,C=!!(g&&y&&y.contains(g));if(m.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(g&&g.closest?.(".tooltip__content"))&&i.current(!1,y)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const d=o.useCallback(h=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,p=h?.parentElement;if(!h||!p)return;let m=null;const g=f=>{const _=f.changedTouches?.[0];if(!_)return!1;const b=h.getBoundingClientRect();return _.clientX>=b.left&&_.clientX<=b.right&&_.clientY>=b.top&&_.clientY<=b.bottom},y=f=>{m=g(f)?l.current:null},C=f=>{const _=m;m=null,!(_===null||Date.now()-c.current<700||!g(f))&&(u.current=null,c.current=Date.now(),i.current(!_,h))};return p.addEventListener("touchstart",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function ky(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:h,count:p,subLabel:m,children:g,ariaLabel:y,variant:C="default",align:f="center",nowrap:_=!1,selected:b,toggleable:B=!1,ariaExpanded:v,ariaControls:N,disabled:x=!1,loading:E=!1,useLabel:w=!0,useBorder:D=!0,useBG:A=!0,useDisabledCovered:k=!1,useDisabledInvisible:R=!1,useDisabledFilled:$=!1,width:G,minWidth:M,onClick:P,onDisabledClick:L,showTooltipInfo:Q=!1,tooltipInfoText:Z=null,tooltipDescription:F=null,tooltipOnly:K=!1,iconSize:T="medium",iconColor:q,shape:Y="rounded",color:U,className:S,...I}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),z=O.match(/^\d+$/)?`button${O}`:`button-${O}`,se=Number(a),te=!isNaN(se)&&se<40?"button-2":"button-1",de=h??g,ee=x||!!I.disabled,V=ee?k?"disabled-covered":R?"disabled-invisibled":$?"disabled-filled":"disabled":C,ne=V?`button--variant-${V}`:"",W=f?`button--align-${f}`:"",H=_?"button--nowrap":"",ie=Y?`button--shape-${Y}`:"",Te=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ye={...G?{width:typeof G=="number"?`${G}px`:G}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...D?{}:{"--button-border":ee?"0":"1px solid transparent"},...Te?{"--button-icon-color":Te}:{},...U?{"--color-main":U}:{}},he=w===!1?"":de,Se=Array.isArray(he)?he.length>0:!!he,$e=!!d,Ne=r??(Se||c||$e?"bar":"dot"),ue=`${z}--${Ne}`,xe=o.useRef(null);o.useEffect(()=>{!On||s!==void 0||xe.current?.closest("form")&&wt(`button-in-form:${typeof de=="string"?de:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof de=="string"&&de?` \uB2E8\uCD94: ${de}`:""))},[s,de]);const ke=o.useRef(t);ke.current=t;const Ee=o.useCallback(Le=>{xe.current=Le;const at=ke.current;typeof at=="function"?at(Le):at&&(at.current=Le)},[]),We=o.useRef(ee),[He,ot]=o.useState(!!b),[Qe,Je]=o.useState(!1),[vt,je]=o.useState(null),Ye=o.useCallback(()=>Je(!1),[]),[we,Ue]=o.useState(!1),qe=o.useId();o.useEffect(()=>{typeof b=="boolean"&&ot(b)},[b]),o.useEffect(()=>{if(We.current&&!ee&&xe.current){const Le=xe.current;let at=!1;try{at=Le.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Le.blur(),Le.style.pointerEvents="none";const oe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(oe)}We.current=ee},[ee]);const pt=typeof b=="boolean"?!!b:He,_t=typeof v=="boolean"?void 0:B||typeof b=="boolean"?pt?"true":"false":I["aria-pressed"],Et=Be("button",z,ue,ne,W,H,ie,pt?"is-selected":null,A?null:"button--no-bg",K?"button--tooltip-only":null,S),Bt=`button__icon button__icon--${T}`,st=Array.isArray(m)?m:m!==void 0?[m]:[],tt=()=>{if(Array.isArray(he))return he.map((at,oe)=>{const be=st[oe];return n.jsxs("span",{className:`button__label-text${be!==void 0?" button__label-text--has-sub":""}`,children:[at,be!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:be})]},oe)});const Le=m!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[he,p!=null&&n.jsx("span",{className:"button__count",children:p}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},kt=Le=>{typeof b!="boolean"&&!B&&ot(!1),Le.currentTarget.blur()},At=Le=>{ee||(typeof I.onMouseLeave=="function"&&I.onMouseLeave(Le),kt(Le))},jt=Le=>{if(K&&it&&ut.touchPress(Le.currentTarget),ee){it&&ut.touchPress(Le.currentTarget),Le.preventDefault(),L?.(Le);return}typeof b!="boolean"&&B&&ot(at=>!at),P?.(Le)},Mt=o.useCallback(()=>{(Q||F)&&(Je(!0),je(xe.current?.getBoundingClientRect()??null))},[Q,F]),gt=o.useCallback(()=>{(Q||F)&&(Je(!1),je(null))},[Q,F]),it=!!(Q||F),ut=_o(Qe,Le=>{Le?Mt():gt()},xe,{enabled:it&&(ee||K),fallbackOnParent:it&&ee}),ct={...I};delete ct.disabled,delete ct.className,delete ct.faded,delete ct.useFaded,delete ct.loading,delete ct.onMouseLeave,delete ct.onPointerEnter,delete ct.onPointerLeave,delete ct.onPointerUp,delete ct.onFocus,delete ct.onBlur,ee&&(Object.keys(ct).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof ct[Le]=="function"&&delete ct[Le]}),ct["aria-disabled"]="true"),E&&(ct["aria-busy"]="true");const ve=(typeof Q=="string"?Q:null)??(typeof Z=="string"?Z:null)??(typeof y=="string"?y:null)??(typeof de=="string"?de:null)??void 0,Me=typeof y=="string"?y:typeof de=="string"?de:ve,Pe=F?[F.title,...F.items??[]].filter(Boolean).join(". "):Q&&ve&&ve!==Me?ve:"",Oe=[typeof I["aria-describedby"]=="string"?I["aria-describedby"]:void 0,Pe?qe:null].filter(Boolean).join(" ")||void 0,dt=()=>n.jsx("span",{className:`${Bt} button__spinner`,"aria-hidden":"true",children:n.jsx(pa,{variant:"spinner",size:"100%"})}),Dt=(Le,at)=>n.jsx(nt,{icon:Le,label:at??Me,className:Bt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),yt=Le=>E?dt():Dt(c,Le),xt=()=>Ne==="dot"?n.jsxs(n.Fragment,{children:[yt(),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()})]}):f==="center"&&(c||E)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:yt()}),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()})]}),$e&&n.jsx("span",{className:"button__right",children:Dt(d)})]}):n.jsxs(n.Fragment,{children:[(c||E)&&n.jsx("span",{className:"button__left",children:yt(y??de)}),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()}),$e&&n.jsx("span",{className:"button__right",children:Dt(d)})]}),Ct=!!l&&!ee;return n.jsxs(n.Fragment,{children:[n.jsxs(Ct?"a":"button",{...ct,ref:Ee,...Ct?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:ee&&!L&&!we},className:Et,"aria-pressed":_t,"aria-expanded":typeof v=="boolean"?v:I["aria-expanded"],"aria-controls":N??I["aria-controls"],"aria-label":Me,"aria-disabled":ee&&(Ct||L||we)?!0:void 0,"aria-describedby":Oe,style:ye,onClick:jt,onMouseLeave:At,onPointerEnter:Le=>{ma(Le)||Mt(),!ee&&typeof I.onPointerEnter=="function"&&I.onPointerEnter(Le)},onPointerLeave:Le=>{ma(Le)||gt(),!ee&&typeof I.onPointerLeave=="function"&&I.onPointerLeave(Le)},onPointerUp:Le=>{ee&&it&&ut.touchPress(Le.currentTarget),!ee&&typeof I.onPointerUp=="function"&&I.onPointerUp(Le)},onFocus:Le=>{Ue(!0),Ca()||Mt(),!ee&&typeof I.onFocus=="function"&&I.onFocus(Le)},onBlur:Le=>{Ue(!1),ee||kt(Le),gt(),!ee&&typeof I.onBlur=="function"&&I.onBlur(Le)},children:[xt(),Pe?n.jsx("span",{id:qe,hidden:!0,"aria-label":Pe}):null]}),Qe&&F?n.jsx(Xn,{anchorRect:vt,title:F.title,items:F.items,onClose:Ye}):Qe&&ve?n.jsx(Tn,{anchorRect:vt,text:ve,onClose:Ye}):null]})}const fe=o.forwardRef(ky);fe.displayName="Button";function Tt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Fa={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xo=new WeakMap;function wo(e){if(e)return xo.get(e)}function Zt(e,t){e&&(e.style.setProperty(Fa.title,t.title),e.style.setProperty(Fa.description,t.description),xo.set(e,t))}function Xt(e){e&&(e.style.removeProperty(Fa.title),e.style.removeProperty(Fa.description),xo.delete(e))}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function di(){const e=Tt(ci,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const pi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function hi(){const e=Tt(pi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ci(){const e=Tt(mi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function bi(){const e=Tt(fi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const gi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function yi(){const e=Tt(gi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const vi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function _i(){const e=Tt(vi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const xi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function wi(){const e=Tt(xi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ki(){const e=Tt(Bi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ai={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=Tt(Ai,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ei={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Di(){const e=Tt(Ei,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Si={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function ji(){const e=Tt(Si,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Mi(){const e=Tt(Ti,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function $i(){const e=Tt(Li,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ri={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Pi(){const e=Tt(Ri,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const rn=(e,t,a)=>({key:e,get label(){return Vt.t(`promoBannerBg.${e}`,t)},textTone:a}),Ay=[rn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("soft","\uC18C\uD504\uD2B8","dark"),rn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),rn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),rn("warm","\uC6DC(\uAC15\uC870)","dark"),rn("dark","\uB2E4\uD06C","light"),rn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),rn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),rn("outline","\uC544\uC6C3\uB77C\uC778","dark"),rn("success","\uC131\uACF5/\uC644\uB8CC","light"),rn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),rn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ii={main:di,soft:hi,sub:Ci,deep:bi,softSub:yi,warm:_i,dark:wi,radial:ki,diagonal:Ni,dots:Di,outline:ji,success:Mi,naver:$i,instagram:Pi};function Fi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=B=>Math.max(a,Math.min(r,Number(B))),u=B=>{try{const v=localStorage.getItem(B),N=v?Number(v):1;return Number.isFinite(N)?i(N):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[h,p]=o.useState(e);h!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=B=>{d(typeof B=="function"?v=>i(B(v)):i(B))},g=()=>m(B=>+(B+s).toFixed(6)),y=()=>m(B=>+(B-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,_=Math.round(t*c),b=Math.round(_*l);return{scale:c,setScale:m,increase:g,decrease:y,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:b}}function Oi(e,t){const a=Ia(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Bo=" \xB7 ",zi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Bo)?e.split(Bo).pop()??e:e})(),Ny=o.createContext(!1),Jn=[];let Wi=null;function Ey(e){const t=o.useContext(Ny);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Jn.length===0&&(Wi=document.title);const a={text:zi?`${e}${Bo}${zi}`:e};return Jn.push(a),document.title=a.text,()=>{const r=Jn.lastIndexOf(a);r>=0&&Jn.splice(r,1),document.title=Jn.length?Jn[Jn.length-1].text:Wi??document.title}},[e,t])}const ko=[{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"}],Dy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function mn(e,t){return Dy().compare(e,t)}const Cr=new Map;function Sy(e){const t=Cr.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),Cr.size>5e3&&Cr.clear(),Cr.set(e,a),a}function jy(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function Ty(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,h)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=jy(h);return p!==null?[p]:Sy(h)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const h=i[d],p=u[d];if(typeof h=="number"&&typeof p=="number"){if(h!==p)return h-p;continue}if(typeof h=="number")return-1;if(typeof p=="number")return 1;const m=mn(h,p);if(m!==0)return m}return i.length!==u.length?i.length-u.length:mn(r,s)}const Hi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function fr(e,t,a){const r=Hi(e),s=Hi(t);if(r||s)return r===s?0:r?1:-1;const l=Ty(e,t);return a?l:-l}function My(e,t,a){const{t:r}=_e.useTranslation(),[s,l]=o.useState(()=>{const y=a?.initialPageSize;return y&&ko.some(C=>C.value===y)?y:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const h=o.useMemo(()=>ko.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{ko.some(C=>C.value===y)&&(l(y),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),g=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==g&&u(g),{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:h,value:s,onChange:p},paginationProps:{page:g,total:m,onChange:u},setPage:u}}function Ly(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,h=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:h,asc:p}=t;return[...c].sort((m,g)=>fr(d(m,h),d(g,h),p))},[t]);return{sort:t,field:i,sortRows:u}}const wn="\uC804\uCCB4";Object.fromEntries(Object.entries(cf).map(([e,{nucleus:t}])=>[e,t]));const $y={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"})},Ry={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"})},Py={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 Iy(e,t){if("place"in t)return $y[t.place](e);const a=Ry[t.vowel](e);return t.glide?`${a} \xB7 ${Py[t.glide](e)}`:a}const Fy=(e,{defaultValue:t})=>t,Vi=(e,t)=>({jamos:e,phonetic:t,tooltip:Iy(Fy,t)}),Mn=(e,t)=>t.map(a=>Vi([a],{place:e})),qt=(e,t,a)=>Vi([...e],a?{vowel:t,glide:a}:{vowel:t}),Ao={cho:[Mn("labial",["\u3142","\u3143","\u314D","\u3141"]),Mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Mn("alveolar",["\u3145","\u3146"]),Mn("palatal",["\u3148","\u3149","\u314A"]),Mn("velar",["\u3131","\u3132","\u314B"]),Mn("glottal",["\u314E"])],jung:[[qt("\u3163","frontHigh"),qt("\u315F","frontHigh","w"),qt("\u3162","frontHigh","velar")],[qt("\u3161","backHighUnrounded")],[qt("\u315C","backHighRounded"),qt("\u3160","backHighRounded","j")],[qt("\u3154\u3150","frontMid"),qt("\u3156\u3152","frontMid","j"),qt("\u3159\u315A\u315E","frontMid","w")],[qt("\u3153","backMidUnrounded"),qt("\u3155","backMidUnrounded","j"),qt("\u315D","backMidUnrounded","w")],[qt("\u3157","backMidRounded"),qt("\u315B","backMidRounded","j")],[qt("\u314F","low"),qt("\u3151","low","j"),qt("\u3158","low","w")]],jong:[Mn("labial",["\u3142","\u3141"]),Mn("alveolar",["\u3137","\u3134","\u3139"]),Mn("velar",["\u3131","\u3147"])]},Oy=e=>e===zy?[]:Array.from(e),zy="__NO_CODA__",No=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),qi={cho:No(Ao.cho),jung:No(Ao.jung),jong:No(Ao.jong)};qi.jung.flat().forEach(({v:e})=>{for(const t of Oy(e));}),new Set(qi.cho.flat().map(e=>e.v));function Wy(e,t=!0){const a=Ia(e);o.useEffect(()=>{if(t)return Zn(()=>{a.current?.()})},[t,a])}function Oa(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function Hy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Ui(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,m)=>{s(m),a(p),i(g=>g+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:h}}function za(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Wa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let g=d.current?.offsetHeight??0;g>0&&h();let y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const E=d.current?.offsetHeight??0;if(E!==g){if(g=E,++y>4){C?.disconnect(),C=null;return}h()}}),C.observe(d.current));const f=E=>{const w=E.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let _=null;const b=()=>{if(typeof requestAnimationFrame>"u"){h();return}_===null&&(_=requestAnimationFrame(()=>{_=null,h()}))},B=E=>{d.current?.contains(E.target)||(t==="reposition"?b():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",B,!0);const v=()=>{a==="reposition"?b():a==="close"&&l(!1)};let N=null;const x=()=>{v(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",v),window.addEventListener("orientationchange",x)),()=>{_!==null&&cancelAnimationFrame(_),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",B,!0),a!=="ignore"&&(window.removeEventListener("resize",v),window.removeEventListener("orientationchange",x)),N&&clearTimeout(N)}},[s,h,t,a,r]),o.useEffect(()=>{if(s)return Zn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(g=>!g),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:m,style:i,triggerRef:c,menuRef:d}}function Vy(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,h]=o.useState(0),[p,m]=o.useState("idle"),[g,y]=o.useState(null),[C,f]=o.useState([]),[_,b]=o.useState(null),[B,v]=o.useState(0),N=o.useRef(0),x=o.useCallback(T=>{N.current=typeof T=="function"?T(N.current):T,v(N.current)},[]),E=o.useRef(r),w=o.useRef(s);o.useEffect(()=>{E.current=r,w.current=s},[r,s]);const D=o.useRef([]),A=()=>{D.current.forEach(clearTimeout),D.current=[]},k=(T,q)=>{D.current.push(setTimeout(q,T))};o.useEffect(()=>()=>A(),[]);const R=u[d]?.id??null,$=o.useRef(null),G=o.useCallback(()=>{A(),m("playing"),f([]),b(null),x(0);let T=0;e.forEach((q,Y)=>{k(T,()=>{h(Y),y(q.id),E.current?.(q)}),k(T+1e3,()=>{y(null),f(U=>[...U,q.id])}),T+=1300}),k(T,()=>{m("done"),w.current?.({score:0,total:e.length})})},[e,x]),M=o.useCallback((T,q)=>{if(q>=T.length){m("done"),w.current?.({score:N.current,total:T.length});return}$.current=null,h(q),b(null),m("playing"),y(T[q].id),E.current?.(T[q]),k(l,()=>{y(null),m("waiting")})},[l]),P=o.useCallback(()=>{A();const T=$a(e);c(T),x(0),f([]),M(T,0)},[e,M,x]),L=o.useCallback(()=>{t==="playback"?(c(e),G()):P()},[t,e,G,P]),Q=o.useCallback(()=>{A(),m("idle"),y(null),f([]),b(null),h(0),x(0),c([])},[x]),Z=JSON.stringify(e.map(T=>[T.id,T.label,T.angleDeg,T.deg,T.row,T.shortcut]));o.useEffect(()=>(a?L():Q(),()=>A()),[t,Z,a]);const F=o.useCallback(T=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,b(T),T===u[d]?.id&&x(q=>q+1),t==="exam"?(m("playing"),k(400,()=>M(u,d+1))):(m("feedback"),k(i,()=>M(u,d+1))))},[p,t,u,d,M,i,x]),K=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:_,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:F},index:d,total:K,score:B,phase:p,done:p==="done",start:L,reset:Q}}const Eo=new Map,Do=new Map,qy=()=>()=>{},Uy=()=>!0,Gy=()=>!1;function Gi(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Ky(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};ia.addHook("uponSanitizeAttribute",t);try{return ia.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{ia.removeHook("uponSanitizeAttribute",t)}}function Yy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Zy(e){const t=Do.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Eo.set(e,r),r)).catch(()=>null).finally(()=>{Do.delete(e)});return Do.set(e,a),a}function Xy(e,t=!0){const a=o.useSyncExternalStore(qy,Uy,Gy)&&t&&e?Gi(e)??Eo.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Gi(e)??Eo.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Zy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Jy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:h=""}){const p=s??l??"main",m=o.useRef(null),[g,y]=o.useState("main"),C=gn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const B=m.current;if(!B)return;const v=wo(B),N=(x,E,w)=>{if(w!==void 0)B.style.setProperty(E,w),f.current[x]=!0;else if(f.current[x]){const D=v?.[x];D?B.style.setProperty(E,D):B.style.removeProperty(E),f.current[x]=!1}};N("title","--promo-banner-bg-title",c),N("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const B=m.current;if(!B)return;const v=wo(B);y(v?.actionVariant??"main")},[p]);const _=Be("promo-banner",`promo-banner--${i}`,h),b=Ii[p];return n.jsxs("div",{ref:m,className:_,role:"note",children:[n.jsx(b,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(fe,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Qy({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=_e.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,h]=o.useState(0),[p,m]=o.useState(!1),[g,y]=o.useState(!1),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),B=o.useRef(null),v=yo(),N=p||g||C,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||v)return;const w=window.setInterval(()=>h(D=>(Math.min(D,c-1)+1)%c),t);return()=>window.clearInterval(w)},[c,t,N,v]);const E=w=>{b.current!=null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{b.current=null,f(!1)},w)};return o.useEffect(()=>()=>{b.current!=null&&window.clearTimeout(b.current)},[]),o.useEffect(()=>{if(!C)return;const w=D=>{D.pointerType==="touch"&&(B.current&&B.current.contains(D.target)||(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!1)))};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[C]),c===0?null:n.jsxs("section",{ref:B,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:w=>{_.current=w.pointerType},onPointerDown:w=>{_.current=w.pointerType,w.pointerType==="touch"&&(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!0))},onPointerUp:w=>{w.pointerType==="touch"&&E(5e3)},onPointerCancel:w=>{w.pointerType==="touch"&&E(5e3)},onMouseEnter:()=>{_.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:w=>{let D=!0;try{D=w.target.matches(":focus-visible")}catch{D=!0}y(D)},onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((w,D)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":D!==x,...D!==x?{inert:!0}:{},children:w},D))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((w,D)=>n.jsx("button",{type:"button",className:`top-banner__dot${D===x?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:D+1,defaultValue:`${c}\uAC1C \uC911 ${D+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":D===x,onClick:()=>h(D)},D))})]})}function e2({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const h=d.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),m=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[m+1]:p[m-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(nt,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function t2({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(e2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function n2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function a2(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function r2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function En({children:e,icon:t,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:d=""}){const{t:h}=_e.useTranslation(),p=t??"check",m=a!==void 0,g=e!==void 0||m?"number":p,y=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[p],C=c?void 0:u??y;return n.jsxs("span",{className:Be("circle-badge",`circle-badge--${g}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",d),onClick:i,onKeyDown:i?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,"aria-label":C,"aria-hidden":c||void 0,role:i?"button":C?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&p==="check"&&n.jsx(n2,{}),e===void 0&&!m&&p==="remove"&&n.jsx(a2,{}),e===void 0&&!m&&p==="minus"&&n.jsx(r2,{})]})}function Ha({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let _=e;for(const b of i){const B=_?.[b.ci]?.items?.[b.ii];if(!B||!Array.isArray(B.children)||!B.children.length)break;_=[{title:null,items:B.children}],f.push({title:B.label||null,columns:_})}return f},[e,i]),d=c[c.length-1],h=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,h)-1))),[h]),m=o.useRef(null),g=o.useRef(null),y=c.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let f=0,_=0;const b=()=>{const B=m.current?.querySelector("button:not([disabled])");if(B&&B.offsetParent){B.focus({preventScroll:!0});return}_++<20&&(f=requestAnimationFrame(b))};return f=requestAnimationFrame(b),()=>cancelAnimationFrame(f)},[y]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,_,b)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(B=>[...B.slice(0,h),{ci:_,ii:b}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,h]);return n.jsxs("div",{className:le(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||d.title)&&n.jsxs("div",{className:le("menu-tooltip__header"),children:[c.length>1?n.jsx(fe,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:le("menu-tooltip__title button-1"),children:d.title})]}),n.jsx("div",{className:le("menu-tooltip__columns"),ref:m,children:d.columns&&d.columns.map((f,_)=>n.jsxs("div",{className:le("menu-tooltip__column"),children:[f.title?n.jsx("div",{className:le("menu-tooltip__column-title body-3"),children:f.title}):null,n.jsx("div",{className:le("menu-tooltip__items"),children:(f.items||[]).map((b,B)=>n.jsxs(o.Fragment,{children:[b.separatorBefore&&B>0&&n.jsx("div",{className:le("menu-tooltip__separator"),role:"separator"}),n.jsx(fe,{htmlType:"button",className:le("menu-tooltip__item"),size:l,type:b.label?"bar":"dot",icon:b.selected?"check":b.icon||"none",rightIcon:Array.isArray(b.children)&&b.children.length?"chevron-right":b.badgeCount?n.jsx(En,{position:"inline",number:Math.min(b.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:b.label,ariaLabel:b.label&&b.badgeCount&&b.badgeCount>0?s("nav.badgeLabel",{label:b.label,count:b.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):b.label,onClick:()=>C(b,_,B),selected:b.selected,disabled:b.disabled,showTooltipInfo:b.tooltip||!1,useBorder:!1,align:"left"})]},B))})]},_))})]})}const Ki=".content-area";function So(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Ki);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&wt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Ki}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const jo=52,br=10,Yi=e=>e&&e>0?e:0;function Zi({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,g]=o.useState(0),y=e.length;o.useEffect(()=>{const T=p.current;if(!T)return;const q=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(T):null,I=T.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),O=T.querySelector(".bottom-nav__left"),z=O?.nextElementSibling,se=(O?.offsetWidth??0)+(O&&z?.classList.contains("bottom-nav__divider")?z.offsetWidth:0);g(Math.max(0,I-se))};if(q(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(q);Y.observe(T);const U=T.querySelector(".bottom-nav__left");return U&&Y.observe(U),()=>Y.disconnect()},[s]);const C=jo+1,f=T=>Math.max(0,Math.floor((T+br)/(jo+br))),_=y*(jo+br)-br<=m,b=m<=0||l.length===0&&_?y:Math.min(y,f(m-C)),B=m>0&&b<y,v=B?b:y,N=e.slice(0,v),x=e.slice(v),E=B||l.length>0,w=o.useCallback((T,q)=>({position:"fixed",bottom:window.innerHeight-T.top+8,right:window.innerWidth-T.right,zIndex:za(q)}),[]),D=o.useId(),{open:A,toggle:k,close:R,style:$,triggerRef:G,menuRef:M}=Wa({computeStyle:w,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((T,q)=>q>0?u("nav.badgeLabel",{label:T,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):T,[u]),L=o.useCallback((T,q)=>q>0?u("nav.badgeInsideLabel",{label:T,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):T,[u]),Q=o.useCallback(()=>s?.(c),[s,c]),Z=o.useMemo(()=>x.find(T=>!!T.key&&T.key===t)??l.find(T=>T.selected||T.key&&T.key===t),[x,t,l]),F=o.useMemo(()=>[{items:[...x.map(T=>({label:T.label,icon:T.icon,badgeCount:T.badgeCount,selected:!!T.key&&T.key===t,closeOnSelect:!0,disabled:T.state==="disabled",onClick:()=>{T.state!=="disabled"&&(T.key&&a&&(a(T.key),So(i,"BottomNav")),R())}})),...l.map(T=>({label:T.label,icon:T.icon,badgeCount:T.badgeCount,selected:T.selected??(!!T.key&&T.key===t),closeOnSelect:!0,onClick:()=>{T.onClick?.(),R()}}))]}],[x,l,t,a,R]),K=[...x,...l].reduce((T,q)=>T+Yi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:h,className:"bottom-nav-item",onClick:Q})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((T,q)=>{const Y=Yi(T.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:T.icon,ariaLabel:P(T.label,Y),selected:!!T.key&&T.key===t,disabled:T.state==="disabled",className:"bottom-nav-item",onClick:()=>{T.key&&(a?.(T.key),So(i,"BottomNav"))}}),Y>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(En,{position:"top-right",number:Math.min(Y,99),size:24})})]},T.key??`__slot-${q}`)})}),E&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:G,className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:Z?.icon??"ellipsis",ariaLabel:L(Z?.label??u("nav.more","\uB354\uBCF4\uAE30"),K),selected:!!Z,className:"bottom-nav-item",onClick:k,"aria-expanded":A,"aria-controls":A?D:void 0}),K>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(En,{position:"top-right",number:Math.min(K,99),size:24})}),A&&dn.createPortal(n.jsx("div",{id:D,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:le("tooltip__content"),style:$,ref:M,children:n.jsx(Ha,{columns:F,onClose:R})}),document.body)]})})]})]})}function Xi(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Ji(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function o2(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},h="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:Ji(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx(En,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Qi(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:h}=e||{},p=a?.key??r??"",m=a?.label??s??"",g=a?.icon??l??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(nt,{icon:g,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",_=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,b=o.useCallback(B=>{if(f)return;const v=B.detail>0;if(v)try{B.currentTarget.blur()}catch{}u?.(p,B.currentTarget,v)},[f,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:b,"aria-label":typeof m=="string"?Ji(t,m,y):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),y>0&&n.jsx(En,{position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function eu(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g,scrollContainer:y}=e||{},C=m==="manager",f=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),_=o.useRef(null),[b,B]=o.useState(null);o.useEffect(()=>{const w=_.current;if(!w)return;let D=null;const A=()=>{const{scrollHeight:$,clientHeight:G,scrollTop:M}=w;if($<=G+1){B(F=>F===null?F:null);return}const P=Math.max(24,G/$*G),L=G-P,Q=$-G,Z={top:Math.round(M/Q*L),height:Math.round(P)};B(F=>F&&F.top===Z.top&&F.height===Z.height?F:Z)},k=()=>{if(typeof requestAnimationFrame>"u"){A();return}D===null&&(D=requestAnimationFrame(()=>{D=null,A()}))};A(),w.addEventListener("scroll",k,{passive:!0});const R=typeof ResizeObserver<"u"?new ResizeObserver(k):null;R?.observe(w);for(const $ of Array.from(w.children))R?.observe($);return()=>{D!==null&&cancelAnimationFrame(D),w.removeEventListener("scroll",k),R?.disconnect()}},[a]);const v=o.useRef(null),N=o.useCallback(w=>{const D=_.current;D&&(w.preventDefault(),v.current={y:w.clientY,top:D.scrollTop},w.currentTarget.setPointerCapture(w.pointerId))},[]),x=o.useCallback(w=>{const D=_.current,A=v.current;!D||!A||(D.scrollTop=A.top+(w.clientY-A.y)*(D.scrollHeight/D.clientHeight))},[]),E=o.useCallback(w=>{v.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[b&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:b.top,height:b.height},onPointerDown:N,onPointerMove:x,onPointerUp:E,onPointerCancel:E})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(w=>!w.section&&(w.key||w.label)).map((w,D)=>n.jsxs(o.Fragment,{children:[w.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Qi,{item:w,active:!!w.key&&w.key===r,state:w.disabled?"disabled":void 0,onClick:(A,k,R)=>{if(w.disabled)return;if(w.href){if(Xi(w.href)&&window.open(w.href,"_blank","noopener,noreferrer"),R)try{k?.blur()}catch{}return}if(s?.(w.key),So(y,"SideNav"),!R)return;try{k?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const $=document.querySelector(".header");if($){const G=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&G&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const M=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",M)};$.addEventListener("mouseenter",M)}}}})]},w.key??`side-nav__item-${D}`)),g&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&n.jsx(Qi,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(o2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p})]})}var gr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',To='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',s2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function tu({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?To:gr,s=s2;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.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 brand-identity__image--logo"})]})}function nu({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g,scrollContainer:y}){const{t:C}=_e.useTranslation(),f=gn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),b=o.useCallback($=>{const G=a?.find(M=>M.key===$);if(!G?.disabled){if(G?.href){Xi(G.href)&&window.open(G.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),B=o.useMemo(()=>{const $=[];return i&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),h&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,i,u,d,h,p,c,l]),v=o.useCallback(($,G)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:za(G)}),[]),N=o.useId(),{open:x,toggle:E,close:w,style:D,triggerRef:A,menuRef:k}=Wa({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),R=o.useMemo(()=>[{items:B.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[B,e,w]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(tu,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:A,children:[n.jsx(fe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:E,"aria-expanded":x,"aria-controls":x?N:void 0}),!!u&&!!l&&l>0&&n.jsx(En,{number:Math.min(l,99),size:24,"aria-hidden":!0}),x&&dn.createPortal(n.jsx("div",{id:N,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:le("tooltip__content"),style:D,ref:k,children:n.jsx(Ha,{columns:R,onClose:w})}),document.body)]})]}),n.jsx(eu,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g}),f&&n.jsx(Zi,{items:_,activeKey:e??void 0,onChange:b,scrollContainer:y,appMode:m,onAppModeChange:g})]})}const l2=nu;function on(e){const{type:t="dot",size:a,className:r="","aria-label":s,"aria-hidden":l}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&wt("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694.");const{label:i,children:u,variant:c="default",fill:d="filled",minWidth:h,iconLeft:p,iconRight:m,color:g}=e,y=t==="bar",C=typeof a=="number"?"medium":a??"medium",f=(y?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[C]??(y?"body-2":"body-2b"),_={small:12,medium:14,large:16}[C]??14,b=Be("badge",y?"badge--bar":"",`badge--${c}`,`badge--${C}`,d!=="filled"?`badge--${d}`:"",f,r),B=g?.startsWith("--")?`var(${g})`:g,v=h!==void 0||B?{...h!==void 0?{minWidth:typeof h=="number"?`${h}px`:h}:{},...B?{"--badge-color":B}:{}}:void 0;return n.jsxs("span",{className:b,style:v,"aria-label":l?void 0:s,role:s&&!l?"img":void 0,"aria-hidden":l||void 0,children:[p&&n.jsx(nt,{icon:p,size:_,className:"badge__icon"}),i??u,m&&n.jsx(nt,{icon:m,size:_,className:"badge__icon"})]})}const i2=()=>Vt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function au(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return da(`${t.toLocaleString("ko-KR")}\uC6D0`)}return da(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function u2(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function c2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\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*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||i2()}function d2(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 ru(e){return{type:e.type??u2(e),plan:c2(e),label:e.label,price:au(e.price),originalPrice:au(e.originalPrice),discountLabel:e.discountLabel}}var p2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',h2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',ou='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const Qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Mo=new WeakMap;function m2(e){if(e)return Mo.get(e)}function Ln(e,t){e&&(e.style.setProperty(Qn.text,t.text),e.style.setProperty(Qn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Qn.copyright,t.copyrightColor),Mo.set(e,t))}function $n(e){e&&(e.style.removeProperty(Qn.text),e.style.removeProperty(Qn.sub),e.style.removeProperty(Qn.copyright),Mo.delete(e))}const su={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function lu(e={}){const t=Tt(su,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${ou}")`}})]})}const iu="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",fa=240;var Va='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const C2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},f2=100,b2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function uu(e={}){const t=Tt(C2,Ln,$n),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:b2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*f2/fa}) translate(${-fa/2} ${-fa/2})`,opacity:i,children:n.jsx("path",{d:iu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const g2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},y2=100,v2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _2(e={}){const t=Tt(g2,Ln,$n),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:v2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*y2/fa}) translate(${-fa/2} ${-fa/2})`,opacity:i,children:n.jsx("path",{d:iu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${ou}")`}})]})}const x2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function w2(e={}){const t=Tt(x2,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const B2={Logo_SpeechEar_ko:{"":gr,_mono:p2},Logo_SpeechEarManager_ko:{"":To,_mono:h2}};function k2(e,t){if(e)return B2[e]?.[t??""]??void 0}const A2={speechear:gr,manager:To},N2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},cu=10;function E2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function du(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 s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function D2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Vt.t("passCard.specialLabel");return r?n.jsx(w2,{}):s?n.jsx(_2,{}):n.jsx(uu,{})}return n.jsx(lu,{})}function pu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:h=!1,textColor:p,subColor:m,copyrightColor:g,logoSrc:y,label:C,price:f,originalPrice:_,discountLabel:b,onUse:B,onRefund:v,onDelete:N}){const{t:x}=_e.useTranslation(),E=t?ru(t):void 0,w=s??E?.type??"speechear",D=r??E?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=C??E?.label,k=f??(a?E?.price:void 0),R=_??(a?E?.originalPrice:void 0),$=b??E?.discountLabel,G=o.useMemo(()=>{if(k)return null;const W=t?.durationDays??d2(t?.code);if(!W||W<=0)return i!=null?{percent:null,remainingLabel:du(i,x)}:null;const H=W*86400;let ie;if(i!=null)ie=i;else if((c==="active"||c==="expired")&&l){const he=new Date(l).getTime();if(Number.isNaN(he))return null;const Se=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),$e=/^(\d{4})-(\d{2})-(\d{2})/.exec(Pa()),Ne=Math.round(Se&&$e?(Date.UTC(+Se[1],+Se[2]-1,+Se[3])-Date.UTC(+$e[1],+$e[2]-1,+$e[3]))/864e5:(he-Date.now())/864e5);ie=Math.max(0,u?Ne+1:Ne)*86400}else c==="expired"?ie=0:ie=H;const Te=E2(ie),ye=Math.max(0,Math.min(100,Math.floor(Math.min(Te,H)/H*100)));return c==="pending"&&ye>=100?null:{percent:ye,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):du(ie,x)}},[k,c,l,i,u,t?.durationDays,t?.code,x]),M=o.useRef(null),[P,L]=o.useState({}),[Q,Z]=o.useState(null),F=!!(B||v||N),K=o.useRef(!1),T=o.useRef(void 0),[q,Y]=o.useState(y);o.useLayoutEffect(()=>{Y(y)},[y]),o.useLayoutEffect(()=>{const W=M.current;W&&(p!==void 0&&W.style.setProperty("--pass-card-text",p),m!==void 0&&W.style.setProperty("--pass-card-sub",m),g!==void 0&&W.style.setProperty("--pass-card-copyright",g))},[p,m,g]),o.useLayoutEffect(()=>{const W=M.current;if(!W)return;const H=m2(W);if(!y){const ie=N2[w],Te=c==="expired"?"_mono":H?.logoColor??"",ye=k2(ie,Te);Y(ye)}},[d,y,w,c]);const U=W=>{const H=M.current;if(!H)return null;const{left:ie,top:Te,width:ye,height:he}=H.getBoundingClientRect(),Se=(W.clientX-ie)/ye-.5;return{rotateX:-((W.clientY-Te)/he-.5)*cu,rotateY:Se*cu}},S=(W,H)=>{const ie=H*-.7,Te=W*.7+10,ye=20+(Math.abs(W)+Math.abs(H))*.4;return`${ie}px ${Te}px ${ye}px rgba(0, 0, 0, 0.18)`},I=o.useCallback(W=>{if(Ca())return;K.current=!0,clearTimeout(T.current),T.current=setTimeout(()=>{K.current=!1},200);const H=U(W);H&&L({transform:`perspective(800px) rotateX(${H.rotateX}deg) rotateY(${H.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(H.rotateX,H.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=o.useCallback(W=>{if(Ca())return;const H=U(W);if(!H)return;const ie=K.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${H.rotateX}deg) rotateY(${H.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(H.rotateX,H.rotateY),transition:ie})},[]),z=o.useCallback(()=>{clearTimeout(T.current),K.current=!1,L({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)"})},[]),se=o.useCallback(()=>Z(null),[]),te=o.useMemo(()=>{const W=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),H=D.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),ie=H.match(/^(.*?)(일|년)$/);return ie?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:H})},[D,x]),de=o.useMemo(()=>{const W=da(k);if(!W)return null;const H=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!H)return n.jsx("span",{className:"h1",children:W});const[,ie,Te,ye]=H;return n.jsxs(n.Fragment,{children:[ie&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ie}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Te}),ye.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ye.trim()})]})},[k]),ee=o.useCallback(()=>{F&&Z(W=>{if(W)return null;const H=M.current?.getBoundingClientRect();if(!H)return null;const ie=50;return{left:H.left,right:H.right,width:H.width,height:H.height,x:H.x,y:H.y+ie,top:H.top+ie,bottom:H.bottom+ie}})},[F]),V=o.useCallback(W=>{F&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ee())},[F,ee]),ne=[{items:[...B?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{B(),Z(null)},closeOnSelect:!0}]:[],...v?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{v(),Z(null)},closeOnSelect:!0}]:[],...N?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),Z(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${F?" pass-card--clickable":""}`,style:P,onMouseEnter:I,onMouseMove:O,onMouseLeave:z,onPointerUp:W=>{W.pointerType==="touch"&&z()},onPointerCancel:W=>{W.pointerType==="touch"&&z()},onClick:ee,onKeyDown:F?V:void 0,role:F?"button":void 0,tabIndex:F?0:void 0,"aria-label":e,"aria-haspopup":F?"menu":void 0,"aria-expanded":F?!!Q:void 0,children:[d??D2(w,D,A),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??A2[w],className:"pass-card__logo",alt:w==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:te}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?x("passCard.labeledPlan",{label:A}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[R&&n.jsx("span",{className:"pass-card__price-original body-3",children:da(R)}),de]})]}):G?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:G.remainingLabel}),G.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:G.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Q&&n.jsx(xn,{anchorRect:Q,onClose:se,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ha,{columns:ne,onClose:se,size:"small"})})]})}const S2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function j2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Tt(S2,Ln,$n);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const T2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function M2(e={}){const t=Tt(T2,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}function L2(e,t){if(e){if(t==="manager_pro")return n.jsx(M2,{});if(t==="manager_standard")return n.jsx(j2,{});if(t==="manager_lite")return n.jsx(uu,{})}}function $2(e){const t=da(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function R2(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=v=>!!v&&!!u?.includes(v),d=v=>v.onceOnly??/오픈\s*특가/.test(v.label??""),h=(s.tiers||[]).some(v=>d(v)&&c(v.code)),p=v=>{const N=v.prices?v.prices[i]:v.price;return N?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[i]===N):!1},m=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=t("payment.plan.freePrice","\uBB34\uB8CC"),y=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=v=>v.prices?v.prices[i]:v.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const N=C(v);return N==="\uBB34\uB8CC"||N===g||N==="0\uC6D0"||typeof N=="string"&&/\d/.test(N)&&!/[1-9]/.test(N)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const N=C(v);return N==="\uBB38\uC758"||N===y}),b=s.group==="org",B=b?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(on,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((v,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),v]},N))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((v,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),v]},N))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:_?n.jsx(fe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(v=>{const N=v.label||a,x=d(v),E=x||v.openPromo===!0,w=N.replace(/^오픈\s*특가\s*/,"")||a,D=v.prices?v.prices[i]:v.price,A=v.badge?E?`${r}
|
|
822
|
+
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"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Dg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Sg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},jg={clearAriaLabel:"Clear input"},Tg={ariaLabel:"Select tab"},Mg={ariaLabel:"Tabs"},Lg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},$g={ariaLabel:"User avatar"},Rg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Pg={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},Ig={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"}},Fg={steps:"Step {{current}} of {{total}}"},Og={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},zg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Wg={viewWords:"Words"},Hg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Vg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},qg={previewRegion:"Report preview \u2014 scrollable sideways"},Ug={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Gg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Kg={clearSelection:"Clear selection"},Yg={showResult:"Show {{type}} result"},Zg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Xg={loading:"Loading"},Jg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Qg={ariaLabel:"Breadcrumb"},ey={empty:"No items yet."},ty={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},ny={common:tg,calendar:ng,passCard:ag,rating:rg,colorPicker:og,dropdown:sg,accordion:lg,header:ig,nav:ug,settings:cg,usage:dg,account:pg,training:hg,customers:mg,payment:Cg,coupons:fg,visits:bg,trainingType:gg,myWordTable:yg,keyWords:vg,wordTable:_g,wordSearch:xg,wordPrint:wg,topic:Bg,device:kg,manager:Ag,wordPairs:Ng,footer:Eg,date:Dg,wordData:Sg,textField:jg,segmentedControl:Tg,tabs:Mg,fileUpload:Lg,avatar:$g,myHomework:Rg,trainingStatus:Pg,store:Ig,progress:Fg,trainingMiss:Og,table:zg,wordScore:Wg,topBanner:Hg,datePicker:Vg,report:qg,tooltip:Ug,phonemeProfile:Gg,bulkBar:Kg,debug:Yg,badge:Zg,loader:Xg,soundCompass:Jg,breadcrumb:Qg,board:ey,promoBannerBg:ty};const ay="0.394.0",ry=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],mo="ko",oy="ihab_display_language";function Jl(){if(typeof window>"u")return mo;try{const e=localStorage.getItem(oy);if(e&&ry.some(t=>t.code===e))return e}catch{}return mo}function Ql(e){try{document.documentElement.lang=e}catch{}}Vt.on("languageChanged",Ql),Ql(Jl()),Vt.use(_e.initReactI18next).init({resources:{ko:{translation:eg},en:{translation:ny}},lng:Jl(),fallbackLng:mo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const sy=new Map;try{Vt.store?.on?.("added",()=>sy.clear())}catch{}let pr=null,ei=null,ti=null;function ly(){const e=zl();if(e&&e.entries.length>0){const t=yf();if(pr&&ei===e&&ti===t)return pr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return pr=r,ei=e,ti=t,pr}return[]}new Proxy([],{get(e,t){const a=ly(),r=a[t];return typeof r=="function"?r.bind(a):r}});function iy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function uy(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&iy(r.attrValue)&&(r.keepAttr=!1)};ia.addHook("uponSanitizeAttribute",t);try{return ia.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{ia.removeHook("uponSanitizeAttribute",t)}}function cy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let m=e;p&&(e.startsWith("/")?m=eo(e):/^(Logo|Symbol)/i.test(p)?m=eo(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function m(){try{let g=await fetch(r);g.ok||(g=await fetch(r));const y=g.headers.get("content-type")||"";if(p)return;if(y.includes("svg")){i("mask");return}if(y.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const _=uy(f);if(!_){i("none");return}c(_),i("inline");return}i("none")}catch{p||i("none")}}return m(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,m=null;return l==="mask"&&r&&fetch(r).then(g=>{if(!g.ok)throw new Error("fetch failed");return g.blob()}).then(g=>{p||(m=URL.createObjectURL(g),h(m))}).catch(()=>{p||i("img")}),()=>{p=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function nt(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,y=JC(g),{iconToUse:C,mode:f,svgText:_,blobUrl:b}=cy(g),B=(w,D={})=>n.jsx("span",{className:d,style:u,...D,children:w}),v=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(w,D={})=>n.jsx("img",{src:w,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...D,style:v?{...D.style,...v}:D.style});if(!t)return null;if(typeof t!="string")return B(t);if(t==="none")return B(n.jsx("span",{className:m,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(y)try{return B(o.createElement(y,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const w={"--icon-url":b?`url(${b})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return B(n.jsx("span",{className:p,style:w}),{"aria-hidden":"true"})}return f==="img"?B(N(C,{onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?B(n.jsx("span",{className:m,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):B(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return N(eo(t),{style:u,onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,E=`<svg width="${x}" height="${x}" 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 B(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:E}}),{"aria-hidden":"true"})}function ni(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function dy({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=ni(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(nt,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(nt,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function py({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=_e.useTranslation(),{pending:u,press:c}=ni(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(nt,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(nt,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function hy({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,h=`${c}-desc`,p=`${c}-cta`,m=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${h} ${p}`,onClick:m,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(nt,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:h,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(nt,{icon:"arrow-right",size:18})})]})]})})}function my({as:e="div",className:t="",children:a,storage:r,...s}){r&&F1({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 l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function Cy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function Co(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(Nn)).filter(Cy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const Nn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',fo=new WeakMap;function bo(e,t){e&&fo.set(e,t)}function go(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!fo.has(r);)r=r.parentElement;if(!r)return t;t=fo.get(r)??null}return t}function ai(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function hr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ai(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(Nn)).filter(c=>!(e&&e.contains(c))&&ai(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function fy({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),h=o.useRef(null),p=o.useCallback(()=>{const C=h.current;C&&C.contains(document.activeElement)&&hr(C),d(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),g=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:m,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,b)=>n.jsx("span",{className:"notice-box__line body-3",children:_},b))}):C.children??null})]},f)),g]});const y=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:h,className:m,role:"note",children:[y,g]})}const by={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function pa(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:by,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const ha=[];let mr=!1;function ri(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=ha[ha.length-1];t&&(e.stopPropagation(),t())}function Zn(e){return ha.push(e),!mr&&typeof document<"u"&&(document.addEventListener("keydown",ri),mr=!0),()=>{const t=ha.lastIndexOf(e);t>=0&&ha.splice(t,1),ha.length===0&&mr&&typeof document<"u"&&(document.removeEventListener("keydown",ri),mr=!1)}}const oi=o.createContext(null);function gy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const si=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function yy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Rs.useSyncExternalStore(t,()=>si(e),()=>!1)}function vy(e){const[t,a]=o.useState(si(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const _y=typeof Rs.useSyncExternalStore=="function"?yy:vy;function gn(e){const t=o.useContext(oi),a=_y(e);return t&&typeof t.mobile=="boolean"&&gy(e)?t.mobile:a}const xy="(prefers-reduced-motion: reduce)";function yo(){return gn(xy)}const li={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar","stat-chart__card":"manager-stat-card"};function wy(e,t){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!t.startsWith(r))continue;const s=t.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function By(e){return wy(li,e)}function le(e){if(!e||Object.keys(li).length===0)return e;const t=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=By(a);r&&t.push(r)}return t.length?`${e} ${t.join(" ")}`:e}function xn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:h,backdrop:p=!1,isMobilePopup:m=!1,useBorder:g=!0,header:y,focusOnOpen:C}=e||{},f=o.useRef(null),[_,b]=o.useState({position:"fixed",left:0,top:-9999}),[B,v]=o.useState(!1),[N,x]=o.useState("bottom"),[E,w]=o.useState(!1),[D,A]=o.useState(!1),k=!t&&!a,R=o.useRef(null),$=o.useCallback((T=!1,q=!1)=>{if(D&&m)return;const Y=a?a.getBoundingClientRect():t,U=q&&R.current?R.current:Y;if(!U||!f.current)return;const S=f.current,{offsetWidth:I,offsetHeight:O}=S,z=window.innerWidth,se=window.innerHeight,te=z-U.right,de=U.left,ee=U.top,V=se-U.bottom;let ne=0,W=0,H="top";if(ee>=O+r)H="top",W=U.top-r-O,ne=U.left+U.width/2-I/2;else if(V>=O+r)H="bottom",W=U.bottom+r,ne=U.left+U.width/2-I/2;else if(te>=I+r)H="right",ne=U.right+r,W=U.top+U.height/2-O/2;else if(de>=I+r)H="left",ne=U.left-r-I,W=U.top+U.height/2-O/2;else{const he=Math.max(ee,V,te,de);he===ee?(H="top",W=U.top-r-O,ne=U.left+U.width/2-I/2):he===V?(H="bottom",W=U.bottom+r,ne=U.left+U.width/2-I/2):he===te?(H="right",ne=U.right+r,W=U.top+U.height/2-O/2):(H="left",ne=U.left-r-I,W=U.top+U.height/2-O/2)}const ie=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,ie),z-I-ie),W=Math.min(Math.max(W,ie),se-O-ie);const Te=Math.round(ne),ye=Math.round(W);T&&f.current?(f.current.style.left=`${Te}px`,f.current.style.top=`${ye}px`,f.current.dataset.placement=H):(x(H||N),b({position:"fixed",left:Te,top:ye}),w(!0))},[D,m,a,t,r,s,N]);o.useEffect(()=>()=>{R.current=null},[a,t]),o.useLayoutEffect(()=>{if(k)return;if(D&&m){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),w(!0);return}R.current===null&&(R.current=a?a.getBoundingClientRect():t??null),$(!1,!0);const T=requestAnimationFrame(()=>$(!1,!0));return()=>cancelAnimationFrame(T)},[t,a,r,h,s,k,D,m,$]),o.useEffect(()=>{if(k||D&&m||!f.current||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{t&&$()});return T.observe(f.current),()=>T.disconnect()},[t,h,s,k,D,m,$]),o.useEffect(()=>{if(k||D&&m)return;let T=null;const q=()=>{if(a&&(R.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}T===null&&(T=requestAnimationFrame(()=>{T=null,$(!0)}))},Y=U=>{if(!a&&l){const S=U.target;if(S&&f.current&&f.current.contains(S))return;try{if(S&&S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}Q.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",Y,{passive:!0,capture:!0}),()=>{T!==null&&cancelAnimationFrame(T),window.removeEventListener("resize",q),document.removeEventListener("scroll",Y,{capture:!0})}},[t,a,l,r,h,s,k,D,m,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const T=window.matchMedia("(max-width: 768px)"),q=()=>A(!!T.matches);q();try{T.addEventListener?T.addEventListener("change",q):T.addListener(q)}catch{try{T.addListener(q)}catch{}}return()=>{try{T.removeEventListener?T.removeEventListener("change",q):T.removeListener(q)}catch{}}},[]);const G=o.useRef(!1),M=o.useRef(null),P=yo(),L=o.useCallback((T=!1)=>{if(l&&!(B||G.current)){if(G.current=!0,T){v(!0);try{l&&l()}catch{G.current=!1,v(!1)}return}v(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{G.current=!1,v(!1)}},P?0:200)}},[B,l,v,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(k)return;const T=U=>{const S=f.current;if(!S)return;const I=U.target;if(I&&!S.contains(I)){try{if(I.closest&&I.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},q=U=>{const S=f.current;if(!S)return;const I=U.target;if(I&&!S.contains(I)){try{if(I.closest&&I.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},Y=U=>{if(U.key==="Tab"){const S=f.current;if(!S)return;const I=S.querySelectorAll(Nn);if(!I||I.length===0)return;const O=I[0],z=I[I.length-1],se=document.activeElement;U.shiftKey?se===O&&(U.preventDefault(),z.focus()):se===z&&(U.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",T,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",Y),()=>{document.removeEventListener("pointerdown",T,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",Y)}},[l,i,L,k]);const Q=o.useRef(L);o.useEffect(()=>{Q.current=L});const Z=!!l;o.useEffect(()=>{if(!(k||!Z))return Zn(()=>Q.current())},[k,Z]),o.useEffect(()=>{const T=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",T),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",T)}},[L]);const F=o.useRef(null);o.useEffect(()=>{if(k||C===!1||!E)return;const T=f.current;if(!T)return;const q=T.querySelector(Nn);if(q)return F.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const Y=F.current;F.current=null,Y&&document.contains(Y)&&Y.focus({preventScroll:!0})}},[k,C,E]),o.useEffect(()=>{c==="dialog"&&!d&&wt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const K=n.jsxs("div",{ref:f,className:le(`tooltip__content ${k?"tooltip__content--inline":""} ${g?"tooltip__content--bordered":""} ${B?"is-closing":""} ${u} ${D&&m?"is-mobile":""}`),role:c,"aria-label":d||void 0,style:k?{}:{..._,visibility:E?"visible":"hidden"},tabIndex:-1,"data-placement":N,"data-left":k?"":_.left,"data-top":k?"":_.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:[y!=null&&n.jsx("div",{className:le("tooltip__header h5"),children:y}),h]});if(k||typeof document>"u")return K;if(p||D&&m){const T=n.jsxs("div",{className:le("tooltip__portal"),children:[n.jsx("div",{className:le("tooltip__backdrop"),onClick:()=>{i&&L(!0)}}),K]});return dn.createPortal(T,document.body)}return dn.createPortal(K,document.body)}function Tn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(xn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:le(`info-tooltip ${l}`),ariaLabel:i||a,children:n.jsx("div",{className:le("info-tooltip__content body-3"),children:a})}):null}function Xn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},h=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!h.length&&!r?null:n.jsx(xn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:le("description-tooltip"),ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:le("description-tooltip__box"),children:[r&&n.jsx("span",{className:le("description-tooltip__title body-2"),children:r}),n.jsx("ol",{className:le("description-tooltip__items"),children:h.map((p,m)=>n.jsxs("li",{className:le(`description-tooltip__item body-3${m===l?" description-tooltip__item--active":""}`),children:[i&&h.length>1&&n.jsxs("span",{className:le("description-tooltip__index button-1"),children:[m+1,"."]}),p.color&&n.jsx("span",{className:le("description-tooltip__dot"),style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},m))})]})})}function Ia(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let vo=0,ii=!1;function ui(){ii||typeof document>"u"||(ii=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(vo=Date.now())},!0),document.addEventListener("touchstart",()=>{vo=Date.now()},{capture:!0,passive:!0}))}ui();function ma(e){return!!e&&e.pointerType==="touch"}function Ca(e=1e3){return ui(),Date.now()-vo<e}function _o(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ia(e),i=Ia(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=p=>{const m=p,g=p.target,y=a.current,C=!!(g&&y&&y.contains(g));if(m.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(g&&g.closest?.(".tooltip__content"))&&i.current(!1,y)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const d=o.useCallback(h=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,p=h?.parentElement;if(!h||!p)return;let m=null;const g=f=>{const _=f.changedTouches?.[0];if(!_)return!1;const b=h.getBoundingClientRect();return _.clientX>=b.left&&_.clientX<=b.right&&_.clientY>=b.top&&_.clientY<=b.bottom},y=f=>{m=g(f)?l.current:null},C=f=>{const _=m;m=null,!(_===null||Date.now()-c.current<700||!g(f))&&(u.current=null,c.current=Date.now(),i.current(!_,h))};return p.addEventListener("touchstart",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function ky(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:h,count:p,subLabel:m,children:g,ariaLabel:y,variant:C="default",align:f="center",nowrap:_=!1,selected:b,toggleable:B=!1,ariaExpanded:v,ariaControls:N,disabled:x=!1,loading:E=!1,useLabel:w=!0,useBorder:D=!0,useBG:A=!0,useDisabledCovered:k=!1,useDisabledInvisible:R=!1,useDisabledFilled:$=!1,width:G,minWidth:M,onClick:P,onDisabledClick:L,showTooltipInfo:Q=!1,tooltipInfoText:Z=null,tooltipDescription:F=null,tooltipOnly:K=!1,iconSize:T="medium",iconColor:q,shape:Y="rounded",color:U,className:S,...I}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),z=O.match(/^\d+$/)?`button${O}`:`button-${O}`,se=Number(a),te=!isNaN(se)&&se<40?"button-2":"button-1",de=h??g,ee=x||!!I.disabled,V=ee?k?"disabled-covered":R?"disabled-invisibled":$?"disabled-filled":"disabled":C,ne=V?`button--variant-${V}`:"",W=f?`button--align-${f}`:"",H=_?"button--nowrap":"",ie=Y?`button--shape-${Y}`:"",Te=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ye={...G?{width:typeof G=="number"?`${G}px`:G}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...D?{}:{"--button-border":ee?"0":"1px solid transparent"},...Te?{"--button-icon-color":Te}:{},...U?{"--color-main":U}:{}},he=w===!1?"":de,Se=Array.isArray(he)?he.length>0:!!he,$e=!!d,Ne=r??(Se||c||$e?"bar":"dot"),ue=`${z}--${Ne}`,xe=o.useRef(null);o.useEffect(()=>{!On||s!==void 0||xe.current?.closest("form")&&wt(`button-in-form:${typeof de=="string"?de:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof de=="string"&&de?` \uB2E8\uCD94: ${de}`:""))},[s,de]);const ke=o.useRef(t);ke.current=t;const Ee=o.useCallback(Le=>{xe.current=Le;const at=ke.current;typeof at=="function"?at(Le):at&&(at.current=Le)},[]),We=o.useRef(ee),[He,ot]=o.useState(!!b),[Qe,Je]=o.useState(!1),[vt,je]=o.useState(null),Ye=o.useCallback(()=>Je(!1),[]),[we,Ue]=o.useState(!1),qe=o.useId();o.useEffect(()=>{typeof b=="boolean"&&ot(b)},[b]),o.useEffect(()=>{if(We.current&&!ee&&xe.current){const Le=xe.current;let at=!1;try{at=Le.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Le.blur(),Le.style.pointerEvents="none";const oe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(oe)}We.current=ee},[ee]);const pt=typeof b=="boolean"?!!b:He,_t=typeof v=="boolean"?void 0:B||typeof b=="boolean"?pt?"true":"false":I["aria-pressed"],Et=Be("button",z,ue,ne,W,H,ie,pt?"is-selected":null,A?null:"button--no-bg",K?"button--tooltip-only":null,S),Bt=`button__icon button__icon--${T}`,st=Array.isArray(m)?m:m!==void 0?[m]:[],tt=()=>{if(Array.isArray(he))return he.map((at,oe)=>{const be=st[oe];return n.jsxs("span",{className:`button__label-text${be!==void 0?" button__label-text--has-sub":""}`,children:[at,be!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:be})]},oe)});const Le=m!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[he,p!=null&&n.jsx("span",{className:"button__count",children:p}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},kt=Le=>{typeof b!="boolean"&&!B&&ot(!1),Le.currentTarget.blur()},At=Le=>{ee||(typeof I.onMouseLeave=="function"&&I.onMouseLeave(Le),kt(Le))},jt=Le=>{if(K&&it&&ut.touchPress(Le.currentTarget),ee){it&&ut.touchPress(Le.currentTarget),Le.preventDefault(),L?.(Le);return}typeof b!="boolean"&&B&&ot(at=>!at),P?.(Le)},Mt=o.useCallback(()=>{(Q||F)&&(Je(!0),je(xe.current?.getBoundingClientRect()??null))},[Q,F]),gt=o.useCallback(()=>{(Q||F)&&(Je(!1),je(null))},[Q,F]),it=!!(Q||F),ut=_o(Qe,Le=>{Le?Mt():gt()},xe,{enabled:it&&(ee||K),fallbackOnParent:it&&ee}),ct={...I};delete ct.disabled,delete ct.className,delete ct.faded,delete ct.useFaded,delete ct.loading,delete ct.onMouseLeave,delete ct.onPointerEnter,delete ct.onPointerLeave,delete ct.onPointerUp,delete ct.onFocus,delete ct.onBlur,ee&&(Object.keys(ct).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof ct[Le]=="function"&&delete ct[Le]}),ct["aria-disabled"]="true"),E&&(ct["aria-busy"]="true");const ve=(typeof Q=="string"?Q:null)??(typeof Z=="string"?Z:null)??(typeof y=="string"?y:null)??(typeof de=="string"?de:null)??void 0,Me=typeof y=="string"?y:typeof de=="string"?de:ve,Pe=F?[F.title,...F.items??[]].filter(Boolean).join(". "):Q&&ve&&ve!==Me?ve:"",Oe=[typeof I["aria-describedby"]=="string"?I["aria-describedby"]:void 0,Pe?qe:null].filter(Boolean).join(" ")||void 0,dt=()=>n.jsx("span",{className:`${Bt} button__spinner`,"aria-hidden":"true",children:n.jsx(pa,{variant:"spinner",size:"100%"})}),Dt=(Le,at)=>n.jsx(nt,{icon:Le,label:at??Me,className:Bt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),yt=Le=>E?dt():Dt(c,Le),xt=()=>Ne==="dot"?n.jsxs(n.Fragment,{children:[yt(),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()})]}):f==="center"&&(c||E)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:yt()}),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()})]}),$e&&n.jsx("span",{className:"button__right",children:Dt(d)})]}):n.jsxs(n.Fragment,{children:[(c||E)&&n.jsx("span",{className:"button__left",children:yt(y??de)}),Se&&n.jsx("span",{className:`button__label ${te}`,children:tt()}),$e&&n.jsx("span",{className:"button__right",children:Dt(d)})]}),Ct=!!l&&!ee;return n.jsxs(n.Fragment,{children:[n.jsxs(Ct?"a":"button",{...ct,ref:Ee,...Ct?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:ee&&!L&&!we},className:Et,"aria-pressed":_t,"aria-expanded":typeof v=="boolean"?v:I["aria-expanded"],"aria-controls":N??I["aria-controls"],"aria-label":Me,"aria-disabled":ee&&(Ct||L||we)?!0:void 0,"aria-describedby":Oe,style:ye,onClick:jt,onMouseLeave:At,onPointerEnter:Le=>{ma(Le)||Mt(),!ee&&typeof I.onPointerEnter=="function"&&I.onPointerEnter(Le)},onPointerLeave:Le=>{ma(Le)||gt(),!ee&&typeof I.onPointerLeave=="function"&&I.onPointerLeave(Le)},onPointerUp:Le=>{ee&&it&&ut.touchPress(Le.currentTarget),!ee&&typeof I.onPointerUp=="function"&&I.onPointerUp(Le)},onFocus:Le=>{Ue(!0),Ca()||Mt(),!ee&&typeof I.onFocus=="function"&&I.onFocus(Le)},onBlur:Le=>{Ue(!1),ee||kt(Le),gt(),!ee&&typeof I.onBlur=="function"&&I.onBlur(Le)},children:[xt(),Pe?n.jsx("span",{id:qe,hidden:!0,"aria-label":Pe}):null]}),Qe&&F?n.jsx(Xn,{anchorRect:vt,title:F.title,items:F.items,onClose:Ye}):Qe&&ve?n.jsx(Tn,{anchorRect:vt,text:ve,onClose:Ye}):null]})}const fe=o.forwardRef(ky);fe.displayName="Button";function Tt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Fa={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xo=new WeakMap;function wo(e){if(e)return xo.get(e)}function Zt(e,t){e&&(e.style.setProperty(Fa.title,t.title),e.style.setProperty(Fa.description,t.description),xo.set(e,t))}function Xt(e){e&&(e.style.removeProperty(Fa.title),e.style.removeProperty(Fa.description),xo.delete(e))}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function di(){const e=Tt(ci,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const pi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function hi(){const e=Tt(pi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ci(){const e=Tt(mi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function bi(){const e=Tt(fi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const gi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function yi(){const e=Tt(gi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const vi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function _i(){const e=Tt(vi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const xi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function wi(){const e=Tt(xi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ki(){const e=Tt(Bi,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ai={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=Tt(Ai,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ei={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Di(){const e=Tt(Ei,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Si={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function ji(){const e=Tt(Si,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Mi(){const e=Tt(Ti,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function $i(){const e=Tt(Li,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ri={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Pi(){const e=Tt(Ri,Zt,Xt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const rn=(e,t,a)=>({key:e,get label(){return Vt.t(`promoBannerBg.${e}`,t)},textTone:a}),Ay=[rn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("soft","\uC18C\uD504\uD2B8","dark"),rn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),rn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),rn("warm","\uC6DC(\uAC15\uC870)","dark"),rn("dark","\uB2E4\uD06C","light"),rn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),rn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),rn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),rn("outline","\uC544\uC6C3\uB77C\uC778","dark"),rn("success","\uC131\uACF5/\uC644\uB8CC","light"),rn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),rn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ii={main:di,soft:hi,sub:Ci,deep:bi,softSub:yi,warm:_i,dark:wi,radial:ki,diagonal:Ni,dots:Di,outline:ji,success:Mi,naver:$i,instagram:Pi};function Fi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=B=>Math.max(a,Math.min(r,Number(B))),u=B=>{try{const v=localStorage.getItem(B),N=v?Number(v):1;return Number.isFinite(N)?i(N):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[h,p]=o.useState(e);h!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=B=>{d(typeof B=="function"?v=>i(B(v)):i(B))},g=()=>m(B=>+(B+s).toFixed(6)),y=()=>m(B=>+(B-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,_=Math.round(t*c),b=Math.round(_*l);return{scale:c,setScale:m,increase:g,decrease:y,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:b}}function Oi(e,t){const a=Ia(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Bo=" \xB7 ",zi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Bo)?e.split(Bo).pop()??e:e})(),Ny=o.createContext(!1),Jn=[];let Wi=null;function Ey(e){const t=o.useContext(Ny);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Jn.length===0&&(Wi=document.title);const a={text:zi?`${e}${Bo}${zi}`:e};return Jn.push(a),document.title=a.text,()=>{const r=Jn.lastIndexOf(a);r>=0&&Jn.splice(r,1),document.title=Jn.length?Jn[Jn.length-1].text:Wi??document.title}},[e,t])}const ko=[{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"}],Dy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function mn(e,t){return Dy().compare(e,t)}const Cr=new Map;function Sy(e){const t=Cr.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),Cr.size>5e3&&Cr.clear(),Cr.set(e,a),a}function jy(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function Ty(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,h)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=jy(h);return p!==null?[p]:Sy(h)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const h=i[d],p=u[d];if(typeof h=="number"&&typeof p=="number"){if(h!==p)return h-p;continue}if(typeof h=="number")return-1;if(typeof p=="number")return 1;const m=mn(h,p);if(m!==0)return m}return i.length!==u.length?i.length-u.length:mn(r,s)}const Hi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function fr(e,t,a){const r=Hi(e),s=Hi(t);if(r||s)return r===s?0:r?1:-1;const l=Ty(e,t);return a?l:-l}function My(e,t,a){const{t:r}=_e.useTranslation(),[s,l]=o.useState(()=>{const y=a?.initialPageSize;return y&&ko.some(C=>C.value===y)?y:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const h=o.useMemo(()=>ko.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{ko.some(C=>C.value===y)&&(l(y),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),g=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==g&&u(g),{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:h,value:s,onChange:p},paginationProps:{page:g,total:m,onChange:u},setPage:u}}function Ly(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,h=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:h,asc:p}=t;return[...c].sort((m,g)=>fr(d(m,h),d(g,h),p))},[t]);return{sort:t,field:i,sortRows:u}}const wn="\uC804\uCCB4";Object.fromEntries(Object.entries(cf).map(([e,{nucleus:t}])=>[e,t]));const $y={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"})},Ry={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"})},Py={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 Iy(e,t){if("place"in t)return $y[t.place](e);const a=Ry[t.vowel](e);return t.glide?`${a} \xB7 ${Py[t.glide](e)}`:a}const Fy=(e,{defaultValue:t})=>t,Vi=(e,t)=>({jamos:e,phonetic:t,tooltip:Iy(Fy,t)}),Mn=(e,t)=>t.map(a=>Vi([a],{place:e})),qt=(e,t,a)=>Vi([...e],a?{vowel:t,glide:a}:{vowel:t}),Ao={cho:[Mn("labial",["\u3142","\u3143","\u314D","\u3141"]),Mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Mn("alveolar",["\u3145","\u3146"]),Mn("palatal",["\u3148","\u3149","\u314A"]),Mn("velar",["\u3131","\u3132","\u314B"]),Mn("glottal",["\u314E"])],jung:[[qt("\u3163","frontHigh"),qt("\u315F","frontHigh","w"),qt("\u3162","frontHigh","velar")],[qt("\u3161","backHighUnrounded")],[qt("\u315C","backHighRounded"),qt("\u3160","backHighRounded","j")],[qt("\u3154\u3150","frontMid"),qt("\u3156\u3152","frontMid","j"),qt("\u3159\u315A\u315E","frontMid","w")],[qt("\u3153","backMidUnrounded"),qt("\u3155","backMidUnrounded","j"),qt("\u315D","backMidUnrounded","w")],[qt("\u3157","backMidRounded"),qt("\u315B","backMidRounded","j")],[qt("\u314F","low"),qt("\u3151","low","j"),qt("\u3158","low","w")]],jong:[Mn("labial",["\u3142","\u3141"]),Mn("alveolar",["\u3137","\u3134","\u3139"]),Mn("velar",["\u3131","\u3147"])]},Oy=e=>e===zy?[]:Array.from(e),zy="__NO_CODA__",No=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),qi={cho:No(Ao.cho),jung:No(Ao.jung),jong:No(Ao.jong)};qi.jung.flat().forEach(({v:e})=>{for(const t of Oy(e));}),new Set(qi.cho.flat().map(e=>e.v));function Wy(e,t=!0){const a=Ia(e);o.useEffect(()=>{if(t)return Zn(()=>{a.current?.()})},[t,a])}function Oa(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function Hy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Ui(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,m)=>{s(m),a(p),i(g=>g+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:h}}function za(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Wa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let g=d.current?.offsetHeight??0;g>0&&h();let y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const E=d.current?.offsetHeight??0;if(E!==g){if(g=E,++y>4){C?.disconnect(),C=null;return}h()}}),C.observe(d.current));const f=E=>{const w=E.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let _=null;const b=()=>{if(typeof requestAnimationFrame>"u"){h();return}_===null&&(_=requestAnimationFrame(()=>{_=null,h()}))},B=E=>{d.current?.contains(E.target)||(t==="reposition"?b():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",B,!0);const v=()=>{a==="reposition"?b():a==="close"&&l(!1)};let N=null;const x=()=>{v(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",v),window.addEventListener("orientationchange",x)),()=>{_!==null&&cancelAnimationFrame(_),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",B,!0),a!=="ignore"&&(window.removeEventListener("resize",v),window.removeEventListener("orientationchange",x)),N&&clearTimeout(N)}},[s,h,t,a,r]),o.useEffect(()=>{if(s)return Zn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(g=>!g),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:m,style:i,triggerRef:c,menuRef:d}}function Vy(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,h]=o.useState(0),[p,m]=o.useState("idle"),[g,y]=o.useState(null),[C,f]=o.useState([]),[_,b]=o.useState(null),[B,v]=o.useState(0),N=o.useRef(0),x=o.useCallback(T=>{N.current=typeof T=="function"?T(N.current):T,v(N.current)},[]),E=o.useRef(r),w=o.useRef(s);o.useEffect(()=>{E.current=r,w.current=s},[r,s]);const D=o.useRef([]),A=()=>{D.current.forEach(clearTimeout),D.current=[]},k=(T,q)=>{D.current.push(setTimeout(q,T))};o.useEffect(()=>()=>A(),[]);const R=u[d]?.id??null,$=o.useRef(null),G=o.useCallback(()=>{A(),m("playing"),f([]),b(null),x(0);let T=0;e.forEach((q,Y)=>{k(T,()=>{h(Y),y(q.id),E.current?.(q)}),k(T+1e3,()=>{y(null),f(U=>[...U,q.id])}),T+=1300}),k(T,()=>{m("done"),w.current?.({score:0,total:e.length})})},[e,x]),M=o.useCallback((T,q)=>{if(q>=T.length){m("done"),w.current?.({score:N.current,total:T.length});return}$.current=null,h(q),b(null),m("playing"),y(T[q].id),E.current?.(T[q]),k(l,()=>{y(null),m("waiting")})},[l]),P=o.useCallback(()=>{A();const T=$a(e);c(T),x(0),f([]),M(T,0)},[e,M,x]),L=o.useCallback(()=>{t==="playback"?(c(e),G()):P()},[t,e,G,P]),Q=o.useCallback(()=>{A(),m("idle"),y(null),f([]),b(null),h(0),x(0),c([])},[x]),Z=JSON.stringify(e.map(T=>[T.id,T.label,T.angleDeg,T.deg,T.row,T.shortcut]));o.useEffect(()=>(a?L():Q(),()=>A()),[t,Z,a]);const F=o.useCallback(T=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,b(T),T===u[d]?.id&&x(q=>q+1),t==="exam"?(m("playing"),k(400,()=>M(u,d+1))):(m("feedback"),k(i,()=>M(u,d+1))))},[p,t,u,d,M,i,x]),K=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:_,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:F},index:d,total:K,score:B,phase:p,done:p==="done",start:L,reset:Q}}const Eo=new Map,Do=new Map,qy=()=>()=>{},Uy=()=>!0,Gy=()=>!1;function Gi(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Ky(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};ia.addHook("uponSanitizeAttribute",t);try{return ia.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{ia.removeHook("uponSanitizeAttribute",t)}}function Yy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Zy(e){const t=Do.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Eo.set(e,r),r)).catch(()=>null).finally(()=>{Do.delete(e)});return Do.set(e,a),a}function Xy(e,t=!0){const a=o.useSyncExternalStore(qy,Uy,Gy)&&t&&e?Gi(e)??Eo.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Gi(e)??Eo.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Zy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Jy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:h=""}){const p=s??l??"main",m=o.useRef(null),[g,y]=o.useState("main"),C=gn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const B=m.current;if(!B)return;const v=wo(B),N=(x,E,w)=>{if(w!==void 0)B.style.setProperty(E,w),f.current[x]=!0;else if(f.current[x]){const D=v?.[x];D?B.style.setProperty(E,D):B.style.removeProperty(E),f.current[x]=!1}};N("title","--promo-banner-bg-title",c),N("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const B=m.current;if(!B)return;const v=wo(B);y(v?.actionVariant??"main")},[p]);const _=Be("promo-banner",`promo-banner--${i}`,h),b=Ii[p];return n.jsxs("div",{ref:m,className:_,role:"note",children:[n.jsx(b,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(fe,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Qy({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=_e.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,h]=o.useState(0),[p,m]=o.useState(!1),[g,y]=o.useState(!1),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),B=o.useRef(null),v=yo(),N=p||g||C,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||v)return;const w=window.setInterval(()=>h(D=>(Math.min(D,c-1)+1)%c),t);return()=>window.clearInterval(w)},[c,t,N,v]);const E=w=>{b.current!=null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{b.current=null,f(!1)},w)};return o.useEffect(()=>()=>{b.current!=null&&window.clearTimeout(b.current)},[]),o.useEffect(()=>{if(!C)return;const w=D=>{D.pointerType==="touch"&&(B.current&&B.current.contains(D.target)||(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!1)))};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[C]),c===0?null:n.jsxs("section",{ref:B,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:w=>{_.current=w.pointerType},onPointerDown:w=>{_.current=w.pointerType,w.pointerType==="touch"&&(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!0))},onPointerUp:w=>{w.pointerType==="touch"&&E(5e3)},onPointerCancel:w=>{w.pointerType==="touch"&&E(5e3)},onMouseEnter:()=>{_.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:w=>{let D=!0;try{D=w.target.matches(":focus-visible")}catch{D=!0}y(D)},onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((w,D)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":D!==x,...D!==x?{inert:!0}:{},children:w},D))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((w,D)=>n.jsx("button",{type:"button",className:`top-banner__dot${D===x?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:D+1,defaultValue:`${c}\uAC1C \uC911 ${D+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":D===x,onClick:()=>h(D)},D))})]})}function e2({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const h=d.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),m=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[m+1]:p[m-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(nt,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function t2({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(e2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function n2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function a2(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function r2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function En({children:e,icon:t,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:d=""}){const{t:h}=_e.useTranslation(),p=t??"check",m=a!==void 0,g=e!==void 0||m?"number":p,y=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[p],C=c?void 0:u??y;return n.jsxs("span",{className:Be("circle-badge",`circle-badge--${g}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",d),onClick:i,onKeyDown:i?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,"aria-label":C,"aria-hidden":c||void 0,role:i?"button":C?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&p==="check"&&n.jsx(n2,{}),e===void 0&&!m&&p==="remove"&&n.jsx(a2,{}),e===void 0&&!m&&p==="minus"&&n.jsx(r2,{})]})}function Ha({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let _=e;for(const b of i){const B=_?.[b.ci]?.items?.[b.ii];if(!B||!Array.isArray(B.children)||!B.children.length)break;_=[{title:null,items:B.children}],f.push({title:B.label||null,columns:_})}return f},[e,i]),d=c[c.length-1],h=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,h)-1))),[h]),m=o.useRef(null),g=o.useRef(null),y=c.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let f=0,_=0;const b=()=>{const B=m.current?.querySelector("button:not([disabled])");if(B&&B.offsetParent){B.focus({preventScroll:!0});return}_++<20&&(f=requestAnimationFrame(b))};return f=requestAnimationFrame(b),()=>cancelAnimationFrame(f)},[y]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,_,b)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(B=>[...B.slice(0,h),{ci:_,ii:b}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,h]);return n.jsxs("div",{className:le(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||d.title)&&n.jsxs("div",{className:le("menu-tooltip__header"),children:[c.length>1?n.jsx(fe,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:le("menu-tooltip__title button-1"),children:d.title})]}),n.jsx("div",{className:le("menu-tooltip__columns"),ref:m,children:d.columns&&d.columns.map((f,_)=>n.jsxs("div",{className:le("menu-tooltip__column"),children:[f.title?n.jsx("div",{className:le("menu-tooltip__column-title body-3"),children:f.title}):null,n.jsx("div",{className:le("menu-tooltip__items"),children:(f.items||[]).map((b,B)=>n.jsxs(o.Fragment,{children:[b.separatorBefore&&B>0&&n.jsx("div",{className:le("menu-tooltip__separator"),role:"separator"}),n.jsx(fe,{htmlType:"button",className:le("menu-tooltip__item"),size:l,type:b.label?"bar":"dot",icon:b.selected?"check":b.icon||"none",rightIcon:Array.isArray(b.children)&&b.children.length?"chevron-right":b.badgeCount?n.jsx(En,{position:"inline",number:Math.min(b.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:b.label,ariaLabel:b.label&&b.badgeCount&&b.badgeCount>0?s("nav.badgeLabel",{label:b.label,count:b.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):b.label,onClick:()=>C(b,_,B),selected:b.selected,disabled:b.disabled,showTooltipInfo:b.tooltip||!1,useBorder:!1,align:"left"})]},B))})]},_))})]})}const Ki=".content-area";function So(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Ki);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&wt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Ki}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const jo=52,br=10,Yi=e=>e&&e>0?e:0;function Zi({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,g]=o.useState(0),y=e.length;o.useEffect(()=>{const T=p.current;if(!T)return;const q=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(T):null,I=T.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),O=T.querySelector(".bottom-nav__left"),z=O?.nextElementSibling,se=(O?.offsetWidth??0)+(O&&z?.classList.contains("bottom-nav__divider")?z.offsetWidth:0);g(Math.max(0,I-se))};if(q(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(q);Y.observe(T);const U=T.querySelector(".bottom-nav__left");return U&&Y.observe(U),()=>Y.disconnect()},[s]);const C=jo+1,f=T=>Math.max(0,Math.floor((T+br)/(jo+br))),_=y*(jo+br)-br<=m,b=m<=0||l.length===0&&_?y:Math.min(y,f(m-C)),B=m>0&&b<y,v=B?b:y,N=e.slice(0,v),x=e.slice(v),E=B||l.length>0,w=o.useCallback((T,q)=>({position:"fixed",bottom:window.innerHeight-T.top+8,right:window.innerWidth-T.right,zIndex:za(q)}),[]),D=o.useId(),{open:A,toggle:k,close:R,style:$,triggerRef:G,menuRef:M}=Wa({computeStyle:w,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((T,q)=>q>0?u("nav.badgeLabel",{label:T,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):T,[u]),L=o.useCallback((T,q)=>q>0?u("nav.badgeInsideLabel",{label:T,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):T,[u]),Q=o.useCallback(()=>s?.(c),[s,c]),Z=o.useMemo(()=>x.find(T=>!!T.key&&T.key===t)??l.find(T=>T.selected||T.key&&T.key===t),[x,t,l]),F=o.useMemo(()=>[{items:[...x.map(T=>({label:T.label,icon:T.icon,badgeCount:T.badgeCount,selected:!!T.key&&T.key===t,closeOnSelect:!0,disabled:T.state==="disabled",onClick:()=>{T.state!=="disabled"&&(T.key&&a&&(a(T.key),So(i,"BottomNav")),R())}})),...l.map(T=>({label:T.label,icon:T.icon,badgeCount:T.badgeCount,selected:T.selected??(!!T.key&&T.key===t),closeOnSelect:!0,onClick:()=>{T.onClick?.(),R()}}))]}],[x,l,t,a,R]),K=[...x,...l].reduce((T,q)=>T+Yi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:h,className:"bottom-nav-item",onClick:Q})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((T,q)=>{const Y=Yi(T.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:T.icon,ariaLabel:P(T.label,Y),selected:!!T.key&&T.key===t,disabled:T.state==="disabled",className:"bottom-nav-item",onClick:()=>{T.key&&(a?.(T.key),So(i,"BottomNav"))}}),Y>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(En,{position:"top-right",number:Math.min(Y,99),size:24})})]},T.key??`__slot-${q}`)})}),E&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:G,className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:Z?.icon??"ellipsis",ariaLabel:L(Z?.label??u("nav.more","\uB354\uBCF4\uAE30"),K),selected:!!Z,className:"bottom-nav-item",onClick:k,"aria-expanded":A,"aria-controls":A?D:void 0}),K>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(En,{position:"top-right",number:Math.min(K,99),size:24})}),A&&dn.createPortal(n.jsx("div",{id:D,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:le("tooltip__content"),style:$,ref:M,children:n.jsx(Ha,{columns:F,onClose:R})}),document.body)]})})]})]})}function Xi(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Ji(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function o2(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},h="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:Ji(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx(En,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Qi(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:h}=e||{},p=a?.key??r??"",m=a?.label??s??"",g=a?.icon??l??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(nt,{icon:g,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",_=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,b=o.useCallback(B=>{if(f)return;const v=B.detail>0;if(v)try{B.currentTarget.blur()}catch{}u?.(p,B.currentTarget,v)},[f,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:b,"aria-label":typeof m=="string"?Ji(t,m,y):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),y>0&&n.jsx(En,{position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function eu(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g,scrollContainer:y}=e||{},C=m==="manager",f=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),_=o.useRef(null),[b,B]=o.useState(null);o.useEffect(()=>{const w=_.current;if(!w)return;let D=null;const A=()=>{const{scrollHeight:$,clientHeight:G,scrollTop:M}=w;if($<=G+1){B(F=>F===null?F:null);return}const P=Math.max(24,G/$*G),L=G-P,Q=$-G,Z={top:Math.round(M/Q*L),height:Math.round(P)};B(F=>F&&F.top===Z.top&&F.height===Z.height?F:Z)},k=()=>{if(typeof requestAnimationFrame>"u"){A();return}D===null&&(D=requestAnimationFrame(()=>{D=null,A()}))};A(),w.addEventListener("scroll",k,{passive:!0});const R=typeof ResizeObserver<"u"?new ResizeObserver(k):null;R?.observe(w);for(const $ of Array.from(w.children))R?.observe($);return()=>{D!==null&&cancelAnimationFrame(D),w.removeEventListener("scroll",k),R?.disconnect()}},[a]);const v=o.useRef(null),N=o.useCallback(w=>{const D=_.current;D&&(w.preventDefault(),v.current={y:w.clientY,top:D.scrollTop},w.currentTarget.setPointerCapture(w.pointerId))},[]),x=o.useCallback(w=>{const D=_.current,A=v.current;!D||!A||(D.scrollTop=A.top+(w.clientY-A.y)*(D.scrollHeight/D.clientHeight))},[]),E=o.useCallback(w=>{v.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[b&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:b.top,height:b.height},onPointerDown:N,onPointerMove:x,onPointerUp:E,onPointerCancel:E})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(w=>!w.section&&(w.key||w.label)).map((w,D)=>n.jsxs(o.Fragment,{children:[w.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Qi,{item:w,active:!!w.key&&w.key===r,state:w.disabled?"disabled":void 0,onClick:(A,k,R)=>{if(w.disabled)return;if(w.href){if(Xi(w.href)&&window.open(w.href,"_blank","noopener,noreferrer"),R)try{k?.blur()}catch{}return}if(s?.(w.key),So(y,"SideNav"),!R)return;try{k?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const $=document.querySelector(".header");if($){const G=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&G&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const M=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",M)};$.addEventListener("mouseenter",M)}}}})]},w.key??`side-nav__item-${D}`)),g&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&n.jsx(Qi,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(o2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p})]})}var gr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',To='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',s2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function tu({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?To:gr,s=s2;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.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 brand-identity__image--logo"})]})}function nu({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g,scrollContainer:y}){const{t:C}=_e.useTranslation(),f=gn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),b=o.useCallback($=>{const G=a?.find(M=>M.key===$);if(!G?.disabled){if(G?.href){Xi(G.href)&&window.open(G.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),B=o.useMemo(()=>{const $=[];return i&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),h&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,i,u,d,h,p,c,l]),v=o.useCallback(($,G)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:za(G)}),[]),N=o.useId(),{open:x,toggle:E,close:w,style:D,triggerRef:A,menuRef:k}=Wa({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),R=o.useMemo(()=>[{items:B.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[B,e,w]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(tu,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:A,children:[n.jsx(fe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:E,"aria-expanded":x,"aria-controls":x?N:void 0}),!!u&&!!l&&l>0&&n.jsx(En,{number:Math.min(l,99),size:24,"aria-hidden":!0}),x&&dn.createPortal(n.jsx("div",{id:N,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:le("tooltip__content"),style:D,ref:k,children:n.jsx(Ha,{columns:R,onClose:w})}),document.body)]})]}),n.jsx(eu,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:g}),f&&n.jsx(Zi,{items:_,activeKey:e??void 0,onChange:b,scrollContainer:y,appMode:m,onAppModeChange:g})]})}const l2=nu;function on(e){const{type:t="dot",size:a,className:r="","aria-label":s,"aria-hidden":l}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&wt("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694.");const{label:i,children:u,variant:c="default",fill:d="filled",minWidth:h,iconLeft:p,iconRight:m,color:g}=e,y=t==="bar",C=typeof a=="number"?"medium":a??"medium",f=(y?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[C]??(y?"body-2":"body-2b"),_={small:12,medium:14,large:16}[C]??14,b=Be("badge",y?"badge--bar":"",`badge--${c}`,`badge--${C}`,d!=="filled"?`badge--${d}`:"",f,r),B=g?.startsWith("--")?`var(${g})`:g,v=h!==void 0||B?{...h!==void 0?{minWidth:typeof h=="number"?`${h}px`:h}:{},...B?{"--badge-color":B}:{}}:void 0;return n.jsxs("span",{className:b,style:v,"aria-label":l?void 0:s,role:s&&!l?"img":void 0,"aria-hidden":l||void 0,children:[p&&n.jsx(nt,{icon:p,size:_,className:"badge__icon"}),i??u,m&&n.jsx(nt,{icon:m,size:_,className:"badge__icon"})]})}const i2=()=>Vt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function au(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return da(`${t.toLocaleString("ko-KR")}\uC6D0`)}return da(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function u2(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function c2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\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*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||i2()}function d2(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 ru(e){return{type:e.type??u2(e),plan:c2(e),label:e.label,price:au(e.price),originalPrice:au(e.originalPrice),discountLabel:e.discountLabel}}var p2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',h2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',ou='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const Qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Mo=new WeakMap;function m2(e){if(e)return Mo.get(e)}function Ln(e,t){e&&(e.style.setProperty(Qn.text,t.text),e.style.setProperty(Qn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Qn.copyright,t.copyrightColor),Mo.set(e,t))}function $n(e){e&&(e.style.removeProperty(Qn.text),e.style.removeProperty(Qn.sub),e.style.removeProperty(Qn.copyright),Mo.delete(e))}const su={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function lu(e={}){const t=Tt(su,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${ou}")`}})]})}const iu="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",fa=240;var Va='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const C2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},f2=100,b2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function uu(e={}){const t=Tt(C2,Ln,$n),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:b2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*f2/fa}) translate(${-fa/2} ${-fa/2})`,opacity:i,children:n.jsx("path",{d:iu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const g2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},y2=100,v2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _2(e={}){const t=Tt(g2,Ln,$n),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:v2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*y2/fa}) translate(${-fa/2} ${-fa/2})`,opacity:i,children:n.jsx("path",{d:iu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${ou}")`}})]})}const x2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function w2(e={}){const t=Tt(x2,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const B2={Logo_SpeechEar_ko:{"":gr,_mono:p2},Logo_SpeechEarManager_ko:{"":To,_mono:h2}};function k2(e,t){if(e)return B2[e]?.[t??""]??void 0}const A2={speechear:gr,manager:To},N2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},cu=10;function E2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function du(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 s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function D2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Vt.t("passCard.specialLabel");return r?n.jsx(w2,{}):s?n.jsx(_2,{}):n.jsx(uu,{})}return n.jsx(lu,{})}function pu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:h=!1,textColor:p,subColor:m,copyrightColor:g,logoSrc:y,label:C,price:f,originalPrice:_,discountLabel:b,onUse:B,onRefund:v,onDelete:N}){const{t:x}=_e.useTranslation(),E=t?ru(t):void 0,w=s??E?.type??"speechear",D=r??E?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=C??E?.label,k=f??(a?E?.price:void 0),R=_??(a?E?.originalPrice:void 0),$=b??E?.discountLabel,G=o.useMemo(()=>{if(k)return null;const W=t?.durationDays??d2(t?.code);if(!W||W<=0)return i!=null?{percent:null,remainingLabel:du(i,x)}:null;const H=W*86400;let ie;if(i!=null)ie=i;else if((c==="active"||c==="expired")&&l){const he=new Date(l).getTime();if(Number.isNaN(he))return null;const Se=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),$e=/^(\d{4})-(\d{2})-(\d{2})/.exec(Pa()),Ne=Math.round(Se&&$e?(Date.UTC(+Se[1],+Se[2]-1,+Se[3])-Date.UTC(+$e[1],+$e[2]-1,+$e[3]))/864e5:(he-Date.now())/864e5);ie=Math.max(0,u?Ne+1:Ne)*86400}else c==="expired"?ie=0:ie=H;const Te=E2(ie),ye=Math.max(0,Math.min(100,Math.floor(Math.min(Te,H)/H*100)));return c==="pending"&&ye>=100?null:{percent:ye,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):du(ie,x)}},[k,c,l,i,u,t?.durationDays,t?.code,x]),M=o.useRef(null),[P,L]=o.useState({}),[Q,Z]=o.useState(null),F=!!(B||v||N),K=o.useRef(!1),T=o.useRef(void 0),[q,Y]=o.useState(y);o.useLayoutEffect(()=>{Y(y)},[y]),o.useLayoutEffect(()=>{const W=M.current;W&&(p!==void 0&&W.style.setProperty("--pass-card-text",p),m!==void 0&&W.style.setProperty("--pass-card-sub",m),g!==void 0&&W.style.setProperty("--pass-card-copyright",g))},[p,m,g]),o.useLayoutEffect(()=>{const W=M.current;if(!W)return;const H=m2(W);if(!y){const ie=N2[w],Te=c==="expired"?"_mono":H?.logoColor??"",ye=k2(ie,Te);Y(ye)}},[d,y,w,c]);const U=W=>{const H=M.current;if(!H)return null;const{left:ie,top:Te,width:ye,height:he}=H.getBoundingClientRect(),Se=(W.clientX-ie)/ye-.5;return{rotateX:-((W.clientY-Te)/he-.5)*cu,rotateY:Se*cu}},S=(W,H)=>{const ie=H*-.7,Te=W*.7+10,ye=20+(Math.abs(W)+Math.abs(H))*.4;return`${ie}px ${Te}px ${ye}px rgba(0, 0, 0, 0.18)`},I=o.useCallback(W=>{if(Ca())return;K.current=!0,clearTimeout(T.current),T.current=setTimeout(()=>{K.current=!1},200);const H=U(W);H&&L({transform:`perspective(800px) rotateX(${H.rotateX}deg) rotateY(${H.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(H.rotateX,H.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=o.useCallback(W=>{if(Ca())return;const H=U(W);if(!H)return;const ie=K.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${H.rotateX}deg) rotateY(${H.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(H.rotateX,H.rotateY),transition:ie})},[]),z=o.useCallback(()=>{clearTimeout(T.current),K.current=!1,L({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)"})},[]),se=o.useCallback(()=>Z(null),[]),te=o.useMemo(()=>{const W=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),H=D.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),ie=H.match(/^(.*?)(일|년)$/);return ie?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:H})},[D,x]),de=o.useMemo(()=>{const W=da(k);if(!W)return null;const H=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!H)return n.jsx("span",{className:"h1",children:W});const[,ie,Te,ye]=H;return n.jsxs(n.Fragment,{children:[ie&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ie}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Te}),ye.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ye.trim()})]})},[k]),ee=o.useCallback(()=>{F&&Z(W=>{if(W)return null;const H=M.current?.getBoundingClientRect();if(!H)return null;const ie=50;return{left:H.left,right:H.right,width:H.width,height:H.height,x:H.x,y:H.y+ie,top:H.top+ie,bottom:H.bottom+ie}})},[F]),V=o.useCallback(W=>{F&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ee())},[F,ee]),ne=[{items:[...B?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{B(),Z(null)},closeOnSelect:!0}]:[],...v?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{v(),Z(null)},closeOnSelect:!0}]:[],...N?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),Z(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${F?" pass-card--clickable":""}`,style:P,onMouseEnter:I,onMouseMove:O,onMouseLeave:z,onPointerUp:W=>{W.pointerType==="touch"&&z()},onPointerCancel:W=>{W.pointerType==="touch"&&z()},onClick:ee,onKeyDown:F?V:void 0,role:F?"button":void 0,tabIndex:F?0:void 0,"aria-label":e,"aria-haspopup":F?"menu":void 0,"aria-expanded":F?!!Q:void 0,children:[d??D2(w,D,A),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??A2[w],className:"pass-card__logo",alt:w==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:te}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?x("passCard.labeledPlan",{label:A}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[R&&n.jsx("span",{className:"pass-card__price-original body-3",children:da(R)}),de]})]}):G?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:G.remainingLabel}),G.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:G.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Q&&n.jsx(xn,{anchorRect:Q,onClose:se,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ha,{columns:ne,onClose:se,size:"small"})})]})}const S2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function j2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Tt(S2,Ln,$n);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}const T2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function M2(e={}){const t=Tt(T2,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}function L2(e,t){if(e){if(t==="manager_pro")return n.jsx(M2,{});if(t==="manager_standard")return n.jsx(j2,{});if(t==="manager_lite")return n.jsx(uu,{})}}function $2(e){const t=da(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function R2(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=v=>!!v&&!!u?.includes(v),d=v=>v.onceOnly??/오픈\s*특가/.test(v.label??""),h=(s.tiers||[]).some(v=>d(v)&&c(v.code)),p=v=>{const N=v.prices?v.prices[i]:v.price;return N?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[i]===N):!1},m=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=t("payment.plan.freePrice","\uBB34\uB8CC"),y=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=v=>v.prices?v.prices[i]:v.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const N=C(v);return N==="\uBB34\uB8CC"||N===g||N==="0\uC6D0"||typeof N=="string"&&/\d/.test(N)&&!/[1-9]/.test(N)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const N=C(v);return N==="\uBB38\uC758"||N===y}),b=s.group==="org",B=b?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(on,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((v,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),v]},N))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((v,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),v]},N))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:_?n.jsx(fe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(v=>{const N=v.label||a,x=d(v),E=x||v.openPromo===!0,w=N.replace(/^오픈\s*특가\s*/,"")||a,D=v.prices?v.prices[i]:v.price,A=v.badge?E?`${r}
|
|
823
823
|
${v.badge}`:v.badge:void 0;if(x&&c(v.code))return null;if(!v.badge&&!h)return p(v)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:v.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:$2(D)})})]},v.id);const k=s.tier??(b?s.title:void 0),R=n.jsx(pu,{showPrice:!0,product:{type:B,code:v.code,name:w,label:k,price:D,originalPrice:v.originals?.[i]??void 0,discountLabel:A},bg:L2(b,s.id)}),$=()=>l?.({...v,productId:s.id,productTitle:s.title,preview:R});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:l?G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),$())}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:R},v.id)})})})})]})}function P2({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Lo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_IHAB_en" xmlns="http://www.w3.org/2000/svg" width="765.08" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 765.08 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/><g id="text"><path d="M316.21,190.6h-36.74V50.61h36.74v139.99Z"/><path d="M335.16,50.61h36.74v55.11h51.63v-55.11h36.93v139.99h-36.93v-55.11h-51.63v55.11h-36.74V50.61Z"/><path d="M473.99,190.6l46.6-139.99h50.08l46.41,139.99h-39.64l-8.31-27.46h-46.99l-8.31,27.46h-39.83ZM560.62,135.3l-14.5-46.99h-1.16l-14.31,46.99h29.97Z"/><path d="M631,50.61h59.94c31.9,0,48.73,13.73,48.73,35.19,0,15.47-11.02,27.26-26.88,30.55v1.35c17.6.58,32.29,13.54,32.29,33.45,0,22.82-18.56,39.45-49.11,39.45h-64.97V50.61ZM701.77,93.53c0-8.89-6.96-13.92-17.02-13.92h-17.02v27.84h16.44c10.25,0,17.6-5.03,17.6-13.92ZM706.22,146.51c0-10.25-7.35-16.05-19.14-16.05h-19.34v30.55h18.76c13.15,0,19.72-5.03,19.72-14.5Z"/></g></svg>';const hu={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#c9c9c9"};function I2(){const e=Tt(hu,Ln,$n);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Lo}")`}})})}const mu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function F2(e={}){const t=Tt(mu,Ln,$n);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Va}")`}})]})}function Cu({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Be("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((l,i)=>n.jsxs("span",{className:"shortcut-badge__group",children:[i>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:l})]},`${l}-${i}`))})}const qa=(e,t,a)=>e+(t-e)*a;function O2({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:l=null,answerId:i=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:h,clickable:p=!1,onSelectSpeaker:m,buttonSize:g=40,showIcon:y=!0,onCenterClick:C,centerLabel:f,centerDisabled:_=!1,centerAttention:b=!1,shortcutAnchor:B="top-right",shortcutScale:v,scaleShortcut:N=!1}){const{t:x}=_e.useTranslation(),E=Math.max(0,Math.min(1,a)),w=t/2,D=110/300,A=.18,k=W=>t*(D+(W-1)*A),R=W=>{const H=k(W.row??1),ie=W.angleDeg*Math.PI/180;return{x:w+H*Math.cos(ie),y:w+H*Math.sin(ie)}},$=Math.max(...e.map(W=>W.row??1),1),G=t*.08,M=t*.1,P=t*.24,L=t-2*G,Q=t-M-P,Z=t-P/2,F=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,H)=>W-H),[e]),K=F.length,T=Math.max(68,K>1?L/(K-1):0),q=o.useMemo(()=>new Map(F.map((W,H)=>[W,H])),[F]),Y=W=>{const H=q.get(W.deg)??0,ie=w+(H-(K-1)/2)*T,Te=$>1?Math.min(68,Q/($-1)):0,ye=Te*($-1),he=M+(Q-ye)/2,Se=$===1?M+Q*.4:he+($-(W.row??1))*Te;return{x:ie,y:Se}},U=W=>{const H=R(W),ie=Y(W);return{x:qa(H.x,ie.x,E),y:qa(H.y,ie.y,E)}},S={x:w,y:qa(w,Z,E)},I=Math.round(g*1.2),O=Math.round(Math.max(16,Math.min(80,g*.7))),z=[],se=new Map;for(const W of e){const H=W.row??1;se.has(H)||se.set(H,[]),se.get(H).push(W)}for(const[W,H]of se.entries()){if(H.length<2)continue;const ie=[...H].sort((He,ot)=>He.deg-ot.deg),Te=ie.map(He=>U(He)),ye=ie.map(He=>He.deg),he=ye[ye.length-1]-ye[0],Se=he/(ye.length-1),$e=360-he,Ne=ie.length>=3&&Se>0&&$e<=Se*1.5,ue=Math.round(k(W)*1e3)/1e3,xe=(He,ot,Qe,Je)=>{const vt=(ot.angleDeg-He.angleDeg+540)%360-180;if(vt===0)return`L ${Je.x} ${Je.y}`;if(E===0)return`A ${ue} ${ue} 0 0 ${vt>0?1:0} ${Je.x} ${Je.y}`;const je=(He.angleDeg+vt/2)*Math.PI/180,Ye={x:w+ue*Math.cos(je),y:w+ue*Math.sin(je)},we={x:(Qe.x+Je.x)/2,y:(Qe.y+Je.y)/2},Ue={x:qa(Ye.x,we.x,E),y:qa(Ye.y,we.y,E)},qe={x:2*Ue.x-we.x,y:2*Ue.y-we.y};return`Q ${qe.x} ${qe.y} ${Je.x} ${Je.y}`},ke=Ne?[...ie,ie[0]]:ie,Ee=Ne?[...Te,Te[0]]:Te;let We=`M ${Ee[0].x} ${Ee[0].y}`;for(let He=1;He<Ee.length;He++)We+=" "+xe(ke[He-1],ke[He],Ee[He-1],Ee[He]);z.push({key:`arc-${W}`,d:We})}const te=o.useMemo(()=>new Set(s??[]),[s]),de=W=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[W],ee=W=>{if(r===W.id)return"active";if(u){if(W.id===i)return"correct";if(W.id===l&&l!==i)return"wrong"}return te.has(W.id)?"played":"idle"},V=W=>r===W.id?"loop":u?W.id===i?"loop":null:c&&W.id===l?"once":null,ne=(W,H)=>{switch(W){case"played":case"correct":return n.jsx(zs,{size:H});case"wrong":return n.jsx(Xs,{size:H});default:return n.jsx(Zs,{size:H})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[E===0&&e.map(W=>{const{x:H,y:ie}=U(W);return n.jsx("line",{x1:S.x,y1:S.y,x2:H,y2:ie,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),z.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),b&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:S.x-I/2,top:S.y-I/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:S.x,top:S.y},"aria-label":f,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(zr,{size:O,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:S.x,top:S.y},children:n.jsx(zr,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((W,H)=>{const{x:ie,y:Te}=U(W),ye=ee(W),he=V(W),Se={...v!==void 0||N?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ye!=="idle"?10:1},$e=g,Ne=Math.round(Math.max(10,Math.min(56,$e*.38))),ue=Math.round(Math.max(7,Math.min(18,$e*.2))),xe=Math.round(Math.max(10,Math.min(56,$e*.4))),ke=y==="answered"&&(ye==="played"||ye==="correct"||ye==="wrong"),Ee=y===!0||ke,We=!ke;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...Se,left:ie-$e/2,top:Te-$e/2},children:[he&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ye}`+(he==="once"?" sound-compass__pulse--once":""),style:{width:$e,height:$e,...he==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...h!==void 0?{"--sc-pulse-scale":String(h)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>m?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ye}`,style:{width:$e,height:$e},"aria-label":de(ye)?`${W.label}, ${de(ye)}`:W.label,"aria-pressed":l!=null?W.id===l:void 0,children:[Ee&&ne(ye,Ne),We&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?ue:xe},children:H+1})]}),W.shortcut&&n.jsx(Cu,{keys:W.shortcut,anchor:B,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function z2({orientation:e="horizontal",label:t,className:a=""}){const r=Be("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function fu({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:l,className:i=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${i}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),l&&n.jsx("span",{className:"radio__label body-2",children:l})]})}function W2({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:l="vertical",className:i="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${l} ${i}`.trim(),role:"radiogroup","aria-label":u,children:e.map(h=>n.jsx(fu,{name:d,value:h.value,checked:t===h.value,disabled:s||h.disabled,label:h.label,onChange:p=>{p&&a?.(h.value)}},h.value))})}const H2={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function V2({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:l,live:i,className:u=""}){const{t:c}=_e.useTranslation(),[d,h]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&hr(b),h(!0),l?.()},[l]);if(d)return null;const g=Be("alert",`alert--${e}`,u),y=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="polite"?"status":void 0,f=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:g,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(nt,{icon:H2[e],size:20,className:"alert__icon"}),f&&n.jsx("span",{className:"alert__title body-2",children:t}),!f&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),f&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const q2={ready:"search",guide:"info",error:"circle-alert"};function U2(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,l=0;for(const i of a){const u=e.indexOf(i,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:i},l++)),s=u+i.length)}return s<e.length&&r.push(e.slice(s)),r}function G2({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:l=""}){const i=s===!1?null:s??q2[e],u=Be("search-summary",`search-summary--${e}`,l),c=t??a,d=typeof c=="string"&&r&&r.length>0?U2(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[i!=null&&n.jsx(nt,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ua({title:e,items:t}){const{t:a}=_e.useTranslation(),{anchorRect:r,openAt:s,close:l}=Oa(),i=o.useRef(null),u=_o(!!r,(c,d)=>{c&&d?s(i.current?.querySelector("button")??d):l()},i);return n.jsxs("span",{ref:i,style:{display:"contents"},children:[n.jsx(fe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{ma(c)||s(c.currentTarget)},onPointerLeave:c=>{ma(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{Ca()||s(c.currentTarget)},onBlur:l}),r&&n.jsx(Xn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:l})]})}function K2({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const l=o.useId(),{t:i}=_e.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,h=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(C,f=p())=>{if(f.length===0)return;const _=(C%f.length+f.length)%f.length;f[_]?.focus(),f[_]?.click()},g=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const f=p(),_=f.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?m(_+1,f):C.key==="ArrowLeft"||C.key==="ArrowUp"?m(_-1,f):C.key==="Home"?m(0,f):m(f.length-1,f)},y=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":i("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${l}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${l}-${C.key}`,disabled:C.disabled,tabIndex:C.key===h?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:g,children:C.label},C.key))}),y&&n.jsx("div",{id:`tabs__panel-${l}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const Y2={xs:12,sm:16,md:20,lg:28,xl:36};function Z2(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 X2({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:l}=_e.useTranslation(),[i,u]=o.useState(null),c=!!e&&i===e,d=t?Z2(t):"",h=!!e&&!c,p=!h&&!!d,m=t||l("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":m,children:[h&&n.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>u(e??null)}),!h&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!h&&!p&&n.jsx(nt,{icon:"user-round",size:Y2[a],className:"avatar__icon"})]})}function J2(e,t){if(!t)return!0;const a=t.split(",").map(l=>l.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(l=>{const i=l.toLowerCase();return i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i})}function Q2({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:l,onRemove:i,className:u=""}){const{t:c}=_e.useTranslation(),d=o.useRef(null),[h,p]=o.useState(!1),[m,g]=o.useState([]),y=l??m,C=x=>{if(!x||x.length===0)return;const E=Array.from(x).filter(D=>J2(D,t));if(E.length===0)return;const w=a?E:E.slice(0,1);if(l===void 0){const D=a?[...y,...w]:w;g(D),e?.(D)}else e?.(w)},f=x=>{x.preventDefault(),!r&&p(!0)},_=x=>{x.preventDefault(),p(!1)},b=x=>{x.preventDefault(),p(!1),!r&&C(x.dataTransfer.files)},B=x=>{const E=x.target;try{C(E.files)}finally{E.value=""}},v=()=>{r||d.current?.click()},N=x=>{if(!r&&(i?.(x),l===void 0)){const E=y.filter((w,D)=>D!==x);g(E),i||e?.(E)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Be("file-upload__dropzone",h&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v())},onDragOver:f,onDragLeave:_,onDrop:b,children:[n.jsx(nt,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),v()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:B,tabIndex:-1})]}),s&&y.length>0&&n.jsx("ul",{className:"file-upload__list",children:y.map((x,E)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>N(E),children:n.jsx(nt,{icon:"x",size:14})})]},`${x.name}-${E}`))})]})}function ev({items:e,className:t=""}){const{t:a}=_e.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const l=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[l?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!l&&n.jsx(nt,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const tv={small:14,medium:20,large:28};function nv({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:l,className:i=""}){const{t:u}=_e.useTranslation(),c=r||!t,[d,h]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,m=d??p,g=tv[s],y=x=>{x!==e&&t?.(x)},C=x=>{c||y(x)},f=x=>{c||Ca()||h(x)},_=o.useRef(null),b=x=>{const E=Math.min(a,Math.max(1,x));y(E),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(E))?.focus()},B=x=>{if(!c){switch(x.key){case"ArrowRight":case"ArrowUp":b((p||0)+1);break;case"ArrowLeft":case"ArrowDown":b((p||1)-1);break;case"Home":b(1);break;case"End":b(a);break;default:return}x.preventDefault()}},v=p>=1&&p<=a?Math.round(p):1,N=()=>{c||h(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${i}`.trim(),ref:_,onKeyDown:B,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):l??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:N,onPointerUp:x=>{x.pointerType==="touch"&&N()},onPointerCancel:x=>{x.pointerType==="touch"&&N()},children:Array.from({length:a},(x,E)=>{const w=E+1,D=Math.max(0,Math.min(1,m-E)),A=D>0&&D<1,k=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(nt,{icon:"star",size:g,className:"rating__star rating__star--empty"}),D>0&&n.jsx("span",{className:`rating__star-fill${A?" rating__star-fill--half":""}`,style:A?{width:`${D*100}%`}:void 0,children:n.jsx(nt,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},w):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===w,"aria-label":u("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===v?0:-1,onClick:()=>C(w),onMouseEnter:()=>f(w),children:k},w)})})}const av=20,rv=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function ov({value:e,onChange:t,palette:a=rv,size:r=40,className:s="",ariaLabel:l}){const{t:i}=_e.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":l,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(nt,{icon:"check",size:av,className:"color-picker__check"})},u)})})}function bu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:l,useHover:i=!0,iconSize:u="medium"}){const{t:c}=_e.useTranslation(),d=u==="small",h=Be("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[g,y]=o.useState(!1),C=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!l?w:{...w,...s?{color:s,"--t-item-fg":s}:{},...l?{"--t-item-bg":l}:{}}},[r,s,l]),f=a||t,_=i&&!!f,[b,B]=o.useState(null);o.useLayoutEffect(()=>{g&&B(m.current?.getBoundingClientRect()??null)},[g]),o.useEffect(()=>{if(!i&&g)try{y(!1)}catch{}},[i,g]),o.useEffect(()=>{if(!g)return;const w=D=>{const A=m.current;if(!A)return;const k=D.target;k&&!A.contains(k)&&y(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[g]);const v=o.useCallback(()=>{i&&y(!0)},[i]),N=o.useCallback(()=>{i&&y(!1)},[i]),x=o.useCallback(()=>y(!1),[]),E=o.useCallback(w=>{if(w.key==="Escape"){y(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y(D=>!D))},[]);return n.jsxs("span",{ref:m,className:Be("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:v,onPointerLeave:N,onFocus:v,onBlur:N,onKeyDown:E,role:"button",tabIndex:0,"aria-label":typeof f=="string"?c("common.descriptionFor",{name:f,defaultValue:`${f} \uC124\uBA85`}):void 0,"aria-haspopup":!!f,"aria-expanded":g,"data-tooltip-ignore":!0,children:[n.jsx(nt,{icon:e,label:t,className:h,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),g&&f&&n.jsx(Tn,{anchorRect:b,text:typeof f=="string"?f:void 0,offset:8,onClose:x,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let Vn=null;function Ga(e){if(Vn&&Vn!==e)try{Vn()}catch{}return Vn=e,()=>{Vn===e&&(Vn=null)}}function yr(e){if(Vn===e){Vn=null;try{e()}catch{}}}function Ka(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){wt("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let s=!1;const l=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let i;try{i=new Audio(e)}catch{return l(!1),{el:{},stop:()=>{},done:r}}i.onended=()=>l(!0),i.onerror=()=>l(!1);try{i.play().catch(()=>l(!1))}catch{l(!1)}return{el:i,stop:()=>{try{i.pause()}catch{}l(!1)},done:r}}function sv(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=i=>i.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],l=r(Array.isArray(s)?s:[]);return l.length===0&&(a.contextCode||a.context_code)&&l.push(String(a.contextCode||a.context_code)),{previewCodes:l,previewBucket:null}}function lv(e,t){const[a,r]=o.useState(!1),[s,l]=o.useState(-1),[i,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),h=o.useRef(null),p=o.useRef(null),[m,g]=o.useState(!1),y=o.useRef([]),{previewCodes:C,previewBucket:f}=sv(e,t),_=`${C.join(",")}|${f??""}`,b=o.useMemo(()=>i.key===_?i.urls:[],[i,_]);o.useEffect(()=>{if(!C.length)return;let v=!1;return(async()=>{const N=[],x=[];for(const E of C)try{const w=Bl(E,f);if(!w){N.push("");continue}let D=null;try{D=await kl(w)}catch{}if(!D)try{const A=await Al(w);A&&(D=URL.createObjectURL(A),x.push(D))}catch{}N.push(D??"")}catch{N.push("")}v?x.forEach(E=>{try{URL.revokeObjectURL(E)}catch{}}):(y.current.forEach(E=>{try{URL.revokeObjectURL(E)}catch{}}),y.current=x,u({key:_,urls:N}))})(),()=>{v=!0}},[C.join(","),f]),o.useEffect(()=>()=>{y.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),y.current=[]},[]);const B=o.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),d.current){h.current&&yr(h.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),l(-1);return}if(!b.filter(Boolean).length)return;let N=null;const x=()=>{d.current=!1,N?.stop()};h.current=x;const E=Ga(x);d.current=!0,r(!0);for(let w=0;w<b.length&&d.current;w++){const D=b[w];if(D&&(l(w),N=Ka(D),c.current=N.el,!await N.done))break}E(),h.current===x&&(h.current=null,d.current=!1,r(!1),l(-1))},[b]);return o.useEffect(()=>()=>{h.current&&yr(h.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:b,previewHover:m,setPreviewHover:g,previewBtnRef:p,handlePreview:B}}const iv=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function $o(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:l,renderPopup:i,completed:u,completedIds:c,selectedIds:d,tooltipText:h,useDescriptionTooltip:p=!1,onRemove:m,hideCheckBadge:g=!1,showTypeLabel:y=!1,onComplete:C,onSelect:f,onMore:_,countLabelOverride:b,size:B="square"}=e||{},{t:v}=_e.useTranslation(),[N,x]=o.useState(!1),E=o.useRef(null),[w,D]=o.useState(!1);o.useEffect(()=>{E.current?.matches(":hover")&&D(!0)},[]);const{playing:A,playingIndex:k,previewUrls:R,previewHover:$,setPreviewHover:G,previewBtnRef:M,handlePreview:P}=lv(r,a?.key),L=o.useCallback(()=>{f?f():x(!0)},[f]),Q=o.useCallback(()=>x(!1),[]),Z=o.useCallback(()=>D(!0),[]),F=o.useCallback(()=>D(!1),[]),K=o.useCallback(()=>G(!0),[G]),T=o.useCallback(()=>G(!1),[G]),[q,Y]=o.useState(null);o.useLayoutEffect(()=>{$&&Y(M.current?.getBoundingClientRect()??null)},[$,M]);const[U,S]=o.useState(null);o.useLayoutEffect(()=>{w&&!N&&p&&S(E.current?.getBoundingClientRect()??null)},[w,N,p]);const I=o.useCallback(we=>{we.target===we.currentTarget&&(we.key==="Enter"||we.key===" ")&&(we.preventDefault(),L())},[L]),O=r||null,z=o.useMemo(()=>{if(!p)return null;const we=h?(Array.isArray(h)?h:[h]).filter(Boolean):null,Ue=we&&we.length>0?we:iv(O);return Ue&&Ue.length>0?Ue:null},[p,h,O]),se=o.useCallback(we=>{we.stopPropagation(),m?.()},[m]),te=o.useCallback(we=>we.stopPropagation(),[]),de=o.useCallback(we=>{typeof C=="function"&&C(we)},[C]),ee=u||(c&&r?.id!=null?c.has(String(r.id)):!1),V=!ee&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Oi("speechear.popup.close",Q);const ne=Zl(),W=`${a?.label||""} ${t+1}`,H=O?.title||O?.name||W;let ie=a?.icon,Te,ye="",he="";try{const we=O?.category_0||O?.category_main_code||O?.category_main,Ue=O?.category_1||O?.category_sub_code||O?.category_sub,qe=ne.find(pt=>pt.key===we);qe?.icon&&(ie=qe.icon),!Te&&qe?.color&&(Te={"--t-item-fg":qe.color}),!Te&&O?.iconColor&&(Te={"--t-item-fg":O.iconColor}),ye=qe?v(`topic.${qe.key}`,{defaultValue:qe.label||""}):"";try{const pt=qe?.subs?.find(_t=>_t.key===Ue);he=pt?v(`topic.sub.${pt.key}`,{defaultValue:pt.label||""}):""}catch{}}catch{}const Se=he?`${ye} / ${he}`:ye||a?.label||H,$e=we=>v("training.countQuestions",{n:we,count:we}),Ne=we=>v("training.countSentences",{n:we,count:we});let ue="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let we=0;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?we=O.sentences.length:O.sentences&&(we=1),ue=Ne(we)}else if(a?.key==="SHORT_STORY"){let we=1;Array.isArray(r?.items)?we=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?we=r.raw.items.length:Array.isArray(O?.questions)?we=O.questions.length:Array.isArray(O?.sentences)&&(we=O.sentences.length),ue=$e(we)}else if(a?.key==="LONG_STORY"){let we=1;if(Array.isArray(O.items)&&O.items.length>0){const Ue=O.items.reduce((qe,pt)=>{const _t=pt.questionItems;return Array.isArray(_t)?qe+_t.length:Array.isArray(pt.questions)?qe+pt.questions.length:qe},0);we=Ue>0?Ue:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?we=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length);ue=$e(we)}else if(a?.key==="ORDERING_SENTENCE"){let we=1;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length),ue=Ne(we)}else Array.isArray(O.items)&&(ue=O.items.length>0?$e(O.items.length):"")}catch{}const xe=B==="row",ke=B==="list"||xe,Ee=B==="compact",We=B==="small",He=We&&a?.key?qf().find(we=>we.key===a.key):void 0,ot=He?Xl[He.key]:void 0,Qe=He?ot?v(`trainingType.${ot}.title`,{defaultValue:He.label}):He.label??"":"",Je=y&&a?.label&&a.label!==String(H)?String(a.label):We&&Qe&&Qe!==String(H)?Qe:"",vt=!!Je,je=b!==void 0?b:ue,Ye=[Je,typeof H=="string"?H:"",je].map(we=>String(we??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:E,className:`training-block-button${ke?" training-block-button--list":""}${xe?" training-block-button--row":""}${Ee?" training-block-button--compact":""}${We?" training-block-button--small":""}${ee?" training-block-button--completed":""}${V?" training-block-button--selected":""}${vt&&!We?" training-block-button--withType":""}${We&&!vt?" training-block-button--no-type-label":""}`,onClick:L,onPointerEnter:Z,onPointerLeave:F,role:"button",tabIndex:0,onKeyDown:I,"aria-label":typeof s=="string"?s:Ye||void 0,title:!p&&h&&(Array.isArray(h)?h.filter(Boolean).join(`
|
|
824
|
-
`):h)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(H)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),We&&Qe&&Qe!==String(H)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:Qe}),n.jsx(bu,{icon:ie,label:H,tooltip:Se,wrapperStyle:Te,iconSize:We||Ee?"small":"medium"}),!g&&(ee||V)&&!(m&&w)&&n.jsx(En,{className:m?"training-block-button__check--removable":void 0,icon:"check",position:"top-left",size:32,"aria-label":ee?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),m&&n.jsx(En,{className:`training-block-button__remove${w?" is-hover":""}`,icon:"remove",position:"top-left",size:32,"aria-label":v("common.remove","\uC81C\uAC70"),onClick:se}),n.jsx("div",{className:`training-block-button__title ${Ee?"body-3":We?"body-3b":"h3"}`,children:String(H)}),n.jsxs("div",{className:"training-block-button__description",children:[je?n.jsx("div",{className:`training-block-button__count ${We?"caption-2":"caption-1"}`,children:je}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(nt,{icon:"chevron-right",label:v("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:We?12:20})})]}),(ke&&!xe||We)&&R.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:te,onPointerEnter:K,onPointerLeave:T,children:n.jsx(fe,{htmlType:"button",size:We?28:32,type:"dot",icon:A?"pause":"play",variant:We?"transparent-lightGray":"default",useBorder:!1,selected:A,ariaLabel:String(H).trim()?A?v("training.stopFor",{name:H,defaultValue:`${H} \uC815\uC9C0`}):v("training.previewFor",{name:H,defaultValue:`${H} \uBBF8\uB9AC \uB4E3\uAE30`}):A?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:P})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:we=>{we.stopPropagation(),_(we)},children:n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(H).trim()?v("common.moreFor",{name:H}):v("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(Tn,{anchorRect:q,text:A?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:T}),w&&!N&&p&&(z?n.jsx(Xn,{anchorRect:U,items:z,activeIndex:k,onClose:F}):O?.subTitle?n.jsx(Tn,{anchorRect:U,text:O.subTitle,offset:8,onClose:F}):null),N&&i&&i({trainingData:O,typeKey:a?.key??"",onClose:Q,onComplete:de,popupTitle:String(H),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:ie,popupIconTooltip:String(Se),popupWrapperStyle:Te})]})}const gu=200;function uv(e){return e.itemId?(Zf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function yu({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=_e.useTranslation(),i=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):Jf(l).map(c=>{const d=(e?.items??[]).filter(h=>h.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(uv).filter(h=>h!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,l]);if(i.length===0)return null;const u=n.jsx("div",{className:le("training-tooltip__box"),children:n.jsx("div",{className:le("training-tooltip__groups"),children:i.flatMap(({key:c,label:d,type:h,data:p},m)=>[m>0?n.jsx("div",{className:le("training-tooltip__divider")},`div-${c}`):null,n.jsxs("div",{className:le("training-tooltip__section"),children:[n.jsx("div",{className:le("training-tooltip__section-header"),children:n.jsx("span",{className:le("training-tooltip__type-label body-3b"),children:d})}),n.jsx("div",{className:le("training-tooltip__items"),children:p.map((g,y)=>n.jsx($o,{index:y,type:h,trainingData:g,size:"compact",hideCheckBadge:!0},String(g.id??y)))})]},c)])})});return a?n.jsx(xn,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:le("training-tooltip"),ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const cv=200;function dv({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const h=!!u||!!c||s&&!!r,p=Be("count-tile",h&&"count-tile--interactive",h&&l&&"count-tile--accent",u&&"count-tile--clickable",i),m=o.useRef(null),[g,y]=o.useState(null),C=o.useRef(null),f=o.useRef(null),_=!!(g&&r&&s),b=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),f.current&&(clearTimeout(f.current),f.current=null)},[]),B=o.useCallback(()=>{b(),y(null)},[b]),v=o.useCallback(()=>{!s||!r||(b(),C.current=setTimeout(()=>{C.current=null,y(m.current?.getBoundingClientRect()??null)},gu))},[s,r,b]),N=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),!f.current&&(f.current=setTimeout(()=>{f.current=null,y(null)},cv))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&B()},[s,r,B]),o.useEffect(()=>{if(!_)return;const x=w=>w instanceof Element&&(m.current?.contains(w)||!!w.closest(".training-tooltip")),E=w=>{x(w.target)?b():N()};return document.addEventListener("pointerover",E,!0),()=>document.removeEventListener("pointerover",E,!0)},[_,b,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:p,onClick:u?x=>{B(),u(x)}:void 0,onKeyDown:u?x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),x.currentTarget.click())}:void 0,onPointerEnter:x=>{x.pointerType==="touch"||x.pointerType==="pen"?B():v()},onMouseEnter:c,onMouseLeave:x=>{N(),d?.(x)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(nt,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),g&&r&&n.jsx(yu,{plan:r,anchorRect:g,onClose:B})]})}let Ya=0,vu="",Ro="",Za=0;function _u(){return xu(!1)}function pv(){return xu(!0)}function xu(e){const t=typeof document<"u";Ya===0&&t&&(vu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Za===0&&(Ro=document.body.style.paddingRight),Za++,document.body.style.paddingRight="0px"),Ya++;let a=!1;return()=>{a||(a=!0,Ya=Math.max(0,Ya-1),e&&t&&(Za=Math.max(0,Za-1),Za===0&&(Ro?document.body.style.paddingRight=Ro:document.body.style.removeProperty("padding-right"))),Ya===0&&t&&(document.body.style.overflow=vu))}}function hv(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function mv({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:h}){const{t:p}=_e.useTranslation(),m=o.useId(),g=o.useRef(null),y=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const b=document.activeElement,B=_u(),v=g.current;return bo(v,b),v?.focus(),()=>{B();const N=document.activeElement;(!N||N===document.body||v&&v.contains(N))&&go(b)?.focus?.()}},[e]);const C=o.useRef(y),f=o.useRef(u);o.useEffect(()=>{C.current=y,f.current=u}),o.useEffect(()=>{if(e)return Zn(()=>{f.current&&C.current()})},[e]);const _=o.useRef(!1);return Co(g,e),!e||typeof document>"u"?null:dn.createPortal(n.jsx("div",{className:Be("dialog",d),onPointerDown:i?b=>{_.current=b.target===b.currentTarget}:void 0,onMouseDown:b=>{b.target===b.currentTarget&&b.preventDefault()},onClick:i?b=>{const B=_.current;_.current=!1,B&&b.target===b.currentTarget&&y()}:void 0,children:n.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:Be("dialog__surface",`dialog__surface--${l}`,h),onClick:b=>b.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:y,children:n.jsx(hv,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function Cv({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),h=!i&&t.length===0;return n.jsxs("div",{className:Be("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Be("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:i?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):h?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,m)=>n.jsx("tr",{className:"board__row",children:e.map(g=>n.jsx("td",{className:Be("board__td",`board__cell--${g.align??"left"}`),children:g.render(p,m)},g.key))},a(p,m)))})]})]})}function fv({name:e,role:t,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return n.jsxs("div",{className:Be("person-card",i),children:[n.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function bv({groups:e,className:t=""}){return n.jsx("div",{className:Be("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>n.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function gv({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Be("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),l?n.jsx("div",{className:"publication-card__footer",children:l}):null]})}function yv({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=Ia(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function vv({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Be("section-header",`section-header--${l}`,i),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function _v({items:e,className:t=""}){return n.jsx("ul",{className:Be("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}const Xa=new Map;function yn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(v=>!v.disabled)?.key??a[0]?.key,onChange:s=v=>{},className:l="",size:i=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:h,ariaLabel:p}=e||{},m=o.useRef(null),g=a.filter(v=>!v.disabled),y=o.useId(),C=a.map(v=>v.key).join("\xB7");o.useEffect(()=>{if(!(!On||p!=null&&p!=="")){if(Xa.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Xa.size>1){const v=[...Xa.values()].sort();wt(`segmented-control-unnamed:${v.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Xa.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${v.join(" / ")}`)}return()=>{Xa.delete(y)}}},[p,C,y]);const f=v=>{if(!g.length)return;const N=Math.max(0,g.findIndex(E=>E.key===r)),x=v==="first"?g[0]:v==="last"?g[g.length-1]:g[(N+v+g.length)%g.length];x&&(s(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(E=>E.dataset.segkey===x.key)?.focus())},_=v=>{switch(v.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}v.preventDefault()},b=v=>{const N=x=>typeof x=="string"||typeof x=="number";if(!(!N(v.label)||v.count==null||v.count===!1||!N(v.count)))return`${v.label}, ${v.count}`},B=g.some(v=>v.key===r)?r:g[0]?.key;return n.jsx("div",{ref:m,onKeyDown:_,className:Be("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",h!=null&&"segmented-control--min",l),style:h!=null?{"--segmented-min-button-w":`${h}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>n.jsx(fe,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===B?0:-1,label:v.label,count:v.count,ariaLabel:b(v),disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||s(v.key)},size:i,shape:u,useBorder:!1,useBG:!1},v.key))})}const xv=260;function Rn(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:d,footerEnd:h,footerNote:p,footerNoteDivider:m=!1,footerClassName:g="",footerLayout:y="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:b=!0,className:B="",ariaLabel:v,useTitle:N=!0,inline:x=!1,size:E,layer:w="modal",height:D,fillBody:A=!1,resetScrollKey:k}=e||{},[R,$]=o.useState(!1),G=o.useRef(!1),M=o.useRef(null),P=o.useId(),L=o.useRef(null);o.useEffect(()=>{},[x,a,v,B]),o.useEffect(()=>{k!==void 0&&L.current&&(L.current.scrollTop=0)},[k]);const[Q,Z]=o.useState(!1);o.useEffect(()=>{const V=L.current;if(!V)return;const ne=()=>Z(V.scrollHeight>V.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const W=new ResizeObserver(ne);W.observe(V);const H=V.firstElementChild;return H&&W.observe(H),()=>W.disconnect()},[i,k]),o.useEffect(()=>{if(!x)return _u()},[x]);const F=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(x)return;const V=F.current,ne=M.current;return bo(ne,V),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(Nn)??ne).focus(),()=>{const W=document.activeElement;(!W||W===document.body||ne&&ne.contains(W))&&go(V)?.focus?.()}},[x]),Co(M,!x);const K=o.useRef(!0),T=yo(),q=o.useRef(null);o.useEffect(()=>(K.current=!0,()=>{K.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const Y=o.useCallback(()=>{!K.current||!G.current||(G.current=!1,$(!1))},[]),U=o.useCallback((V,ne=!1)=>{if(ne&&!K.current||G.current)return;G.current=!0,$(!0);const W=setTimeout(()=>{q.current===W&&(q.current=null);let H;try{H=V?V():void 0}catch{Y();return}H&&typeof H.then=="function"&&H.then(()=>{setTimeout(Y,120)},Y)},T?0:xv);ne&&(q.current=W)},[Y,T]),S=o.useCallback(()=>{f||_&&_()===!1||U(C,!0)},[U,C,f,_]),I=o.useRef(S);o.useEffect(()=>{I.current=S});const O=!x&&!!C;o.useEffect(()=>{if(O)return Zn(()=>I.current())},[O]);const z=O&&b,se=o.useRef(!1),te=V=>{se.current=V.target===V.currentTarget},de=V=>{const ne=se.current;se.current=!1,ne&&V.target===V.currentTarget&&S()},ee=n.jsx("div",{className:`popup ${x?"popup--inline":""} ${w==="belowPagePopup"?"popup--below-page-popup":""} ${R?"popup--closing":""} ${B}`,onPointerDown:z?te:void 0,onClick:z?de:void 0,onMouseDown:x?void 0:V=>{V.target===V.currentTarget&&V.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${E?` popup-panel--${E}`:""}${D!=null?" popup-panel--has-height":""}${A?" popup-panel--fill-body":""}`,style:D!=null?{"--popup-height":typeof D=="number"?`${D}px`:D}:void 0,tabIndex:-1,role:x?void 0:"dialog","aria-modal":x?void 0:!0,"aria-labelledby":!x&&N&&a?P:void 0,"aria-label":!x&&!(N&&a)?v??(typeof a=="string"?a:void 0):void 0,children:[!N&&(s||C)?n.jsxs("div",{className:"popup-close-float",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||C?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:P,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:P,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),l&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(yn,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(V=>({key:V.key,label:V.label,disabled:V.disabled})),value:l.value,onChange:l.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:L,tabIndex:Q?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:U,closeWithAnimation:S}):i})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${m?" popup-footer-note--divider":""}`,role:"note",children:p}),d||h?n.jsxs("div",{className:`popup-footer popup-footer--bar${g?` ${g}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:U,closeWithAnimation:S}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof h=="function"?h({animateThen:U,closeWithAnimation:S}):h})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${y!=="center"?` popup-footer--${y}`:""}`,children:u.map((V,ne)=>n.jsx(fe,{htmlType:"button",size:48,variant:V.variant??"default",label:V.label,disabled:V.disabled,onClick:()=>V.onClick?.({animateThen:U,closeWithAnimation:S})},ne))}):c?n.jsx("div",{className:`popup-footer${y!=="center"?` popup-footer--${y}`:""}${g?` ${g}`:""}`,children:typeof c=="function"?c({animateThen:U,closeWithAnimation:S}):c}):null]})});return x||typeof document>"u"?ee:dn.createPortal(ee,document.body)}function wu({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}function vn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:h}){const{t:p}=_e.useTranslation(),m=r??p("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),y=o.useId(),C=o.useRef(null),f=o.useCallback((M,P)=>{const L=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...L?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:za(P)}},[]),{open:_,setOpen:b,toggle:B,style:v,triggerRef:N,menuRef:x}=Wa({computeStyle:f}),[E,w]=o.useState(-1),D=o.useCallback(()=>w(-1),[]),A=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(P=>P.value===t);w(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const P=x.current;if(!P)return;const L=P.querySelectorAll(".dropdown__option")[M];L&&(P.scrollTop=Math.max(0,L.offsetTop-P.clientHeight/2+L.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&w(M=>{if(M>=0&&M<e.length)return M;const P=e.findIndex(L=>L.value===t);return P>=0?P:e.length?0:-1})},[_,e.length]);const k=o.useCallback(()=>{s||B()},[s,B]),R=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),b(!1))},[a,b,s,t]);o.useEffect(()=>{s&&b(!1)},[s,b]);const $=o.useCallback(M=>{if(!s){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),b(!0));return}if(M.key==="Escape"){M.preventDefault(),b(!1);return}M.key==="ArrowDown"?(M.preventDefault(),w(P=>{let L=P+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:P})):M.key==="ArrowUp"?(M.preventDefault(),w(P=>{let L=P-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:P})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[E]?R(e[E]):b(!1))}},[s,_,e,E,R,b]),G=_?n.jsx("div",{ref:x,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:v,onMouseLeave:D,onMouseDown:M=>M.preventDefault(),children:e.map((M,P)=>n.jsxs("button",{id:`${g}-option-${P}`,type:"button",role:"option","aria-selected":M.value===t,className:Be("dropdown__option body-2",M.value===t?"dropdown__option--active":"",P===E?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>R(M),onMouseEnter:()=>w(P),disabled:M.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:M.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),M.label]},M.value))}):null;return n.jsxs("div",{ref:C,className:Be("dropdown",`dropdown--s${i}`,_?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:N,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?g:void 0,"aria-activedescendant":_&&E>=0?`${g}-option-${E}`:void 0,"aria-label":d,"aria-describedby":[d&&A?y:"",h??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:k,onBlur:M=>{_&&!x.current?.contains(M.relatedTarget)&&b(!1)},children:[n.jsx("span",{id:y,className:`dropdown__trigger-label body-2${A?"":" dropdown__trigger-label--placeholder"}`,children:A?A.label:m}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&dn.createPortal(G,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}const wv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Bu(e){return e?wv[e]??null:null}function ku(e){switch(Bu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Au(e,t){const a=Bu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const ba=e=>e==null?"":String(e).trim();function Po(e,t,a,r){const s=ba(e),l=ba(t),i=ba(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const h=Vl(c,r);if(h)return h}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function Bv(e,t,a){const r=ba(e);return r?`${r}-${ba(t).padStart(2,"0")}-${ba(a).padStart(2,"0")}`:""}function Nu(e){return typeof e=="string"?e:e.label}function Eu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,d]=o.useState(!1),[h,p]=o.useState(-1),m=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const k=e??"";return s===!1?a:k?typeof s=="function"?s(a,k):a.filter(R=>Nu(R).toLowerCase().includes(k.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),f=o.useRef([]),_=y&&g.length===0?f.current:g;o.useEffect(()=>{_.length&&(f.current=_)},[_]);const b=o.useCallback(()=>C(!0),[]),B=o.useCallback(()=>C(!1),[]),v=i?0:-1;o.useEffect(()=>{c||p(v)},[c,v]),o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const N=h<_.length?h:v<_.length?v:-1,x=o.useCallback(k=>{l?l(k):t?.(Nu(k)),d(!1)},[t,l]),E=o.useCallback(()=>d(!0),[]),w=o.useCallback(()=>{d(!0),p(v)},[v]),D=o.useCallback(()=>{m.current=setTimeout(()=>d(!1),120)},[]),A=o.useCallback(k=>{k.nativeEvent.isComposing||k.keyCode===229||(k.key==="ArrowDown"?(k.preventDefault(),d(!0),p(R=>Math.min(_.length-1,(R<_.length?R:v)+1))):k.key==="ArrowUp"?(k.preventDefault(),p(R=>Math.max(v,(R<_.length?R:_.length)-1))):k.key==="Enter"?N>=0&&x(_[N]):k.key==="Escape"&&c&&(k.preventDefault(),d(!1)))},[_,N,c,x,v]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:E,handleBlur:D,handleInput:w,handleKeyDown:A,handleSelect:x,handleCompositionStart:b,handleCompositionEnd:B}}const Io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function qn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:h,ghostText:p,ghostHint:m,type:g="text",disabled:y=!1,readOnly:C=!1,error:f,helperText:_,maxLength:b,size:B=40,variant:v="input",fullWidth:N=!1,newline:x=!1,multiline:E=!1,rows:w=3,leftIcon:D,rightIcon:A,clearable:k=!1,list:R,showCount:$=!0,className:G="",onFocus:M,onBlur:P,onKeyDown:L,onEnter:Q,inputMode:Z,autoComplete:F,autoFocus:K,suggestions:T,filterSuggestions:q,onSelectSuggestion:Y,autoActiveFirst:U,openOnFocus:S=!1}=e,I=C||y?void 0:T,{t:O}=_e.useTranslation(),z=o.useId();!i&&!u&&wt(`TextField:unnamed:${z}`,"[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 se=`tf-${z}`,te=`tf-helper-${z}`,de=o.useRef(null),ee=Eu({value:t??"",onChange:l,suggestions:I??[],openOnFocus:S,filterSuggestions:q,onSelectSuggestion:Y,autoActiveFirst:U}),V=!!I&&ee.open&&ee.filtered.length>0,ne=o.useRef(null),[W,H]=o.useState(null),ie=o.useCallback(()=>{const je=ne.current;if(!je||typeof window>"u")return;const Ye=je.getBoundingClientRect(),we=230,Ue=window.innerHeight-Ye.bottom<we+8&&Ye.top>we+8;H({position:"fixed",left:Ye.left,width:Ye.width,...Ue?{bottom:window.innerHeight-Ye.top+8}:{top:Ye.bottom+8},zIndex:za(je)})},[]);Io(()=>{if(!V)return;ie();let je=null;const Ye=()=>{if(typeof requestAnimationFrame>"u"){ie();return}je===null&&(je=requestAnimationFrame(()=>{je=null,ie()}))},we=Ue=>{const qe=Ue.target;qe&&qe.nodeType===1&&qe.closest?.(".text-field__suggestions")||Ye()};return window.addEventListener("scroll",we,!0),window.addEventListener("resize",Ye),()=>{je!==null&&cancelAnimationFrame(je),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",Ye)}},[V,ie]);const Te=o.useCallback(je=>{de.current=je,typeof s=="function"?s(je):s&&(s.current=je)},[s]),ye=p?`${p}${m??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:h,he=t!==void 0,Se=he&&g==="password",[$e,Ne]=o.useState((a??"").length),ue=he?(t??"").length:$e,xe=o.useRef(t);Io(()=>{xe.current=t}),o.useEffect(()=>{const je=de.current;if(!Se||!je)return;const Ye=t??"";je.value!==Ye&&(je.value=Ye)},[Se,t]),o.useEffect(()=>{if(!x||!de.current)return;const je=de.current;je.style.height="",je.scrollHeight>je.clientHeight&&(je.style.height=`${je.scrollHeight}px`)},[t,$e,x]);const ke=b!=null&&ue>b,Ee=B===32?16:20,We=Be("text-field",`text-field--s${B}`,v==="display"?"text-field--display":"",N?"text-field--full-width":"",y?"text-field--disabled":"",C?"text-field--readonly":"",f?"text-field--error":"",D?"text-field--has-left-icon":"",A||k?"text-field--has-right-icon":"",G),He={id:se,...Se?{}:he?{value:t}:{defaultValue:a},ref:Te,placeholder:ye,name:r,disabled:y,readOnly:C,autoFocus:K,maxLength:b,list:R,inputMode:Z,autoComplete:F,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?te:null,c].filter(Boolean).join(" ")||void 0,role:I?"combobox":void 0,"aria-autocomplete":I?"list":void 0,"aria-haspopup":I?"listbox":void 0,"aria-expanded":I?V:void 0,"aria-controls":V?ee.listId:void 0,"aria-activedescendant":V&&ee.activeIdx>=0?`${ee.listId}-option-${ee.activeIdx}`:void 0,onChange:je=>{const Ye=je.target;he||Ne(Ye.value.length),l?.(Ye.value),I&&ee.handleInput(),Se&&queueMicrotask(()=>{const we=xe.current??"";Ye.value!==we&&(Ye.value=we)})},onCompositionStart:I?ee.handleCompositionStart:void 0,onCompositionEnd:I?ee.handleCompositionEnd:void 0,onFocus:(je=>{M?.(je),I&&ee.handleFocus()}),onBlur:(je=>{P?.(je),I&&ee.handleBlur()}),onKeyDown:(je=>{const Ye=(je.key==="Tab"&&!je.shiftKey||je.key===" ")&&!je.nativeEvent.isComposing;if(p&&Ye&&!C&&!y&&!(je.currentTarget.value??"").trim()){je.preventDefault();const we=je.currentTarget;he||(we.value=p,Ne(p.length)),l?.(p);return}I&&je.key==="Enter"&&!je.nativeEvent.isComposing&&ee.activeIdx>=0?je.preventDefault():Q&&je.key==="Enter"&&!je.nativeEvent.isComposing&&(je.preventDefault(),Q()),L?.(je),I&&ee.handleKeyDown(je)})},ot=k&&!y&&!C&&ue>0,Qe=()=>x?n.jsx("textarea",{...He,className:"text-field__input text-field__input--auto body-2",rows:1}):E?n.jsx("textarea",{...He,className:"text-field__input text-field__input--textarea body-2",rows:w}):n.jsx("input",{...He,type:g,className:"text-field__input body-2"}),Je=v==="display"&&!x&&!E&&!!ye,vt=()=>n.jsxs(n.Fragment,{children:[Qe(),Je&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ye})]});return n.jsxs("div",{ref:ne,className:We,children:[i&&n.jsxs("label",{htmlFor:se,className:"text-field__label caption-1",children:[i,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[D&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(nt,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ee})}),vt(),b!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${ke?" text-field__count--over":""}`,children:[ue,"/",b]}),ot&&n.jsx(fe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:je=>{je.preventDefault()},onClick:()=>{!he&&de.current&&(de.current.value="",Ne(0)),l?.("")},tabIndex:-1}),A&&!ot&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(nt,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ee})})]}),!!I&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ee.open&&(t??"").length>0&&ee.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),V&&(typeof document>"u"?null:dn.createPortal(n.jsx("ul",{id:ee.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ee.filtered.map((je,Ye)=>n.jsx("li",{id:`${ee.listId}-option-${Ye}`,role:"option","aria-selected":Ye===ee.activeIdx,className:`text-field__suggestion body-2${Ye===ee.activeIdx?" is-active":""}`,onMouseDown:we=>we.preventDefault(),onClick:()=>{ee.handleSelect(je),de.current?.focus()},children:typeof je=="string"?je:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:je.label}),je.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:je.hint})]})},typeof je=="string"?`${je}-${Ye}`:je.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:te,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}const Du=()=>{};function sn(e){const t=o.useId();if(!("variant"in e)){const{label:b,sub:B,onClick:v,children:N,align:x="horizontal",icon:E,useFullWidth:w=!1}=e,D=A=>{v&&A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),v())};return n.jsxs("div",{className:Be("panel-row",x==="vertical"?"panel-row--vertical":"",w?"panel-row--label-fixed panel-row--fill":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?D:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[E!=null&&n.jsx("div",{className:"panel-row__icon",children:E}),b!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:b}),B&&n.jsx("div",{className:"panel-row__sub caption-1",children:B})]}),n.jsx("div",{className:"panel-row__right",children:N})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(pa,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:d=!1,icon:h}=e,p=a==="button"?void 0:l;let m=null;const g=a==="toggle"?`panel-toggle-${t}`:void 0,y=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const b=e;m=n.jsx(wu,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;m=n.jsx(yn,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,B=b.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,N)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(vn,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(vn,{options:b.options??[],value:b.value??"",onChange:b.onChange??Du,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});m=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[B,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):B}else if(a==="button"){const b=e;b.buttons?.length?m=n.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((B,v)=>n.jsx(fe,{htmlType:"button",size:B.btnSize??40,variant:B.btnVariant??"default",disabled:B.disabled,onClick:B.onClick,children:B.label},v))}):m=n.jsx(fe,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;m=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;m=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(qn,{value:b.value,onChange:b.onChange??Du,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,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:d,error:u,ariaLabel:r,required:i,ariaDescribedBy:b.helperText?C:void 0}),b.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(m=e.children);u&&a!=="input"&&a!=="dropdown"&&(m=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[m,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=b=>{p&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),p())};return n.jsxs("div",{className:Be("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[h!=null&&n.jsx("div",{className:"panel-row__icon",children:h}),n.jsxs("div",{className:"panel-row__left",children:[g?n.jsxs("label",{htmlFor:g,className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:m})]})}function Su(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function kv({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:s}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&t&&n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(l)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(on,{size:"small",variant:ku(i.device),fill:"soft",label:Au(i.device,r)}),Su(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Su(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Po(i.wornYear,i.wornMonth,i.wornDay,s.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Po(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function Ja({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:d,scrollbarGutter:h="auto",compactRows:p=!1,useBorder:m=!0,useBg:g=!0,useRowBorder:y=!0,labelWidth:C,form:f=!1,loading:_,empty:b,children:B}){const v=Be("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",g?"":"panel--no-bg",y?"":"panel--no-row-border",p?"panel--compact-rows":"",c),N={};i!==void 0&&(N.minHeight=i),u!==void 0&&(N.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(N["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const x=t?`h${t}`:"div";return n.jsxs("div",{className:v,style:Object.keys(N).length?N:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Be("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(nt,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(sn,{variant:"loading"}):b!=null&&o.Children.toArray(B).length===0?n.jsx(sn,{variant:"empty",children:b}):d?n.jsx("div",{className:Be("panel__body--scroll",h==="stable"&&"panel__body--gutter-stable"),children:B}):B]})}function Av({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const m=new ResizeObserver(([g])=>d(g.contentRect.width));return m.observe(p),()=>m.disconnect()},[r]);const h=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Be("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":h?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function Fo({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const d=o.useRef(null),h=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Be("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:h,title:u,children:[n.jsx("input",{ref:d,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>{t?.(m.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function ju(e,t){const a=()=>{if(e){const[C,f]=e.split("-");return{y:+C,m:+f-1}}const[g,y]=ur(t).split("-");return{y:+g,m:+y-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),i(g.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const d=o.useCallback(g=>{const y=c.current.y*12+c.current.m+g,C=Math.floor(y/12),f=y-C*12;c.current={y:C,m:f},s(C),i(f)},[]),h=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),m=o.useCallback((g,y)=>{c.current={y:g,m:y},s(g),i(y)},[]);return{viewY:r,viewM:l,prevMonth:h,nextMonth:p,setViewYM:m}}function vr(e,t){return new Date(e,t+1,0).getDate()}function Nv(e,t){return new Date(e,t,1).getDay()}function Qa(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Ev(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function Dv(e){const t=e.replace(/\D/g,"");if(t.length!==8)return null;const a=+t.slice(0,4),r=+t.slice(4,6),s=+t.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:Qa(a,r-1,s)}const Sv=1900;function jv(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(Sv,e),i=s?+s.split("-")[0]:Math.max(t+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function Tu(e,t,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:t(e,l)})}return s}function Mu({value:e,onChange:t,size:a=48,min:r,max:s,disabled:l,placeholder:i,className:u,today:c}){const{t:d,i18n:h}=_e.useTranslation(),p=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),g=ur(c),{viewY:y,viewM:C,prevMonth:f,nextMonth:_,setViewYM:b}=ju(e,c),B=o.useId(),v=o.useCallback((V,ne)=>{const W=window.innerHeight,H=window.innerWidth,ie=typeof document<"u"?document.getElementById(B):null,Te=Math.max(ie?.offsetHeight||0,ie?.scrollHeight||0)||300,ye=Math.max(V.width,ie?.offsetWidth||0,260),he=W-V.bottom,Se=V.top,$e=he<Te&&Se>he,Ne=8,ue=(xe,ke)=>Math.min(Math.max(Ne,xe),Math.max(Ne,ke));return{position:"fixed",left:ue(V.left,H-ye-Ne),width:V.width,minWidth:260,...$e?{top:"auto",bottom:ue(W-V.top+6,W-Te-Ne)}:{bottom:"auto",top:ue(V.bottom+6,W-Te-Ne)},zIndex:za(ne)}},[B]),{open:N,setOpen:x,toggle:E,style:w,triggerRef:D,menuRef:A}=Wa({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!N)return;const V=A.current;return(V?.querySelector(".date-picker__day--selected:not(:disabled)")??V?.querySelector(".date-picker__day--today:not(:disabled)")??V?.querySelector(".date-picker__day:not(:disabled)")??V?.querySelector(Nn)??V)?.focus?.(),()=>{const ne=document.activeElement;(!ne||ne===document.body)&&D.current?.focus?.()}},[N,A,D]);const[k,R]=o.useState(1),$=o.useRef(null),G=o.useRef(null);o.useEffect(()=>{if(!N)return;const V=e&&e.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+e.slice(8):g.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+g.slice(8):1;R(V)},[N]),o.useEffect(()=>{if(G.current==null)return;const V=G.current;G.current=null,$.current?.querySelector(`[data-day="${V}"]`)?.focus()}),o.useEffect(()=>{R(V=>Math.min(V,vr(y,C)))},[y,C]);const M=o.useCallback(V=>{let ne=Qa(V.getFullYear(),V.getMonth(),V.getDate());r&&ne<r&&(ne=r),s&&ne>s&&(ne=s);const[W,H,ie]=ne.split("-").map(Number);(W!==y||H-1!==C)&&b(W,H-1),R(ie),G.current=ie},[r,s,y,C,b]),P=o.useCallback(V=>{const ne=new Date(y,C,k),W=ie=>{ne.setDate(ne.getDate()+ie),M(ne)},H=ie=>{const Te=ne.getFullYear()*12+ne.getMonth()+ie,ye=Math.floor(Te/12),he=Te-ye*12;M(new Date(ye,he,Math.min(ne.getDate(),vr(ye,he))))};switch(V.key){case"ArrowLeft":W(-1);break;case"ArrowRight":W(1);break;case"ArrowUp":W(-7);break;case"ArrowDown":W(7);break;case"Home":W(-ne.getDay());break;case"End":W(6-ne.getDay());break;case"PageUp":V.shiftKey?H(-12):H(-1);break;case"PageDown":V.shiftKey?H(12):H(1);break;default:return}V.preventDefault()},[y,C,k,M]),L=o.useCallback(V=>{l||(t(Qa(y,C,V)),x(!1))},[y,C,t,x,l]);o.useEffect(()=>{l&&x(!1)},[l,x]);const Q=V=>{const ne=Qa(y,C,V);return!!(r&&ne<r||s&&ne>s)},Z=(()=>{const V=vr(y,C);if(k>=1&&k<=V&&!Q(k))return k;for(let ne=1;ne<=V;ne++)if(!Q(ne))return ne;return-1})(),F=[];for(let V=0;V<Nv(y,C);V++)F.push(null);for(let V=1;V<=vr(y,C);V++)F.push(V);const K=a===64?20:a===40?16:18,T=ql(h.language),q=V=>new Intl.DateTimeFormat(T,{year:"numeric"}).format(new Date(V,0,1)),Y=(V,ne)=>new Intl.DateTimeFormat(T,{month:"long"}).format(new Date(V,ne-1,1)),U=jv(y,+g.slice(0,4),q,r,s),S=Tu(y,Y,r,s),I=V=>{const ne=Tu(V,Y,r,s);if(ne.length===0)return;const W=ne.some(H=>+H.value===C+1);b(V,W?C:+ne[0].value-1)},[O,z]=o.useState(null);o.useEffect(()=>{z(null)},[e]);const se=o.useCallback(V=>{z(V);const ne=Dv(V);if(!ne||r&&ne<r||s&&ne>s)return;t(ne);const[W,H]=ne.split("-");b(+W,+H-1)},[r,s,t,b]),te=o.useCallback(()=>{z(null)},[]),de=o.useCallback(V=>{V.key==="Enter"?(V.preventDefault(),te(),x(!1)):V.key==="Escape"?(te(),x(!1)):V.key==="ArrowDown"&&!N&&(V.preventDefault(),x(!0))},[te,x,N]),ee=N?dn.createPortal(n.jsxs("div",{ref:A,id:B,className:"date-picker__dropdown",style:w,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ws,{size:16,strokeWidth:2})}),n.jsxs("div",{className:"date-picker__nav-ym",children:[n.jsx(vn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:U,value:String(y),onChange:V=>I(+V),size:40}),n.jsx(vn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:S,value:String(C+1),onChange:V=>b(y,+V-1),size:40})]}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Hs,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:$,onKeyDown:P,children:[m.map(V=>n.jsx("div",{className:"date-picker__dow caption-1",children:V},V)),F.map((V,ne)=>{if(V===null)return n.jsx("div",{},`e${ne}`);const W=Qa(y,C,V),H=W===e,ie=W===g,Te=Q(V),ye=ne%7;return n.jsx("button",{type:"button",disabled:Te,"data-day":V,tabIndex:V===Z?0:-1,"aria-current":ie?"date":void 0,onClick:()=>!Te&&L(V),className:Be("date-picker__day caption-1",H&&"date-picker__day--selected",ie&&!H&&"date-picker__day--today",Te&&"date-picker__day--disabled",ye===0&&"date-picker__day--sun",ye===6&&"date-picker__day--sat"),children:V},V)})]})]}),document.body):null;return n.jsxs("div",{className:Be("date-picker",`date-picker--s${a}`,N&&"date-picker--open",u),children:[n.jsxs("div",{className:"date-picker__field",children:[n.jsx("input",{ref:D,type:"text",className:"date-picker__trigger body-2",value:O??Ev(e),placeholder:p,onChange:V=>se(V.target.value),onClick:()=>!l&&!N&&E(),onKeyDown:de,onBlur:te,disabled:l,"aria-haspopup":"dialog","aria-expanded":N,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&E(),disabled:l,tabIndex:-1,"aria-label":p,"aria-haspopup":"dialog","aria-expanded":N,children:n.jsx(Js,{size:K,className:"date-picker__icon",strokeWidth:1.5})})]}),ee]})}const Lu=["personal","sensitive","marketing"];function Tv({takenKinds:e,busy:t,today:a,onClose:r,onSubmit:s,className:l}){const{t:i}=_e.useTranslation(),[u]=o.useState(()=>ur(a)),[c,d]=o.useState([]),[h,p]=o.useState("paper"),[m,g]=o.useState("self"),[y,C]=o.useState(u),[f,_]=o.useState(""),b=Lu.filter(v=>!e.includes(v)),B={personal:i("customers.consent.kind.personal","\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4"),sensitive:i("customers.consent.kind.sensitive","\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)"),marketing:i("customers.consent.kind.marketing","\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0")};return n.jsx(Rn,{title:i("customers.consent.record","\uB3D9\uC758 \uBC1B\uAE30"),closeDisabled:t,onClose:r,className:l,footer:()=>n.jsx(fe,{htmlType:"button",size:48,variant:"main",disabled:t||c.length===0,label:i("customers.consent.submit","\uC800\uC7A5\uD558\uAE30"),onClick:()=>s({kinds:c,method:h,source:m,consentedAt:y||null,note:f.trim()||null})}),children:n.jsxs(Ja,{useBorder:!1,useRowBorder:!1,labelWidth:96,children:[n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.kinds","\uBC1B\uC740 \uAC08\uB798"),children:n.jsxs("div",{className:"consent-record-popup__kinds",children:[b.map(v=>n.jsx(Fo,{checked:c.includes(v),disabled:t,label:B[v],onChange:N=>d(x=>N?[...x,v]:x.filter(E=>E!==v))},v)),b.length===0&&n.jsx("p",{className:"body-3 consent-record-popup__none",children:i("customers.consent.allTaken","\uC138 \uAC08\uB798\uB97C \uC774\uBBF8 \uB2E4 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBC1B\uC73C\uB824\uBA74 \uBA3C\uC800 \uCCA0\uD68C\uD558\uC138\uC694.")})]})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),children:n.jsx(yn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),options:[{key:"paper",label:i("customers.consent.method.paper","\uC11C\uBA74")},{key:"verbal",label:i("customers.consent.method.verbal","\uAD6C\uB450")},{key:"electronic",label:i("customers.consent.method.electronic","\uC804\uC790")}],value:h,onChange:v=>p(String(v))})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),children:n.jsx(yn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),options:[{key:"self",label:i("customers.consent.source.self","\uBCF8\uC778")},{key:"guardian",label:i("customers.consent.source.guardian","\uBCF4\uD638\uC790")},{key:"referral",label:i("customers.consent.source.referral","\uC758\uB8B0\uAE30\uAD00")}],value:m,onChange:v=>g(String(v))})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.day","\uBC1B\uC740 \uB0A0"),children:n.jsx(Mu,{size:48,value:y,max:u,today:a,onChange:v=>C(v??"")})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.note","\uBA54\uBAA8"),children:n.jsx(qn,{size:48,fullWidth:!0,value:f,onChange:_,disabled:t,ariaLabel:i("customers.consent.note","\uBA54\uBAA8"),placeholder:i("customers.consent.notePlaceholder","\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4")})})]})})}function Oo({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=_e.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),h=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Be("pagination",l),children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:h}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}function zo({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(t||r?.length||s||l||i);return n.jsxs("div",{className:Be("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,m)=>n.jsx(yn,{size:40,...p},p.ariaLabel??m))]}),h&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(qn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,m)=>n.jsx(vn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},m)),(s||l)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(vn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&n.jsx(Oo,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function $u(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map($u).join(""):""}function Mv(e){let t=e.replace(/\r\n/g,`
|
|
824
|
+
`):h)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(H)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),We&&Qe&&Qe!==String(H)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:Qe}),n.jsx(bu,{icon:ie,label:H,tooltip:Se,wrapperStyle:Te,iconSize:We||Ee?"small":"medium"}),!g&&(ee||V)&&!(m&&w)&&n.jsx(En,{className:m?"training-block-button__check--removable":void 0,icon:"check",position:"top-left",size:32,"aria-label":ee?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),m&&n.jsx(En,{className:`training-block-button__remove${w?" is-hover":""}`,icon:"remove",position:"top-left",size:32,"aria-label":v("common.remove","\uC81C\uAC70"),onClick:se}),n.jsx("div",{className:`training-block-button__title ${Ee?"body-3":We?"body-3b":"h3"}`,children:String(H)}),n.jsxs("div",{className:"training-block-button__description",children:[je?n.jsx("div",{className:`training-block-button__count ${We?"caption-2":"caption-1"}`,children:je}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(nt,{icon:"chevron-right",label:v("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:We?12:20})})]}),(ke&&!xe||We)&&R.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:te,onPointerEnter:K,onPointerLeave:T,children:n.jsx(fe,{htmlType:"button",size:We?28:32,type:"dot",icon:A?"pause":"play",variant:We?"transparent-lightGray":"default",useBorder:!1,selected:A,ariaLabel:String(H).trim()?A?v("training.stopFor",{name:H,defaultValue:`${H} \uC815\uC9C0`}):v("training.previewFor",{name:H,defaultValue:`${H} \uBBF8\uB9AC \uB4E3\uAE30`}):A?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:P})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:we=>{we.stopPropagation(),_(we)},children:n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(H).trim()?v("common.moreFor",{name:H}):v("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(Tn,{anchorRect:q,text:A?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:T}),w&&!N&&p&&(z?n.jsx(Xn,{anchorRect:U,items:z,activeIndex:k,onClose:F}):O?.subTitle?n.jsx(Tn,{anchorRect:U,text:O.subTitle,offset:8,onClose:F}):null),N&&i&&i({trainingData:O,typeKey:a?.key??"",onClose:Q,onComplete:de,popupTitle:String(H),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:ie,popupIconTooltip:String(Se),popupWrapperStyle:Te})]})}const gu=200;function uv(e){return e.itemId?(Zf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function yu({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=_e.useTranslation(),i=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):Jf(l).map(c=>{const d=(e?.items??[]).filter(h=>h.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(uv).filter(h=>h!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,l]);if(i.length===0)return null;const u=n.jsx("div",{className:le("training-tooltip__box"),children:n.jsx("div",{className:le("training-tooltip__groups"),children:i.flatMap(({key:c,label:d,type:h,data:p},m)=>[m>0?n.jsx("div",{className:le("training-tooltip__divider")},`div-${c}`):null,n.jsxs("div",{className:le("training-tooltip__section"),children:[n.jsx("div",{className:le("training-tooltip__section-header"),children:n.jsx("span",{className:le("training-tooltip__type-label body-3b"),children:d})}),n.jsx("div",{className:le("training-tooltip__items"),children:p.map((g,y)=>n.jsx($o,{index:y,type:h,trainingData:g,size:"compact",hideCheckBadge:!0},String(g.id??y)))})]},c)])})});return a?n.jsx(xn,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:le("training-tooltip"),ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const cv=200;function dv({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const h=!!u||!!c||s&&!!r,p=Be("count-tile",h&&"count-tile--interactive",h&&l&&"count-tile--accent",u&&"count-tile--clickable",i),m=o.useRef(null),[g,y]=o.useState(null),C=o.useRef(null),f=o.useRef(null),_=!!(g&&r&&s),b=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),f.current&&(clearTimeout(f.current),f.current=null)},[]),B=o.useCallback(()=>{b(),y(null)},[b]),v=o.useCallback(()=>{!s||!r||(b(),C.current=setTimeout(()=>{C.current=null,y(m.current?.getBoundingClientRect()??null)},gu))},[s,r,b]),N=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),!f.current&&(f.current=setTimeout(()=>{f.current=null,y(null)},cv))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&B()},[s,r,B]),o.useEffect(()=>{if(!_)return;const x=w=>w instanceof Element&&(m.current?.contains(w)||!!w.closest(".training-tooltip")),E=w=>{x(w.target)?b():N()};return document.addEventListener("pointerover",E,!0),()=>document.removeEventListener("pointerover",E,!0)},[_,b,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:p,onClick:u?x=>{B(),u(x)}:void 0,onKeyDown:u?x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),x.currentTarget.click())}:void 0,onPointerEnter:x=>{x.pointerType==="touch"||x.pointerType==="pen"?B():v()},onMouseEnter:c,onMouseLeave:x=>{N(),d?.(x)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(nt,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),g&&r&&n.jsx(yu,{plan:r,anchorRect:g,onClose:B})]})}let Ya=0,vu="",Ro="",Za=0;function _u(){return xu(!1)}function pv(){return xu(!0)}function xu(e){const t=typeof document<"u";Ya===0&&t&&(vu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Za===0&&(Ro=document.body.style.paddingRight),Za++,document.body.style.paddingRight="0px"),Ya++;let a=!1;return()=>{a||(a=!0,Ya=Math.max(0,Ya-1),e&&t&&(Za=Math.max(0,Za-1),Za===0&&(Ro?document.body.style.paddingRight=Ro:document.body.style.removeProperty("padding-right"))),Ya===0&&t&&(document.body.style.overflow=vu))}}function hv(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function mv({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:h}){const{t:p}=_e.useTranslation(),m=o.useId(),g=o.useRef(null),y=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const b=document.activeElement,B=_u(),v=g.current;return bo(v,b),v?.focus(),()=>{B();const N=document.activeElement;(!N||N===document.body||v&&v.contains(N))&&go(b)?.focus?.()}},[e]);const C=o.useRef(y),f=o.useRef(u);o.useEffect(()=>{C.current=y,f.current=u}),o.useEffect(()=>{if(e)return Zn(()=>{f.current&&C.current()})},[e]);const _=o.useRef(!1);return Co(g,e),!e||typeof document>"u"?null:dn.createPortal(n.jsx("div",{className:Be("dialog",d),onPointerDown:i?b=>{_.current=b.target===b.currentTarget}:void 0,onMouseDown:b=>{b.target===b.currentTarget&&b.preventDefault()},onClick:i?b=>{const B=_.current;_.current=!1,B&&b.target===b.currentTarget&&y()}:void 0,children:n.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:Be("dialog__surface",`dialog__surface--${l}`,h),onClick:b=>b.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:y,children:n.jsx(hv,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function Cv({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),h=!i&&t.length===0;return n.jsxs("div",{className:Be("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Be("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:i?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):h?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,m)=>n.jsx("tr",{className:"board__row",children:e.map(g=>n.jsx("td",{className:Be("board__td",`board__cell--${g.align??"left"}`),children:g.render(p,m)},g.key))},a(p,m)))})]})]})}function fv({name:e,role:t,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return n.jsxs("div",{className:Be("person-card",i),children:[n.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function bv({groups:e,className:t=""}){return n.jsx("div",{className:Be("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>n.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function gv({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Be("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),l?n.jsx("div",{className:"publication-card__footer",children:l}):null]})}function yv({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=Ia(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function vv({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Be("section-header",`section-header--${l}`,i),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function _v({items:e,className:t=""}){return n.jsx("ul",{className:Be("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}const Xa=new Map;function yn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(v=>!v.disabled)?.key??a[0]?.key,onChange:s=v=>{},className:l="",size:i=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:h,ariaLabel:p}=e||{},m=o.useRef(null),g=a.filter(v=>!v.disabled),y=o.useId(),C=a.map(v=>v.key).join("\xB7");o.useEffect(()=>{if(!(!On||p!=null&&p!=="")){if(Xa.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Xa.size>1){const v=[...Xa.values()].sort();wt(`segmented-control-unnamed:${v.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Xa.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${v.join(" / ")}`)}return()=>{Xa.delete(y)}}},[p,C,y]);const f=v=>{if(!g.length)return;const N=Math.max(0,g.findIndex(E=>E.key===r)),x=v==="first"?g[0]:v==="last"?g[g.length-1]:g[(N+v+g.length)%g.length];x&&(s(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(E=>E.dataset.segkey===x.key)?.focus())},_=v=>{switch(v.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}v.preventDefault()},b=v=>{const N=x=>typeof x=="string"||typeof x=="number";if(!(!N(v.label)||v.count==null||v.count===!1||!N(v.count)))return`${v.label}, ${v.count}`},B=g.some(v=>v.key===r)?r:g[0]?.key;return n.jsx("div",{ref:m,onKeyDown:_,className:Be("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",h!=null&&"segmented-control--min",l),style:h!=null?{"--segmented-min-button-w":`${h}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>n.jsx(fe,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===B?0:-1,label:v.label,count:v.count,ariaLabel:b(v),disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||s(v.key)},size:i,shape:u,useBorder:!1,useBG:!1},v.key))})}const xv=260;function Rn(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:d,footerEnd:h,footerNote:p,footerNoteDivider:m=!1,footerClassName:g="",footerLayout:y="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:b=!0,className:B="",ariaLabel:v,useTitle:N=!0,inline:x=!1,size:E,layer:w="modal",height:D,fillBody:A=!1,resetScrollKey:k}=e||{},[R,$]=o.useState(!1),G=o.useRef(!1),M=o.useRef(null),P=o.useId(),L=o.useRef(null);o.useEffect(()=>{},[x,a,v,B]),o.useEffect(()=>{k!==void 0&&L.current&&(L.current.scrollTop=0)},[k]);const[Q,Z]=o.useState(!1);o.useEffect(()=>{const V=L.current;if(!V)return;const ne=()=>Z(V.scrollHeight>V.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const W=new ResizeObserver(ne);W.observe(V);const H=V.firstElementChild;return H&&W.observe(H),()=>W.disconnect()},[i,k]),o.useEffect(()=>{if(!x)return _u()},[x]);const F=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(x)return;const V=F.current,ne=M.current;return bo(ne,V),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(Nn)??ne).focus(),()=>{const W=document.activeElement;(!W||W===document.body||ne&&ne.contains(W))&&go(V)?.focus?.()}},[x]),Co(M,!x);const K=o.useRef(!0),T=yo(),q=o.useRef(null);o.useEffect(()=>(K.current=!0,()=>{K.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const Y=o.useCallback(()=>{!K.current||!G.current||(G.current=!1,$(!1))},[]),U=o.useCallback((V,ne=!1)=>{if(ne&&!K.current||G.current)return;G.current=!0,$(!0);const W=setTimeout(()=>{q.current===W&&(q.current=null);let H;try{H=V?V():void 0}catch{Y();return}H&&typeof H.then=="function"&&H.then(()=>{setTimeout(Y,120)},Y)},T?0:xv);ne&&(q.current=W)},[Y,T]),S=o.useCallback(()=>{f||_&&_()===!1||U(C,!0)},[U,C,f,_]),I=o.useRef(S);o.useEffect(()=>{I.current=S});const O=!x&&!!C;o.useEffect(()=>{if(O)return Zn(()=>I.current())},[O]);const z=O&&b,se=o.useRef(!1),te=V=>{se.current=V.target===V.currentTarget},de=V=>{const ne=se.current;se.current=!1,ne&&V.target===V.currentTarget&&S()},ee=n.jsx("div",{className:`popup ${x?"popup--inline":""} ${w==="belowPagePopup"?"popup--below-page-popup":""} ${R?"popup--closing":""} ${B}`,onPointerDown:z?te:void 0,onClick:z?de:void 0,onMouseDown:x?void 0:V=>{V.target===V.currentTarget&&V.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${E?` popup-panel--${E}`:""}${D!=null?" popup-panel--has-height":""}${A?" popup-panel--fill-body":""}`,style:D!=null?{"--popup-height":typeof D=="number"?`${D}px`:D}:void 0,tabIndex:-1,role:x?void 0:"dialog","aria-modal":x?void 0:!0,"aria-labelledby":!x&&N&&a?P:void 0,"aria-label":!x&&!(N&&a)?v??(typeof a=="string"?a:void 0):void 0,children:[!N&&(s||C)?n.jsxs("div",{className:"popup-close-float",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||C?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:P,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:P,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),n.jsxs("div",{className:"popup-header-aside",children:[l&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(yn,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(V=>({key:V.key,label:V.label,disabled:V.disabled})),value:l.value,onChange:l.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]})]}):null,n.jsx("div",{className:"popup-content",ref:L,tabIndex:Q?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:U,closeWithAnimation:S}):i})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${m?" popup-footer-note--divider":""}`,role:"note",children:p}),d||h?n.jsxs("div",{className:`popup-footer popup-footer--bar${g?` ${g}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:U,closeWithAnimation:S}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof h=="function"?h({animateThen:U,closeWithAnimation:S}):h})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${y!=="center"?` popup-footer--${y}`:""}`,children:u.map((V,ne)=>n.jsx(fe,{htmlType:"button",size:48,variant:V.variant??"default",label:V.label,disabled:V.disabled,onClick:()=>V.onClick?.({animateThen:U,closeWithAnimation:S})},ne))}):c?n.jsx("div",{className:`popup-footer${y!=="center"?` popup-footer--${y}`:""}${g?` ${g}`:""}`,children:typeof c=="function"?c({animateThen:U,closeWithAnimation:S}):c}):null]})});return x||typeof document>"u"?ee:dn.createPortal(ee,document.body)}function wu({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}function vn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:h}){const{t:p}=_e.useTranslation(),m=r??p("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),y=o.useId(),C=o.useRef(null),f=o.useCallback((M,P)=>{const L=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...L?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:za(P)}},[]),{open:_,setOpen:b,toggle:B,style:v,triggerRef:N,menuRef:x}=Wa({computeStyle:f}),[E,w]=o.useState(-1),D=o.useCallback(()=>w(-1),[]),A=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(P=>P.value===t);w(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const P=x.current;if(!P)return;const L=P.querySelectorAll(".dropdown__option")[M];L&&(P.scrollTop=Math.max(0,L.offsetTop-P.clientHeight/2+L.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&w(M=>{if(M>=0&&M<e.length)return M;const P=e.findIndex(L=>L.value===t);return P>=0?P:e.length?0:-1})},[_,e.length]);const k=o.useCallback(()=>{s||B()},[s,B]),R=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),b(!1))},[a,b,s,t]);o.useEffect(()=>{s&&b(!1)},[s,b]);const $=o.useCallback(M=>{if(!s){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),b(!0));return}if(M.key==="Escape"){M.preventDefault(),b(!1);return}M.key==="ArrowDown"?(M.preventDefault(),w(P=>{let L=P+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:P})):M.key==="ArrowUp"?(M.preventDefault(),w(P=>{let L=P-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:P})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[E]?R(e[E]):b(!1))}},[s,_,e,E,R,b]),G=_?n.jsx("div",{ref:x,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:v,onMouseLeave:D,onMouseDown:M=>M.preventDefault(),children:e.map((M,P)=>n.jsxs("button",{id:`${g}-option-${P}`,type:"button",role:"option","aria-selected":M.value===t,className:Be("dropdown__option body-2",M.value===t?"dropdown__option--active":"",P===E?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>R(M),onMouseEnter:()=>w(P),disabled:M.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:M.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),M.label]},M.value))}):null;return n.jsxs("div",{ref:C,className:Be("dropdown",`dropdown--s${i}`,_?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:N,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?g:void 0,"aria-activedescendant":_&&E>=0?`${g}-option-${E}`:void 0,"aria-label":d,"aria-describedby":[d&&A?y:"",h??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:k,onBlur:M=>{_&&!x.current?.contains(M.relatedTarget)&&b(!1)},children:[n.jsx("span",{id:y,className:`dropdown__trigger-label body-2${A?"":" dropdown__trigger-label--placeholder"}`,children:A?A.label:m}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&dn.createPortal(G,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}const wv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Bu(e){return e?wv[e]??null:null}function ku(e){switch(Bu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Au(e,t){const a=Bu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const ba=e=>e==null?"":String(e).trim();function Po(e,t,a,r){const s=ba(e),l=ba(t),i=ba(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const h=Vl(c,r);if(h)return h}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function Bv(e,t,a){const r=ba(e);return r?`${r}-${ba(t).padStart(2,"0")}-${ba(a).padStart(2,"0")}`:""}function Nu(e){return typeof e=="string"?e:e.label}function Eu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,d]=o.useState(!1),[h,p]=o.useState(-1),m=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const k=e??"";return s===!1?a:k?typeof s=="function"?s(a,k):a.filter(R=>Nu(R).toLowerCase().includes(k.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),f=o.useRef([]),_=y&&g.length===0?f.current:g;o.useEffect(()=>{_.length&&(f.current=_)},[_]);const b=o.useCallback(()=>C(!0),[]),B=o.useCallback(()=>C(!1),[]),v=i?0:-1;o.useEffect(()=>{c||p(v)},[c,v]),o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const N=h<_.length?h:v<_.length?v:-1,x=o.useCallback(k=>{l?l(k):t?.(Nu(k)),d(!1)},[t,l]),E=o.useCallback(()=>d(!0),[]),w=o.useCallback(()=>{d(!0),p(v)},[v]),D=o.useCallback(()=>{m.current=setTimeout(()=>d(!1),120)},[]),A=o.useCallback(k=>{k.nativeEvent.isComposing||k.keyCode===229||(k.key==="ArrowDown"?(k.preventDefault(),d(!0),p(R=>Math.min(_.length-1,(R<_.length?R:v)+1))):k.key==="ArrowUp"?(k.preventDefault(),p(R=>Math.max(v,(R<_.length?R:_.length)-1))):k.key==="Enter"?N>=0&&x(_[N]):k.key==="Escape"&&c&&(k.preventDefault(),d(!1)))},[_,N,c,x,v]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:E,handleBlur:D,handleInput:w,handleKeyDown:A,handleSelect:x,handleCompositionStart:b,handleCompositionEnd:B}}const Io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function qn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:h,ghostText:p,ghostHint:m,type:g="text",disabled:y=!1,readOnly:C=!1,error:f,helperText:_,maxLength:b,size:B=40,variant:v="input",fullWidth:N=!1,newline:x=!1,multiline:E=!1,rows:w=3,leftIcon:D,rightIcon:A,clearable:k=!1,list:R,showCount:$=!0,className:G="",onFocus:M,onBlur:P,onKeyDown:L,onEnter:Q,inputMode:Z,autoComplete:F,autoFocus:K,suggestions:T,filterSuggestions:q,onSelectSuggestion:Y,autoActiveFirst:U,openOnFocus:S=!1}=e,I=C||y?void 0:T,{t:O}=_e.useTranslation(),z=o.useId();!i&&!u&&wt(`TextField:unnamed:${z}`,"[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 se=`tf-${z}`,te=`tf-helper-${z}`,de=o.useRef(null),ee=Eu({value:t??"",onChange:l,suggestions:I??[],openOnFocus:S,filterSuggestions:q,onSelectSuggestion:Y,autoActiveFirst:U}),V=!!I&&ee.open&&ee.filtered.length>0,ne=o.useRef(null),[W,H]=o.useState(null),ie=o.useCallback(()=>{const je=ne.current;if(!je||typeof window>"u")return;const Ye=je.getBoundingClientRect(),we=230,Ue=window.innerHeight-Ye.bottom<we+8&&Ye.top>we+8;H({position:"fixed",left:Ye.left,width:Ye.width,...Ue?{bottom:window.innerHeight-Ye.top+8}:{top:Ye.bottom+8},zIndex:za(je)})},[]);Io(()=>{if(!V)return;ie();let je=null;const Ye=()=>{if(typeof requestAnimationFrame>"u"){ie();return}je===null&&(je=requestAnimationFrame(()=>{je=null,ie()}))},we=Ue=>{const qe=Ue.target;qe&&qe.nodeType===1&&qe.closest?.(".text-field__suggestions")||Ye()};return window.addEventListener("scroll",we,!0),window.addEventListener("resize",Ye),()=>{je!==null&&cancelAnimationFrame(je),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",Ye)}},[V,ie]);const Te=o.useCallback(je=>{de.current=je,typeof s=="function"?s(je):s&&(s.current=je)},[s]),ye=p?`${p}${m??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:h,he=t!==void 0,Se=he&&g==="password",[$e,Ne]=o.useState((a??"").length),ue=he?(t??"").length:$e,xe=o.useRef(t);Io(()=>{xe.current=t}),o.useEffect(()=>{const je=de.current;if(!Se||!je)return;const Ye=t??"";je.value!==Ye&&(je.value=Ye)},[Se,t]),o.useEffect(()=>{if(!x||!de.current)return;const je=de.current;je.style.height="",je.scrollHeight>je.clientHeight&&(je.style.height=`${je.scrollHeight}px`)},[t,$e,x]);const ke=b!=null&&ue>b,Ee=B===32?16:20,We=Be("text-field",`text-field--s${B}`,v==="display"?"text-field--display":"",N?"text-field--full-width":"",y?"text-field--disabled":"",C?"text-field--readonly":"",f?"text-field--error":"",D?"text-field--has-left-icon":"",A||k?"text-field--has-right-icon":"",G),He={id:se,...Se?{}:he?{value:t}:{defaultValue:a},ref:Te,placeholder:ye,name:r,disabled:y,readOnly:C,autoFocus:K,maxLength:b,list:R,inputMode:Z,autoComplete:F,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?te:null,c].filter(Boolean).join(" ")||void 0,role:I?"combobox":void 0,"aria-autocomplete":I?"list":void 0,"aria-haspopup":I?"listbox":void 0,"aria-expanded":I?V:void 0,"aria-controls":V?ee.listId:void 0,"aria-activedescendant":V&&ee.activeIdx>=0?`${ee.listId}-option-${ee.activeIdx}`:void 0,onChange:je=>{const Ye=je.target;he||Ne(Ye.value.length),l?.(Ye.value),I&&ee.handleInput(),Se&&queueMicrotask(()=>{const we=xe.current??"";Ye.value!==we&&(Ye.value=we)})},onCompositionStart:I?ee.handleCompositionStart:void 0,onCompositionEnd:I?ee.handleCompositionEnd:void 0,onFocus:(je=>{M?.(je),I&&ee.handleFocus()}),onBlur:(je=>{P?.(je),I&&ee.handleBlur()}),onKeyDown:(je=>{const Ye=(je.key==="Tab"&&!je.shiftKey||je.key===" ")&&!je.nativeEvent.isComposing;if(p&&Ye&&!C&&!y&&!(je.currentTarget.value??"").trim()){je.preventDefault();const we=je.currentTarget;he||(we.value=p,Ne(p.length)),l?.(p);return}I&&je.key==="Enter"&&!je.nativeEvent.isComposing&&ee.activeIdx>=0?je.preventDefault():Q&&je.key==="Enter"&&!je.nativeEvent.isComposing&&(je.preventDefault(),Q()),L?.(je),I&&ee.handleKeyDown(je)})},ot=k&&!y&&!C&&ue>0,Qe=()=>x?n.jsx("textarea",{...He,className:"text-field__input text-field__input--auto body-2",rows:1}):E?n.jsx("textarea",{...He,className:"text-field__input text-field__input--textarea body-2",rows:w}):n.jsx("input",{...He,type:g,className:"text-field__input body-2"}),Je=v==="display"&&!x&&!E&&!!ye,vt=()=>n.jsxs(n.Fragment,{children:[Qe(),Je&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ye})]});return n.jsxs("div",{ref:ne,className:We,children:[i&&n.jsxs("label",{htmlFor:se,className:"text-field__label caption-1",children:[i,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[D&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(nt,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ee})}),vt(),b!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${ke?" text-field__count--over":""}`,children:[ue,"/",b]}),ot&&n.jsx(fe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:je=>{je.preventDefault()},onClick:()=>{!he&&de.current&&(de.current.value="",Ne(0)),l?.("")},tabIndex:-1}),A&&!ot&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(nt,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ee})})]}),!!I&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ee.open&&(t??"").length>0&&ee.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),V&&(typeof document>"u"?null:dn.createPortal(n.jsx("ul",{id:ee.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ee.filtered.map((je,Ye)=>n.jsx("li",{id:`${ee.listId}-option-${Ye}`,role:"option","aria-selected":Ye===ee.activeIdx,className:`text-field__suggestion body-2${Ye===ee.activeIdx?" is-active":""}`,onMouseDown:we=>we.preventDefault(),onClick:()=>{ee.handleSelect(je),de.current?.focus()},children:typeof je=="string"?je:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:je.label}),je.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:je.hint})]})},typeof je=="string"?`${je}-${Ye}`:je.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:te,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}const Du=()=>{};function sn(e){const t=o.useId();if(!("variant"in e)){const{label:b,sub:B,onClick:v,children:N,align:x="horizontal",icon:E,useFullWidth:w=!1}=e,D=A=>{v&&A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),v())};return n.jsxs("div",{className:Be("panel-row",x==="vertical"?"panel-row--vertical":"",w?"panel-row--label-fixed panel-row--fill":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?D:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[E!=null&&n.jsx("div",{className:"panel-row__icon",children:E}),b!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:b}),B&&n.jsx("div",{className:"panel-row__sub caption-1",children:B})]}),n.jsx("div",{className:"panel-row__right",children:N})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(pa,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:d=!1,icon:h}=e,p=a==="button"?void 0:l;let m=null;const g=a==="toggle"?`panel-toggle-${t}`:void 0,y=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const b=e;m=n.jsx(wu,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;m=n.jsx(yn,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,B=b.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,N)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(vn,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(vn,{options:b.options??[],value:b.value??"",onChange:b.onChange??Du,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});m=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[B,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):B}else if(a==="button"){const b=e;b.buttons?.length?m=n.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((B,v)=>n.jsx(fe,{htmlType:"button",size:B.btnSize??40,variant:B.btnVariant??"default",disabled:B.disabled,onClick:B.onClick,children:B.label},v))}):m=n.jsx(fe,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;m=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;m=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(qn,{value:b.value,onChange:b.onChange??Du,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,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:d,error:u,ariaLabel:r,required:i,ariaDescribedBy:b.helperText?C:void 0}),b.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(m=e.children);u&&a!=="input"&&a!=="dropdown"&&(m=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[m,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=b=>{p&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),p())};return n.jsxs("div",{className:Be("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[h!=null&&n.jsx("div",{className:"panel-row__icon",children:h}),n.jsxs("div",{className:"panel-row__left",children:[g?n.jsxs("label",{htmlFor:g,className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:m})]})}function Su(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function kv({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:s}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&t&&n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(l)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(on,{size:"small",variant:ku(i.device),fill:"soft",label:Au(i.device,r)}),Su(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Su(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Po(i.wornYear,i.wornMonth,i.wornDay,s.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Po(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function Ja({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:d,scrollbarGutter:h="auto",compactRows:p=!1,useBorder:m=!0,useBg:g=!0,useRowBorder:y=!0,labelWidth:C,form:f=!1,loading:_,empty:b,children:B}){const v=Be("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",g?"":"panel--no-bg",y?"":"panel--no-row-border",p?"panel--compact-rows":"",c),N={};i!==void 0&&(N.minHeight=i),u!==void 0&&(N.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(N["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const x=t?`h${t}`:"div";return n.jsxs("div",{className:v,style:Object.keys(N).length?N:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Be("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(nt,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(sn,{variant:"loading"}):b!=null&&o.Children.toArray(B).length===0?n.jsx(sn,{variant:"empty",children:b}):d?n.jsx("div",{className:Be("panel__body--scroll",h==="stable"&&"panel__body--gutter-stable"),children:B}):B]})}function Av({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const m=new ResizeObserver(([g])=>d(g.contentRect.width));return m.observe(p),()=>m.disconnect()},[r]);const h=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Be("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":h?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function Fo({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const d=o.useRef(null),h=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Be("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:h,title:u,children:[n.jsx("input",{ref:d,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>{t?.(m.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function ju(e,t){const a=()=>{if(e){const[C,f]=e.split("-");return{y:+C,m:+f-1}}const[g,y]=ur(t).split("-");return{y:+g,m:+y-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),i(g.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const d=o.useCallback(g=>{const y=c.current.y*12+c.current.m+g,C=Math.floor(y/12),f=y-C*12;c.current={y:C,m:f},s(C),i(f)},[]),h=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),m=o.useCallback((g,y)=>{c.current={y:g,m:y},s(g),i(y)},[]);return{viewY:r,viewM:l,prevMonth:h,nextMonth:p,setViewYM:m}}function vr(e,t){return new Date(e,t+1,0).getDate()}function Nv(e,t){return new Date(e,t,1).getDay()}function Qa(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Ev(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function Dv(e){const t=e.replace(/\D/g,"");if(t.length!==8)return null;const a=+t.slice(0,4),r=+t.slice(4,6),s=+t.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:Qa(a,r-1,s)}const Sv=1900;function jv(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(Sv,e),i=s?+s.split("-")[0]:Math.max(t+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function Tu(e,t,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:t(e,l)})}return s}function Mu({value:e,onChange:t,size:a=48,min:r,max:s,disabled:l,placeholder:i,className:u,today:c}){const{t:d,i18n:h}=_e.useTranslation(),p=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),g=ur(c),{viewY:y,viewM:C,prevMonth:f,nextMonth:_,setViewYM:b}=ju(e,c),B=o.useId(),v=o.useCallback((V,ne)=>{const W=window.innerHeight,H=window.innerWidth,ie=typeof document<"u"?document.getElementById(B):null,Te=Math.max(ie?.offsetHeight||0,ie?.scrollHeight||0)||300,ye=Math.max(V.width,ie?.offsetWidth||0,260),he=W-V.bottom,Se=V.top,$e=he<Te&&Se>he,Ne=8,ue=(xe,ke)=>Math.min(Math.max(Ne,xe),Math.max(Ne,ke));return{position:"fixed",left:ue(V.left,H-ye-Ne),width:V.width,minWidth:260,...$e?{top:"auto",bottom:ue(W-V.top+6,W-Te-Ne)}:{bottom:"auto",top:ue(V.bottom+6,W-Te-Ne)},zIndex:za(ne)}},[B]),{open:N,setOpen:x,toggle:E,style:w,triggerRef:D,menuRef:A}=Wa({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!N)return;const V=A.current;return(V?.querySelector(".date-picker__day--selected:not(:disabled)")??V?.querySelector(".date-picker__day--today:not(:disabled)")??V?.querySelector(".date-picker__day:not(:disabled)")??V?.querySelector(Nn)??V)?.focus?.(),()=>{const ne=document.activeElement;(!ne||ne===document.body)&&D.current?.focus?.()}},[N,A,D]);const[k,R]=o.useState(1),$=o.useRef(null),G=o.useRef(null);o.useEffect(()=>{if(!N)return;const V=e&&e.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+e.slice(8):g.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+g.slice(8):1;R(V)},[N]),o.useEffect(()=>{if(G.current==null)return;const V=G.current;G.current=null,$.current?.querySelector(`[data-day="${V}"]`)?.focus()}),o.useEffect(()=>{R(V=>Math.min(V,vr(y,C)))},[y,C]);const M=o.useCallback(V=>{let ne=Qa(V.getFullYear(),V.getMonth(),V.getDate());r&&ne<r&&(ne=r),s&&ne>s&&(ne=s);const[W,H,ie]=ne.split("-").map(Number);(W!==y||H-1!==C)&&b(W,H-1),R(ie),G.current=ie},[r,s,y,C,b]),P=o.useCallback(V=>{const ne=new Date(y,C,k),W=ie=>{ne.setDate(ne.getDate()+ie),M(ne)},H=ie=>{const Te=ne.getFullYear()*12+ne.getMonth()+ie,ye=Math.floor(Te/12),he=Te-ye*12;M(new Date(ye,he,Math.min(ne.getDate(),vr(ye,he))))};switch(V.key){case"ArrowLeft":W(-1);break;case"ArrowRight":W(1);break;case"ArrowUp":W(-7);break;case"ArrowDown":W(7);break;case"Home":W(-ne.getDay());break;case"End":W(6-ne.getDay());break;case"PageUp":V.shiftKey?H(-12):H(-1);break;case"PageDown":V.shiftKey?H(12):H(1);break;default:return}V.preventDefault()},[y,C,k,M]),L=o.useCallback(V=>{l||(t(Qa(y,C,V)),x(!1))},[y,C,t,x,l]);o.useEffect(()=>{l&&x(!1)},[l,x]);const Q=V=>{const ne=Qa(y,C,V);return!!(r&&ne<r||s&&ne>s)},Z=(()=>{const V=vr(y,C);if(k>=1&&k<=V&&!Q(k))return k;for(let ne=1;ne<=V;ne++)if(!Q(ne))return ne;return-1})(),F=[];for(let V=0;V<Nv(y,C);V++)F.push(null);for(let V=1;V<=vr(y,C);V++)F.push(V);const K=a===64?20:a===40?16:18,T=ql(h.language),q=V=>new Intl.DateTimeFormat(T,{year:"numeric"}).format(new Date(V,0,1)),Y=(V,ne)=>new Intl.DateTimeFormat(T,{month:"long"}).format(new Date(V,ne-1,1)),U=jv(y,+g.slice(0,4),q,r,s),S=Tu(y,Y,r,s),I=V=>{const ne=Tu(V,Y,r,s);if(ne.length===0)return;const W=ne.some(H=>+H.value===C+1);b(V,W?C:+ne[0].value-1)},[O,z]=o.useState(null);o.useEffect(()=>{z(null)},[e]);const se=o.useCallback(V=>{z(V);const ne=Dv(V);if(!ne||r&&ne<r||s&&ne>s)return;t(ne);const[W,H]=ne.split("-");b(+W,+H-1)},[r,s,t,b]),te=o.useCallback(()=>{z(null)},[]),de=o.useCallback(V=>{V.key==="Enter"?(V.preventDefault(),te(),x(!1)):V.key==="Escape"?(te(),x(!1)):V.key==="ArrowDown"&&!N&&(V.preventDefault(),x(!0))},[te,x,N]),ee=N?dn.createPortal(n.jsxs("div",{ref:A,id:B,className:"date-picker__dropdown",style:w,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ws,{size:16,strokeWidth:2})}),n.jsxs("div",{className:"date-picker__nav-ym",children:[n.jsx(vn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:U,value:String(y),onChange:V=>I(+V),size:40}),n.jsx(vn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:S,value:String(C+1),onChange:V=>b(y,+V-1),size:40})]}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Hs,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:$,onKeyDown:P,children:[m.map(V=>n.jsx("div",{className:"date-picker__dow caption-1",children:V},V)),F.map((V,ne)=>{if(V===null)return n.jsx("div",{},`e${ne}`);const W=Qa(y,C,V),H=W===e,ie=W===g,Te=Q(V),ye=ne%7;return n.jsx("button",{type:"button",disabled:Te,"data-day":V,tabIndex:V===Z?0:-1,"aria-current":ie?"date":void 0,onClick:()=>!Te&&L(V),className:Be("date-picker__day caption-1",H&&"date-picker__day--selected",ie&&!H&&"date-picker__day--today",Te&&"date-picker__day--disabled",ye===0&&"date-picker__day--sun",ye===6&&"date-picker__day--sat"),children:V},V)})]})]}),document.body):null;return n.jsxs("div",{className:Be("date-picker",`date-picker--s${a}`,N&&"date-picker--open",u),children:[n.jsxs("div",{className:"date-picker__field",children:[n.jsx("input",{ref:D,type:"text",className:"date-picker__trigger body-2",value:O??Ev(e),placeholder:p,onChange:V=>se(V.target.value),onClick:()=>!l&&!N&&E(),onKeyDown:de,onBlur:te,disabled:l,"aria-haspopup":"dialog","aria-expanded":N,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&E(),disabled:l,tabIndex:-1,"aria-label":p,"aria-haspopup":"dialog","aria-expanded":N,children:n.jsx(Js,{size:K,className:"date-picker__icon",strokeWidth:1.5})})]}),ee]})}const Lu=["personal","sensitive","marketing"];function Tv({takenKinds:e,busy:t,today:a,onClose:r,onSubmit:s,className:l}){const{t:i}=_e.useTranslation(),[u]=o.useState(()=>ur(a)),[c,d]=o.useState([]),[h,p]=o.useState("paper"),[m,g]=o.useState("self"),[y,C]=o.useState(u),[f,_]=o.useState(""),b=Lu.filter(v=>!e.includes(v)),B={personal:i("customers.consent.kind.personal","\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4"),sensitive:i("customers.consent.kind.sensitive","\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)"),marketing:i("customers.consent.kind.marketing","\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0")};return n.jsx(Rn,{title:i("customers.consent.record","\uB3D9\uC758 \uBC1B\uAE30"),closeDisabled:t,onClose:r,className:l,footer:()=>n.jsx(fe,{htmlType:"button",size:48,variant:"main",disabled:t||c.length===0,label:i("customers.consent.submit","\uC800\uC7A5\uD558\uAE30"),onClick:()=>s({kinds:c,method:h,source:m,consentedAt:y||null,note:f.trim()||null})}),children:n.jsxs(Ja,{useBorder:!1,useRowBorder:!1,labelWidth:96,children:[n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.kinds","\uBC1B\uC740 \uAC08\uB798"),children:n.jsxs("div",{className:"consent-record-popup__kinds",children:[b.map(v=>n.jsx(Fo,{checked:c.includes(v),disabled:t,label:B[v],onChange:N=>d(x=>N?[...x,v]:x.filter(E=>E!==v))},v)),b.length===0&&n.jsx("p",{className:"body-3 consent-record-popup__none",children:i("customers.consent.allTaken","\uC138 \uAC08\uB798\uB97C \uC774\uBBF8 \uB2E4 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBC1B\uC73C\uB824\uBA74 \uBA3C\uC800 \uCCA0\uD68C\uD558\uC138\uC694.")})]})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),children:n.jsx(yn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),options:[{key:"paper",label:i("customers.consent.method.paper","\uC11C\uBA74")},{key:"verbal",label:i("customers.consent.method.verbal","\uAD6C\uB450")},{key:"electronic",label:i("customers.consent.method.electronic","\uC804\uC790")}],value:h,onChange:v=>p(String(v))})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),children:n.jsx(yn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),options:[{key:"self",label:i("customers.consent.source.self","\uBCF8\uC778")},{key:"guardian",label:i("customers.consent.source.guardian","\uBCF4\uD638\uC790")},{key:"referral",label:i("customers.consent.source.referral","\uC758\uB8B0\uAE30\uAD00")}],value:m,onChange:v=>g(String(v))})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.day","\uBC1B\uC740 \uB0A0"),children:n.jsx(Mu,{size:48,value:y,max:u,today:a,onChange:v=>C(v??"")})}),n.jsx(sn,{variant:"custom",useFullWidth:!0,label:i("customers.consent.note","\uBA54\uBAA8"),children:n.jsx(qn,{size:48,fullWidth:!0,value:f,onChange:_,disabled:t,ariaLabel:i("customers.consent.note","\uBA54\uBAA8"),placeholder:i("customers.consent.notePlaceholder","\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4")})})]})})}function Oo({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=_e.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),h=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Be("pagination",l),children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:h}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}function zo({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(t||r?.length||s||l||i);return n.jsxs("div",{className:Be("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,m)=>n.jsx(yn,{size:40,...p},p.ariaLabel??m))]}),h&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(qn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,m)=>n.jsx(vn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},m)),(s||l)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(vn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&n.jsx(Oo,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function $u(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map($u).join(""):""}function Mv(e){let t=e.replace(/\r\n/g,`
|
|
825
825
|
`).replace(/\r/g,`
|
|
826
826
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
827
827
|
`).map(l=>l.replace(/\t/g," ")),r=a.filter(l=>l.trim().length>0),s=r.length>0?Math.min(...r.map(l=>l.match(/^ */)?.[0].length??0)):0;return a.map(l=>l.slice(s)).join(`
|