@ihabdevteam/core 0.482.0 → 0.484.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 +14 -0
- package/dist/components.cjs.js +15 -15
- 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 +15 -15
- package/dist/ihabdevteam-core.d.ts +13 -1
- package/dist/packages/core/src/components/Training/TrainingBlock.d.ts +12 -0
- package/dist/packages/core/src/components/Training/TrainingBlock.js +25 -16
- package/dist/packages/core/src/components/Training/TrainingBlockButton.css +15 -0
- 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/hooks.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";var c=require("react"),Le=require("react-i18next"),ae=require("i18next"),no=typeof document<"u"?document.currentScript:null;function Ul(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Rr=Ul(c);function Yl({storageKey:e="fontScale",baseFont:t=20,minScale:n=.8,maxScale:o=1.4,step:r=.1,lineHeightRatio:u=1.4}={}){const a=E=>Math.max(n,Math.min(o,Number(E))),l=E=>{try{const A=localStorage.getItem(E),v=A?Number(A):1;return Number.isFinite(v)?a(v):a(1)}catch{return a(1)}},[s,d]=c.useState(()=>l(e)),[m,f]=c.useState(e);m!==e&&(f(e),d(l(e))),c.useEffect(()=>{try{localStorage.setItem(e,String(s))}catch{}},[e,s]);const g=E=>{d(typeof E=="function"?A=>a(E(A)):a(E))},p=()=>g(E=>+(E+r).toFixed(6)),h=()=>g(E=>+(E-r).toFixed(6)),w=s<o-Number.EPSILON,b=s>n+Number.EPSILON,y=Math.round(t*s),S=Math.round(y*u);return{scale:s,setScale:g,increase:p,decrease:h,canIncrease:w,canDecrease:b,fontSize:y,lineHeight:S}}const Ir=c.createContext(null);function zl(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Mr=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function Kl(e){const t=c.useCallback(n=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const o=window.matchMedia(e);o.addEventListener?o.addEventListener("change",n):o.addListener&&o.addListener(n);let r=null,u=null;const a=()=>{n(),r===null&&typeof requestAnimationFrame<"u"&&(r=requestAnimationFrame(()=>{r=null,n()})),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,n()},150)};return window.addEventListener("resize",a),window.addEventListener("orientationchange",a),()=>{o.removeEventListener?o.removeEventListener("change",n):o.removeListener&&o.removeListener(n),window.removeEventListener("resize",a),window.removeEventListener("orientationchange",a),r!==null&&cancelAnimationFrame(r),u!==null&&clearTimeout(u)}},[e]);return Rr.useSyncExternalStore(t,()=>Mr(e),()=>!1)}function ql(e){const[t,n]=c.useState(Mr(e));return c.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(e),r=a=>n(a.matches),u=o;return u.addEventListener?u.addEventListener("change",r):u.addListener&&u.addListener(r),n(o.matches),()=>{u.removeEventListener?u.removeEventListener("change",r):u.removeListener&&u.removeListener(r)}},[e]),t}const Jl=typeof Rr.useSyncExternalStore=="function"?Kl:ql;function Xl(e){const t=c.useContext(Ir),n=Jl(e);return t&&typeof t.mobile=="boolean"&&zl(e)?t.mobile:n}function Sn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),t}function oo(e,t){const n=Sn(t);c.useEffect(()=>{const o=()=>n.current();try{window.addEventListener(e,o)}catch{}return()=>{try{window.removeEventListener(e,o)}catch{}}},[e,n])}const ro=" \xB7 ",Pr=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ro)?e.split(ro).pop()??e:e})(),kr=c.createContext(!1),et=[];let xr=null;function Ql(e){const t=c.useContext(kr);c.useEffect(()=>{if(t||typeof e!="string"||!e)return;et.length===0&&(xr=document.title);const n={text:Pr?`${e}${ro}${Pr}`:e};return et.push(n),document.title=n.text,()=>{const o=et.lastIndexOf(n);o>=0&&et.splice(o,1),document.title=et.length?et[et.length-1].text:xr??document.title}},[e,t])}const Zl=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ei(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const n=e.trim(),o=/^(\d{4}-\d{2}-\d{2})(?:$|[T ])/.exec(n)?.[1];if(o){const u=new Date(`${o}T00:00:00Z`);if(Number.isNaN(u.getTime())||u.toISOString().slice(0,10)!==o)return null}const r=Zl.exec(n);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:n)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function vt(){return Nt(new Date)}function Nt(e){if(e==null||e==="")return"";const t=ei(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ti(e,t){const[n,o,r]=e.split("-").map(Number),[u,a,l]=t.split("-").map(Number);return Math.round((Date.UTC(u,a-1,l)-Date.UTC(n,o-1,r))/864e5)}function ni(){const{t:e}=Le.useTranslation();return c.useCallback(t=>{if(!t)return"";const n=Nt(t);if(!n)return"";const o=ti(n,vt());return o<=0?e("myHomework.relativeDay.today","\uC624\uB298"):o===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:o})},[e])}const oi=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof ae?.t=="function"?ae.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function ri(e,t){if(t===void 0&&(t=oi()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const n=e;for(const o of[n.message,n.error_description,n.error])if(typeof o=="string"&&o)return o}return t}function ui(e){const{t}=Le.useTranslation(),[n,o]=c.useState({current:"",next:"",confirm:""}),[r,u]=c.useState(null),[a,l]=c.useState(!1),s=c.useRef(null),d=c.useRef(!1),m=c.useRef(0);c.useEffect(()=>()=>{s.current!==null&&clearTimeout(s.current)},[]);const f=c.useCallback(()=>{m.current++,s.current!==null&&(clearTimeout(s.current),s.current=null),o({current:"",next:"",confirm:""}),u(null)},[]),g=c.useCallback(async()=>{if(d.current)return;if(s.current!==null&&(clearTimeout(s.current),s.current=null),!n.current){u({type:"error",text:t("account.security.password.currentRequired","\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.")});return}if(!n.next){u({type:"error",text:t("account.security.password.newRequired","\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.")});return}if(n.next!==n.confirm){u({type:"error",text:t("account.security.password.mismatch","\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")});return}l(!0),d.current=!0;const p=m.current;let h;try{h=e?await e(n.current,n.next):null}catch(w){h=ri(w)}finally{d.current=!1,l(!1)}if(p===m.current){if(h){u({type:"error",text:h});return}u({type:"success",text:t("account.security.password.changed","\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.")}),o({current:"",next:"",confirm:""}),s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,u(null)},1500)}},[n,e,t]);return{pw:n,setPw:o,pwMsg:r,setPwMsg:u,pwLoading:a,handleChangePw:g,reset:f}}const ai={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},uo={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function li(e,t){return(uo[e]?.glide??"")!==(uo[t]?.glide??"")}function Ot(e){return ai[e]??e}const pe=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Te=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Oe=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function X(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function ii(){const e=new Map;return t=>{let n=e.get(t);return n||(n=[...t].map(o=>X(o)),e.set(t,n)),n}}function ze(e,t,n=0){return String.fromCharCode(44032+(e*21+t)*28+n)}function si(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let n=0,o=null;for(let r=0;r<e.length;r++){const u=X(e[r]),a=X(t[r]);if(!u||!a)return"random";if(u.cho===a.cho&&u.jung===a.jung&&u.jong===a.jong)continue;n++;const l=u.cho!==a.cho,s=u.jung!==a.jung,d=u.jong!==a.jong;(l?1:0)+(s?1:0)+(d?1:0)>1?o="multi":l?o="cho":s?o="jung":o="jong"}return n!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}const wn={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(wn).map(([e,t])=>[t.join(""),Oe[Number(e)]]));function ci(e,t){if(!e||!t)return!1;for(const n of e){const o=X(n);if(o){if(pe[o.cho]===t)return!0;if(o.jong>0){if(Oe[o.jong]===t)return!0;const r=wn[o.jong];if(r&&r.includes(t))return!0}}}return!1}function di(e,t,n){const o=Oe[e];return o===t?!0:n==="phoneme"&&Ot(o)===Ot(t)}function Lt(e){if(!e)return 0;let t=0;for(const n of e)X(n)&&t++;return t}function fi(e){if(!e)return!1;let t=!1;for(const n of e){const o=X(n);if(o&&(t=!0,o.jong>0))return!1}return t}function gi(e,t,n){return e.jong<=0?!1:t.some(o=>di(e.jong,o,n))}function mi(e,t,n,o="glyph"){if(!e)return!1;const r=[...e],u=a=>{const l=X(r[a]);if(!l||t.cho&&!t.cho.includes(pe[l.cho])||t.jung&&!t.jung.includes(Te[l.jung]))return!1;if(t.jongNone){if(l.jong>0)return!1}else if(t.jong&&!gi(l,t.jong,o))return!1;return!0};if(n==="head")return u(0);if(n==="tail")return u(r.length-1);if(n==="mid"){for(let a=1;a<r.length-1;a++)if(u(a))return!0;return!1}for(let a=0;a<r.length;a++)if(u(a))return!0;return!1}const pi={cho:pe.length,jung:Te.length,jong:Oe.length};function Ci(e,t,n,o,r=1/0){if(!e||n<1)return[];const u=[...e].map(f=>X(f));if(u.some(f=>!f))return[];const a=u,l=a.length;if(n>l)return[];const s=pi[t],d=new Set,m=[];(function f(g,p){if(p.length===n){m.push([...p]);return}for(let h=g;h<l;h++)p.push(h),f(h+1,p),p.pop()})(0,[]);for(const f of m)if((function g(p,h){if(d.size>=r)return;if(p===f.length){const y=h.map(S=>ze(S.cho,S.jung,S.jong)).join("");y!==e&&o.has(y)&&d.add(y);return}const w=f[p],b=a[w][t];for(let y=0;y<s;y++){if(y===b)continue;const S=h.slice();if(S[w]={...h[w],[t]:y},g(p+1,S),d.size>=r)return}})(0,a),d.size>=r)break;return[...d]}function hi(e,t){if(!e||!t||e.length!==t.length)return-1;let n=0;for(let o=0;o<e.length;o++){const r=X(e[o]),u=X(t[o]);if(!r||!u)return-1;r.cho!==u.cho&&n++,r.jung!==u.jung&&n++,r.jong!==u.jong&&n++}return n}const Fr="word_pair_index_v2",jr="word_pair_index_sig_v2";let Rt=null;function yi(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e)){if(t===null||typeof t!="object"||Array.isArray(t))return!1;const n=t;for(const o of["cho","jung","jong"])if(!Array.isArray(n[o])||!n[o].every(r=>typeof r=="string"))return!1}return!0}function bi(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Fr),t=localStorage.getItem(jr);if(!e||!t)return null;const n=JSON.parse(e);return yi(n)?{index:n,sig:t}:null}catch{return null}}function It(){if(Rt)return Rt;const e=bi();return e?(Rt=e.index,e.sig,Rt):null}function Si(){Rt=null;try{typeof localStorage<"u"&&(localStorage.removeItem(Fr),localStorage.removeItem(jr))}catch{}}const $r="word_image_existence_map_v1",Hr="ihab:image-existence-updated";function wi(){typeof window<"u"&&window.dispatchEvent(new Event(Hr))}let mt=null,Mt=0,Gr=-1,Pt=null,Vr=-1,Wr=new Set;const Ei=new Map;function Ur(){if(mt)return mt;try{const e=typeof localStorage<"u"?localStorage.getItem($r):null,t=e?JSON.parse(e):null,n={};if(t&&typeof t=="object"&&!Array.isArray(t))for(const[o,r]of Object.entries(t))typeof r=="boolean"&&(n[o]=r);mt=n}catch{mt={}}return mt}function Yr(){const e=Ur();if(Gr===Mt)return Pt?{...Pt}:null;const t=Object.values(e);return Pt=t.length===0?null:{total:t.length,exists:t.filter(Boolean).length},Gr=Mt,Pt?{...Pt}:null}function En(){const e=Ur();if(Vr===Mt)return Wr;const t=new Set;for(const n in e)e[n]===!0&&n.endsWith("_1")&&t.add(n.slice(0,-2));return Wr=t,Vr=Mt,t}function Ai(){mt={},Ei.clear(),Mt++;try{typeof localStorage<"u"&&localStorage.removeItem($r)}catch{}wi()}const zr=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function Kr(e){return e.reduce((t,n)=>{try{const o=localStorage.getItem(n);return t+(o?new Blob([o]).size:0)}catch{return t}},0)}function Ti(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function _i(e){const{t}=Le.useTranslation(),[n,o]=c.useState({}),[r,u]=c.useState(null),[a,l]=c.useState(null),[s,d]=c.useState(null),m=c.useRef(0),f=c.useCallback(()=>{const p=++m.current,h={};if(zr.forEach(w=>{h[w.id]=Kr([...w.keys])}),o(h),typeof navigator<"u"&&navigator.storage?.estimate)try{navigator.storage.estimate().then(w=>{m.current===p&&d({usage:w.usage??0,quota:w.quota??0})}).catch(()=>{})}catch{}},[]);c.useEffect(()=>(f(),()=>{m.current+=1}),[f]);const g=c.useCallback(async p=>{u(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?Si():p==="imageCache"&&Ai(),f(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{u(null)}},[f,e,t]);return{cacheSizes:n,clearingId:r,confirmCacheId:a,setConfirmCacheId:l,storageEstimate:s,refreshCacheSizes:f,handleClearCache:g}}function Di(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),u=c.useCallback(()=>{const a=It();if(a){const s=Object.values(a),d=s.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;n({matched:d,total:s.length})}else n(null);const l=Yr();r(l?{exists:l.exists,total:l.total}:null)},[]);return c.useEffect(()=>{u();const a=setTimeout(u,1e3);return()=>clearTimeout(a)},[e?.length,u]),{pairStats:t,imgStats:o,setPairStats:n,setImgStats:r,refreshStats:u}}function tt(e,t){if(e===t)return!0;const n=e?.id,o=t?.id;return n!=null&&n!==""&&n===o}function qr(e,t=[]){const[n,o]=c.useState(t),[r,u]=c.useState(null),[a,l]=c.useState(!1),[s,d]=c.useState(e),m=c.useRef(!1),f=c.useRef(null);c.useEffect(()=>{if(a)return;if(m.current){m.current=!1;return}const y=f.current;y!==null&&y.length===t.length&&y.every((S,E)=>S===t[E])||(f.current=t,o(t),u(S=>{if(S==null)return S;const E=t.find(v=>tt(v,S));if(E!=null)return E;const A=S.id;return A!=null&&A!==""?null:S}))},[t,a]),c.useEffect(()=>{!a&&r!=null&&d({...r})},[a,r]);const g=c.useCallback(y=>{u(y),l(!1),d({...y})},[]),p=c.useCallback(()=>l(!0),[]),h=c.useCallback(()=>l(!1),[]),w=c.useCallback((y,S)=>{o(y),u(S),l(E=>(E&&(m.current=!0),!1))},[]),b=c.useCallback(y=>{o(S=>S.filter(E=>!tt(E,y))),u(null)},[]);return{list:n,setList:o,selected:r,setSelected:u,isEditing:a,setIsEditing:l,editForm:s,setEditForm:d,openDetail:g,startEditing:p,cancelEditing:h,commitEdit:w,remove:b}}const kt=()=>{const[e,t,n]=vt().split("-");return{year:e,month:t,day:n}},Bi={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function vi(e=[]){const{list:t,setList:n,selected:o,setSelected:r,isEditing:u,setIsEditing:a,editForm:l,setEditForm:s,openDetail:d,commitEdit:m}=qr(Bi,e),{year:f,month:g,day:p}=kt(),[h,w]=c.useState({year:f,month:g,day:p,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:h,setVisitForm:w,setVisit:b=>y=>w(S=>({...S,[b]:y})),selectedVisit:o,setSelectedVisit:r,isEditingVisit:u,setIsEditingVisit:a,editVisitForm:l,setEditVisitForm:s,openVisitDetail:d,handleVisitSave:b=>{n(A=>[h,...A]);const{year:y,month:S,day:E}=kt();w({year:y,month:S,day:E,hour:"09",minute:"00",memo:""}),b?.()},handleVisitEditSave:()=>{m(b=>b.map(y=>o!=null&&tt(y,o)?l:y),l)},addVisit:b=>{n(y=>[b,...y])},removeVisit:b=>{n(y=>y.filter(S=>!tt(S,b)))},revertVisitEdit:(b,y)=>{n(S=>S.map(E=>E===y?b:E)),r(S=>S===y?b:S)}}}const Jr=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,xt=e=>[...e].sort((t,n)=>{const o=Jr(t),r=Jr(n);return o<r?-1:o>r?1:0}),Ni={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Oi(e,t=[]){const n=c.useMemo(()=>xt(t),[t]),{list:o,setList:r,selected:u,setSelected:a,isEditing:l,setIsEditing:s,editForm:d,setEditForm:m,openDetail:f,commitEdit:g,remove:p}=qr(Ni,n),[h,w]=c.useState([]),{year:b,month:y,day:S}=kt(),[E,A]=c.useState({year:b,month:y,day:S,hour:"09",minute:"00",memo:""}),v=k=>x=>A(q=>({...q,[k]:x})),L=k=>{r(ce=>xt([...ce,E]));const{year:x,month:q,day:Q}=kt();A({year:x,month:q,day:Q,hour:"09",minute:"00",memo:""}),k?.()},B=()=>{g(k=>xt(k.map(x=>u!=null&&tt(x,u)?d:x)),d)},I=c.useCallback(k=>{p(k)},[p]),P=c.useCallback(k=>{e({year:k.year,month:k.month,day:k.day,hour:k.hour,minute:k.minute,memo:k.memo,...k.id!=null?{id:k.id}:{}}),p(k)},[e,p]),O=c.useCallback(k=>{r(x=>x.filter(q=>!tt(q,k))),w(x=>[k,...x]),a(null)},[r,a]),G=c.useCallback(k=>{r(x=>xt([...x,k]))},[r]),Y=c.useCallback(k=>{r(x=>x.filter(q=>!tt(q,k)))},[r]),W=c.useCallback((k,x)=>{r(q=>xt(q.map(Q=>Q===x?k:Q))),a(q=>q===x?k:q)},[r,a]);return{scheduleList:o,noShowList:h,addSchedule:G,removeSchedule:Y,revertScheduleEdit:W,scheduleForm:E,setScheduleForm:A,setSchedule:v,selectedSchedule:u,setSelectedSchedule:a,isEditingSchedule:l,setIsEditingSchedule:s,editScheduleForm:d,setEditScheduleForm:m,openScheduleDetail:f,handleScheduleSave:L,handleScheduleEditSave:B,handleScheduleDelete:I,handleScheduleToVisit:P,handleScheduleNoVisit:O}}const pt=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function Li(e){const{t}=Le.useTranslation(),[n,o]=c.useState(""),[r,u]=c.useState("25"),[a,l]=c.useState("all"),[s,d]=c.useState(1),m=c.useCallback(b=>{u(y=>{const S=typeof b=="function"?b(y):b;return pt.some(E=>E.value===S)?S:y})},[]),f=c.useMemo(()=>e.filter(({item:b,status:y})=>!(n&&!b.memo.includes(n)||a!=="all"&&y!==a)),[e,n,a]),g=Math.max(1,Math.ceil(f.length/Number(r))),p=Number.isFinite(s)?Math.min(Math.max(1,Math.floor(s)),g):1,h=c.useMemo(()=>f.slice((p-1)*Number(r),p*Number(r)),[f,p,r]),w=c.useMemo(()=>pt.map(b=>({...b,label:t("common.pageSizeLabel",{n:b.value,defaultValue:b.label})})),[t]);return{vapSearch:n,setVapSearch:o,vapPageSize:r,setVapPageSize:m,vapPageSizeOptions:w,vapStatus:a,setVapStatus:l,vapPage:p,setVapPage:d,vapFiltered:f,vapTotal:g,vapPageItems:h}}const Ri=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Xr(e,t){return Ri().compare(e,t)}const An=new Map;function Ii(e){const t=An.get(e);if(t)return t;const n=[],o=/-?\d+(?:\.\d+)?/g;let r=0;for(let u=o.exec(e);u;u=o.exec(e)){let a=u.index,l=u[0];l[0]==="-"&&a>0&&!/\s/.test(e[a-1])&&(a+=1,l=l.slice(1)),a>r&&n.push(e.slice(r,a)),n.push(Number(l)),r=u.index+u[0].length}return r<e.length&&n.push(e.slice(r)),An.size>5e3&&An.clear(),An.set(e,n),n}function Mi(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 Pi(e,t){const n=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),o=n(e),r=n(t);if(o===r)return 0;const u=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const f=Mi(m);return f!==null?[f]:Ii(m)},a=u(e,o),l=u(t,r),s=Math.min(a.length,l.length);for(let d=0;d<s;d++){const m=a[d],f=l[d];if(typeof m=="number"&&typeof f=="number"){if(m!==f)return m-f;continue}if(typeof m=="number")return-1;if(typeof f=="number")return 1;const g=Xr(m,f);if(g!==0)return g}return a.length!==l.length?a.length-l.length:Xr(o,r)}const Qr=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ki(e,t,n){const o=Qr(e),r=Qr(t);if(o||r)return o===r?0:o?1:-1;const u=Pi(e,t);return n?u:-u}function xi(e,t,n){const{t:o}=Le.useTranslation(),[r,u]=c.useState(()=>{const h=n?.initialPageSize;return h&&pt.some(w=>w.value===h)?h:"25"}),[a,l]=c.useState(1),[s,d]=c.useState(t);Object.is(s,t)||(d(t),a!==1&&l(1));const m=c.useMemo(()=>pt.map(h=>({...h,label:o("visits.showN",{n:h.value})})),[o]),f=c.useCallback(h=>{pt.some(w=>w.value===h)&&(u(h),l(1))},[]),g=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(Math.max(1,Number.isFinite(a)?Math.floor(a):1),g);return a!==p&&l(p),{pageRows:c.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:m,value:r,onChange:f},paginationProps:{page:p,total:g,onChange:l},setPage:l}}function Fi(e){const[t,n]=c.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),o=c.useRef(t),r=c.useRef(e?.onSortChange);r.current=e?.onSortChange;const u=c.useCallback(s=>{const d=o.current,m=d?.key===s?{key:s,asc:!d.asc}:{key:s,asc:!0};o.current=m,n(m),r.current?.(m)},[]),a=c.useCallback((s,d)=>({label:s,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>u(d)}),[t,u]),l=c.useCallback((s,d)=>{if(!t)return s;const{key:m,asc:f}=t;return[...s].sort((g,p)=>ki(d(g,m),d(p,m),f))},[t]);return{sort:t,field:a,sortRows:l}}const Zr=e=>e==="left"||e==="right"?e:null;function ji(){const[e,t]=c.useState(!1),[n,o]=c.useState("left"),[r,u]=c.useState({left:null,right:null}),[a,l]=c.useState({left:[],right:[]}),[s,d]=c.useState(!1),[m,f]=c.useState("left"),g=c.useCallback(h=>{const w=Zr(h.direction);w&&(u(b=>({...b,[w]:h})),l(b=>({...b,[w]:[h,...b[w]]})),t(!1))},[]),p=c.useCallback(h=>{const w=Zr(h.direction);w&&(u(b=>({...b,[w]:h})),d(!1))},[]);return{showDevice:e,setShowDevice:t,deviceDirection:n,setDeviceDirection:o,devices:r,setDevices:u,deviceHistory:a,setDeviceHistory:l,showDeviceList:s,setShowDeviceList:d,listForSide:m,setListForSide:f,handleDeviceSubmit:g,handleSelectFromList:p}}const ke="\uC804\uCCB4",$i="__ihab_core_word_pool__";function Tn(){return globalThis[$i]??null}function K(e,t=Math.random){const n=e.slice();for(let o=n.length-1;o>0;o--){const r=Math.floor(t()*(o+1));[n[o],n[r]]=[n[r],n[o]]}return n}function $e(e,t,n=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?K(e,n):K(e,n).slice(0,t)}const ao={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}},lo=pe.indexOf("\u3147"),_n={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==lo},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0&&e.cho!==lo},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0&&!wn[e.jong]&&e.cho!==lo}},io={cho:pe,jung:Te,jong:Oe},de=e=>Array.isArray(e)?e.length>0:!!e;function so(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],r=t[n];if(!(!o||!r)&&(o.cho!==r.cho&&pe[o.cho]==="\u3147"!=(pe[r.cho]==="\u3147")||o.jung!==r.jung&&li(Te[o.jung],Te[r.jung])||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function Hi(e,t,n){const o=n.pronOf(e),r=n.decompOf,u=n.sameStructureOnly&&r?r(o):null,a=[];for(const l of t)l!==e&&(n.okSet&&!n.okSet.has(l)||n.pronOf(l)!==o&&(u&&r&&so(u,r(n.pronOf(l)))||a.push(l)));return a}function eu(e,t,n){const o=t?.[e];if(!o)return[];const r=n.kind?o[n.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return Hi(e,r,n)}function Gi(e,t,n,o,r,u,a){const l=["cho","jung","jong"].filter(g=>de(e[g])),s={};for(const g of l){const p=e[g];s[g]=new Set(Array.isArray(p)?p:[p])}const d=r==="pron",m=new Map;for(const g of t){const p=n(u(g));if(p.some(y=>!y))continue;let h=p;if(!d&&(h=n(g),h.length!==p.length||h.some(y=>!y)))continue;const w=p.length,b=m.get(w);b?b.push({w:g,dPron:p,dPos:h}):m.set(w,[{w:g,dPron:p,dPos:h}])}const f=new Map;for(const[g,p]of m){const h=new Map,w=(b,y)=>{const S=b.dPos[y];return S!=null&&l.every(E=>s[E].has(io[E][S[E]]))};for(const b of p){let y;if(a==="head")y=w(b,0)?0:-1;else if(a==="tail")y=w(b,g-1)?g-1:-1;else if(a==="mid"){const E=l.includes("cho")?1:0,A=l.includes("jong")?g-2:g-1;y=-1;for(let v=E;v<=A;v++)if(w(b,v)){y=v;break}}else y=b.dPos.findIndex(E=>E!=null&&l.every(A=>s[A].has(io[A][E[A]])));if(y<0)continue;const S=h.get(y);S?S.push(b):h.set(y,[b])}for(const[b,y]of h){const S=l.includes("cho"),E=l.includes("jung"),A=l.includes("jong"),v=B=>{let I="";for(let P=0;P<g;P++){const O=B[P];P===b?I+=(S?"*":O.cho)+"."+(E?"*":O.jung)+"."+(A?"*":O.jong)+".":I+=O.cho+"."+O.jung+"."+O.jong+"."}return I},L=new Map;for(const B of p){const I=v(B.dPron),P=L.get(I);P?P.push(B):L.set(I,[B])}for(const B of y){const I=L.get(v(B.dPron))??[],P=[];for(const O of I){if(O.w===B.w)continue;let G=!0;for(const Y of l){const W=B.dPron[b][Y],k=O.dPron[b][Y];if(k===W){G=!1;break}if(d&&s[Y].has(io[Y][k])){G=!1;break}}G&&(o&&so(B.dPron,O.dPron)||P.push(O.w))}f.set(B.w,P)}}}return f}const Vi=e=>e==null?[]:Array.isArray(e)?e:[e];function Wi(e){if([...e].length!==1)return"";const t=X(e);if(!t)return"";const n=Ot(Oe[t.jong]),o=n===""?0:Oe.indexOf(n);return ze(t.cho,t.jung,o<0?0:o)}function tu(e,t){return t.get(e)||Wi(e)||e}function Dn(e){return e?de(e.cho)?"cho":de(e.jung)?"jung":de(e.jong)?"jong":null:null}function nt(e,t){const n=(r,u)=>!de(r)||Vi(r).includes(u),o=t.jongNone?e.jong===0:n(t.jong,Oe[e.jong]);return n(t.cho,pe[e.cho])&&n(t.jung,Te[e.jung])&&o}function Ft(e,t,n){const o=[...e];if(n!=="pron")return o.map(u=>X(u));const r=[...t.get(e)||e];return r.length!==o.length?o.map(u=>X(u)):r.map(u=>X(u))}function jt(e,t,n,o,r){const u=t==="cho"?pe:t==="jung"?Te:Oe,a=e[t],l=[],s=f=>t==="jung"?Yi(tu(f,r)):tu(f,r),d=new Map([[s(n),-1]]),m=K(u.map((f,g)=>g).filter(f=>f!==a&&(t!=="cho"||u[f]!=="\u3147")&&(t!=="jong"||f!==0)));for(const f of m){if(l.length>=o)break;const g=t==="cho"?ze(f,e.jung,e.jong):t==="jung"?ze(e.cho,f,e.jong):ze(e.cho,e.jung,f),p=s(g),h=d.get(p);if(h!==void 0){t==="jung"&&h>=0&&r.has(g)&&!r.has(l[h])&&(l[h]=g);continue}d.set(p,l.length),l.push(g)}return l}const Ui={\u3154:"\u3150",\u3156:"\u3152",\u315A:"\u3159",\u315E:"\u3159"};function Yi(e){if([...e].length!==1)return e;const t=X(e);if(!t)return e;const n=Ui[Te[t.jung]];return n?ze(t.cho,Te.indexOf(n),t.jong):e}function zi(e,t,n,o,r,u=null){const a=[...e];if(a.length!==2)return null;const l=a.map(f=>X(f));if(l.some(f=>!f))return null;const s=Ft(e,n,o);if(s.some(f=>!f))return null;const d=Dn(t);let m=d&&t?s.map((f,g)=>nt(f,t)?g:-1).filter(f=>f>=0):[0,1];if(u!=null&&(m=m.filter(f=>f!==u)),!m.length)return null;for(const f of K(m)){const g=a[f];if(!r.has(g))continue;const p=jt(l[f],d??"cho",g,40,n),h=[];for(const w of p)if(w!==g&&r.has(w)&&!h.includes(w)&&h.push(w),h.length>=2)break;if(!(h.length<2))return{question:e,distractors:[g,...h]}}return null}function Ki(e,t,n,o,r,u=null){const a=[...e];if(a.length!==3)return null;const l=a.map(f=>X(f));if(l.some(f=>!f))return null;const s=Ft(e,n,o);if(s.some(f=>!f))return null;const d=Dn(t),m=d&&t?s.map((f,g)=>nt(f,t)?g:-1).filter(f=>f>=0):[0,1,2];if(!m.length)return null;for(const f of K(m))for(const g of K([0,1,2].filter(p=>p!==f&&(u==null||p===u)))){const p=[0,1,2].filter(S=>S!==g),h=p.map(S=>a[S]).join("");if(!r.has(h))continue;const w=p.indexOf(f),b=jt(l[f],d??"cho",a[f],40,n),y=[];for(const S of b){const E=p.map(v=>a[v]);E[w]=S;const A=E.join("");if(A!==h&&r.has(A)&&!y.includes(A)&&y.push(A),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[h,...y]}}return null}function qi(e,t,n,o,r,u=null){const a=[...e],l=a.length;if(l<2)return null;const s=[];for(let m=1;m<=l-1;m++)s.push({remain:a.slice(0,m).join(""),dropped:a.slice(m).join(""),droppedEnd:1}),s.push({remain:a.slice(l-m).join(""),dropped:a.slice(0,l-m).join(""),droppedEnd:0});const d=Dn(t);for(const{remain:m,dropped:f,droppedEnd:g}of K(s)){if(u!=null&&g!==u||[...m].length===1&&[...f].length===1||m===e||!r.has(m)||!r.has(f))continue;const p=[...m],h=p.map(y=>X(y));if(h.some(y=>!y))continue;const w=Ft(m,n,o);if(w.some(y=>!y))continue;const b=d&&t?w.map((y,S)=>nt(y,t)?S:-1).filter(y=>y>=0):p.map((y,S)=>S);if(b.length)for(const y of K(b)){const S=jt(h[y],d??"cho",p[y],40,n),E=[];for(const A of S){const v=[...p];v[y]=A;const L=v.join("");if(L!==m&&r.has(L)&&!E.includes(L)&&E.push(L),E.length>=2)break}if(E.length>=2)return{question:e,distractors:[m,...E],dropped:f}}}return null}function Ji(e,t,n,o,r,u=null){if([...e].length!==1)return null;const a=X(n.get(e)||e);if(!a||a.jong===0)return null;const l=ze(a.cho,a.jung,0),s=jt({cho:a.cho,jung:a.jung,jong:0},"cho",l,2,n);return s.length<2?null:{question:e,distractors:[l,...s]}}const co=pe.indexOf("\u3147");function Xi(e,t,n,o,r,u=null){if([...e].length!==1)return null;const a=X(n.get(e)||e);if(!a||a.jong!==0||a.cho===co)return null;const l=ze(co,a.jung,0),s=jt({cho:co,jung:a.jung,jong:0},"jung",l,2,n);return s.length<2?null:{question:e,distractors:[l,...s]}}function Qi(e){const t=new Map;for(const n of e){const o=[...n],r=o.length;if(!(r<2||r>3))for(let u=0;u<r;u++){let a=r+"|"+u+"|";for(let s=0;s<r;s++)a+=s===u?"*":o[s];const l=t.get(a);l?l.push(n):t.set(a,[n])}}return t}function Zi(e,t,n,o,r,u=null,a=null,l=2){const s=[...e],d=s.length;if(d<2||d>3)return null;const m=s.map(S=>X(S));if(m.some(S=>!S))return null;const f=Ft(e,n,o);if(f.some(S=>!S))return null;const g=S=>n.get(S)??S,p=g(e),h=!!t&&(de(t.cho)||de(t.jung)||de(t.jong)),w=!!a&&(de(a.cho)||de(a.jung)||de(a.jong)),b=S=>{let E=d+"|"+S+"|";for(let A=0;A<d;A++)E+=A===S?"*":s[A];return E};let y;if(u!=null){if(u>=d||h&&!nt(f[u],t))return null;y=[u]}else h?y=f.map((S,E)=>nt(S,t)?E:-1).filter(S=>S>=0):y=Array.from({length:d},(S,E)=>E);for(const S of K(y)){const E=r.get(b(S))??[],A=[],v=[];for(const O of E){if(O===e)continue;const G=[...O].map(x=>X(x)),Y=m[S],W=G[S];if(!Y||!W)continue;let k=0;if(Y.cho!==W.cho&&k++,Y.jung!==W.jung&&k++,Y.jong!==W.jong&&k++,!(k<l||g(O)===p))if(w){const x=Ft(O,n,o)[S];x&&nt(x,a)?A.push(O):v.push(O)}else A.push(O)}if(!A.length)continue;const L=K(A)[0],B=[],I=new Set([p,g(L)]),P=w?v:A.filter(O=>O!==L);for(const O of K(P)){const G=g(O);if(!I.has(G)&&(I.add(G),B.push(O),B.length>=2))break}if(!w&&B.length<2)for(const O of K(E)){if(O===e||O===L)continue;const G=g(O);if(!I.has(G)&&(I.add(G),B.push(O),B.length>=2))break}if(!(B.length<2))return{question:e,distractors:[L,...B]}}return null}var es={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",loading:"\uBD88\uB7EC\uC624\uB294 \uC911",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",add:"\uCD94\uAC00"},ts={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],yearMonthCompact:"{{year}}.{{month}}",weekLabel:"{{ord}}\uC8FC",weekLabelCompact:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},ns={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},os={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},rs={selected:"\uC120\uD0DD\uB428"},us={placeholder:"\uC120\uD0DD"},as={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},ls={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},is={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},ss={cache:{cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"}}}},cs={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},ds={security:{password:{currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}}},fs={settings:"\uC124\uC815",filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB09C\uC774\uB3C4",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playSoundFor:"{{name}} \uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",preparing:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},gs={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addButton:"\uAE30\uAE30 \uCD94\uAC00",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D"},visitHistory:{empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"},consent:{record:"\uB3D9\uC758 \uBC1B\uAE30",kinds:"\uBC1B\uC740 \uAC08\uB798",methodTitle:"\uBC1B\uC740 \uBC29\uBC95",sourceTitle:"\uC218\uC9D1 \uCD9C\uCC98",day:"\uBC1B\uC740 \uB0A0",note:"\uBA54\uBAA8",notePlaceholder:"\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",submit:"\uC800\uC7A5\uD558\uAE30",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.",kind:{personal:"\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4",sensitive:"\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)",marketing:"\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0"},method:{paper:"\uC11C\uBA74",verbal:"\uAD6C\uB450",electronic:"\uC804\uC790"},source:{self:"\uBCF8\uC778",guardian:"\uBCF4\uD638\uC790",referral:"\uC758\uB8B0\uAE30\uAD00"}}},ms={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},ps={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},Cs={showN:"{{n}}\uAC1C\uC529"},hs={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},ys={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},bs={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Ss={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",caption:"\uC720\uD615",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",copyItem:"\uD55C \uCE78 \uB354",copyItemAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uD55C \uCE78 \uB354",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"},thumbMore:"+{{count}}",replaceItem:"\uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePair:"\uB2E4\uB978 \uC30D\uC73C\uB85C",replaceItemAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePairAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uC30D\uC73C\uB85C",thumbMoreAria:"\uADF8 \uBC16 {{count}}\uCE78: {{words}}",pickForm:"\uB2E4\uB978 \uAF34\uB85C",pickFormAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C",pickFormBaseAria:"\uAE30\uBCF8\uD615 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"},ws={filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB09C\uC774\uB3C4",grade:"{{n}}\uB4F1\uAE09",age:"{{n}}\uC138",agePlus:"{{n}}\uC138 \uC774\uC0C1",ageRange:"{{from}}\uC138~{{to}}\uC138",difficultyInfoAge:"3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoGrade:"2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",difficultyInfoNone:"\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAge:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoAgeFloor:"{{n}}\uC138: {{n}}\uC138\uBCF4\uB2E4 \uC5B4\uB9B0 \uB0B1\uB9D0\uB3C4 \uD568\uAED8 \uB4ED\uB2C8\uB2E4.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandGrade:"{{grade}}: {{ages}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAgeNamed:"{{ages}}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",gradeNone:"\uC5C6\uC74C",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30"},Es={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removePairFor:"{{name}} \uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30",removeWordFor:"{{name}} \uBE7C\uAE30"},As={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},Ts={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0",other:"\uAE30\uD0C0"}},_s={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"}},Ds={phonemeSelect:{vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlyHighUsage:"\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Bs={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
2
2
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
3
|
-
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},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"},vs={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Ns={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"},Os={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},Ls={ariaLabel:"\uC120\uD0DD \uD0ED"},Rs={ariaLabel:"\uD0ED"},Is={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Ms={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ps={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},ks={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"},xs={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"}},Fs={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},js={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"},$s={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"},Hs={viewWords:"\uB0B1\uB9D0"},Gs={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Vs={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Ws={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Us={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ys={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},zs={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Ks={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},qs={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Js={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Xs={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Qs={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Zs={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",up:"\uC704\uB85C",upTo:"\uD55C \uCE35 \uC704\uB85C \u2014 {{name}}",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},ec={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},tc={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"},nc={common:es,calendar:ts,passCard:ns,rating:os,colorPicker:rs,dropdown:us,accordion:as,header:ls,nav:is,settings:ss,usage:cs,account:ds,training:fs,customers:gs,payment:ms,coupons:ps,visits:Cs,trainingType:hs,myWordTable:ys,keyWords:bs,wordTable:Ss,wordSearch:ws,wordPrint:Es,topic:As,device:Ts,manager:_s,wordPairs:Ds,footer:Bs,date:vs,wordData:Ns,textField:Os,segmentedControl:Ls,tabs:Rs,fileUpload:Is,avatar:Ms,myHomework:Ps,trainingStatus:ks,store:xs,progress:Fs,trainingMiss:js,table:$s,wordScore:Hs,topBanner:Gs,datePicker:Vs,report:Ws,tooltip:Us,phonemeProfile:Ys,bulkBar:zs,debug:Ks,badge:qs,loader:Js,soundCompass:Xs,breadcrumb:Qs,folder:Zs,board:ec,promoBannerBg:tc},oc={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",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.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoAgeFloor:"Age {{n}}: also includes words for younger ages.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",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"}},rc={filter:{onlyHighUsage:"High-use words only"}},uc={wordSearch:oc,wordPairs:rc};const ac="0.482.0";var nu;const lc=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],fo="ko",ic="ihab_display_language",go={en:()=>Promise.resolve().then(function(){return fg})},Bn=new Set(["ko"]),mo={},$t=e=>e.split("-")[0];function ou(e){const t=$t(e),n=go[t];return!n||Bn.has(t)?Promise.resolve():mo[t]??(mo[t]=n().then(o=>{const r=o.default??o;ae.addResourceBundle(t,"translation",r,!0,!1),Bn.add(t)},o=>{throw mo[t]=void 0,o}))}function ru(){if(typeof window>"u")return fo;try{const e=localStorage.getItem(ic);if(e&&lc.some(t=>t.code===e))return e}catch{}return fo}function uu(e){try{document.documentElement.lang=e}catch{}}ae.on("languageChanged",uu),uu(ru());const au=(nu=ae).__ihabRawChangeLanguage??(nu.__ihabRawChangeLanguage=ae.changeLanguage);ae.changeLanguage=au,ae.use(Le.initReactI18next).init({resources:{ko:{translation:nc},en:{translation:uc}},lng:ru(),fallbackLng:fo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const po=au.bind(ae);let Co;ae.changeLanguage=((e,t)=>{if(Co=e,!e||Bn.has($t(e))||!go[$t(e)])return po(e,t);const n=()=>Co===e?po(e,t):Promise.resolve(ae.t);return ou(e).then(n,o=>(console.error(o),n()))});{const e=ae.language;e&&!Bn.has($t(e))&&go[$t(e)]&&ou(e).then(()=>{ae.language===e&&(Co??e)===e&&po(e)},t=>console.error(t))}const lu=new Set(["field"]),ho="none";function sc(e){return e==null||String(e).trim()===""}function yo(e){return typeof e!="string"?!1:Ht.includes(e)||e===ho||iu.test(e)||su.test(e)}function bo(e,t,n){if(!e)return!0;const o=e instanceof Set?e:new Set(e);if(o.size===0)return!0;if(n!=null){if(o.has(`age${n}`))return!0;const r=cc(n,Ao);if(r&&o.has(r))return!0;for(const u of o){const a=wo(u);if(a!=null&&n>=a)return!0}}return sc(t)?o.has(ho):o.has(String(t))}const Ct=["grade","syllables","pos","wordType","field"],Ht=["1","2","3","4","5"],So=99,iu=/^age([1-9]\d?)$/,su=/^age([1-9]\d?)plus$/;function cu(e){const t=iu.exec(e);return t?Number(t[1]):null}function wo(e){const t=su.exec(e);return t?Number(t[1]):null}const Gt=e=>e.fromAge??e.minAge;function cc(e,t){if(!t)return null;const n=t.find(o=>e>=o.minAge&&(o.maxAge==null||e<=o.maxAge));return!n||n.fromAge==null||e>=n.fromAge?null:n.maxAge==null?`age${n.fromAge}plus`:`age${n.fromAge}`}function Eo(e){if(!Array.isArray(e)||e.length===0||e.length>Ht.length)return null;const t=[];let n=1;for(let r=0;r<e.length;r++){const u=e[r];if(!u||u.grade!==r+1||typeof u.showAge!="boolean")return null;const a=u.showAge?void 0:dc(u.label);if(a===null)return null;const l={grade:u.grade,minAge:n,maxAge:null,showAge:u.showAge};a&&(l.label=a);const s=r===e.length-1;let d=null;if(s){if(u.maxAge!==null)return null}else{const f=u.maxAge;if(typeof f!="number"||!Number.isInteger(f)||f<n||f>=So)return null;d=f,l.maxAge=f}const m=u.fromAge;if(m!=null){if(typeof m!="number"||!Number.isInteger(m)||m<n||m>(d??So))return null;u.showAge&&m>n&&(l.fromAge=m)}if(t.push(l),s||d==null)break;n=d+1}const o=t.flatMap(r=>r.label?[r.label]:[]);return new Set(o).size!==o.length?null:(fc(t),t)}function dc(e){if(e==null)return;if(typeof e!="string")return null;const t=e.trim();if(t){if(yo(t)||pu.test(t))return null;for(const n of Vt())if(ht(n).reverse.grade.has(t))return null;return t}}const vn=new Map,du=new Map;let Ao=null;function fc(e){Ao=e,vn.clear();for(const t of e)t.label&&(vn.set(String(t.grade),t.label),du.set(t.label,String(t.grade)))}function fu(e,t){const n=t===void 0?Ao:t;if(!n||n.length===0)return[...e];const o=[],r=l=>{for(const s of l)o.includes(s)||o.push(s)},u=l=>gu([l]),a=l=>n.find(s=>l>=s.minAge&&(s.maxAge==null||l<=s.maxAge));for(const l of e){if(Ht.includes(l)){const m=n.find(f=>String(f.grade)===l);r(m?u(m):[l]);continue}const s=cu(l);if(s!=null){const m=a(s);m&&m.showAge&&m.maxAge!=null?r([s<Gt(m)?`age${Gt(m)}`:l]):r(m?u(m):[l]);continue}const d=wo(l);if(d!=null){const m=n.filter(f=>f.maxAge==null||f.maxAge>=d);if(m.length===0){r([l]);continue}for(const f of m)if(f.showAge&&f.maxAge!=null){const g=[];for(let p=Math.max(d,Gt(f));p<=f.maxAge;p++)g.push(`age${p}`);r(g)}else r(u(f));continue}r([l])}return o}function gu(e){const t=[];for(const n of e){if(!n.showAge){t.push(String(n.grade));continue}const o=Gt(n);if(n.maxAge==null){t.push(`age${o}plus`);continue}for(let r=o;r<=n.maxAge;r++)t.push(`age${r}`)}return t}const gc=["1","2","3","4","5+"],mc=["noun","verb","modifier"],pc=["native","sino","foreign","mixed"],Cc={grade:[],syllables:gc,pos:mc,wordType:pc,field:[]},hc=(e,t)=>e==="grade"?yo(t):Cc[e].includes(t),yc={noun:["\uBA85","\uC218"],verb:["\uB3D9","\uD615"],modifier:["\uBD80","\uAD00"]},bc={native:"\uACE0\uC720",sino:"\uD55C\uC790",foreign:"\uC678\uB798",mixed:"\uD63C\uC885"},Sc={grade:["\uB09C\uC774\uB3C4 \uB4F1\uAE09","\uB4F1\uAE09","Grade","Difficulty"]},wc={pos:{noun:["\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)"],verb:["\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)"],modifier:["\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)"]}},To=new Map;try{ae.store?.on?.("added",()=>To.clear())}catch{}function ht(e){const t=To.get(e);if(t)return t;const n=ae.getFixedT(e),o={section:{grade:n("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:n("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),pos:n("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:n("wordSearch.filter.wordType","\uC720\uD615"),field:n("wordSearch.filter.field","\uC758\uBBF8\uBC94\uC8FC")},value:{grade:{...Object.fromEntries(Ht.map(r=>[r,n("wordSearch.filter.grade",{n:Number(r),defaultValue:`${r}\uB4F1\uAE09`})])),...Object.fromEntries(mu.map(r=>[`age${r}`,n("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})])),...Object.fromEntries(mu.map(r=>[`age${r}plus`,n("wordSearch.filter.agePlus",{n:r,defaultValue:`${r}\uC138 \uC774\uC0C1`})])),[ho]:n("wordSearch.filter.gradeNone","\uC5C6\uC74C")},syllables:{...Object.fromEntries(["1","2","3","4"].map(r=>[r,n("wordSearch.filter.syllable",{n:Number(r),defaultValue:`${r}\uC74C\uC808`})])),"5+":n("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1")},pos:{noun:n("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)"),verb:n("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)"),modifier:n("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")},wordType:{native:n("wordSearch.filter.type.native","\uACE0\uC720\uC5B4"),sino:n("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4"),foreign:n("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4"),mixed:n("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")},field:{}}};return o.reverse=Object.fromEntries(Ct.map(r=>{const u=new Map;for(const[a,l]of Object.entries(o.value[r]))u.has(l)||u.set(l,a);return[r,u]})),To.set(e,o),o}const mu=Array.from({length:So},(e,t)=>t+1),Vt=()=>Array.from(new Set([ae.language,"ko","en"].filter(e=>!!e))),Ec="highUsage";function Ac(e){if(e===Ec)return!0;for(const t of Vt())if(ae.getFixedT(t)("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")===e)return!0;return!1}function Wt(e){if(Ct.includes(e))return e;for(const t of Vt()){const n=ht(t);for(const o of Ct)if(n.section[o]===e)return o}for(const t of Ct)if(Sc[t]?.includes(e))return t;return null}function ot(e,t){if(lu.has(e)||hc(e,t))return t;if(e==="grade"){const n=du.get(t.trim());if(n)return n}for(const n of Vt()){const o=ht(n).reverse[e].get(t);if(o)return o}for(const[n,o]of Object.entries(wc[e]??{}))if(o.includes(t))return n;if(e==="grade"&&pu.test(t.trim()))return null;if(e==="grade"||e==="syllables"){const n=parseInt(t.replace(/\D/g,""),10);if(Number.isFinite(n)&&n>=1)return e==="grade"?n<=Ht.length?String(n):null:n>=5?"5+":String(n)}return null}const pu=/(^age\s*\d)|((세|살|years?\s*old|yrs?)(\s*(이상|\+|or\s+(older|above|more)))?$)/i;function Tc(e,t,n=ae.language){if(e==="grade"){const o=vn.get(t);if(o)return o}return ht(n).value[e][t]??t}const _c=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):typeof e=="string"&&e?[e]:[];function _o(e){const t={};for(const[n,o]of Object.entries(e??{})){const r=Wt(n);if(r)for(const u of _c(o)){const a=ot(r,u);if(!a)continue;const l=t[r]??(t[r]=[]);l.includes(a)||l.push(a)}}return t}function Do(e,t=ae.language){const n=ht(t||"ko"),o={};for(const r of Ct){const u=(r==="grade"?fu(e?.[r]??[]):e?.[r]??[]).map(a=>(r==="grade"?vn.get(a):void 0)??n.value[r][a]??(lu.has(r)?a:void 0)).filter(a=>!!a);u.length&&(o[n.section[r]]=u)}return o}function Dc(e,t=ae.language){const n={};for(const[o,r]of Object.entries(e??{}))Wt(o)||(n[o]=r);return{...n,...Do(_o(e),t)}}function Bc(e){for(const t of Vt()){const n=ht(t);if(Ct.some(o=>n.section[o]===e))return t}return ae.language||"ko"}let Nn=null,Cu=null,hu=null;function vc(){const e=Tn();if(e&&e.entries.length>0){const t=It();if(Nn&&Cu===e&&hu===t)return Nn;const n=new Set,o=[];for(const r of e.entries)!r.word||n.has(r.word)||(n.add(r.word),o.push({w:r.word,s:r.syllables,p:t?.[r.word]?[...t[r.word].cho??[],...t[r.word].jung??[],...t[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade,age:r.age??void 0}));return Nn=o,Cu=e,hu=t,Nn}return[]}const He=new Proxy([],{get(e,t){const n=vc(),o=n[t];return typeof o=="function"?o.bind(n):o}});function Bo(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Re(e,t){if(t>=e.length)return K(e);if(t===0)return[];const n=e.slice();for(let o=0;o<t;o++){const r=o+Math.floor(Math.random()*(n.length-o)),u=n[o];n[o]=n[r],n[r]=u}return n.slice(0,t)}let vo=null,yu=null;function Ke(){const e=Tn();if(vo&&yu===e)return vo;const t=new Map;for(const n of He)n.w&&t.set(n.w,n.pron);return vo=t,yu=e,t}function fe(e){return Ke().get(e)||e}function On(e,t,n=new Set){const o=[];for(const r of K(e)){if(o.length>=t)break;const u=fe(r);n.has(u)||(n.add(u),o.push(r))}return o}let Nc=0;function Ce(e){return`${e}-rt-${++Nc}`}function yt(e){const t=Yr();if(!t||t.total===0){const r=new Set;for(const u of e)r.add(u);return r}const n=En(),o=new Set;for(const r of e)n.has(r)&&o.add(r);return o}const Ln=new Map;let bu=null,Su=null,wu=null;function Ut(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function No(e){const t=Array.isArray(e.choseong)&&e.choseong.length===0?"[]":Ut(e.choseong),n=e.composition,o=n?.syllable==null?"":Array.isArray(n.syllable)?n.syllable.slice().sort().join(","):String(n.syllable),r=n?`${Ut(n.cho)}/${Ut(n.jung)}/${Ut(n.jong)}/${n.jongNone?"N":""}/${o}`:"",u=Ut(e.grade);return`${e.difficulty??""}|${t}|${r}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${u}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}const Oo=new Map;function Oc(e){return No({...e,count:void 0,choicesPerItem:void 0,fullCount:!1})}async function _e(e){const t=Tn(),n=It(),o=e.excludeNoImage?En():null;(t!==bu||n!==Su||e.excludeNoImage&&o!==wu)&&(Ln.clear(),Oo.clear(),bu=t,Su=n,wu=o);const r=No(e);return Ln.has(r)||Ln.set(r,Lc(e)),Ln.get(r)}function Eu(e){if(!e)return null;const t=a=>a==null?null:Array.isArray(a)?a.length?a:null:[a],n=t(e.cho),o=t(e.jung),r=!!e.jongNone,u=r?null:t(e.jong);return n||o||u||r?r&&!n&&!o&&!u?a=>fi(a):a=>mi(a,{cho:n,jung:o,jong:u,jongNone:r}):null}function Au(e){const t=e.grade&&e.grade.length>0?new Set(e.grade):null,n=e.composition??null,o=n?.syllable!=null?new Set(Array.isArray(n.syllable)?n.syllable:[n.syllable]):null,r=n?[Eu(n),o?a=>o.has(Lt(a)):null].filter(a=>a!=null):[];if(!t&&r.length===0)return null;const u=e.phonemeView==="pron";return a=>{if(!bo(t,a.grade,a.age))return!1;if(r.length===0)return!0;const l=u?fe(a.w):a.w;return r.every(s=>s(l))}}async function Lc(e){const{difficulty:t=null,choseong:n=null,composition:o=null,targetSyllable:r=null,excludeNoImage:u=!1}=e,a=e.grade&&e.grade.length>0?new Set(e.grade):null,l=e.sameStructureOnly??!0,s=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",f=m&&d>=2,g=t==="count",p=n?new Set(Array.isArray(n)?n:[n]):null,h=o?.syllable!=null?new Set(Array.isArray(o.syllable)?o.syllable:[o.syllable]):null,w=o?[Eu(o),h?R=>h.has(Lt(R)):null].filter(R=>R!=null):[],b=t==="random"||t===null,y=b||g,S=b||f||g;let E=He.filter(R=>!R.w||!bo(a,R.grade,R.age)?!1:S?!0:Array.isArray(R.p)&&R.p.length>0);p&&(E=E.filter(R=>{for(const j of p)if(ci(R.w,j))return!0;return!1})),w.length>0&&(E=E.filter(R=>{const j=s==="pron"?fe(R.w):R.w;return w.every(F=>F(j))})),r&&(E=E.filter(R=>R.w[0]===r));let A;if(u){const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=yt(R)}else{const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=R}let v=null;if(f){const R=new Set;for(const j of He)j.w&&R.add(j.w);v=u?yt(R):R}const L=E.filter(R=>A.has(R.w)),B=600,I=Array.from(A),P=I.length>B?Re(I,B):I,O=g&&o!=null&&(de(o.cho)||de(o.jung)||de(o.jong)),G=2500,Y=new Map;if(g&&!O&&d>=2){for(const R of I){const j=Lt(R),F=Y.get(j);F?F.push(R):Y.set(j,[R])}for(const[R,j]of Y)j.length>G&&Y.set(R,Re(j,G))}const W=ii();let k=null;if(O){const R=Oc(e),j=u?En():null,F=Oo.get(R);k=F&&F.imageOkSet===j?F.map:Gi(o,I,W,l,s,fe),Oo.set(R,{imageOkSet:j,map:k})}const x=500,q=1500,Q=e.fullCount?L:t==="random"?L.length>x?Re(L,x):L:L.length>q?Re(L,q):L,ce=It(),Ae=[];for(const R of Q){let j;const F=fe(R.w);if(f)j=Ci(R.w,t,d,v,24).filter(U=>fe(U)!==F);else if(g)O?j=(k.get(R.w)??[]).filter(U=>fe(U)!==F):d<=1?j=eu(R.w,ce,{okSet:A,pronOf:fe,decompOf:W,sameStructureOnly:!1}):j=(Y.get(Lt(R.w))??[]).filter(U=>{if(U===R.w||fe(U)===F)return!1;const H=hi(F,fe(U));return d>=5?H>=5:H===d});else if(b){const U=H=>H!==R.w&&H.length===R.w.length&&fe(H)!==F;if(e.fullCount){const H=Math.max(1,(e.choicesPerItem??3)-1),je=[],me=new Set;for(const Ue of P){if(!U(Ue))continue;const lt=fe(Ue);if(!me.has(lt)&&(me.add(lt),je.push(Ue),je.length>=H))break}j=je}else j=P.filter(U)}else{const U=t;j=eu(R.w,ce,{kind:U,okSet:A,pronOf:fe,decompOf:W,sameStructureOnly:!1}),j.length===0&&(j=(P.length>30?Re(P,30):P).filter(H=>H!==R.w&&si(R.w,H)===t&&fe(H)!==F))}if(l&&j.length>0&&(m||g&&!O)){const U=W(fe(R.w));j=j.filter(H=>!so(U,W(fe(H))))}j.length!==0&&Ae.push({word:R,usable:j})}return Ae}async function Tu(e,t){const{choicesPerItem:n=3,count:o=10}=t,r=n-1,u=(await _e(t)).filter(l=>l.usable.length>=r),a=[];for(const l of K(u)){if(a.length>=o)break;const s=On(l.usable,r);if(s.length<r)continue;const d=K([l.word.w,...s]);a.push({id:Ce(e+"-item"),index:a.length+1,word:l.word.w,syllables:l.word.s,choices:d,answerIndex:d.indexOf(l.word.w)})}return a}async function Rc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t)return[];const u=e.composition??null,a=[],l=K([...r]);for(const s of l){if(a.length>=n)break;const d=s.word.w,m=[...s.word.pron||d],f=u&&Dn(u)?m.filter(b=>{const y=X(b);return!!y&&nt(y,u)}):[],g=Bo(f.length?f:m);if(!g)continue;const p=r.filter(b=>b.word.w!==d&&b.word.s===s.word.s&&!(b.word.pron||b.word.w).includes(g)&&b.word.pron!==s.word.pron);if(p.length<o)continue;const h=On(p.map(b=>b.word.w),o);if(h.length<o)continue;const w=K([d,...h]);a.push({id:Ce("HPI-item"),index:a.length+1,targetSyllable:g,word:d,choices:w,answerIndex:w.indexOf(d)})}return a}async function Ic(e){const{count:t=10}=e,n=(await _e(e)).filter(u=>u.usable.length>=1);if(!n.length)return[];const o=n.length>=t?Re(n,t):K(Array.from({length:t},(u,a)=>n[a%n.length])),r=K(Array.from({length:t},(u,a)=>a<Math.ceil(t/2)));return o.map((u,a)=>{const l=r[a];let s;if(l)s=[u.word.w,u.word.w];else{const d=Bo(u.usable);s=Math.random()<.5?[u.word.w,d]:[d,u.word.w]}return{id:Ce("SOD-item"),index:a+1,word:u.word.w,pair:s,same:l}})}async function Mc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t+1)return[];const u=r.map(g=>g.word.w),a=new Map(r.map(g=>[g.word.w,g.word.pron])),l=g=>(a.get(g)||g)[0]??"",s={};for(const g of r){const p=l(g.word.w);p&&(s[p]||(s[p]=[]),s[p].push(g.word.w))}const d=Object.entries(s).filter(([,g])=>new Set(g.map(p=>a.get(p)||p)).size>=2).map(([g])=>g);if(d.length===0)return[];const m=[],f=K([...d]);for(let g=0;m.length<n&&g<n*4;g++){const p=f[g%f.length],h=s[p];if(h.length<2)continue;const w=K([...h]),b=w[0],y=a.get(b)||b,S=w.find(B=>B!==b&&(a.get(B)||B)!==y);if(!b||!S)continue;const E=a.get(S)||S,A=u.filter(B=>l(B)!==p&&B!==b&&B!==S&&B.length===S.length&&(a.get(B)||B)!==E);if(A.length<o)continue;const v=On(A,o);if(v.length<o)continue;const L=K([S,...v]);m.push({id:Ce("SWS-item"),index:m.length+1,sourceWord:b,targetSyllable:p,word:S,choices:L,answerIndex:L.indexOf(S)})}return m}function _u(e,t,n){const o=Ke(),r=s=>o.get(s)||s,u=(s,d)=>{const m=[...s],f=[...d];if(m.length!==f.length)return-1;let g=-1;for(let p=0;p<m.length;p++)if(m[p]!==f[p]){if(g>=0)return-1;g=p}return g},a=e.map(s=>({e:s,swaps:s.usable.filter(d=>!!d&&u(s.word.w,d)>=0&&r(d)!==r(s.word.w))})).filter(s=>s.swaps.length>0),l=[];for(const{e:s,swaps:d}of K(a)){if(l.length>=t)break;const m=Bo(d)??"",f=[...s.word.w],g=[...m],p=u(s.word.w,m),h=On(s.usable.filter(w=>w&&w!==m),2,new Set([r(m),r(s.word.w)]));h.length<2||l.push({id:Ce(n),index:l.length+1,word:s.word.w,original:s.word.w,changed:m,changedFrom:p>=0?f[p]:"",changedTo:p>=0?g[p]:"",distractors:h})}return l}async function Du(e,t,n){const{count:o=10}=t,r=Ke(),u=He.filter(h=>h.w&&h.s===e),a=t.excludeNoImage?yt(u.map(h=>h.w)):null,l=a?u.filter(h=>a.has(h.w)):u,s=new Set(l.map(h=>h.w)),d=Qi(s),m=t.phonemeView??"char",f=t.composition??null,g=Au(t),p=[];for(const h of K(l)){if(p.length>=o)break;if(g&&!g(h))continue;const w=Zi(h.w,f,r,m,d,null,null);if(!w)continue;const b=w.distractors[0],y=[...h.w],S=[...b],E=y.findIndex((A,v)=>A!==S[v]);p.push({id:Ce(n),index:p.length+1,word:h.w,original:h.w,changed:b,changedFrom:E>=0?y[E]:"",changedTo:E>=0?S[E]:"",distractors:w.distractors.slice(1)})}return p}async function Pc(e){return Du(2,e,"CS2-item")}async function kc(e){return Du(3,e,"CS3-item")}async function xc(e){const t=(await _e({...e,difficulty:"count",contrastCount:1})).filter(n=>n.word.s===1&&n.usable.length>=1);return _u(t,e.count??10,"CP1-item")}async function Fc(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",n=(await _e({...e,difficulty:t,contrastCount:1})).filter(o=>o.word.s===2&&o.usable.length>=1);return _u(n,e.count??10,"CP2-item")}async function jc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===2);return Re(n,t).map((o,r)=>({id:Ce("M2S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}async function $c(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===3);return Re(n,t).map((o,r)=>({id:Ce("M3S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}function Lo(e){const t=He.map(n=>n.w);return e.excludeNoImage?yt(t):new Set(t)}async function Hc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===2),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=zi(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=[...l.word.w],g=f[0]===d?f[1]:f[0];a.push({id:Ce("D2-item"),index:a.length+1,original:l.word.w,word:l.word.w,dropped:g,missingResult:d,distractors:m})}return a}async function Gc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===3),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=Ki(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=[...l.word.w];let g="";for(let p=0;p<f.length;p++)if(f.filter((h,w)=>w!==p).join("")===d){g=f[p];break}a.push({id:Ce("D3-item"),index:a.length+1,original:l.word.w,word:l.word.w,dropped:g,missingResult:d,distractors:m})}return a}async function Vc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s>=3),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=qi(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=l.word.w,g=s.dropped??(f.startsWith(d)?f.slice(d.length):f.endsWith(d)?f.slice(0,f.length-d.length):"");a.push({id:Ce("DPC-item"),index:a.length+1,original:f,word:f,dropped:g,missingResult:d,distractors:m})}return a}async function Wc(e){const{count:t=10}=e,n=(await _e({...e})).map(o=>o.word.w);return n.length<3?[]:Array.from({length:t},(o,r)=>{const u=Re(n,3);return{id:Ce("LRO-item"),index:r+1,sequence:u,choices:K(u)}})}function Rn(e,t,n){const o=He.filter(l=>l.w&&l.s===e),r=t.excludeNoImage?yt(o.map(l=>l.w)):null,u=Au(t),a=[];for(const l of o)if(!(r&&!r.has(l.w))&&!(u&&!u(l))){if(n){const s=X(l.w);if(!s||!n(s))continue}a.push(l)}return a}function Uc(e){const t=Rn(1,e,_n.MERGE_2_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M2P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung]],answer:n.w,word:n.w}})}function Yc(e){const t=Rn(1,e,_n.MERGE_3_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M3P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung],Oe[r.jong]],answer:n.w,word:n.w}})}function zc(e){const t=_n.DROP_FINAL_CONSONANT_FROM_1SYLL,n=Rn(t.syllables,e,t.syllable),o=Ke(),r=[];for(const u of K(n)){if(r.length>=(e.count??10))break;const a=Ji(u.w,null,o);if(!a)continue;const[l,...s]=a.distractors;r.push({id:Ce("DFC-item"),index:r.length+1,original:u.w,word:u.w,result:l,distractors:s})}return r}function Kc(e){const t=_n.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,n=Rn(t.syllables,e,t.syllable),o=Ke(),r=[];for(const u of K(n)){if(r.length>=(e.count??10))break;const a=Xi(u.w,null,o);if(!a)continue;const l=X(o.get(u.w)||u.w);if(!l)continue;const[s,...d]=a.distractors;r.push({id:Ce("RCP-item"),index:r.length+1,base:u.w,word:u.w,missingConsonant:pe[l.cho],remaining:s,distractors:d})}return r}const In=new Map;let Bu=null,vu=null,Nu=null,Ro=0;async function Ou(e,t={}){const n=Tn(),o=It(),r=t.excludeNoImage?En():null;(n!==Bu||o!==vu||t.excludeNoImage&&r!==Nu)&&(In.clear(),Ro++,Bu=n,vu=o,Nu=r);const u=`${e}:${No(t)}`;if(In.has(u))return In.get(u);const a=Ro,l=await Jc(e,t);return a===Ro&&In.set(u,l),l}const qc={SAME_SOUND_PICK:e=>Tu("SSP",e),HEAR_AND_PICK_SAME:e=>Tu("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Rc(e),SAME_OR_DIFF:e=>Ic(e),STARTS_WITH_SAME_SOUND:e=>Mc(e),LISTEN_AND_REMEMBER_ORDER:e=>Wc(e),MERGE_2_SYLLABLES:e=>jc(e),MERGE_3_SYLLABLES:e=>$c(e),MERGE_2_PHONEMES:e=>Uc(e),MERGE_3_PHONEMES:e=>Yc(e),DROP_1_FROM_2SYLL:e=>Hc(e),DROP_1_FROM_3SYLL:e=>Gc(e),DROP_PART_FROM_COMPOUND:e=>Vc(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>zc(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Kc(e),CHANGE_1_SYLL_IN_2SYLL:e=>Pc(e),CHANGE_1_SYLL_IN_3SYLL:e=>kc(e),CHANGE_1_PHONEME_IN_1SYLL:e=>xc(e),CHANGE_1_PHONEME_IN_2SYLL:e=>Fc(e)};async function Jc(e,t={}){const n=qc[e];return n?await n(t):[]}async function Xc(e){const t=["random","count"],n=Object.keys(ao);let o=0;for(const r of t)for(const u of n){const a=ao[u];Ou(u,{difficulty:a.difficulty?r:null,contrastCount:1,composition:null,count:5,excludeNoImage:e,sameStructureOnly:!0,phonemeView:"char",grade:null}).catch(()=>{}),++o%6===0&&await new Promise(l=>setTimeout(l,0))}}async function Qc(e){const t=await _e({...e,fullCount:!0}),n=e.choicesPerItem!=null?Math.max(1,e.choicesPerItem-1):1;return t.filter(o=>new Set(o.usable.map(r=>fe(r))).size>=n).length}async function Zc(e={}){const t=[];for(const l of He)l.w&&t.push(l.w);const n=e.excludeNoImage?yt(t):t,o=new Set,r=new Set,u=new Set,a=new Set;for(const l of n){a.add(Lt(l));for(const s of l){const d=X(s);if(d&&(pe[d.cho]!=="\u3147"&&o.add(pe[d.cho]),r.add(Te[d.jung]),d.jong>0)){u.add(Oe[d.jong]);const m=wn[d.jong];m&&m.forEach(f=>u.add(f))}}}return{cho:o,jung:r,jong:u,syllable:a}}const ed={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"})},td={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"})},nd={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 Lu(e,t){if("place"in t)return ed[t.place](e);const n=td[t.vowel](e);return t.glide?`${n} \xB7 ${nd[t.glide](e)}`:n}const od=(e,{defaultValue:t})=>t,Ru=(e,t)=>({jamos:e,phonetic:t,tooltip:Lu(od,t)}),Ge=(e,t)=>t.map(n=>Ru([n],{place:e})),ge=(e,t,n)=>Ru([...e],n?{vowel:t,glide:n}:{vowel:t}),Io={cho:[Ge("labial",["\u3142","\u3143","\u314D","\u3141"]),Ge("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ge("alveolar",["\u3145","\u3146"]),Ge("palatal",["\u3148","\u3149","\u314A"]),Ge("velar",["\u3131","\u3132","\u314B"]),Ge("glottal",["\u314E"])],jung:[[ge("\u3163","frontHigh"),ge("\u315F","frontHigh","w"),ge("\u3162","frontHigh","velar")],[ge("\u3161","backHighUnrounded")],[ge("\u315C","backHighRounded"),ge("\u3160","backHighRounded","j")],[ge("\u3154\u3150","frontMid"),ge("\u3156\u3152","frontMid","j"),ge("\u3159\u315A\u315E","frontMid","w")],[ge("\u3153","backMidUnrounded"),ge("\u3155","backMidUnrounded","j"),ge("\u315D","backMidUnrounded","w")],[ge("\u3157","backMidRounded"),ge("\u315B","backMidRounded","j")],[ge("\u314F","low"),ge("\u3151","low","j"),ge("\u3158","low","w")]],jong:[Ge("labial",["\u3142","\u3141"]),Ge("alveolar",["\u3137","\u3134","\u3139"]),Ge("velar",["\u3131","\u3147"])]},rd=[...pe],ud=[...Te],ad=Oe.filter(e=>e!==""),Ve=e=>e===xe?[]:Array.from(e),xe="__NO_CODA__",Iu=[1,2,3,4],Fe=5,ld=12,Mu="SYL_",Mo=e=>`${Mu}${e}`,id=e=>Number(e.slice(Mu.length));function Po(e){return e>=Fe?Array.from({length:ld-Fe+1},(t,n)=>Fe+n):[e]}const Pu={cho:rd,jung:ud,jong:ad},ko=e=>e.map(t=>t.map(({jamos:n,phonetic:o,tooltip:r})=>({v:n.join(""),phonetic:o,tooltip:r}))),xo={cho:ko(Io.cho),jung:ko(Io.jung),jong:ko(Io.jong)},ku={};xo.jung.flat().forEach(({v:e})=>{for(const t of Ve(e))ku[t]=e});const sd=new Set(xo.cho.flat().map(e=>e.v));function xu(e,t){return e==="cho"?sd.has(t)?t:null:e==="jung"?ku[t]??t:Ot(t)}function Fu(e,t,n){if(e==="jung"){const o=Ve(t);return n&&o.includes(n)?n:o[0]??t}return e==="jong"&&n&&Ot(n)===t?n:t}function ju(e,t,n,o){const r=(u,a)=>a?u==="jong"&&a===xe?xe:t==="pron"?xu(u,a):Fu(u,a,u==="jung"?n:u==="jong"?o:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const Fo={cho:null,jung:null,jong:null,syllable:null};function cd(e){const{caps:t,difficulty:n,contrastCount:o,composition:r,phonemeView:u,excludeNoImage:a,sameStructureOnly:l,gradeFilter:s}=e,{i18n:d}=Le.useTranslation(),[m,f]=c.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[g,p]=c.useState(!1),[h,w]=c.useState(null),[b,y]=c.useState(0);oo("wordpool:update",()=>y(E=>E+1)),oo(Hr,()=>y(E=>E+1));const S=c.useRef(d.language);return c.useEffect(()=>{S.current!==d.language&&(S.current=d.language,y(E=>E+1))},[d.language]),c.useEffect(()=>{if(!t.choseong)return;let E=!1;return Zc({difficulty:n,excludeNoImage:a}).then(A=>{E||(f(A),p(A.cho.size+A.jung.size+A.jong.size>0))}).catch(()=>{E||(f({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),p(!1))}),()=>{E=!0}},[t.choseong,n,a,b]),c.useEffect(()=>{let E=!1;const A=r,v=A.cho?Ve(A.cho):null,L=A.jung?Ve(A.jung):null,B=A.jong===xe,I=B?null:A.jong?Ve(A.jong):null,P=A.syllable!=null?Po(A.syllable):null,O=!!(v||L||I||B||P);return Qc({difficulty:t.difficulty?n:null,contrastCount:t.difficulty?o:1,composition:t.choseong&&O?{cho:v,jung:L,jong:I,jongNone:B,syllable:P}:null,excludeNoImage:a,sameStructureOnly:l,phonemeView:u==="pron"?"pron":"char",grade:s.length>0?s:null}).then(G=>{E||w(G)}).catch(()=>{E||w(null)}),()=>{E=!0}},[t.choseong,t.difficulty,n,o,r,u,a,l,b,s]),{viable:m,viableReady:g,wordCount:h,poolVersion:b}}function $u(){const{t:e}=Le.useTranslation();return c.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function Hu(e,t,n){const o=Eo(n?.bands);return o?{label:t.difficulty,items:gu(o).map(r=>dd(e,r,o)),multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:jo(e,o)}}:{label:t.difficulty,items:[...[3,4,5,6,7].map(r=>e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})),...[2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:[e("wordSearch.filter.difficultyInfoAge","3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoGrade","2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}}}function dd(e,t,n){const o=n.find(a=>a.label&&String(a.grade)===t)?.label;if(o)return o;const r=cu(t);if(r!=null)return e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`});const u=wo(t);return u!=null?e("wordSearch.filter.agePlus",{n:u,defaultValue:`${u}\uC138 \uC774\uC0C1`}):e("wordSearch.filter.grade",{n:Number(t),defaultValue:`${t}\uB4F1\uAE09`})}function jo(e,t){const n=t.some(r=>r.label);return t.flatMap(r=>{const u=r.showAge?Gt(r):r.minAge,a=r.maxAge==null?e("wordSearch.filter.agePlus",{n:u,defaultValue:`${u}\uC138 \uC774\uC0C1`}):u===r.maxAge?e("wordSearch.filter.age",{n:u,defaultValue:`${u}\uC138`}):e("wordSearch.filter.ageRange",{from:u,to:r.maxAge,defaultValue:`${u}\uC138~${r.maxAge}\uC138`}),l=r.showAge&&r.fromAge!=null?[e("wordSearch.filter.difficultyInfoAgeFloor",{n:r.fromAge,defaultValue:`${r.fromAge}\uC138: ${r.fromAge}\uC138\uBCF4\uB2E4 \uC5B4\uB9B0 \uB0B1\uB9D0\uB3C4 \uD568\uAED8 \uB4ED\uB2C8\uB2E4.`})]:[];return[o(r,a,u),...l]});function o(r,u,a){const l=r.label??e("wordSearch.filter.grade",{n:r.grade,defaultValue:`${r.grade}\uB4F1\uAE09`});return r.showAge?n?e("wordSearch.filter.difficultyInfoBandAgeNamed",{ages:u,defaultValue:`${u}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):r.maxAge!=null&&r.maxAge>a?e("wordSearch.filter.difficultyInfoBandAge",{grade:l,ages:u,defaultValue:`${u}: ${l} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandAgeOne",{grade:l,ages:u,defaultValue:`${u}: ${l} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandGrade",{grade:l,ages:u,defaultValue:`${l}: ${u} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`})}}function Gu(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Vu(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function fd(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function gd(e,t){const n=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"),e("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&n.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:n,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function md(e,t){const{label:n,headValue:o,midValue:r,tailValue:u,includeMid:a=!0,headDisabled:l,midDisabled:s,tailDisabled:d,allOptionDisabled:m,groupLabel:f,labelAction:g}=t;return{label:n,...f?{groupLabel:f}:{},...g?{labelAction:g}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:o,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:l},...a?[{value:r,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:s}]:[],{value:u,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function pd(e,t,n){const o=Wt(n),r=o&&t!==ke?ot(o,t):null;if(o&&(t===ke||r)){const l={},s={};for(const[p,h]of Object.entries(e))(Wt(p)===o?s:l)[p]=h;if(t===ke)return l;const d=_o(s)[o]??[],m=d.includes(r)?d.filter(p=>p!==r):[...d,r];if(m.length===0)return l;const f=Do({[o]:m},Bc(n)),g=Object.values(f)[0]??[];return{...l,[n]:g}}if(t===ke){const{[n]:l,...s}=e;return s}const u=e[n]??[],a=u.includes(t)?u.filter(l=>l!==t):[...u,t];if(a.length===0){const{[n]:l,...s}=e;return s}return{...e,[n]:a}}Object.fromEntries(Object.entries(uo).map(([e,{nucleus:t}])=>[e,t]));const Cd={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},hd={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},yd={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",posMap:hd,typeMap:Cd},Wu=new WeakMap;function bd(e,t){const n=Wu.get(e);if(n&&n.keys===t)return n.value;const o={grades:[],syls:[],poses:[],types:[],fields:[],highUsage:!1},r={grade:o.grades,syllables:o.syls,pos:o.poses,wordType:o.types,field:o.fields};for(const[u,a]of Object.entries(e??{})){const l=Array.isArray(a)?a:typeof a=="string"?[a]:[];!o.highUsage&&l.some(Ac)&&(o.highUsage=!0);const s=u===t.difficulty?"grade":u===t.syllables?"syllables":u===t.partOfSpeech?"pos":u===t.wordType?"wordType":u===t.field?"field":Wt(u);if(s)for(const d of l)r[s].includes(d)||r[s].push(d)}return Wu.set(e,{keys:t,value:o}),o}function Sd(e,t,n=yd){const{grades:o,syls:r,poses:u,types:a,highUsage:l}=bd(t,n);if(l&&e.usage!==!0)return!1;if(o.length){const s=o.map(d=>ot("grade",d)??d.replace(/\D/g,"")).filter(d=>d!=="");if(s.length===0||!bo(s,e.grade,e.age))return!1}if(r.length){const s=e.syllables??0;if(!r.some(d=>{const m=d===n.syllable5plus?"5+":ot("syllables",d);return m==="5+"?s>=5:s===parseInt(m??d)}))return!1}return!(u.length&&!u.flatMap(s=>n.posMap[s]??yc[ot("pos",s)??""]??[s]).some(s=>(e.pos??"").includes(s))||a.length&&!a.some(s=>e.wordType===(n.typeMap[s]??bc[ot("wordType",s)??""])))}const Uu=["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"];function Yu(e){const t=e("wordPairs.filter.difficultyInfo",{returnObjects:!0,defaultValue:Uu});return Array.isArray(t)&&t.length>0&&t.every(n=>typeof n=="string")?t:Uu}function wd(e){return{composition:e("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:e("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:e("wordPairs.onset","\uCD08\uC131"),vowel:e("wordPairs.vowel","\uBAA8\uC74C"),coda:e("wordPairs.coda","\uC885\uC131"),phonemeGroup:e("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:e("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:e("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:e("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:e("training.filter.random","\uBB34\uC791\uC704"),exclude:e("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:e("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:e("common.none","\uC5C6\uC74C"),noImage:e("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:e("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:e("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:e("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:e("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:e("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4"})}}function Ed(e){const{caps:t,t:n,attrKeys:o,labels:r,phonemeView:u,viable:a,partViable:l,syllableViable:s,minSyllables:d,gradeBands:m}=e,f=Eo(m),g=(w,b)=>({title:b,items:w}),p=[n("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),n("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],h=[];if(t.choseong){const w={value:xe,displayLabel:r.codaExclude},b=t.fixedNoCoda===!0,y=(S,E)=>{const A=b&&S==="jong",v={label:E,groupLabel:r.phonemeGroup,allOption:!t.requireSyllable,allLabel:r.noLimit,allOptionDisabled:A};if(u==="pron"){const B=xo[S].map(I=>I.map(({v:P,phonetic:O})=>{const G=Ve(P),Y=Lu(n,O),W=A||!G.some(k=>a[S].has(k));return G.length>1?{value:P,labels:G,tooltip:Y,disabled:W}:{value:P,tooltip:Y,disabled:W}}));return S==="jong"&&!t.requireCoda&&B.unshift([w]),{...v,groups:B}}const L=Pu[S].map(B=>!A&&l[S].has(B)?B:{value:B,disabled:!0});return{...v,items:S==="jong"&&!t.requireCoda?[w,...L]:L}};h.push(y("cho",r.trainOnset)),h.push(y("jung",r.trainVowel)),h.push(y("jong",r.trainCoda))}if(h.push({...Hu(n,o,{bands:m,labelInfo:g(f?jo(n,f):Yu(n))}),label:r.gradeLabel}),t.partOfSpeech&&h.push(Gu(o)),t.wordType&&h.push(Vu(o)),t.choseong||t.fixedSyllable!=null){const w=t.fixedSyllable;h.push({label:r.syllableCount,items:[...Iu.map(b=>({value:Mo(b),displayLabel:n("wordPairs.syllableN",{n:b,defaultValue:"{{n}}\uC74C\uC808"}),disabled:w!=null?b!==w:!s.exact.has(b)||b<d})),{value:Mo(Fe),displayLabel:n("wordPairs.syllableNPlus",{n:Fe,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:w!=null?Fe!==w:!s.min}],allOption:!0,allOptionDisabled:w!=null})}return t.choseong?h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage,r.sameStructure],labelInfo:g(p)}):h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage],labelInfo:g([p[0]])}),h}const $o=e=>Array.isArray(e)?e.filter(yo):[],Ad="wt_filter",zu=e=>`wt_filter_${e}`,Ho=["noun","verb","modifier"],Go=["native","sino","foreign","mixed"];function Ku(e,t,n,o,r){if(!Array.isArray(e))return[];const u=[];for(const a of e){if(typeof a!="string")continue;const l=t.includes(a)?a:t.find(s=>r.some(d=>o(d,n(s))===a));l&&!u.includes(l)&&u.push(l)}return u}function qu(e){try{const t=localStorage.getItem(zu(e))??localStorage.getItem(Ad);if(t)return JSON.parse(t)}catch{}return null}function Ju(e){const t=e?.phonemeView;return t==="pron"?"pron":t==="direct"?"direct":"char"}function Td(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...Fo,cho:t.choseong}:Fo}function _d(e,t,n){const{t:o,i18n:r}=Le.useTranslation(),u=JSON.stringify(n?.gradeBands??null),a=c.useMemo(()=>JSON.parse(u),[u]),l=c.useMemo(()=>Eo(a),[a]),s=c.useCallback(_=>l?fu(_,l):_,[l]),[d]=c.useState(()=>n?.resetOnMount?null:qu(e)),[m,f]=c.useState(Ju(d)),[g,p]=c.useState(()=>Td(d)),h=c.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:xe,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?xe:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);c.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||p(_=>_.cho||_.jung||_.syllable!=null||_.jong?_:h())},[]);const w=c.useMemo(()=>de(g.cho)||de(g.jung)||de(g.jong)?"count":"random",[g.cho,g.jung,g.jong]),b=c.useRef(m==="char"?g.jung:null),y=c.useRef(m==="char"?g.jong:null);c.useEffect(()=>{m==="char"&&(b.current=g.jung,y.current=g.jong)},[m,g.jung,g.jong]);const[S,E]=c.useState(n?.resetOnMount?!!n?.defaultImageOnly:d?.excludeNoImage??!0),[A,v]=c.useState(n?.resetOnMount?!1:d?.sameStructureOnly??!0),[L,B]=c.useState($o(d?.gradeFilter)),I=Array.from(new Set([r.language,"ko","en"].filter(Boolean))),P=(_,ne)=>r.getFixedT(_)(ne),O=_=>Ku(_,Ho,ne=>`wordSearch.filter.pos.${ne}`,P,I),G=_=>Ku(_,Go,ne=>`wordSearch.filter.type.${ne}`,P,I),[Y,W]=c.useState(()=>O(d?.posFilter)),[k,x]=c.useState(()=>G(d?.wordTypeFilter)),q=c.useRef(n?.resetKey);c.useEffect(()=>{q.current!==n?.resetKey&&(q.current=n?.resetKey,p(h()),E(!!n?.defaultImageOnly),v(!1),B([]),W([]),x([]))},[n?.resetKey]);const Q=$u(),ce=c.useMemo(()=>Object.keys(Q.posMap),[Q]),Ae=c.useMemo(()=>Object.keys(Q.typeMap),[Q]),R=c.useMemo(()=>Y.map(_=>ce[Ho.indexOf(_)]).filter(Boolean),[Y,ce]),j=c.useMemo(()=>k.map(_=>Ae[Go.indexOf(_)]).filter(Boolean),[k,Ae]),F=1,U=Math.max(1,[g.cho,g.jung,g.jong].filter(Boolean).length),[H,je]=c.useState(e);c.useEffect(()=>{if(H!==e){if(!n?.resetOnMount){const _=qu(e);p(_?.composition??h()),E(_?.excludeNoImage??!0),v(_?.sameStructureOnly??!0),f(Ju(_)),B($o(_?.gradeFilter)),W(O(_?.posFilter)),x(G(_?.wordTypeFilter))}je(e)}},[e,H,n?.resetOnMount]),c.useEffect(()=>{if(!n?.resetOnMount&&H===e)try{localStorage.setItem(zu(e),JSON.stringify({contrastCount:U,composition:g,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}))}catch{}},[n?.resetOnMount,e,H,U,g,S,A,m,L,Y,k]);const{viable:me,viableReady:Ue,wordCount:lt,poolVersion:Vn}=cd({caps:t,difficulty:w,contrastCount:U,composition:g,phonemeView:m,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L});c.useEffect(()=>{Ue&&p(_=>{const ne={..._};let V=!1;return["cho","jung","jong"].forEach(J=>{const be=_[J];!be||be===xe||Ve(be).some(Ne=>me[J].has(Ne))||(ne[J]=null,V=!0)}),_.syllable!=null&&t.fixedSyllable==null&&(_.syllable>=Fe?[...me.syllable].some(J=>J>=Fe)||(ne.syllable=null,V=!0):(!me.syllable.has(_.syllable)||_.syllable<F)&&(ne.syllable=null,V=!0)),V?ne:_})},[me,Ue,F,t.fixedSyllable]);const un=c.useMemo(()=>{const _=ne=>{const V=new Set;for(const J of Pu[ne])me[ne].has(J)&&V.add(J);return V};return{cho:_("cho"),jung:_("jung"),jong:_("jong")}},[me]),Et=c.useMemo(()=>({exact:new Set(Iu.filter(_=>me.syllable.has(_))),min:[...me.syllable].some(_=>_>=Fe)}),[me]),oe=c.useMemo(()=>wd(o),[o]),At=c.useMemo(()=>({[oe.trainOnset]:"cho",[oe.trainVowel]:"jung",[oe.trainCoda]:"jong"}),[oe]),Z=c.useMemo(()=>Ed({caps:t,t:o,attrKeys:Q,labels:oe,phonemeView:m,viable:me,partViable:un,syllableViable:Et,minSyllables:F,gradeBands:a}),[t,o,Q,oe,m,me,un,Et,F,a]),Tt={...(t.choseong||t.fixedSyllable!=null)&&g.syllable!=null?{[oe.syllableCount]:Mo(g.syllable)}:{},...t.choseong&&g.cho?{[oe.trainOnset]:g.cho}:{},...t.choseong&&g.jung?{[oe.trainVowel]:g.jung}:{},...t.choseong&&g.jong?{[oe.trainCoda]:g.jong}:{},[oe.exclude]:[...S?[oe.excludeImage]:[],...A?[oe.sameStructure]:[]],[oe.gradeLabel]:s(L).map(_=>Tc("grade",_)),...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},ee=c.useCallback((_,ne)=>{if(ne===oe.exclude)_===oe.excludeImage?E(V=>!V):_===oe.sameStructure&&v(V=>!V);else if(ne===oe.syllableCount)p(V=>{if(!_||_===ke)return{...V,syllable:null};const J=id(_);return{...V,syllable:V.syllable===J?null:J}});else if(ne===oe.gradeLabel){if(!_||_===ke){B([]);return}const V=ot("grade",_);if(V==null)return;B(J=>{const be=s(J);return be.includes(V)?be.filter(Ne=>Ne!==V):[...be,V]})}else if(ne===Q.partOfSpeech){if(!_||_===ke){W([]);return}const V=Ho[ce.indexOf(_)]??O([_])[0];if(!V)return;W(J=>J.includes(V)?J.filter(be=>be!==V):[...J,V])}else if(ne===Q.wordType){if(!_||_===ke){x([]);return}const V=Go[Ae.indexOf(_)]??G([_])[0];if(!V)return;x(J=>J.includes(V)?J.filter(be=>be!==V):[...J,V])}else{const V=At[ne];if(!V)return;p(J=>t.requireSyllable?_&&_!==ke?{...J,[V]:_}:J:!_||_===ke||J[V]===_?{...J,[V]:null}:{...J,[V]:_})}},[oe,At,Q,ce,Ae,t.requireSyllable,s]),_t=c.useCallback(_=>!t.partOfSpeech&&!t.wordType?!0:Sd(_,{...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},Q),[t.partOfSpeech,t.wordType,R,j,Q]),ve=c.useCallback(_=>{_!==m&&(_!=="direct"&&m!=="direct"&&p(ne=>ju(ne,_,b.current,y.current)),f(_))},[m]),Je=c.useCallback(()=>({composition:g,contrastCount:U,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}),[g,U,S,A,m,L,Y,k]),an=c.useCallback(_=>{p(_.composition),E(_.excludeNoImage),v(_.sameStructureOnly??!0),f(_.phonemeView),B($o(_.gradeFilter)),Array.isArray(_.posFilter)&&W(O(_.posFilter)),Array.isArray(_.wordTypeFilter)&&x(G(_.wordTypeFilter))},[]);return{difficulty:w,contrastCount:U,composition:g,choseong:g.cho,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L,posFilter:R,wordTypeFilter:j,matchesWordAttributes:_t,poolVersion:Vn,filterSections:Z,filterSelected:Tt,handleFilterSelect:ee,phonemeView:m,setPhonemeView:ve,phonemeGroupLabel:oe.phonemeGroup,wordCount:lt,getFilterSnapshot:Je,restoreFilterSnapshot:an}}function Dd(e){const t=l=>l?Ve(l):null,n=t(e.cho),o=t(e.jung),r=e.jong===xe,u=r?null:t(e.jong),a=e.syllable!=null?Po(e.syllable):null;return!n&&!o&&!u&&!r&&!a?null:{cho:n,jung:o,jong:u,jongNone:r,syllable:a}}function Bd(e,t,n,o,r,u,a=!0,l="char",s=[]){const[d,m]=c.useState({}),[f,g]=c.useState(!1),{cho:p=null,jung:h=null,jong:w=null,syllable:b=null}=o??{},y=s.length>0?s.slice().sort().join(","):"",S=e.map(A=>A.key).join("|");c.useEffect(()=>{u>0&&Xc(r).catch(()=>{})},[u,r]),c.useEffect(()=>{let A=!1;return g(!0),(async()=>{const v=Dd({cho:p,jung:h,jong:w,syllable:b}),L=`${p??""}_${h??""}_${w??""}_${b??""}_${y}`,B={};await Promise.all(e.map(async I=>{const P=ao[I.key];try{const O=await Ou(I.key,{difficulty:P.difficulty?t:null,contrastCount:P.difficulty?n:1,composition:P.choseong?v:null,count:5,excludeNoImage:r,sameStructureOnly:a,phonemeView:l,grade:s.length>0?s:null});O&&O.length>0?B[I.key]={id:`wt-${I.key}-${t}-${L}-${Date.now()}`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:O,itemCount:O.length}:B[I.key]={id:`wt-${I.key}-empty`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:[],itemCount:0,__empty:!0}}catch{B[I.key]=null}})),A||(m(B),g(!1))})(),()=>{A=!0}},[t,n,p,h,w,b,r,a,l,u,y,S]);const E=JSON.stringify(e.map(A=>[A.key,A.label,A.color,A.subTitle]));return{perTypeData:c.useMemo(()=>{const A={};for(const[v,L]of Object.entries(d)){const B=e.find(I=>I.key===v);A[v]=L&&B?{...L,name:B.label,iconColor:B.color,subTitle:B.subTitle}:L}return A},[d,E]),generating:f}}const Yt=[],zt=[],Kt=[],qt=[],Mn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Pn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},vd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let Vo=null,Xu=null,We=null;function Nd({counts:e,forceRefresh:t}={}){const n=Object.assign({},vd,e||{}),o=vt(),r=Nt(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),u=JSON.stringify(n);if(!t&&Xu===o&&Vo===u&&We)return Object.assign(Mn,We.today),Object.assign(Pn,We.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:Mn,yesterday:Pn};const a={LISTEN_IN_NOISE:$e(Yt,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(zt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(Kt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(qt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))};let l=null;return We&&Vo===u&&We.yesterday&&We.yesterday.date===r&&(l=We.yesterday.selection),l||(l={LISTEN_IN_NOISE:$e(Yt,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(zt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(Kt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(qt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))}),Object.assign(Mn,a),Object.assign(Pn,l),Xu=o,Vo=u,We={today:a,yesterday:{date:r,countsKey:u,selection:l}},{today:Mn,yesterday:Pn}}let Wo=!1,Jt=null;async function Od(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:no&&no.tagName.toUpperCase()==="SCRIPT"&&no.src||new URL("hooks.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Ld(){if(!Wo)return Jt||(Jt=(async()=>{const e=await Od();if(!e){Jt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const t={noise:[],short:[],long:[],order:[]};try{if(typeof e!="object"||Array.isArray(e))throw new Error("Invalid training data map");for(const n of Object.keys(e)){const o=e[n];if(!Array.isArray(o))throw new Error("Invalid training data group");for(const r of o){if(!r||typeof r!="object")continue;const u=r,a=String(u.training_type||n),l=String(u.category_main_code||u.category_main||u.category_0||""),s=String(u.category_sub_code||u.category_sub||u.category_1||""),d=Object.assign({},u,{training_type:a,category_0:l,category_1:s});a==="LISTEN_IN_NOISE"?t.noise.push(d):a==="SHORT_STORY"?t.short.push(d):a==="LONG_STORY"?t.long.push(d):a==="ORDERING_SENTENCE"&&t.order.push(d)}}}catch{Jt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}Yt.push(...t.noise),zt.push(...t.short),Kt.push(...t.long),qt.push(...t.order),Wo=!0,We=null;try{Nd()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),Jt)}async function Rd(e=3e3){const t=Ld();let n;try{await Promise.race([t,new Promise(o=>{n=setTimeout(o,e)})])}finally{n!==void 0&&clearTimeout(n)}return Wo}function Qu(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Id(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let n=Math.imul(t^t>>>15,1|t);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const Md=$e,Pd=e=>{const[t,n,o]=e.split("-").map(Number);return Math.round(Date.UTC(t,(n||1)-1,o||1)/864e5)},kd=(e,t)=>{const n=e??{};return String(n.id??n.name??t)};function kn(e,t,n,o,r){if(!e.length||t<=0)return[];const u=Id(Qu(`${n}|${o}|${r}`)),a=Pd(o)&1,l=e.filter((d,m)=>(Qu(`${n}|${r}|${kd(d,m)}`)>>>7&1)===a),s=l.length>=t&&e.length-l.length>=t;return Md(s?l:e,t,u)}function Uo(e,t,n){const o=r=>Math.max(0,e[r]||0);return{LISTEN_IN_NOISE:kn(Yt,o("LISTEN_IN_NOISE"),t,n,"LISTEN_IN_NOISE"),SHORT_STORY:kn(zt,o("SHORT_STORY"),t,n,"SHORT_STORY"),LONG_STORY:kn(Kt,o("LONG_STORY"),t,n,"LONG_STORY"),ORDERING_SENTENCE:kn(qt,o("ORDERING_SENTENCE"),t,n,"ORDERING_SENTENCE")}}function Yo(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const xd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function zo(e=!1,t=xd,n){const o=Date.now(),r=Nt(o),u=Nt(o-864e5),a=n??"";return Yt.length>0||zt.length>0||Kt.length>0||qt.length>0?{today:Uo(t,a,r),yesterday:Uo(t,a,u)}:{today:Uo(t,a,r),yesterday:null}}function Fd(e){const t=c.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),n=c.useRef(null),[o,r]=c.useState(!1),[u,a]=c.useState(!1),[l,s]=c.useState(0),[d,m]=c.useState(!1),[f,g]=c.useState(()=>vt()),p=JSON.stringify([e??"",f]),h=c.useRef(null),w=c.useRef(p);c.useEffect(()=>{const y=()=>{const E=Date.now(),A=new Date(E+9*36e5),v=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()+1)-9*36e5;return Math.max(1e3,v-E+1e3)};let S=setTimeout(function E(){g(vt()),S=setTimeout(E,y())},y());return()=>clearTimeout(S)},[]),c.useEffect(()=>{w.current=p,h.current=null,r(!1),m(!1);let y=!1,S=!1,E=!1,A,v=0,L=null,B=0;const I=40,P=()=>{A!==void 0&&(clearInterval(A),A=void 0)};let O=!1;try{const x=new URLSearchParams(window.location.search),q=x.get("forceRefresh")||x.get("force");O=q==="1"||q==="true"}catch{}const G=x=>{S||(E=!0,h.current=p,t.current=x.today,n.current=x.yesterday,r(!0),m(!0),s(q=>q+1),y=!0,P())},Y=async()=>{if(y)return;if(!O){const q=zo(!1,void 0,e);if(Yo(q.today)){G(q);return}}if(L){++v>=I&&W();return}if(v>=B){B=v+8,L=Rd(3e3).catch(()=>!1);try{await L}finally{L=null}if(y)return}const x=zo(O,void 0,e);if(Yo(x.today)){G(x);return}++v>=I&&W()};function W(){r(!0),m(!1),y=!0,P()}const k=()=>{if(S||E)return;const x=zo(O,void 0,e);Yo(x.today)&&G(x)};try{window.addEventListener("speechear.data.updated",k)}catch{}return A=setInterval(Y,250),Y(),()=>{y=!0,S=!0,P();try{window.removeEventListener("speechear.data.updated",k)}catch{}}},[e,f]);const b=c.useCallback(y=>{if(h.current!==p)return;const S=u?n.current:t.current,E=u?t.current:n.current;return S?.[y]?.length?S[y]:E?.[y]?.length?E[y]:void 0},[u,l,p]);return{loaded:w.current===p&&o,hasData:w.current===p&&d,showYesterday:u,setShowYesterday:a,getTrainingPerType:b}}const bt=[];let xn=!1;function Zu(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=bt[bt.length-1];t&&(e.stopPropagation(),t())}function ea(e){return bt.push(e),!xn&&typeof document<"u"&&(document.addEventListener("keydown",Zu),xn=!0),()=>{const t=bt.lastIndexOf(e);t>=0&&bt.splice(t,1),bt.length===0&&xn&&typeof document<"u"&&(document.removeEventListener("keydown",Zu),xn=!1)}}function jd(e,t=!0){const n=Sn(e);c.useEffect(()=>{if(t)return ea(()=>{n.current?.()})},[t,n])}const Ko=(e,t)=>`${e}:${t??1}`,Xt=new Map,qo=new Set,Jo=new Map,Fn=6e4;function $d(e,t){const[n,o]=c.useState(0),[r,u]=c.useState(0),a=JSON.stringify(Array.from(new Set(e.map(l=>Ko(l.word,l.homonum)))).sort());return c.useEffect(()=>{const l=JSON.parse(a),s=Date.now(),d=l.filter(w=>!Xt.has(w)&&!qo.has(w)&&!(s-(Jo.get(w)??-1/0)<Fn));let m=!1,f=null,g=1/0;const p=(w=Fn)=>{if(m)return;const b=Date.now()+w;b>=g||(f!==null&&clearTimeout(f),g=b,f=setTimeout(()=>u(y=>y+1),w))};for(const w of l){if(Xt.has(w)||qo.has(w))continue;const b=Jo.get(w);b!=null&&s-b<Fn&&p(Math.max(0,Fn-(s-b)))}if(d.length===0)return()=>{m=!0,f!==null&&clearTimeout(f)};const h=Array.from(new Set(d.map(w=>w.slice(0,w.lastIndexOf(":")))));return Promise.resolve().then(()=>t(h)).then(w=>{for(const b of w)b.Meaning&&Xt.set(Ko(b.Word,b.Homonum??void 0),b.Meaning);if(w.length>0)for(const b of d)Xt.has(b)||qo.add(b);else{const b=Date.now();for(const y of d)Jo.set(y,b);p()}m||w.length===0||o(b=>b+1)}).catch(()=>{p()}),()=>{m=!0,f!==null&&clearTimeout(f)}},[a,t,r]),c.useMemo(()=>{const l=JSON.parse(a),s=new Map;for(const d of l){const m=Xt.get(d);m!=null&&s.set(d,m)}return s},[a,n])}function Hd(){const[e,t]=c.useState(null),n=c.useCallback(u=>t(u.getBoundingClientRect()),[]),o=c.useCallback(()=>t(null),[]),r=c.useCallback(u=>{const a=u.getBoundingClientRect();t(l=>l?null:a)},[]);return{anchorRect:e,isOpen:e!=null,openAt:n,close:o,toggleAt:r}}function Gd(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),u=c.useRef(null);c.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const a=c.useCallback((s,d)=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{n(s),r(d)},e)},[e]),l=c.useCallback(()=>{u.current&&clearTimeout(u.current),n(null),r(null)},[]);return{payload:t,anchorRect:o,openAfterDelay:a,close:l}}function Vd(e,t,n){const o=Number.isFinite(t)&&t>=1?Math.floor(t):1,r=Math.max(1,Math.ceil(e.length/o)),u=Number.isFinite(n)?Math.min(Math.max(1,Math.floor(n)),r):1;return{pageItems:c.useMemo(()=>e.slice((u-1)*o,u*o),[e,u,o]),totalPages:r,curPage:u}}function ta(e,t){const[n,o]=c.useState(e);n!==e&&(o(e),t(1))}function Wd(e={}){const{defaultPageSize:t="25",resetOn:n}=e,[o,r]=c.useState(""),[u,a]=c.useState(t),[l,s]=c.useState(1),d=g=>{const p=Number(g);return Number.isFinite(p)&&p>=1?Math.floor(p):null},m=d(t)??25,f=d(u)??m;return ta(JSON.stringify([o,u,...n??[]]),s),{query:o,setQuery:r,pageSize:u,setPageSize:a,perPage:f,page:l,setPage:s}}function Ud(e="warning"){const[t,n]=c.useState(""),[o,r]=c.useState(e),[u,a]=c.useState(0),l=c.useCallback((f,g)=>{r(g),n(f),a(p=>p+1)},[]),s=c.useCallback(f=>l(f,"warning"),[l]),d=c.useCallback(f=>l(f,"normal"),[l]),m=c.useCallback(()=>n(""),[]);return{toastMessage:t,toastType:o,toastKey:u,showToast:l,showWarning:s,showNormal:d,clearToast:m}}const Yd=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],zd={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Kd(e){return Yd.map(t=>{const n=zd[t.key];return n?{...t,label:e(`trainingType.${n}.title`),desc:e(`trainingType.${n}.desc`)}:t})}const Qt={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},Zt=Qt.blue,jn=Qt.green,en=Qt.amber,$n=Qt.purple,qd=Qt.pink,Jd=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:Zt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:Zt,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:Zt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:Zt,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:Zt,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:jn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:jn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:jn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:jn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:en,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:en,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:en,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:en,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:en,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:$n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:$n,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:$n,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:$n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:qd,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Xd(){const{t:e}=Le.useTranslation();return c.useMemo(()=>{const t=Object.fromEntries(Kd(e).map(o=>[o.key,o.label])),n={...t};return Jd.flatMap(o=>o.types).forEach(o=>{n[o.key]=e(`trainingType.${o.key}.label`,{defaultValue:o.label})}),{sentence:t,all:n}},[e])}function Qd({computeStyle:e,onScroll:t="close",onResize:n="close",ignoreOutsideClickSelector:o}){const[r,u]=c.useState(!1),[a,l]=c.useState({position:"fixed"}),s=c.useRef(null),d=c.useRef(null),m=c.useCallback(()=>{s.current&&l(e(s.current.getBoundingClientRect(),s.current))},[e]);c.useLayoutEffect(()=>{r&&m()},[r,m]),c.useEffect(()=>{if(!r)return;let p=d.current?.offsetHeight??0;p>0&&m();let h=0,w=null;typeof ResizeObserver<"u"&&d.current&&(w=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==p){if(p=B,++h>4){w?.disconnect(),w=null;return}m()}}),w.observe(d.current));const b=B=>{const I=B.target;o&&I.closest?.(o)||s.current?.contains(I)||d.current?.contains(I)||u(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);let y=null;const S=()=>{if(typeof requestAnimationFrame>"u"){m();return}y===null&&(y=requestAnimationFrame(()=>{y=null,m()}))},E=B=>{d.current?.contains(B.target)||(t==="reposition"?S():t==="close"&&u(!1))};t!=="ignore"&&window.addEventListener("scroll",E,!0);const A=()=>{n==="reposition"?S():n==="close"&&u(!1)};let v=null;const L=()=>{A(),v&&clearTimeout(v),v=setTimeout(()=>{v=null,n==="reposition"&&m()},250)};return n!=="ignore"&&(window.addEventListener("resize",A),window.addEventListener("orientationchange",L)),()=>{y!==null&&cancelAnimationFrame(y),w?.disconnect(),document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",E,!0),n!=="ignore"&&(window.removeEventListener("resize",A),window.removeEventListener("orientationchange",L)),v&&clearTimeout(v)}},[r,m,t,n,o]),c.useEffect(()=>{if(r)return ea(()=>u(!1))},[r]);const f=c.useCallback(()=>u(p=>!p),[]),g=c.useCallback(()=>u(!1),[]);return{open:r,setOpen:u,toggle:f,close:g,style:a,triggerRef:s,menuRef:d}}function Zd(e,{mode:t="playback",autoStart:n=!1,onPlaySpeaker:o,onComplete:r,playMs:u=1100,feedbackMs:a=1500}={}){const[l,s]=c.useState([]),[d,m]=c.useState(0),[f,g]=c.useState("idle"),[p,h]=c.useState(null),[w,b]=c.useState([]),[y,S]=c.useState(null),[E,A]=c.useState(0),v=c.useRef(0),L=c.useCallback(F=>{v.current=typeof F=="function"?F(v.current):F,A(v.current)},[]),B=c.useRef(o),I=c.useRef(r);c.useEffect(()=>{B.current=o,I.current=r},[o,r]);const P=c.useRef([]),O=()=>{P.current.forEach(clearTimeout),P.current=[]},G=(F,U)=>{P.current.push(setTimeout(U,F))};c.useEffect(()=>()=>O(),[]);const Y=l[d]?.id??null,W=c.useRef(null),k=c.useCallback(()=>{O(),g("playing"),b([]),S(null),L(0);let F=0;e.forEach((U,H)=>{G(F,()=>{m(H),h(U.id),B.current?.(U)}),G(F+1e3,()=>{h(null),b(je=>[...je,U.id])}),F+=1300}),G(F,()=>{g("done"),I.current?.({score:0,total:e.length})})},[e,L]),x=c.useCallback((F,U)=>{if(U>=F.length){g("done"),I.current?.({score:v.current,total:F.length});return}W.current=null,m(U),S(null),g("playing"),h(F[U].id),B.current?.(F[U]),G(u,()=>{h(null),g("waiting")})},[u]),q=c.useCallback(()=>{O();const F=K(e);s(F),L(0),b([]),x(F,0)},[e,x,L]),Q=c.useCallback(()=>{t==="playback"?(s(e),k()):q()},[t,e,k,q]),ce=c.useCallback(()=>{O(),g("idle"),h(null),b([]),S(null),m(0),L(0),s([])},[L]),Ae=JSON.stringify(e.map(F=>[F.id,F.label,F.angleDeg,F.deg,F.row,F.shortcut]));c.useEffect(()=>(n?Q():ce(),()=>O()),[t,Ae,n]);const R=c.useCallback(F=>{f!=="waiting"||t==="playback"||W.current===d||(W.current=d,S(F),F===l[d]?.id&&L(U=>U+1),t==="exam"?(g("playing"),G(400,()=>x(l,d+1))):(g("feedback"),G(a,()=>x(l,d+1))))},[f,t,l,d,x,a,L]),j=t==="playback"?e.length:l.length;return{bind:{activeSpeakerId:p,playedIds:w,selectedId:y,answerId:Y,showFeedback:f==="feedback",clickable:f==="waiting",onSelectSpeaker:R},index:d,total:j,score:E,phase:f,done:f==="done",start:Q,reset:ce}}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ef(e){if(Array.isArray(e))return e}function tf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,u,a,l=[],s=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(s=(o=u.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(m){d=!0,r=m}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function nf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},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"},vs={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Ns={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"},Os={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},Ls={ariaLabel:"\uC120\uD0DD \uD0ED"},Rs={ariaLabel:"\uD0ED"},Is={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Ms={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ps={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},ks={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"},xs={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"}},Fs={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},js={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"},$s={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"},Hs={viewWords:"\uB0B1\uB9D0"},Gs={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Vs={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Ws={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Us={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ys={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},zs={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Ks={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},qs={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Js={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Xs={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Qs={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Zs={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",up:"\uC704\uB85C",upTo:"\uD55C \uCE35 \uC704\uB85C \u2014 {{name}}",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},ec={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},tc={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"},nc={common:es,calendar:ts,passCard:ns,rating:os,colorPicker:rs,dropdown:us,accordion:as,header:ls,nav:is,settings:ss,usage:cs,account:ds,training:fs,customers:gs,payment:ms,coupons:ps,visits:Cs,trainingType:hs,myWordTable:ys,keyWords:bs,wordTable:Ss,wordSearch:ws,wordPrint:Es,topic:As,device:Ts,manager:_s,wordPairs:Ds,footer:Bs,date:vs,wordData:Ns,textField:Os,segmentedControl:Ls,tabs:Rs,fileUpload:Is,avatar:Ms,myHomework:Ps,trainingStatus:ks,store:xs,progress:Fs,trainingMiss:js,table:$s,wordScore:Hs,topBanner:Gs,datePicker:Vs,report:Ws,tooltip:Us,phonemeProfile:Ys,bulkBar:zs,debug:Ks,badge:qs,loader:Js,soundCompass:Xs,breadcrumb:Qs,folder:Zs,board:ec,promoBannerBg:tc},oc={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",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.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoAgeFloor:"Age {{n}}: also includes words for younger ages.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",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"}},rc={filter:{onlyHighUsage:"High-use words only"}},uc={wordSearch:oc,wordPairs:rc};const ac="0.484.0";var nu;const lc=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],fo="ko",ic="ihab_display_language",go={en:()=>Promise.resolve().then(function(){return fg})},Bn=new Set(["ko"]),mo={},$t=e=>e.split("-")[0];function ou(e){const t=$t(e),n=go[t];return!n||Bn.has(t)?Promise.resolve():mo[t]??(mo[t]=n().then(o=>{const r=o.default??o;ae.addResourceBundle(t,"translation",r,!0,!1),Bn.add(t)},o=>{throw mo[t]=void 0,o}))}function ru(){if(typeof window>"u")return fo;try{const e=localStorage.getItem(ic);if(e&&lc.some(t=>t.code===e))return e}catch{}return fo}function uu(e){try{document.documentElement.lang=e}catch{}}ae.on("languageChanged",uu),uu(ru());const au=(nu=ae).__ihabRawChangeLanguage??(nu.__ihabRawChangeLanguage=ae.changeLanguage);ae.changeLanguage=au,ae.use(Le.initReactI18next).init({resources:{ko:{translation:nc},en:{translation:uc}},lng:ru(),fallbackLng:fo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const po=au.bind(ae);let Co;ae.changeLanguage=((e,t)=>{if(Co=e,!e||Bn.has($t(e))||!go[$t(e)])return po(e,t);const n=()=>Co===e?po(e,t):Promise.resolve(ae.t);return ou(e).then(n,o=>(console.error(o),n()))});{const e=ae.language;e&&!Bn.has($t(e))&&go[$t(e)]&&ou(e).then(()=>{ae.language===e&&(Co??e)===e&&po(e)},t=>console.error(t))}const lu=new Set(["field"]),ho="none";function sc(e){return e==null||String(e).trim()===""}function yo(e){return typeof e!="string"?!1:Ht.includes(e)||e===ho||iu.test(e)||su.test(e)}function bo(e,t,n){if(!e)return!0;const o=e instanceof Set?e:new Set(e);if(o.size===0)return!0;if(n!=null){if(o.has(`age${n}`))return!0;const r=cc(n,Ao);if(r&&o.has(r))return!0;for(const u of o){const a=wo(u);if(a!=null&&n>=a)return!0}}return sc(t)?o.has(ho):o.has(String(t))}const Ct=["grade","syllables","pos","wordType","field"],Ht=["1","2","3","4","5"],So=99,iu=/^age([1-9]\d?)$/,su=/^age([1-9]\d?)plus$/;function cu(e){const t=iu.exec(e);return t?Number(t[1]):null}function wo(e){const t=su.exec(e);return t?Number(t[1]):null}const Gt=e=>e.fromAge??e.minAge;function cc(e,t){if(!t)return null;const n=t.find(o=>e>=o.minAge&&(o.maxAge==null||e<=o.maxAge));return!n||n.fromAge==null||e>=n.fromAge?null:n.maxAge==null?`age${n.fromAge}plus`:`age${n.fromAge}`}function Eo(e){if(!Array.isArray(e)||e.length===0||e.length>Ht.length)return null;const t=[];let n=1;for(let r=0;r<e.length;r++){const u=e[r];if(!u||u.grade!==r+1||typeof u.showAge!="boolean")return null;const a=u.showAge?void 0:dc(u.label);if(a===null)return null;const l={grade:u.grade,minAge:n,maxAge:null,showAge:u.showAge};a&&(l.label=a);const s=r===e.length-1;let d=null;if(s){if(u.maxAge!==null)return null}else{const f=u.maxAge;if(typeof f!="number"||!Number.isInteger(f)||f<n||f>=So)return null;d=f,l.maxAge=f}const m=u.fromAge;if(m!=null){if(typeof m!="number"||!Number.isInteger(m)||m<n||m>(d??So))return null;u.showAge&&m>n&&(l.fromAge=m)}if(t.push(l),s||d==null)break;n=d+1}const o=t.flatMap(r=>r.label?[r.label]:[]);return new Set(o).size!==o.length?null:(fc(t),t)}function dc(e){if(e==null)return;if(typeof e!="string")return null;const t=e.trim();if(t){if(yo(t)||pu.test(t))return null;for(const n of Vt())if(ht(n).reverse.grade.has(t))return null;return t}}const vn=new Map,du=new Map;let Ao=null;function fc(e){Ao=e,vn.clear();for(const t of e)t.label&&(vn.set(String(t.grade),t.label),du.set(t.label,String(t.grade)))}function fu(e,t){const n=t===void 0?Ao:t;if(!n||n.length===0)return[...e];const o=[],r=l=>{for(const s of l)o.includes(s)||o.push(s)},u=l=>gu([l]),a=l=>n.find(s=>l>=s.minAge&&(s.maxAge==null||l<=s.maxAge));for(const l of e){if(Ht.includes(l)){const m=n.find(f=>String(f.grade)===l);r(m?u(m):[l]);continue}const s=cu(l);if(s!=null){const m=a(s);m&&m.showAge&&m.maxAge!=null?r([s<Gt(m)?`age${Gt(m)}`:l]):r(m?u(m):[l]);continue}const d=wo(l);if(d!=null){const m=n.filter(f=>f.maxAge==null||f.maxAge>=d);if(m.length===0){r([l]);continue}for(const f of m)if(f.showAge&&f.maxAge!=null){const g=[];for(let p=Math.max(d,Gt(f));p<=f.maxAge;p++)g.push(`age${p}`);r(g)}else r(u(f));continue}r([l])}return o}function gu(e){const t=[];for(const n of e){if(!n.showAge){t.push(String(n.grade));continue}const o=Gt(n);if(n.maxAge==null){t.push(`age${o}plus`);continue}for(let r=o;r<=n.maxAge;r++)t.push(`age${r}`)}return t}const gc=["1","2","3","4","5+"],mc=["noun","verb","modifier"],pc=["native","sino","foreign","mixed"],Cc={grade:[],syllables:gc,pos:mc,wordType:pc,field:[]},hc=(e,t)=>e==="grade"?yo(t):Cc[e].includes(t),yc={noun:["\uBA85","\uC218"],verb:["\uB3D9","\uD615"],modifier:["\uBD80","\uAD00"]},bc={native:"\uACE0\uC720",sino:"\uD55C\uC790",foreign:"\uC678\uB798",mixed:"\uD63C\uC885"},Sc={grade:["\uB09C\uC774\uB3C4 \uB4F1\uAE09","\uB4F1\uAE09","Grade","Difficulty"]},wc={pos:{noun:["\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)"],verb:["\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)"],modifier:["\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)"]}},To=new Map;try{ae.store?.on?.("added",()=>To.clear())}catch{}function ht(e){const t=To.get(e);if(t)return t;const n=ae.getFixedT(e),o={section:{grade:n("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:n("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),pos:n("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:n("wordSearch.filter.wordType","\uC720\uD615"),field:n("wordSearch.filter.field","\uC758\uBBF8\uBC94\uC8FC")},value:{grade:{...Object.fromEntries(Ht.map(r=>[r,n("wordSearch.filter.grade",{n:Number(r),defaultValue:`${r}\uB4F1\uAE09`})])),...Object.fromEntries(mu.map(r=>[`age${r}`,n("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})])),...Object.fromEntries(mu.map(r=>[`age${r}plus`,n("wordSearch.filter.agePlus",{n:r,defaultValue:`${r}\uC138 \uC774\uC0C1`})])),[ho]:n("wordSearch.filter.gradeNone","\uC5C6\uC74C")},syllables:{...Object.fromEntries(["1","2","3","4"].map(r=>[r,n("wordSearch.filter.syllable",{n:Number(r),defaultValue:`${r}\uC74C\uC808`})])),"5+":n("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1")},pos:{noun:n("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)"),verb:n("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)"),modifier:n("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")},wordType:{native:n("wordSearch.filter.type.native","\uACE0\uC720\uC5B4"),sino:n("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4"),foreign:n("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4"),mixed:n("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")},field:{}}};return o.reverse=Object.fromEntries(Ct.map(r=>{const u=new Map;for(const[a,l]of Object.entries(o.value[r]))u.has(l)||u.set(l,a);return[r,u]})),To.set(e,o),o}const mu=Array.from({length:So},(e,t)=>t+1),Vt=()=>Array.from(new Set([ae.language,"ko","en"].filter(e=>!!e))),Ec="highUsage";function Ac(e){if(e===Ec)return!0;for(const t of Vt())if(ae.getFixedT(t)("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")===e)return!0;return!1}function Wt(e){if(Ct.includes(e))return e;for(const t of Vt()){const n=ht(t);for(const o of Ct)if(n.section[o]===e)return o}for(const t of Ct)if(Sc[t]?.includes(e))return t;return null}function ot(e,t){if(lu.has(e)||hc(e,t))return t;if(e==="grade"){const n=du.get(t.trim());if(n)return n}for(const n of Vt()){const o=ht(n).reverse[e].get(t);if(o)return o}for(const[n,o]of Object.entries(wc[e]??{}))if(o.includes(t))return n;if(e==="grade"&&pu.test(t.trim()))return null;if(e==="grade"||e==="syllables"){const n=parseInt(t.replace(/\D/g,""),10);if(Number.isFinite(n)&&n>=1)return e==="grade"?n<=Ht.length?String(n):null:n>=5?"5+":String(n)}return null}const pu=/(^age\s*\d)|((세|살|years?\s*old|yrs?)(\s*(이상|\+|or\s+(older|above|more)))?$)/i;function Tc(e,t,n=ae.language){if(e==="grade"){const o=vn.get(t);if(o)return o}return ht(n).value[e][t]??t}const _c=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):typeof e=="string"&&e?[e]:[];function _o(e){const t={};for(const[n,o]of Object.entries(e??{})){const r=Wt(n);if(r)for(const u of _c(o)){const a=ot(r,u);if(!a)continue;const l=t[r]??(t[r]=[]);l.includes(a)||l.push(a)}}return t}function Do(e,t=ae.language){const n=ht(t||"ko"),o={};for(const r of Ct){const u=(r==="grade"?fu(e?.[r]??[]):e?.[r]??[]).map(a=>(r==="grade"?vn.get(a):void 0)??n.value[r][a]??(lu.has(r)?a:void 0)).filter(a=>!!a);u.length&&(o[n.section[r]]=u)}return o}function Dc(e,t=ae.language){const n={};for(const[o,r]of Object.entries(e??{}))Wt(o)||(n[o]=r);return{...n,...Do(_o(e),t)}}function Bc(e){for(const t of Vt()){const n=ht(t);if(Ct.some(o=>n.section[o]===e))return t}return ae.language||"ko"}let Nn=null,Cu=null,hu=null;function vc(){const e=Tn();if(e&&e.entries.length>0){const t=It();if(Nn&&Cu===e&&hu===t)return Nn;const n=new Set,o=[];for(const r of e.entries)!r.word||n.has(r.word)||(n.add(r.word),o.push({w:r.word,s:r.syllables,p:t?.[r.word]?[...t[r.word].cho??[],...t[r.word].jung??[],...t[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade,age:r.age??void 0}));return Nn=o,Cu=e,hu=t,Nn}return[]}const He=new Proxy([],{get(e,t){const n=vc(),o=n[t];return typeof o=="function"?o.bind(n):o}});function Bo(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Re(e,t){if(t>=e.length)return K(e);if(t===0)return[];const n=e.slice();for(let o=0;o<t;o++){const r=o+Math.floor(Math.random()*(n.length-o)),u=n[o];n[o]=n[r],n[r]=u}return n.slice(0,t)}let vo=null,yu=null;function Ke(){const e=Tn();if(vo&&yu===e)return vo;const t=new Map;for(const n of He)n.w&&t.set(n.w,n.pron);return vo=t,yu=e,t}function fe(e){return Ke().get(e)||e}function On(e,t,n=new Set){const o=[];for(const r of K(e)){if(o.length>=t)break;const u=fe(r);n.has(u)||(n.add(u),o.push(r))}return o}let Nc=0;function Ce(e){return`${e}-rt-${++Nc}`}function yt(e){const t=Yr();if(!t||t.total===0){const r=new Set;for(const u of e)r.add(u);return r}const n=En(),o=new Set;for(const r of e)n.has(r)&&o.add(r);return o}const Ln=new Map;let bu=null,Su=null,wu=null;function Ut(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function No(e){const t=Array.isArray(e.choseong)&&e.choseong.length===0?"[]":Ut(e.choseong),n=e.composition,o=n?.syllable==null?"":Array.isArray(n.syllable)?n.syllable.slice().sort().join(","):String(n.syllable),r=n?`${Ut(n.cho)}/${Ut(n.jung)}/${Ut(n.jong)}/${n.jongNone?"N":""}/${o}`:"",u=Ut(e.grade);return`${e.difficulty??""}|${t}|${r}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${u}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}const Oo=new Map;function Oc(e){return No({...e,count:void 0,choicesPerItem:void 0,fullCount:!1})}async function _e(e){const t=Tn(),n=It(),o=e.excludeNoImage?En():null;(t!==bu||n!==Su||e.excludeNoImage&&o!==wu)&&(Ln.clear(),Oo.clear(),bu=t,Su=n,wu=o);const r=No(e);return Ln.has(r)||Ln.set(r,Lc(e)),Ln.get(r)}function Eu(e){if(!e)return null;const t=a=>a==null?null:Array.isArray(a)?a.length?a:null:[a],n=t(e.cho),o=t(e.jung),r=!!e.jongNone,u=r?null:t(e.jong);return n||o||u||r?r&&!n&&!o&&!u?a=>fi(a):a=>mi(a,{cho:n,jung:o,jong:u,jongNone:r}):null}function Au(e){const t=e.grade&&e.grade.length>0?new Set(e.grade):null,n=e.composition??null,o=n?.syllable!=null?new Set(Array.isArray(n.syllable)?n.syllable:[n.syllable]):null,r=n?[Eu(n),o?a=>o.has(Lt(a)):null].filter(a=>a!=null):[];if(!t&&r.length===0)return null;const u=e.phonemeView==="pron";return a=>{if(!bo(t,a.grade,a.age))return!1;if(r.length===0)return!0;const l=u?fe(a.w):a.w;return r.every(s=>s(l))}}async function Lc(e){const{difficulty:t=null,choseong:n=null,composition:o=null,targetSyllable:r=null,excludeNoImage:u=!1}=e,a=e.grade&&e.grade.length>0?new Set(e.grade):null,l=e.sameStructureOnly??!0,s=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",f=m&&d>=2,g=t==="count",p=n?new Set(Array.isArray(n)?n:[n]):null,h=o?.syllable!=null?new Set(Array.isArray(o.syllable)?o.syllable:[o.syllable]):null,w=o?[Eu(o),h?R=>h.has(Lt(R)):null].filter(R=>R!=null):[],b=t==="random"||t===null,y=b||g,S=b||f||g;let E=He.filter(R=>!R.w||!bo(a,R.grade,R.age)?!1:S?!0:Array.isArray(R.p)&&R.p.length>0);p&&(E=E.filter(R=>{for(const j of p)if(ci(R.w,j))return!0;return!1})),w.length>0&&(E=E.filter(R=>{const j=s==="pron"?fe(R.w):R.w;return w.every(F=>F(j))})),r&&(E=E.filter(R=>R.w[0]===r));let A;if(u){const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=yt(R)}else{const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=R}let v=null;if(f){const R=new Set;for(const j of He)j.w&&R.add(j.w);v=u?yt(R):R}const L=E.filter(R=>A.has(R.w)),B=600,I=Array.from(A),P=I.length>B?Re(I,B):I,O=g&&o!=null&&(de(o.cho)||de(o.jung)||de(o.jong)),G=2500,Y=new Map;if(g&&!O&&d>=2){for(const R of I){const j=Lt(R),F=Y.get(j);F?F.push(R):Y.set(j,[R])}for(const[R,j]of Y)j.length>G&&Y.set(R,Re(j,G))}const W=ii();let k=null;if(O){const R=Oc(e),j=u?En():null,F=Oo.get(R);k=F&&F.imageOkSet===j?F.map:Gi(o,I,W,l,s,fe),Oo.set(R,{imageOkSet:j,map:k})}const x=500,q=1500,Q=e.fullCount?L:t==="random"?L.length>x?Re(L,x):L:L.length>q?Re(L,q):L,ce=It(),Ae=[];for(const R of Q){let j;const F=fe(R.w);if(f)j=Ci(R.w,t,d,v,24).filter(U=>fe(U)!==F);else if(g)O?j=(k.get(R.w)??[]).filter(U=>fe(U)!==F):d<=1?j=eu(R.w,ce,{okSet:A,pronOf:fe,decompOf:W,sameStructureOnly:!1}):j=(Y.get(Lt(R.w))??[]).filter(U=>{if(U===R.w||fe(U)===F)return!1;const H=hi(F,fe(U));return d>=5?H>=5:H===d});else if(b){const U=H=>H!==R.w&&H.length===R.w.length&&fe(H)!==F;if(e.fullCount){const H=Math.max(1,(e.choicesPerItem??3)-1),je=[],me=new Set;for(const Ue of P){if(!U(Ue))continue;const lt=fe(Ue);if(!me.has(lt)&&(me.add(lt),je.push(Ue),je.length>=H))break}j=je}else j=P.filter(U)}else{const U=t;j=eu(R.w,ce,{kind:U,okSet:A,pronOf:fe,decompOf:W,sameStructureOnly:!1}),j.length===0&&(j=(P.length>30?Re(P,30):P).filter(H=>H!==R.w&&si(R.w,H)===t&&fe(H)!==F))}if(l&&j.length>0&&(m||g&&!O)){const U=W(fe(R.w));j=j.filter(H=>!so(U,W(fe(H))))}j.length!==0&&Ae.push({word:R,usable:j})}return Ae}async function Tu(e,t){const{choicesPerItem:n=3,count:o=10}=t,r=n-1,u=(await _e(t)).filter(l=>l.usable.length>=r),a=[];for(const l of K(u)){if(a.length>=o)break;const s=On(l.usable,r);if(s.length<r)continue;const d=K([l.word.w,...s]);a.push({id:Ce(e+"-item"),index:a.length+1,word:l.word.w,syllables:l.word.s,choices:d,answerIndex:d.indexOf(l.word.w)})}return a}async function Rc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t)return[];const u=e.composition??null,a=[],l=K([...r]);for(const s of l){if(a.length>=n)break;const d=s.word.w,m=[...s.word.pron||d],f=u&&Dn(u)?m.filter(b=>{const y=X(b);return!!y&&nt(y,u)}):[],g=Bo(f.length?f:m);if(!g)continue;const p=r.filter(b=>b.word.w!==d&&b.word.s===s.word.s&&!(b.word.pron||b.word.w).includes(g)&&b.word.pron!==s.word.pron);if(p.length<o)continue;const h=On(p.map(b=>b.word.w),o);if(h.length<o)continue;const w=K([d,...h]);a.push({id:Ce("HPI-item"),index:a.length+1,targetSyllable:g,word:d,choices:w,answerIndex:w.indexOf(d)})}return a}async function Ic(e){const{count:t=10}=e,n=(await _e(e)).filter(u=>u.usable.length>=1);if(!n.length)return[];const o=n.length>=t?Re(n,t):K(Array.from({length:t},(u,a)=>n[a%n.length])),r=K(Array.from({length:t},(u,a)=>a<Math.ceil(t/2)));return o.map((u,a)=>{const l=r[a];let s;if(l)s=[u.word.w,u.word.w];else{const d=Bo(u.usable);s=Math.random()<.5?[u.word.w,d]:[d,u.word.w]}return{id:Ce("SOD-item"),index:a+1,word:u.word.w,pair:s,same:l}})}async function Mc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t+1)return[];const u=r.map(g=>g.word.w),a=new Map(r.map(g=>[g.word.w,g.word.pron])),l=g=>(a.get(g)||g)[0]??"",s={};for(const g of r){const p=l(g.word.w);p&&(s[p]||(s[p]=[]),s[p].push(g.word.w))}const d=Object.entries(s).filter(([,g])=>new Set(g.map(p=>a.get(p)||p)).size>=2).map(([g])=>g);if(d.length===0)return[];const m=[],f=K([...d]);for(let g=0;m.length<n&&g<n*4;g++){const p=f[g%f.length],h=s[p];if(h.length<2)continue;const w=K([...h]),b=w[0],y=a.get(b)||b,S=w.find(B=>B!==b&&(a.get(B)||B)!==y);if(!b||!S)continue;const E=a.get(S)||S,A=u.filter(B=>l(B)!==p&&B!==b&&B!==S&&B.length===S.length&&(a.get(B)||B)!==E);if(A.length<o)continue;const v=On(A,o);if(v.length<o)continue;const L=K([S,...v]);m.push({id:Ce("SWS-item"),index:m.length+1,sourceWord:b,targetSyllable:p,word:S,choices:L,answerIndex:L.indexOf(S)})}return m}function _u(e,t,n){const o=Ke(),r=s=>o.get(s)||s,u=(s,d)=>{const m=[...s],f=[...d];if(m.length!==f.length)return-1;let g=-1;for(let p=0;p<m.length;p++)if(m[p]!==f[p]){if(g>=0)return-1;g=p}return g},a=e.map(s=>({e:s,swaps:s.usable.filter(d=>!!d&&u(s.word.w,d)>=0&&r(d)!==r(s.word.w))})).filter(s=>s.swaps.length>0),l=[];for(const{e:s,swaps:d}of K(a)){if(l.length>=t)break;const m=Bo(d)??"",f=[...s.word.w],g=[...m],p=u(s.word.w,m),h=On(s.usable.filter(w=>w&&w!==m),2,new Set([r(m),r(s.word.w)]));h.length<2||l.push({id:Ce(n),index:l.length+1,word:s.word.w,original:s.word.w,changed:m,changedFrom:p>=0?f[p]:"",changedTo:p>=0?g[p]:"",distractors:h})}return l}async function Du(e,t,n){const{count:o=10}=t,r=Ke(),u=He.filter(h=>h.w&&h.s===e),a=t.excludeNoImage?yt(u.map(h=>h.w)):null,l=a?u.filter(h=>a.has(h.w)):u,s=new Set(l.map(h=>h.w)),d=Qi(s),m=t.phonemeView??"char",f=t.composition??null,g=Au(t),p=[];for(const h of K(l)){if(p.length>=o)break;if(g&&!g(h))continue;const w=Zi(h.w,f,r,m,d,null,null);if(!w)continue;const b=w.distractors[0],y=[...h.w],S=[...b],E=y.findIndex((A,v)=>A!==S[v]);p.push({id:Ce(n),index:p.length+1,word:h.w,original:h.w,changed:b,changedFrom:E>=0?y[E]:"",changedTo:E>=0?S[E]:"",distractors:w.distractors.slice(1)})}return p}async function Pc(e){return Du(2,e,"CS2-item")}async function kc(e){return Du(3,e,"CS3-item")}async function xc(e){const t=(await _e({...e,difficulty:"count",contrastCount:1})).filter(n=>n.word.s===1&&n.usable.length>=1);return _u(t,e.count??10,"CP1-item")}async function Fc(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",n=(await _e({...e,difficulty:t,contrastCount:1})).filter(o=>o.word.s===2&&o.usable.length>=1);return _u(n,e.count??10,"CP2-item")}async function jc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===2);return Re(n,t).map((o,r)=>({id:Ce("M2S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}async function $c(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===3);return Re(n,t).map((o,r)=>({id:Ce("M3S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}function Lo(e){const t=He.map(n=>n.w);return e.excludeNoImage?yt(t):new Set(t)}async function Hc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===2),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=zi(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=[...l.word.w],g=f[0]===d?f[1]:f[0];a.push({id:Ce("D2-item"),index:a.length+1,original:l.word.w,word:l.word.w,dropped:g,missingResult:d,distractors:m})}return a}async function Gc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===3),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=Ki(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=[...l.word.w];let g="";for(let p=0;p<f.length;p++)if(f.filter((h,w)=>w!==p).join("")===d){g=f[p];break}a.push({id:Ce("D3-item"),index:a.length+1,original:l.word.w,word:l.word.w,dropped:g,missingResult:d,distractors:m})}return a}async function Vc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s>=3),o=Ke(),r=Lo(e),u=e.phonemeView??"char",a=[];for(const l of K(n)){if(a.length>=t)break;const s=qi(l.word.w,e.composition??null,o,u,r);if(!s)continue;const[d,...m]=s.distractors,f=l.word.w,g=s.dropped??(f.startsWith(d)?f.slice(d.length):f.endsWith(d)?f.slice(0,f.length-d.length):"");a.push({id:Ce("DPC-item"),index:a.length+1,original:f,word:f,dropped:g,missingResult:d,distractors:m})}return a}async function Wc(e){const{count:t=10}=e,n=(await _e({...e})).map(o=>o.word.w);return n.length<3?[]:Array.from({length:t},(o,r)=>{const u=Re(n,3);return{id:Ce("LRO-item"),index:r+1,sequence:u,choices:K(u)}})}function Rn(e,t,n){const o=He.filter(l=>l.w&&l.s===e),r=t.excludeNoImage?yt(o.map(l=>l.w)):null,u=Au(t),a=[];for(const l of o)if(!(r&&!r.has(l.w))&&!(u&&!u(l))){if(n){const s=X(l.w);if(!s||!n(s))continue}a.push(l)}return a}function Uc(e){const t=Rn(1,e,_n.MERGE_2_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M2P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung]],answer:n.w,word:n.w}})}function Yc(e){const t=Rn(1,e,_n.MERGE_3_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M3P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung],Oe[r.jong]],answer:n.w,word:n.w}})}function zc(e){const t=_n.DROP_FINAL_CONSONANT_FROM_1SYLL,n=Rn(t.syllables,e,t.syllable),o=Ke(),r=[];for(const u of K(n)){if(r.length>=(e.count??10))break;const a=Ji(u.w,null,o);if(!a)continue;const[l,...s]=a.distractors;r.push({id:Ce("DFC-item"),index:r.length+1,original:u.w,word:u.w,result:l,distractors:s})}return r}function Kc(e){const t=_n.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,n=Rn(t.syllables,e,t.syllable),o=Ke(),r=[];for(const u of K(n)){if(r.length>=(e.count??10))break;const a=Xi(u.w,null,o);if(!a)continue;const l=X(o.get(u.w)||u.w);if(!l)continue;const[s,...d]=a.distractors;r.push({id:Ce("RCP-item"),index:r.length+1,base:u.w,word:u.w,missingConsonant:pe[l.cho],remaining:s,distractors:d})}return r}const In=new Map;let Bu=null,vu=null,Nu=null,Ro=0;async function Ou(e,t={}){const n=Tn(),o=It(),r=t.excludeNoImage?En():null;(n!==Bu||o!==vu||t.excludeNoImage&&r!==Nu)&&(In.clear(),Ro++,Bu=n,vu=o,Nu=r);const u=`${e}:${No(t)}`;if(In.has(u))return In.get(u);const a=Ro,l=await Jc(e,t);return a===Ro&&In.set(u,l),l}const qc={SAME_SOUND_PICK:e=>Tu("SSP",e),HEAR_AND_PICK_SAME:e=>Tu("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Rc(e),SAME_OR_DIFF:e=>Ic(e),STARTS_WITH_SAME_SOUND:e=>Mc(e),LISTEN_AND_REMEMBER_ORDER:e=>Wc(e),MERGE_2_SYLLABLES:e=>jc(e),MERGE_3_SYLLABLES:e=>$c(e),MERGE_2_PHONEMES:e=>Uc(e),MERGE_3_PHONEMES:e=>Yc(e),DROP_1_FROM_2SYLL:e=>Hc(e),DROP_1_FROM_3SYLL:e=>Gc(e),DROP_PART_FROM_COMPOUND:e=>Vc(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>zc(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Kc(e),CHANGE_1_SYLL_IN_2SYLL:e=>Pc(e),CHANGE_1_SYLL_IN_3SYLL:e=>kc(e),CHANGE_1_PHONEME_IN_1SYLL:e=>xc(e),CHANGE_1_PHONEME_IN_2SYLL:e=>Fc(e)};async function Jc(e,t={}){const n=qc[e];return n?await n(t):[]}async function Xc(e){const t=["random","count"],n=Object.keys(ao);let o=0;for(const r of t)for(const u of n){const a=ao[u];Ou(u,{difficulty:a.difficulty?r:null,contrastCount:1,composition:null,count:5,excludeNoImage:e,sameStructureOnly:!0,phonemeView:"char",grade:null}).catch(()=>{}),++o%6===0&&await new Promise(l=>setTimeout(l,0))}}async function Qc(e){const t=await _e({...e,fullCount:!0}),n=e.choicesPerItem!=null?Math.max(1,e.choicesPerItem-1):1;return t.filter(o=>new Set(o.usable.map(r=>fe(r))).size>=n).length}async function Zc(e={}){const t=[];for(const l of He)l.w&&t.push(l.w);const n=e.excludeNoImage?yt(t):t,o=new Set,r=new Set,u=new Set,a=new Set;for(const l of n){a.add(Lt(l));for(const s of l){const d=X(s);if(d&&(pe[d.cho]!=="\u3147"&&o.add(pe[d.cho]),r.add(Te[d.jung]),d.jong>0)){u.add(Oe[d.jong]);const m=wn[d.jong];m&&m.forEach(f=>u.add(f))}}}return{cho:o,jung:r,jong:u,syllable:a}}const ed={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"})},td={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"})},nd={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 Lu(e,t){if("place"in t)return ed[t.place](e);const n=td[t.vowel](e);return t.glide?`${n} \xB7 ${nd[t.glide](e)}`:n}const od=(e,{defaultValue:t})=>t,Ru=(e,t)=>({jamos:e,phonetic:t,tooltip:Lu(od,t)}),Ge=(e,t)=>t.map(n=>Ru([n],{place:e})),ge=(e,t,n)=>Ru([...e],n?{vowel:t,glide:n}:{vowel:t}),Io={cho:[Ge("labial",["\u3142","\u3143","\u314D","\u3141"]),Ge("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ge("alveolar",["\u3145","\u3146"]),Ge("palatal",["\u3148","\u3149","\u314A"]),Ge("velar",["\u3131","\u3132","\u314B"]),Ge("glottal",["\u314E"])],jung:[[ge("\u3163","frontHigh"),ge("\u315F","frontHigh","w"),ge("\u3162","frontHigh","velar")],[ge("\u3161","backHighUnrounded")],[ge("\u315C","backHighRounded"),ge("\u3160","backHighRounded","j")],[ge("\u3154\u3150","frontMid"),ge("\u3156\u3152","frontMid","j"),ge("\u3159\u315A\u315E","frontMid","w")],[ge("\u3153","backMidUnrounded"),ge("\u3155","backMidUnrounded","j"),ge("\u315D","backMidUnrounded","w")],[ge("\u3157","backMidRounded"),ge("\u315B","backMidRounded","j")],[ge("\u314F","low"),ge("\u3151","low","j"),ge("\u3158","low","w")]],jong:[Ge("labial",["\u3142","\u3141"]),Ge("alveolar",["\u3137","\u3134","\u3139"]),Ge("velar",["\u3131","\u3147"])]},rd=[...pe],ud=[...Te],ad=Oe.filter(e=>e!==""),Ve=e=>e===xe?[]:Array.from(e),xe="__NO_CODA__",Iu=[1,2,3,4],Fe=5,ld=12,Mu="SYL_",Mo=e=>`${Mu}${e}`,id=e=>Number(e.slice(Mu.length));function Po(e){return e>=Fe?Array.from({length:ld-Fe+1},(t,n)=>Fe+n):[e]}const Pu={cho:rd,jung:ud,jong:ad},ko=e=>e.map(t=>t.map(({jamos:n,phonetic:o,tooltip:r})=>({v:n.join(""),phonetic:o,tooltip:r}))),xo={cho:ko(Io.cho),jung:ko(Io.jung),jong:ko(Io.jong)},ku={};xo.jung.flat().forEach(({v:e})=>{for(const t of Ve(e))ku[t]=e});const sd=new Set(xo.cho.flat().map(e=>e.v));function xu(e,t){return e==="cho"?sd.has(t)?t:null:e==="jung"?ku[t]??t:Ot(t)}function Fu(e,t,n){if(e==="jung"){const o=Ve(t);return n&&o.includes(n)?n:o[0]??t}return e==="jong"&&n&&Ot(n)===t?n:t}function ju(e,t,n,o){const r=(u,a)=>a?u==="jong"&&a===xe?xe:t==="pron"?xu(u,a):Fu(u,a,u==="jung"?n:u==="jong"?o:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const Fo={cho:null,jung:null,jong:null,syllable:null};function cd(e){const{caps:t,difficulty:n,contrastCount:o,composition:r,phonemeView:u,excludeNoImage:a,sameStructureOnly:l,gradeFilter:s}=e,{i18n:d}=Le.useTranslation(),[m,f]=c.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[g,p]=c.useState(!1),[h,w]=c.useState(null),[b,y]=c.useState(0);oo("wordpool:update",()=>y(E=>E+1)),oo(Hr,()=>y(E=>E+1));const S=c.useRef(d.language);return c.useEffect(()=>{S.current!==d.language&&(S.current=d.language,y(E=>E+1))},[d.language]),c.useEffect(()=>{if(!t.choseong)return;let E=!1;return Zc({difficulty:n,excludeNoImage:a}).then(A=>{E||(f(A),p(A.cho.size+A.jung.size+A.jong.size>0))}).catch(()=>{E||(f({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),p(!1))}),()=>{E=!0}},[t.choseong,n,a,b]),c.useEffect(()=>{let E=!1;const A=r,v=A.cho?Ve(A.cho):null,L=A.jung?Ve(A.jung):null,B=A.jong===xe,I=B?null:A.jong?Ve(A.jong):null,P=A.syllable!=null?Po(A.syllable):null,O=!!(v||L||I||B||P);return Qc({difficulty:t.difficulty?n:null,contrastCount:t.difficulty?o:1,composition:t.choseong&&O?{cho:v,jung:L,jong:I,jongNone:B,syllable:P}:null,excludeNoImage:a,sameStructureOnly:l,phonemeView:u==="pron"?"pron":"char",grade:s.length>0?s:null}).then(G=>{E||w(G)}).catch(()=>{E||w(null)}),()=>{E=!0}},[t.choseong,t.difficulty,n,o,r,u,a,l,b,s]),{viable:m,viableReady:g,wordCount:h,poolVersion:b}}function $u(){const{t:e}=Le.useTranslation();return c.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function Hu(e,t,n){const o=Eo(n?.bands);return o?{label:t.difficulty,items:gu(o).map(r=>dd(e,r,o)),multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:jo(e,o)}}:{label:t.difficulty,items:[...[3,4,5,6,7].map(r=>e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})),...[2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:[e("wordSearch.filter.difficultyInfoAge","3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoGrade","2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}}}function dd(e,t,n){const o=n.find(a=>a.label&&String(a.grade)===t)?.label;if(o)return o;const r=cu(t);if(r!=null)return e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`});const u=wo(t);return u!=null?e("wordSearch.filter.agePlus",{n:u,defaultValue:`${u}\uC138 \uC774\uC0C1`}):e("wordSearch.filter.grade",{n:Number(t),defaultValue:`${t}\uB4F1\uAE09`})}function jo(e,t){const n=t.some(r=>r.label);return t.flatMap(r=>{const u=r.showAge?Gt(r):r.minAge,a=r.maxAge==null?e("wordSearch.filter.agePlus",{n:u,defaultValue:`${u}\uC138 \uC774\uC0C1`}):u===r.maxAge?e("wordSearch.filter.age",{n:u,defaultValue:`${u}\uC138`}):e("wordSearch.filter.ageRange",{from:u,to:r.maxAge,defaultValue:`${u}\uC138~${r.maxAge}\uC138`}),l=r.showAge&&r.fromAge!=null?[e("wordSearch.filter.difficultyInfoAgeFloor",{n:r.fromAge,defaultValue:`${r.fromAge}\uC138: ${r.fromAge}\uC138\uBCF4\uB2E4 \uC5B4\uB9B0 \uB0B1\uB9D0\uB3C4 \uD568\uAED8 \uB4ED\uB2C8\uB2E4.`})]:[];return[o(r,a,u),...l]});function o(r,u,a){const l=r.label??e("wordSearch.filter.grade",{n:r.grade,defaultValue:`${r.grade}\uB4F1\uAE09`});return r.showAge?n?e("wordSearch.filter.difficultyInfoBandAgeNamed",{ages:u,defaultValue:`${u}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):r.maxAge!=null&&r.maxAge>a?e("wordSearch.filter.difficultyInfoBandAge",{grade:l,ages:u,defaultValue:`${u}: ${l} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandAgeOne",{grade:l,ages:u,defaultValue:`${u}: ${l} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandGrade",{grade:l,ages:u,defaultValue:`${l}: ${u} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`})}}function Gu(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Vu(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function fd(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function gd(e,t){const n=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"),e("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&n.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:n,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function md(e,t){const{label:n,headValue:o,midValue:r,tailValue:u,includeMid:a=!0,headDisabled:l,midDisabled:s,tailDisabled:d,allOptionDisabled:m,groupLabel:f,labelAction:g}=t;return{label:n,...f?{groupLabel:f}:{},...g?{labelAction:g}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:o,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:l},...a?[{value:r,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:s}]:[],{value:u,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function pd(e,t,n){const o=Wt(n),r=o&&t!==ke?ot(o,t):null;if(o&&(t===ke||r)){const l={},s={};for(const[p,h]of Object.entries(e))(Wt(p)===o?s:l)[p]=h;if(t===ke)return l;const d=_o(s)[o]??[],m=d.includes(r)?d.filter(p=>p!==r):[...d,r];if(m.length===0)return l;const f=Do({[o]:m},Bc(n)),g=Object.values(f)[0]??[];return{...l,[n]:g}}if(t===ke){const{[n]:l,...s}=e;return s}const u=e[n]??[],a=u.includes(t)?u.filter(l=>l!==t):[...u,t];if(a.length===0){const{[n]:l,...s}=e;return s}return{...e,[n]:a}}Object.fromEntries(Object.entries(uo).map(([e,{nucleus:t}])=>[e,t]));const Cd={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},hd={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},yd={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",posMap:hd,typeMap:Cd},Wu=new WeakMap;function bd(e,t){const n=Wu.get(e);if(n&&n.keys===t)return n.value;const o={grades:[],syls:[],poses:[],types:[],fields:[],highUsage:!1},r={grade:o.grades,syllables:o.syls,pos:o.poses,wordType:o.types,field:o.fields};for(const[u,a]of Object.entries(e??{})){const l=Array.isArray(a)?a:typeof a=="string"?[a]:[];!o.highUsage&&l.some(Ac)&&(o.highUsage=!0);const s=u===t.difficulty?"grade":u===t.syllables?"syllables":u===t.partOfSpeech?"pos":u===t.wordType?"wordType":u===t.field?"field":Wt(u);if(s)for(const d of l)r[s].includes(d)||r[s].push(d)}return Wu.set(e,{keys:t,value:o}),o}function Sd(e,t,n=yd){const{grades:o,syls:r,poses:u,types:a,highUsage:l}=bd(t,n);if(l&&e.usage!==!0)return!1;if(o.length){const s=o.map(d=>ot("grade",d)??d.replace(/\D/g,"")).filter(d=>d!=="");if(s.length===0||!bo(s,e.grade,e.age))return!1}if(r.length){const s=e.syllables??0;if(!r.some(d=>{const m=d===n.syllable5plus?"5+":ot("syllables",d);return m==="5+"?s>=5:s===parseInt(m??d)}))return!1}return!(u.length&&!u.flatMap(s=>n.posMap[s]??yc[ot("pos",s)??""]??[s]).some(s=>(e.pos??"").includes(s))||a.length&&!a.some(s=>e.wordType===(n.typeMap[s]??bc[ot("wordType",s)??""])))}const Uu=["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"];function Yu(e){const t=e("wordPairs.filter.difficultyInfo",{returnObjects:!0,defaultValue:Uu});return Array.isArray(t)&&t.length>0&&t.every(n=>typeof n=="string")?t:Uu}function wd(e){return{composition:e("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:e("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:e("wordPairs.onset","\uCD08\uC131"),vowel:e("wordPairs.vowel","\uBAA8\uC74C"),coda:e("wordPairs.coda","\uC885\uC131"),phonemeGroup:e("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:e("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:e("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:e("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:e("training.filter.random","\uBB34\uC791\uC704"),exclude:e("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:e("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:e("common.none","\uC5C6\uC74C"),noImage:e("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:e("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:e("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:e("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:e("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:e("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4"})}}function Ed(e){const{caps:t,t:n,attrKeys:o,labels:r,phonemeView:u,viable:a,partViable:l,syllableViable:s,minSyllables:d,gradeBands:m}=e,f=Eo(m),g=(w,b)=>({title:b,items:w}),p=[n("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),n("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],h=[];if(t.choseong){const w={value:xe,displayLabel:r.codaExclude},b=t.fixedNoCoda===!0,y=(S,E)=>{const A=b&&S==="jong",v={label:E,groupLabel:r.phonemeGroup,allOption:!t.requireSyllable,allLabel:r.noLimit,allOptionDisabled:A};if(u==="pron"){const B=xo[S].map(I=>I.map(({v:P,phonetic:O})=>{const G=Ve(P),Y=Lu(n,O),W=A||!G.some(k=>a[S].has(k));return G.length>1?{value:P,labels:G,tooltip:Y,disabled:W}:{value:P,tooltip:Y,disabled:W}}));return S==="jong"&&!t.requireCoda&&B.unshift([w]),{...v,groups:B}}const L=Pu[S].map(B=>!A&&l[S].has(B)?B:{value:B,disabled:!0});return{...v,items:S==="jong"&&!t.requireCoda?[w,...L]:L}};h.push(y("cho",r.trainOnset)),h.push(y("jung",r.trainVowel)),h.push(y("jong",r.trainCoda))}if(h.push({...Hu(n,o,{bands:m,labelInfo:g(f?jo(n,f):Yu(n))}),label:r.gradeLabel}),t.partOfSpeech&&h.push(Gu(o)),t.wordType&&h.push(Vu(o)),t.choseong||t.fixedSyllable!=null){const w=t.fixedSyllable;h.push({label:r.syllableCount,items:[...Iu.map(b=>({value:Mo(b),displayLabel:n("wordPairs.syllableN",{n:b,defaultValue:"{{n}}\uC74C\uC808"}),disabled:w!=null?b!==w:!s.exact.has(b)||b<d})),{value:Mo(Fe),displayLabel:n("wordPairs.syllableNPlus",{n:Fe,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:w!=null?Fe!==w:!s.min}],allOption:!0,allOptionDisabled:w!=null})}return t.choseong?h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage,r.sameStructure],labelInfo:g(p)}):h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage],labelInfo:g([p[0]])}),h}const $o=e=>Array.isArray(e)?e.filter(yo):[],Ad="wt_filter",zu=e=>`wt_filter_${e}`,Ho=["noun","verb","modifier"],Go=["native","sino","foreign","mixed"];function Ku(e,t,n,o,r){if(!Array.isArray(e))return[];const u=[];for(const a of e){if(typeof a!="string")continue;const l=t.includes(a)?a:t.find(s=>r.some(d=>o(d,n(s))===a));l&&!u.includes(l)&&u.push(l)}return u}function qu(e){try{const t=localStorage.getItem(zu(e))??localStorage.getItem(Ad);if(t)return JSON.parse(t)}catch{}return null}function Ju(e){const t=e?.phonemeView;return t==="pron"?"pron":t==="direct"?"direct":"char"}function Td(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...Fo,cho:t.choseong}:Fo}function _d(e,t,n){const{t:o,i18n:r}=Le.useTranslation(),u=JSON.stringify(n?.gradeBands??null),a=c.useMemo(()=>JSON.parse(u),[u]),l=c.useMemo(()=>Eo(a),[a]),s=c.useCallback(_=>l?fu(_,l):_,[l]),[d]=c.useState(()=>n?.resetOnMount?null:qu(e)),[m,f]=c.useState(Ju(d)),[g,p]=c.useState(()=>Td(d)),h=c.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:xe,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?xe:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);c.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||p(_=>_.cho||_.jung||_.syllable!=null||_.jong?_:h())},[]);const w=c.useMemo(()=>de(g.cho)||de(g.jung)||de(g.jong)?"count":"random",[g.cho,g.jung,g.jong]),b=c.useRef(m==="char"?g.jung:null),y=c.useRef(m==="char"?g.jong:null);c.useEffect(()=>{m==="char"&&(b.current=g.jung,y.current=g.jong)},[m,g.jung,g.jong]);const[S,E]=c.useState(n?.resetOnMount?!!n?.defaultImageOnly:d?.excludeNoImage??!0),[A,v]=c.useState(n?.resetOnMount?!1:d?.sameStructureOnly??!0),[L,B]=c.useState($o(d?.gradeFilter)),I=Array.from(new Set([r.language,"ko","en"].filter(Boolean))),P=(_,ne)=>r.getFixedT(_)(ne),O=_=>Ku(_,Ho,ne=>`wordSearch.filter.pos.${ne}`,P,I),G=_=>Ku(_,Go,ne=>`wordSearch.filter.type.${ne}`,P,I),[Y,W]=c.useState(()=>O(d?.posFilter)),[k,x]=c.useState(()=>G(d?.wordTypeFilter)),q=c.useRef(n?.resetKey);c.useEffect(()=>{q.current!==n?.resetKey&&(q.current=n?.resetKey,p(h()),E(!!n?.defaultImageOnly),v(!1),B([]),W([]),x([]))},[n?.resetKey]);const Q=$u(),ce=c.useMemo(()=>Object.keys(Q.posMap),[Q]),Ae=c.useMemo(()=>Object.keys(Q.typeMap),[Q]),R=c.useMemo(()=>Y.map(_=>ce[Ho.indexOf(_)]).filter(Boolean),[Y,ce]),j=c.useMemo(()=>k.map(_=>Ae[Go.indexOf(_)]).filter(Boolean),[k,Ae]),F=1,U=Math.max(1,[g.cho,g.jung,g.jong].filter(Boolean).length),[H,je]=c.useState(e);c.useEffect(()=>{if(H!==e){if(!n?.resetOnMount){const _=qu(e);p(_?.composition??h()),E(_?.excludeNoImage??!0),v(_?.sameStructureOnly??!0),f(Ju(_)),B($o(_?.gradeFilter)),W(O(_?.posFilter)),x(G(_?.wordTypeFilter))}je(e)}},[e,H,n?.resetOnMount]),c.useEffect(()=>{if(!n?.resetOnMount&&H===e)try{localStorage.setItem(zu(e),JSON.stringify({contrastCount:U,composition:g,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}))}catch{}},[n?.resetOnMount,e,H,U,g,S,A,m,L,Y,k]);const{viable:me,viableReady:Ue,wordCount:lt,poolVersion:Vn}=cd({caps:t,difficulty:w,contrastCount:U,composition:g,phonemeView:m,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L});c.useEffect(()=>{Ue&&p(_=>{const ne={..._};let V=!1;return["cho","jung","jong"].forEach(J=>{const be=_[J];!be||be===xe||Ve(be).some(Ne=>me[J].has(Ne))||(ne[J]=null,V=!0)}),_.syllable!=null&&t.fixedSyllable==null&&(_.syllable>=Fe?[...me.syllable].some(J=>J>=Fe)||(ne.syllable=null,V=!0):(!me.syllable.has(_.syllable)||_.syllable<F)&&(ne.syllable=null,V=!0)),V?ne:_})},[me,Ue,F,t.fixedSyllable]);const un=c.useMemo(()=>{const _=ne=>{const V=new Set;for(const J of Pu[ne])me[ne].has(J)&&V.add(J);return V};return{cho:_("cho"),jung:_("jung"),jong:_("jong")}},[me]),Et=c.useMemo(()=>({exact:new Set(Iu.filter(_=>me.syllable.has(_))),min:[...me.syllable].some(_=>_>=Fe)}),[me]),oe=c.useMemo(()=>wd(o),[o]),At=c.useMemo(()=>({[oe.trainOnset]:"cho",[oe.trainVowel]:"jung",[oe.trainCoda]:"jong"}),[oe]),Z=c.useMemo(()=>Ed({caps:t,t:o,attrKeys:Q,labels:oe,phonemeView:m,viable:me,partViable:un,syllableViable:Et,minSyllables:F,gradeBands:a}),[t,o,Q,oe,m,me,un,Et,F,a]),Tt={...(t.choseong||t.fixedSyllable!=null)&&g.syllable!=null?{[oe.syllableCount]:Mo(g.syllable)}:{},...t.choseong&&g.cho?{[oe.trainOnset]:g.cho}:{},...t.choseong&&g.jung?{[oe.trainVowel]:g.jung}:{},...t.choseong&&g.jong?{[oe.trainCoda]:g.jong}:{},[oe.exclude]:[...S?[oe.excludeImage]:[],...A?[oe.sameStructure]:[]],[oe.gradeLabel]:s(L).map(_=>Tc("grade",_)),...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},ee=c.useCallback((_,ne)=>{if(ne===oe.exclude)_===oe.excludeImage?E(V=>!V):_===oe.sameStructure&&v(V=>!V);else if(ne===oe.syllableCount)p(V=>{if(!_||_===ke)return{...V,syllable:null};const J=id(_);return{...V,syllable:V.syllable===J?null:J}});else if(ne===oe.gradeLabel){if(!_||_===ke){B([]);return}const V=ot("grade",_);if(V==null)return;B(J=>{const be=s(J);return be.includes(V)?be.filter(Ne=>Ne!==V):[...be,V]})}else if(ne===Q.partOfSpeech){if(!_||_===ke){W([]);return}const V=Ho[ce.indexOf(_)]??O([_])[0];if(!V)return;W(J=>J.includes(V)?J.filter(be=>be!==V):[...J,V])}else if(ne===Q.wordType){if(!_||_===ke){x([]);return}const V=Go[Ae.indexOf(_)]??G([_])[0];if(!V)return;x(J=>J.includes(V)?J.filter(be=>be!==V):[...J,V])}else{const V=At[ne];if(!V)return;p(J=>t.requireSyllable?_&&_!==ke?{...J,[V]:_}:J:!_||_===ke||J[V]===_?{...J,[V]:null}:{...J,[V]:_})}},[oe,At,Q,ce,Ae,t.requireSyllable,s]),_t=c.useCallback(_=>!t.partOfSpeech&&!t.wordType?!0:Sd(_,{...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},Q),[t.partOfSpeech,t.wordType,R,j,Q]),ve=c.useCallback(_=>{_!==m&&(_!=="direct"&&m!=="direct"&&p(ne=>ju(ne,_,b.current,y.current)),f(_))},[m]),Je=c.useCallback(()=>({composition:g,contrastCount:U,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}),[g,U,S,A,m,L,Y,k]),an=c.useCallback(_=>{p(_.composition),E(_.excludeNoImage),v(_.sameStructureOnly??!0),f(_.phonemeView),B($o(_.gradeFilter)),Array.isArray(_.posFilter)&&W(O(_.posFilter)),Array.isArray(_.wordTypeFilter)&&x(G(_.wordTypeFilter))},[]);return{difficulty:w,contrastCount:U,composition:g,choseong:g.cho,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L,posFilter:R,wordTypeFilter:j,matchesWordAttributes:_t,poolVersion:Vn,filterSections:Z,filterSelected:Tt,handleFilterSelect:ee,phonemeView:m,setPhonemeView:ve,phonemeGroupLabel:oe.phonemeGroup,wordCount:lt,getFilterSnapshot:Je,restoreFilterSnapshot:an}}function Dd(e){const t=l=>l?Ve(l):null,n=t(e.cho),o=t(e.jung),r=e.jong===xe,u=r?null:t(e.jong),a=e.syllable!=null?Po(e.syllable):null;return!n&&!o&&!u&&!r&&!a?null:{cho:n,jung:o,jong:u,jongNone:r,syllable:a}}function Bd(e,t,n,o,r,u,a=!0,l="char",s=[]){const[d,m]=c.useState({}),[f,g]=c.useState(!1),{cho:p=null,jung:h=null,jong:w=null,syllable:b=null}=o??{},y=s.length>0?s.slice().sort().join(","):"",S=e.map(A=>A.key).join("|");c.useEffect(()=>{u>0&&Xc(r).catch(()=>{})},[u,r]),c.useEffect(()=>{let A=!1;return g(!0),(async()=>{const v=Dd({cho:p,jung:h,jong:w,syllable:b}),L=`${p??""}_${h??""}_${w??""}_${b??""}_${y}`,B={};await Promise.all(e.map(async I=>{const P=ao[I.key];try{const O=await Ou(I.key,{difficulty:P.difficulty?t:null,contrastCount:P.difficulty?n:1,composition:P.choseong?v:null,count:5,excludeNoImage:r,sameStructureOnly:a,phonemeView:l,grade:s.length>0?s:null});O&&O.length>0?B[I.key]={id:`wt-${I.key}-${t}-${L}-${Date.now()}`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:O,itemCount:O.length}:B[I.key]={id:`wt-${I.key}-empty`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:[],itemCount:0,__empty:!0}}catch{B[I.key]=null}})),A||(m(B),g(!1))})(),()=>{A=!0}},[t,n,p,h,w,b,r,a,l,u,y,S]);const E=JSON.stringify(e.map(A=>[A.key,A.label,A.color,A.subTitle]));return{perTypeData:c.useMemo(()=>{const A={};for(const[v,L]of Object.entries(d)){const B=e.find(I=>I.key===v);A[v]=L&&B?{...L,name:B.label,iconColor:B.color,subTitle:B.subTitle}:L}return A},[d,E]),generating:f}}const Yt=[],zt=[],Kt=[],qt=[],Mn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Pn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},vd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let Vo=null,Xu=null,We=null;function Nd({counts:e,forceRefresh:t}={}){const n=Object.assign({},vd,e||{}),o=vt(),r=Nt(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),u=JSON.stringify(n);if(!t&&Xu===o&&Vo===u&&We)return Object.assign(Mn,We.today),Object.assign(Pn,We.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:Mn,yesterday:Pn};const a={LISTEN_IN_NOISE:$e(Yt,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(zt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(Kt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(qt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))};let l=null;return We&&Vo===u&&We.yesterday&&We.yesterday.date===r&&(l=We.yesterday.selection),l||(l={LISTEN_IN_NOISE:$e(Yt,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(zt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(Kt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(qt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))}),Object.assign(Mn,a),Object.assign(Pn,l),Xu=o,Vo=u,We={today:a,yesterday:{date:r,countsKey:u,selection:l}},{today:Mn,yesterday:Pn}}let Wo=!1,Jt=null;async function Od(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:no&&no.tagName.toUpperCase()==="SCRIPT"&&no.src||new URL("hooks.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Ld(){if(!Wo)return Jt||(Jt=(async()=>{const e=await Od();if(!e){Jt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const t={noise:[],short:[],long:[],order:[]};try{if(typeof e!="object"||Array.isArray(e))throw new Error("Invalid training data map");for(const n of Object.keys(e)){const o=e[n];if(!Array.isArray(o))throw new Error("Invalid training data group");for(const r of o){if(!r||typeof r!="object")continue;const u=r,a=String(u.training_type||n),l=String(u.category_main_code||u.category_main||u.category_0||""),s=String(u.category_sub_code||u.category_sub||u.category_1||""),d=Object.assign({},u,{training_type:a,category_0:l,category_1:s});a==="LISTEN_IN_NOISE"?t.noise.push(d):a==="SHORT_STORY"?t.short.push(d):a==="LONG_STORY"?t.long.push(d):a==="ORDERING_SENTENCE"&&t.order.push(d)}}}catch{Jt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}Yt.push(...t.noise),zt.push(...t.short),Kt.push(...t.long),qt.push(...t.order),Wo=!0,We=null;try{Nd()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),Jt)}async function Rd(e=3e3){const t=Ld();let n;try{await Promise.race([t,new Promise(o=>{n=setTimeout(o,e)})])}finally{n!==void 0&&clearTimeout(n)}return Wo}function Qu(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Id(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let n=Math.imul(t^t>>>15,1|t);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const Md=$e,Pd=e=>{const[t,n,o]=e.split("-").map(Number);return Math.round(Date.UTC(t,(n||1)-1,o||1)/864e5)},kd=(e,t)=>{const n=e??{};return String(n.id??n.name??t)};function kn(e,t,n,o,r){if(!e.length||t<=0)return[];const u=Id(Qu(`${n}|${o}|${r}`)),a=Pd(o)&1,l=e.filter((d,m)=>(Qu(`${n}|${r}|${kd(d,m)}`)>>>7&1)===a),s=l.length>=t&&e.length-l.length>=t;return Md(s?l:e,t,u)}function Uo(e,t,n){const o=r=>Math.max(0,e[r]||0);return{LISTEN_IN_NOISE:kn(Yt,o("LISTEN_IN_NOISE"),t,n,"LISTEN_IN_NOISE"),SHORT_STORY:kn(zt,o("SHORT_STORY"),t,n,"SHORT_STORY"),LONG_STORY:kn(Kt,o("LONG_STORY"),t,n,"LONG_STORY"),ORDERING_SENTENCE:kn(qt,o("ORDERING_SENTENCE"),t,n,"ORDERING_SENTENCE")}}function Yo(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const xd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function zo(e=!1,t=xd,n){const o=Date.now(),r=Nt(o),u=Nt(o-864e5),a=n??"";return Yt.length>0||zt.length>0||Kt.length>0||qt.length>0?{today:Uo(t,a,r),yesterday:Uo(t,a,u)}:{today:Uo(t,a,r),yesterday:null}}function Fd(e){const t=c.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),n=c.useRef(null),[o,r]=c.useState(!1),[u,a]=c.useState(!1),[l,s]=c.useState(0),[d,m]=c.useState(!1),[f,g]=c.useState(()=>vt()),p=JSON.stringify([e??"",f]),h=c.useRef(null),w=c.useRef(p);c.useEffect(()=>{const y=()=>{const E=Date.now(),A=new Date(E+9*36e5),v=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()+1)-9*36e5;return Math.max(1e3,v-E+1e3)};let S=setTimeout(function E(){g(vt()),S=setTimeout(E,y())},y());return()=>clearTimeout(S)},[]),c.useEffect(()=>{w.current=p,h.current=null,r(!1),m(!1);let y=!1,S=!1,E=!1,A,v=0,L=null,B=0;const I=40,P=()=>{A!==void 0&&(clearInterval(A),A=void 0)};let O=!1;try{const x=new URLSearchParams(window.location.search),q=x.get("forceRefresh")||x.get("force");O=q==="1"||q==="true"}catch{}const G=x=>{S||(E=!0,h.current=p,t.current=x.today,n.current=x.yesterday,r(!0),m(!0),s(q=>q+1),y=!0,P())},Y=async()=>{if(y)return;if(!O){const q=zo(!1,void 0,e);if(Yo(q.today)){G(q);return}}if(L){++v>=I&&W();return}if(v>=B){B=v+8,L=Rd(3e3).catch(()=>!1);try{await L}finally{L=null}if(y)return}const x=zo(O,void 0,e);if(Yo(x.today)){G(x);return}++v>=I&&W()};function W(){r(!0),m(!1),y=!0,P()}const k=()=>{if(S||E)return;const x=zo(O,void 0,e);Yo(x.today)&&G(x)};try{window.addEventListener("speechear.data.updated",k)}catch{}return A=setInterval(Y,250),Y(),()=>{y=!0,S=!0,P();try{window.removeEventListener("speechear.data.updated",k)}catch{}}},[e,f]);const b=c.useCallback(y=>{if(h.current!==p)return;const S=u?n.current:t.current,E=u?t.current:n.current;return S?.[y]?.length?S[y]:E?.[y]?.length?E[y]:void 0},[u,l,p]);return{loaded:w.current===p&&o,hasData:w.current===p&&d,showYesterday:u,setShowYesterday:a,getTrainingPerType:b}}const bt=[];let xn=!1;function Zu(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=bt[bt.length-1];t&&(e.stopPropagation(),t())}function ea(e){return bt.push(e),!xn&&typeof document<"u"&&(document.addEventListener("keydown",Zu),xn=!0),()=>{const t=bt.lastIndexOf(e);t>=0&&bt.splice(t,1),bt.length===0&&xn&&typeof document<"u"&&(document.removeEventListener("keydown",Zu),xn=!1)}}function jd(e,t=!0){const n=Sn(e);c.useEffect(()=>{if(t)return ea(()=>{n.current?.()})},[t,n])}const Ko=(e,t)=>`${e}:${t??1}`,Xt=new Map,qo=new Set,Jo=new Map,Fn=6e4;function $d(e,t){const[n,o]=c.useState(0),[r,u]=c.useState(0),a=JSON.stringify(Array.from(new Set(e.map(l=>Ko(l.word,l.homonum)))).sort());return c.useEffect(()=>{const l=JSON.parse(a),s=Date.now(),d=l.filter(w=>!Xt.has(w)&&!qo.has(w)&&!(s-(Jo.get(w)??-1/0)<Fn));let m=!1,f=null,g=1/0;const p=(w=Fn)=>{if(m)return;const b=Date.now()+w;b>=g||(f!==null&&clearTimeout(f),g=b,f=setTimeout(()=>u(y=>y+1),w))};for(const w of l){if(Xt.has(w)||qo.has(w))continue;const b=Jo.get(w);b!=null&&s-b<Fn&&p(Math.max(0,Fn-(s-b)))}if(d.length===0)return()=>{m=!0,f!==null&&clearTimeout(f)};const h=Array.from(new Set(d.map(w=>w.slice(0,w.lastIndexOf(":")))));return Promise.resolve().then(()=>t(h)).then(w=>{for(const b of w)b.Meaning&&Xt.set(Ko(b.Word,b.Homonum??void 0),b.Meaning);if(w.length>0)for(const b of d)Xt.has(b)||qo.add(b);else{const b=Date.now();for(const y of d)Jo.set(y,b);p()}m||w.length===0||o(b=>b+1)}).catch(()=>{p()}),()=>{m=!0,f!==null&&clearTimeout(f)}},[a,t,r]),c.useMemo(()=>{const l=JSON.parse(a),s=new Map;for(const d of l){const m=Xt.get(d);m!=null&&s.set(d,m)}return s},[a,n])}function Hd(){const[e,t]=c.useState(null),n=c.useCallback(u=>t(u.getBoundingClientRect()),[]),o=c.useCallback(()=>t(null),[]),r=c.useCallback(u=>{const a=u.getBoundingClientRect();t(l=>l?null:a)},[]);return{anchorRect:e,isOpen:e!=null,openAt:n,close:o,toggleAt:r}}function Gd(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),u=c.useRef(null);c.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const a=c.useCallback((s,d)=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{n(s),r(d)},e)},[e]),l=c.useCallback(()=>{u.current&&clearTimeout(u.current),n(null),r(null)},[]);return{payload:t,anchorRect:o,openAfterDelay:a,close:l}}function Vd(e,t,n){const o=Number.isFinite(t)&&t>=1?Math.floor(t):1,r=Math.max(1,Math.ceil(e.length/o)),u=Number.isFinite(n)?Math.min(Math.max(1,Math.floor(n)),r):1;return{pageItems:c.useMemo(()=>e.slice((u-1)*o,u*o),[e,u,o]),totalPages:r,curPage:u}}function ta(e,t){const[n,o]=c.useState(e);n!==e&&(o(e),t(1))}function Wd(e={}){const{defaultPageSize:t="25",resetOn:n}=e,[o,r]=c.useState(""),[u,a]=c.useState(t),[l,s]=c.useState(1),d=g=>{const p=Number(g);return Number.isFinite(p)&&p>=1?Math.floor(p):null},m=d(t)??25,f=d(u)??m;return ta(JSON.stringify([o,u,...n??[]]),s),{query:o,setQuery:r,pageSize:u,setPageSize:a,perPage:f,page:l,setPage:s}}function Ud(e="warning"){const[t,n]=c.useState(""),[o,r]=c.useState(e),[u,a]=c.useState(0),l=c.useCallback((f,g)=>{r(g),n(f),a(p=>p+1)},[]),s=c.useCallback(f=>l(f,"warning"),[l]),d=c.useCallback(f=>l(f,"normal"),[l]),m=c.useCallback(()=>n(""),[]);return{toastMessage:t,toastType:o,toastKey:u,showToast:l,showWarning:s,showNormal:d,clearToast:m}}const Yd=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],zd={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Kd(e){return Yd.map(t=>{const n=zd[t.key];return n?{...t,label:e(`trainingType.${n}.title`),desc:e(`trainingType.${n}.desc`)}:t})}const Qt={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},Zt=Qt.blue,jn=Qt.green,en=Qt.amber,$n=Qt.purple,qd=Qt.pink,Jd=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:Zt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:Zt,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:Zt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:Zt,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:Zt,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:jn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:jn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:jn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:jn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:en,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:en,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:en,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:en,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:en,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:$n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:$n,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:$n,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:$n,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:qd,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Xd(){const{t:e}=Le.useTranslation();return c.useMemo(()=>{const t=Object.fromEntries(Kd(e).map(o=>[o.key,o.label])),n={...t};return Jd.flatMap(o=>o.types).forEach(o=>{n[o.key]=e(`trainingType.${o.key}.label`,{defaultValue:o.label})}),{sentence:t,all:n}},[e])}function Qd({computeStyle:e,onScroll:t="close",onResize:n="close",ignoreOutsideClickSelector:o}){const[r,u]=c.useState(!1),[a,l]=c.useState({position:"fixed"}),s=c.useRef(null),d=c.useRef(null),m=c.useCallback(()=>{s.current&&l(e(s.current.getBoundingClientRect(),s.current))},[e]);c.useLayoutEffect(()=>{r&&m()},[r,m]),c.useEffect(()=>{if(!r)return;let p=d.current?.offsetHeight??0;p>0&&m();let h=0,w=null;typeof ResizeObserver<"u"&&d.current&&(w=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==p){if(p=B,++h>4){w?.disconnect(),w=null;return}m()}}),w.observe(d.current));const b=B=>{const I=B.target;o&&I.closest?.(o)||s.current?.contains(I)||d.current?.contains(I)||u(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);let y=null;const S=()=>{if(typeof requestAnimationFrame>"u"){m();return}y===null&&(y=requestAnimationFrame(()=>{y=null,m()}))},E=B=>{d.current?.contains(B.target)||(t==="reposition"?S():t==="close"&&u(!1))};t!=="ignore"&&window.addEventListener("scroll",E,!0);const A=()=>{n==="reposition"?S():n==="close"&&u(!1)};let v=null;const L=()=>{A(),v&&clearTimeout(v),v=setTimeout(()=>{v=null,n==="reposition"&&m()},250)};return n!=="ignore"&&(window.addEventListener("resize",A),window.addEventListener("orientationchange",L)),()=>{y!==null&&cancelAnimationFrame(y),w?.disconnect(),document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",E,!0),n!=="ignore"&&(window.removeEventListener("resize",A),window.removeEventListener("orientationchange",L)),v&&clearTimeout(v)}},[r,m,t,n,o]),c.useEffect(()=>{if(r)return ea(()=>u(!1))},[r]);const f=c.useCallback(()=>u(p=>!p),[]),g=c.useCallback(()=>u(!1),[]);return{open:r,setOpen:u,toggle:f,close:g,style:a,triggerRef:s,menuRef:d}}function Zd(e,{mode:t="playback",autoStart:n=!1,onPlaySpeaker:o,onComplete:r,playMs:u=1100,feedbackMs:a=1500}={}){const[l,s]=c.useState([]),[d,m]=c.useState(0),[f,g]=c.useState("idle"),[p,h]=c.useState(null),[w,b]=c.useState([]),[y,S]=c.useState(null),[E,A]=c.useState(0),v=c.useRef(0),L=c.useCallback(F=>{v.current=typeof F=="function"?F(v.current):F,A(v.current)},[]),B=c.useRef(o),I=c.useRef(r);c.useEffect(()=>{B.current=o,I.current=r},[o,r]);const P=c.useRef([]),O=()=>{P.current.forEach(clearTimeout),P.current=[]},G=(F,U)=>{P.current.push(setTimeout(U,F))};c.useEffect(()=>()=>O(),[]);const Y=l[d]?.id??null,W=c.useRef(null),k=c.useCallback(()=>{O(),g("playing"),b([]),S(null),L(0);let F=0;e.forEach((U,H)=>{G(F,()=>{m(H),h(U.id),B.current?.(U)}),G(F+1e3,()=>{h(null),b(je=>[...je,U.id])}),F+=1300}),G(F,()=>{g("done"),I.current?.({score:0,total:e.length})})},[e,L]),x=c.useCallback((F,U)=>{if(U>=F.length){g("done"),I.current?.({score:v.current,total:F.length});return}W.current=null,m(U),S(null),g("playing"),h(F[U].id),B.current?.(F[U]),G(u,()=>{h(null),g("waiting")})},[u]),q=c.useCallback(()=>{O();const F=K(e);s(F),L(0),b([]),x(F,0)},[e,x,L]),Q=c.useCallback(()=>{t==="playback"?(s(e),k()):q()},[t,e,k,q]),ce=c.useCallback(()=>{O(),g("idle"),h(null),b([]),S(null),m(0),L(0),s([])},[L]),Ae=JSON.stringify(e.map(F=>[F.id,F.label,F.angleDeg,F.deg,F.row,F.shortcut]));c.useEffect(()=>(n?Q():ce(),()=>O()),[t,Ae,n]);const R=c.useCallback(F=>{f!=="waiting"||t==="playback"||W.current===d||(W.current=d,S(F),F===l[d]?.id&&L(U=>U+1),t==="exam"?(g("playing"),G(400,()=>x(l,d+1))):(g("feedback"),G(a,()=>x(l,d+1))))},[f,t,l,d,x,a,L]),j=t==="playback"?e.length:l.length;return{bind:{activeSpeakerId:p,playedIds:w,selectedId:y,answerId:Y,showFeedback:f==="feedback",clickable:f==="waiting",onSelectSpeaker:R},index:d,total:j,score:E,phase:f,done:f==="done",start:Q,reset:ce}}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ef(e){if(Array.isArray(e))return e}function tf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,u,a,l=[],s=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(s=(o=u.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(m){d=!0,r=m}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return l}}function nf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function of(e,t){return ef(e)||tf(e,t)||rf(e,t)||nf()}function rf(e,t){if(e){if(typeof e=="string")return na(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?na(e,t):void 0}}const oa=Object.entries,ra=Object.setPrototypeOf,uf=Object.isFrozen,af=Object.getPrototypeOf,lf=Object.getOwnPropertyDescriptor;let ie=Object.freeze,se=Object.seal,St=Object.create,ua=typeof Reflect<"u"&&Reflect,Xo=ua.apply,Qo=ua.construct;ie||(ie=function(t){return t}),se||(se=function(t){return t}),Xo||(Xo=function(t,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),u=2;u<o;u++)r[u-2]=arguments[u];return t.apply(n,r)}),Qo||(Qo=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new t(...o)});const rt=le(Array.prototype.forEach),sf=le(Array.prototype.lastIndexOf),aa=le(Array.prototype.pop),tn=le(Array.prototype.push),cf=le(Array.prototype.splice),wt=Array.isArray,nn=le(String.prototype.toLowerCase),Zo=le(String.prototype.toString),la=le(String.prototype.match),on=le(String.prototype.replace),ia=le(String.prototype.indexOf),df=le(String.prototype.trim),ff=le(Number.prototype.toString),gf=le(Boolean.prototype.toString),sa=typeof BigInt>"u"?null:le(BigInt.prototype.toString),ca=typeof Symbol>"u"?null:le(Symbol.prototype.toString),Ee=le(Object.prototype.hasOwnProperty),rn=le(Object.prototype.toString),he=le(RegExp.prototype.test),ut=mf(TypeError);function le(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Xo(e,t,o)}}function mf(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Qo(e,n)}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nn;if(ra&&ra(e,null),!wt(t))return e;let o=t.length;for(;o--;){let r=t[o];if(typeof r=="string"){const u=n(r);u!==r&&(uf(t)||(t[o]=u),r=u)}e[r]=!0}return e}function pf(e){for(let t=0;t<e.length;t++)Ee(e,t)||(e[t]=null);return e}function De(e){const t=St(null);for(const o of oa(e)){var n=of(o,2);const r=n[0],u=n[1];Ee(e,r)&&(wt(u)?t[r]=pf(u):u&&typeof u=="object"&&u.constructor===Object?t[r]=De(u):t[r]=u)}return t}function Cf(e){switch(typeof e){case"string":return e;case"number":return ff(e);case"boolean":return gf(e);case"bigint":return sa?sa(e):"0";case"symbol":return ca?ca(e):"Symbol()";case"undefined":return rn(e);case"function":case"object":{if(e===null)return rn(e);const t=e,n=Ie(t,"toString");if(typeof n=="function"){const o=n(t);return typeof o=="string"?o:rn(o)}return rn(e)}default:return rn(e)}}function Ie(e,t){for(;e!==null;){const o=lf(e,t);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}e=af(e)}function n(){return null}return n}function hf(e){try{return he(e,""),!0}catch{return!1}}const da=ie(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),er=ie(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tr=ie(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yf=ie(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nr=ie(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bf=ie(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fa=ie(["#text"]),ga=ie(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),or=ie(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ma=ie(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hn=ie(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sf=se(/{{[\w\W]*|^[\w\W]*}}/g),wf=se(/<%[\w\W]*|^[\w\W]*%>/g),Ef=se(/\${[\w\W]*/g),Af=se(/^data-[\-\w.\u00B7-\uFFFF]+$/),Tf=se(/^aria-[\-\w]+$/),pa=se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_f=se(/^(?:\w+script|data):/i),Df=se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bf=se(/^html$/i),vf=se(/^[a-z][.\w]*(-[.\w]+)+$/i),Ca=se(/<[/\w!]/g),ha=se(/<[/\w]/g),Nf=se(/<\/no(script|embed|frames)/i),Of=se(/\/>/i),Be={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ya=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Lf=ie(z({},ya)),Rf=(function(){const e={};return rt(ya,t=>{e[t]=se(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ie(e)})(),If=function(){return typeof window>"u"?null:window},Mf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const u="dompurify"+(o?"#"+o:"");try{return t.createPolicy(u,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},ba=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},qe=function(t,n,o,r){return Ee(t,n)&&wt(t[n])?z(r.base?De(r.base):{},t[n],r.transform):o},rr=function(t,n,o){const r=Ee(t,n)?t[n]:void 0;return r&&typeof r=="object"?De(r):o()};function Sa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:If();const t=D=>Sa(D);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Be.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const o=n,r=o.currentScript;e.DocumentFragment;const u=e.HTMLTemplateElement,a=e.Node,l=e.Element,s=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,f=e.trustedTypes,g=l.prototype,p=Ie(g,"cloneNode"),h=Ie(g,"remove"),w=Ie(g,"nextSibling"),b=Ie(g,"childNodes"),y=Ie(g,"parentNode"),S=Ie(g,"shadowRoot"),E=Ie(g,"attributes"),A=a&&a.prototype?Ie(a.prototype,"nodeType"):null,v=a&&a.prototype?Ie(a.prototype,"nodeName"):null,L=a&&a.prototype?Ie(a.prototype,"ownerDocument"):null,B=function(i){return A?A(i):i.nodeType},I=function(i){return v?v(i):i.nodeName};if(typeof u=="function"){const D=n.createElement("template");D.content&&D.content.ownerDocument&&(n=D.content.ownerDocument)}let P,O="",G,Y=!1,W=0;const k=function(){if(W>0)throw ut('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},x=function(i){k(),W++;try{return P.createHTML(i)}finally{W--}},q=function(i){k(),W++;try{return P.createScriptURL(i)}finally{W--}},Q=function(){return Y||(G=Mf(f,r),Y=!0),G},ce=n,Ae=ce.implementation,R=ce.createNodeIterator,j=ce.createDocumentFragment,F=ce.getElementsByTagName,U=o.importNode;let H=ba();t.isSupported=typeof oa=="function"&&typeof y=="function"&&Ae&&Ae.createHTMLDocument!==void 0;const je=Sf,me=wf,Ue=Ef,lt=Af,Vn=Tf,un=_f,Et=Df,oe=vf;let At=pa,Z=null;const Tt=z({},[...da,...er,...tr,...nr,...fa]);let ee=null;const _t=z({},[...ga,...or,...ma,...Hn]);let ve=Object.seal(St(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Je=null,an=null;const _=Object.seal(St(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,V=!0,J=!1,be=!0,Ne=!1,Xe=!0,Qe=!1,Wn=!1,ln=null,sn=null,Un=!1,it=!1,cn=!1,dn=!1,sr=!0,cr=!1;const dr="user-content-";let Yn=!0,zn=!1,st={},ct=null;const fr=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let gr=null;const mr=z({},["audio","video","img","source","image","track"]);let pr=null;const Cr=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fn="http://www.w3.org/1998/Math/MathML",gn="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let dt=Me,Kn=!1,qn=null;const Nl=z({},[fn,gn,Me],Zo),hr=ie(["mi","mo","mn","ms","mtext"]);let Jn=z({},hr);const yr=ie(["annotation-xml"]);let Xn=z({},yr);const Ol=z({},["title","style","font","a","script"]);let Dt=null;const Ll=["application/xhtml+xml","text/html"],Rl="text/html";let ue=null,ft=null;const Il=n.createElement("form"),br=function(i){return i instanceof RegExp||i instanceof Function},Qn=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ft&&ft===i)return;(!i||typeof i!="object")&&(i={}),i=De(i),Dt=Ll.indexOf(i.PARSER_MEDIA_TYPE)===-1?Rl:i.PARSER_MEDIA_TYPE,ue=Dt==="application/xhtml+xml"?Zo:nn,Z=qe(i,"ALLOWED_TAGS",Tt,{transform:ue}),ee=qe(i,"ALLOWED_ATTR",_t,{transform:ue}),qn=qe(i,"ALLOWED_NAMESPACES",Nl,{transform:Zo}),pr=qe(i,"ADD_URI_SAFE_ATTR",Cr,{transform:ue,base:Cr}),gr=qe(i,"ADD_DATA_URI_TAGS",mr,{transform:ue,base:mr}),ct=qe(i,"FORBID_CONTENTS",fr,{transform:ue}),Je=qe(i,"FORBID_TAGS",De({}),{transform:ue}),an=qe(i,"FORBID_ATTR",De({}),{transform:ue}),st=Ee(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?De(i.USE_PROFILES):i.USE_PROFILES:!1,ne=i.ALLOW_ARIA_ATTR!==!1,V=i.ALLOW_DATA_ATTR!==!1,J=i.ALLOW_UNKNOWN_PROTOCOLS||!1,be=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=i.SAFE_FOR_TEMPLATES||!1,Xe=i.SAFE_FOR_XML!==!1,Qe=i.WHOLE_DOCUMENT||!1,it=i.RETURN_DOM||!1,cn=i.RETURN_DOM_FRAGMENT||!1,dn=i.RETURN_TRUSTED_TYPE||!1,Un=i.FORCE_BODY||!1,sr=i.SANITIZE_DOM!==!1,cr=i.SANITIZE_NAMED_PROPS||!1,Yn=i.KEEP_CONTENT!==!1,zn=i.IN_PLACE||!1,At=hf(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:pa,dt=typeof i.NAMESPACE=="string"?i.NAMESPACE:Me,Jn=rr(i,"MATHML_TEXT_INTEGRATION_POINTS",()=>z({},hr)),Xn=rr(i,"HTML_INTEGRATION_POINTS",()=>z({},yr));const C=rr(i,"CUSTOM_ELEMENT_HANDLING",()=>St(null));if(ve=St(null),Ee(C,"tagNameCheck")&&br(C.tagNameCheck)&&(ve.tagNameCheck=C.tagNameCheck),Ee(C,"attributeNameCheck")&&br(C.attributeNameCheck)&&(ve.attributeNameCheck=C.attributeNameCheck),Ee(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),se(ve),Ne&&(V=!1),cn&&(it=!0),st&&(Z=z({},fa),ee=St(null),st.html===!0&&(z(Z,da),z(ee,ga)),st.svg===!0&&(z(Z,er),z(ee,or),z(ee,Hn)),st.svgFilters===!0&&(z(Z,tr),z(ee,or),z(ee,Hn)),st.mathMl===!0&&(z(Z,nr),z(ee,ma),z(ee,Hn))),_.tagCheck=null,_.attributeCheck=null,Ee(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?_.tagCheck=i.ADD_TAGS:wt(i.ADD_TAGS)&&(Z===Tt&&(Z=De(Z)),z(Z,i.ADD_TAGS,ue))),Ee(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?_.attributeCheck=i.ADD_ATTR:wt(i.ADD_ATTR)&&(ee===_t&&(ee=De(ee)),z(ee,i.ADD_ATTR,ue))),Ee(i,"ADD_FORBID_CONTENTS")&&wt(i.ADD_FORBID_CONTENTS)&&(ct===fr&&(ct=De(ct)),z(ct,i.ADD_FORBID_CONTENTS,ue)),Yn&&(Z["#text"]=!0),Qe&&z(Z,["html","head","body"]),Z.table&&(z(Z,["tbody"]),delete Je.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const T=P;P=i.TRUSTED_TYPES_POLICY;try{O=x("")}catch(N){throw P=T,N}}else i.TRUSTED_TYPES_POLICY===null?(P=void 0,O=""):(P===void 0&&(P=Q()),P&&typeof O=="string"&&(O=x("")));ie&&ie(i),ft=i},Sr=z({},[...er,...tr,...yf]),wr=z({},[...nr,...bf]),Ml=function(i,C,T){return C.namespaceURI===Me?i==="svg":C.namespaceURI===fn?i==="svg"&&(T==="annotation-xml"||Jn[T]):!!Sr[i]},Pl=function(i,C,T){return C.namespaceURI===Me?i==="math":C.namespaceURI===gn?i==="math"&&Xn[T]:!!wr[i]},kl=function(i,C,T){return C.namespaceURI===gn&&!Xn[T]||C.namespaceURI===fn&&!Jn[T]?!1:!wr[i]&&(Ol[i]||!Sr[i])},xl=function(i){let C=y(i);(!C||!C.tagName)&&(C={namespaceURI:dt,tagName:"template"});const T=nn(i.tagName),N=nn(C.tagName);return qn[i.namespaceURI]?i.namespaceURI===gn?Ml(T,C,N):i.namespaceURI===fn?Pl(T,C,N):i.namespaceURI===Me?kl(T,C,N):!!(Dt==="application/xhtml+xml"&&qn[i.namespaceURI]):!1},Ye=function(i){tn(t.removed,{element:i});try{y(i).removeChild(i)}catch{if(h(i),!y(i))throw ut("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Er=function(i,C,T){try{i.removeAttributeNode(C)}catch{try{i.removeAttribute(T)}catch{}}},mn=function(i){pn(i);const C=b(i);if(C){const N=[];rt(C,M=>{tn(N,M)}),rt(N,M=>{try{h(M)}catch{}})}const T=E(i);if(T)for(let N=T.length-1;N>=0;--N){const M=T[N],$=M&&M.name;typeof $=="string"&&Er(i,M,$)}},Ze=function(i,C,T){if(!T)try{T=C.getAttributeNode(i)}catch{T=null}tn(t.removed,{attribute:T||null,from:C});try{T?C.removeAttributeNode(T):C.removeAttribute(i)}catch{try{C.removeAttribute(i)}catch{}}if(i==="is")if(it||cn)try{Ye(C)}catch{}else try{C.setAttribute(i,"")}catch{}},Fl=function(i){const C=E(i);if(C)for(let T=C.length-1;T>=0;--T){const N=C[T],M=N&&N.name;typeof M!="string"||ee[ue(M)]||Er(i,N,M)}},pn=function(i){const C=[i];for(;C.length>0;){const T=C.pop();B(T)===Be.element&&Fl(T);const M=b(T);if(M)for(let $=M.length-1;$>=0;--$)C.push(M[$])}},Ar=function(i,C){return Xe?i==="patchsrc"?!0:i==="for"&&C!=="label"&&C!=="output":!1},jl=function(i){if(!Xe)return;const C=[i];for(;C.length>0;){const T=C.pop(),N=B(T);if(N===Be.processingInstruction||N===Be.comment&&he(ha,T.data)){try{h(T)}catch{}continue}if(N===Be.element){const $=T,te=ue(I(T));try{$.hasAttribute&&$.hasAttribute("patchsrc")&&$.removeAttribute("patchsrc"),$.hasAttribute&&$.hasAttribute("for")&&Ar("for",te)&&$.removeAttribute("for")}catch{}}const M=b(T);if(M)for(let $=M.length-1;$>=0;--$)C.push(M[$])}},Tr=function(i){let C=null,T=null;if(Un)i="<remove></remove>"+i;else{const $=la(i,/^[\r\n\t ]+/);T=$&&$[0]}Dt==="application/xhtml+xml"&&dt===Me&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const N=P?x(i):i;if(dt===Me)try{C=new m().parseFromString(N,Dt)}catch{}if(!C||!C.documentElement){C=Ae.createDocument(dt,"template",null);try{C.documentElement.innerHTML=Kn?O:N}catch{}}const M=C.body||C.documentElement;return i&&T&&M.insertBefore(n.createTextNode(T),M.childNodes[0]||null),dt===Me?F.call(C,Qe?"html":"body")[0]:Qe?C.documentElement:M},_r=function(i){const C=L?L(i):i.ownerDocument;return R.call(C||i,i,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},Cn=function(i){return i=on(i,je," "),i=on(i,me," "),i=on(i,Ue," "),i},Zn=function(i){var C;i.normalize();const T=L?L(i):i.ownerDocument,N=R.call(T||i,i,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let M=N.nextNode();for(;M;)M.data=Cn(M.data),M=N.nextNode();const $=(C=i.querySelectorAll)===null||C===void 0?void 0:C.call(i,"template");$&&rt($,te=>{gt(te.content)&&Zn(te.content)})},hn=function(i){const C=v?v(i):null;return typeof C!="string"||ue(C)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==E(i)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==A(i)||i.childNodes!==b(i)},gt=function(i){if(!A||typeof i!="object"||i===null)return!1;try{return A(i)===Be.documentFragment}catch{return!1}},Bt=function(i){if(!A||typeof i!="object"||i===null)return!1;try{return typeof A(i)=="number"}catch{return!1}};function Pe(D,i,C){D.length!==0&&rt(D,T=>{T.call(t,i,C,ft)})}const $l=function(i,C){return!!(Xe&&i.hasChildNodes()&&!Bt(i.firstElementChild)&&he(Ca,i.textContent)&&he(Ca,i.innerHTML)||Xe&&i.namespaceURI===Me&&Lf[C]&&(Bt(i.firstElementChild)||typeof i.textContent=="string"&&he(Rf[C],i.textContent))||i.nodeType===Be.processingInstruction||Xe&&i.nodeType===Be.comment&&he(ha,i.data))},yn=function(i,C){if(i instanceof RegExp)return he(i,C);if(i instanceof Function){for(var T=arguments.length,N=new Array(T>2?T-2:0),M=2;M<T;M++)N[M-2]=arguments[M];return!!i(C,...N)}return!1},Hl=function(i,C,T){if(!Je[C]&&Or(C)&&yn(ve.tagNameCheck,C))return!1;if(Yn&&!ct[C]){const N=y(i),M=b(i);if(M&&N){const $=M.length;for(let te=$-1;te>=0;--te){const re=i===T?p(M[te],!0):M[te];N.insertBefore(re,w(i))}}}return Ye(i),!0},Dr=function(i,C,T,N){return i.length===0?C:C===T||C===N?De(C):C},Br=function(i,C){return i===C||y(i)!==null?!1:(zn&&pn(i),!0)},vr=function(i,C){if(Pe(H.beforeSanitizeElements,i,null),Br(i,C))return!0;if(hn(i))return Ye(i),!0;const T=ue(I(i));if(Z=Dr(H.uponSanitizeElement,Z,Tt,ln),Pe(H.uponSanitizeElement,i,{tagName:T,allowedTags:Z}),Br(i,C))return!0;if($l(i,T))return Ye(i),!0;if(Je[T]||!(_.tagCheck instanceof Function&&_.tagCheck(T))&&!Z[T]){const M=Hl(i,T,C);return M===!1&&Pe(H.afterSanitizeElements,i,null),M}if(B(i)===Be.element&&!xl(i)||(T==="noscript"||T==="noembed"||T==="noframes")&&he(Nf,i.innerHTML))return Ye(i),!0;if(Ne&&i.nodeType===Be.text){const M=Cn(i.textContent);i.textContent!==M&&(tn(t.removed,{element:i.cloneNode()}),i.textContent=M)}return Pe(H.afterSanitizeElements,i,null),!1},Nr=function(i,C,T){if(an[C]||Ar(C,i)||sr&&(C==="id"||C==="name")&&(T in n||T in Il))return!1;const N=ee[C]||_.attributeCheck instanceof Function&&_.attributeCheck(C,i);return V&&he(lt,C)||ne&&he(Vn,C)?!0:N?pr[C]||he(At,on(T,Et,""))||(C==="src"||C==="xlink:href"||C==="href")&&i!=="script"&&ia(T,"data:")===0&&gr[i]||J&&!he(un,on(T,Et,""))?!0:!T:Or(i)&&yn(ve.tagNameCheck,i)&&yn(ve.attributeNameCheck,C,i)||C==="is"&&ve.allowCustomizedBuiltInElements&&yn(ve.tagNameCheck,T)},Gl=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Or=function(i){return!Gl[nn(i)]&&he(oe,i)},Vl=function(i,C,T,N){if(P&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!T)switch(f.getAttributeType(i,C)){case"TrustedHTML":return x(N);case"TrustedScriptURL":return q(N)}return N},Wl=function(i,C,T,N){try{T?i.setAttributeNS(T,C,N):i.setAttribute(C,N),hn(i)?Ye(i):aa(t.removed)}catch{Ze(C,i)}},Lr=function(i){Pe(H.beforeSanitizeAttributes,i,null);const C=i.attributes;if(!C||hn(i))return;ee=Dr(H.uponSanitizeAttribute,ee,_t,sn);const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let N=C.length;const M=ue(i.nodeName);for(;N--;){const $=C[N],te=$.name,re=$.namespaceURI,Se=$.value,we=ue(te),to=Se;let ye=te==="value"?to:df(to);if(T.attrName=we,T.attrValue=ye,T.keepAttr=!0,T.forceKeepAttr=void 0,Pe(H.uponSanitizeAttribute,i,T),ye=T.attrValue,cr&&(we==="id"||we==="name")&&ia(ye,dr)!==0&&(Ze(te,i,$),ye=dr+ye),Xe&&he(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ye)){Ze(te,i,$);continue}if(we==="attributename"&&la(ye,"href")){Ze(te,i,$);continue}if(!T.forceKeepAttr){if(!T.keepAttr){Ze(te,i,$);continue}if(!be&&he(Of,ye)){Ze(te,i,$);continue}if(Ne&&(ye=Cn(ye)),!Nr(M,we,ye)){Ze(te,i,$);continue}ye=Vl(M,we,re,ye),ye!==to&&Wl(i,te,re,ye)}}Pe(H.afterSanitizeAttributes,i,null)},bn=function(i){let C=null;const T=_r(i);for(Pe(H.beforeSanitizeShadowDOM,i,null);C=T.nextNode();)if(Pe(H.uponSanitizeShadowNode,C,null),vr(C,i),Lr(C),gt(C.content)&&bn(C.content),B(C)===Be.element){const N=S(C);gt(N)&&(eo(N),bn(N))}Pe(H.afterSanitizeShadowDOM,i,null)},eo=function(i){const C=[{node:i,shadow:null}];for(;C.length>0;){const T=C.pop();if(T.shadow){bn(T.shadow);continue}const N=T.node,$=B(N)===Be.element,te=b(N);if(te)for(let re=te.length-1;re>=0;--re)C.push({node:te[re],shadow:null});if($){const re=v?v(N):null;if(typeof re=="string"&&ue(re)==="template"){const Se=N.content;gt(Se)&&C.push({node:Se,shadow:null})}}if($){const re=S(N);gt(re)&&C.push({node:null,shadow:re},{node:re,shadow:null})}}};return t.sanitize=function(D){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,T=null,N=null,M=null;if(Kn=!D,Kn&&(D="<!-->"),typeof D!="string"&&!Bt(D)&&(D=Cf(D),typeof D!="string"))throw ut("dirty is not a string, aborting");if(!t.isSupported)return D;Wn?(Z=ln,ee=sn):Qn(i),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(Z=De(Z)),H.uponSanitizeAttribute.length>0&&(ee=De(ee)),t.removed=[];const $=zn&&typeof D!="string"&&Bt(D);if($){jl(D);const Se=I(D);if(typeof Se=="string"){const we=ue(Se);if(!Z[we]||Je[we])throw mn(D),ut("root node is forbidden and cannot be sanitized in-place")}if(hn(D))throw mn(D),ut("root node is clobbered and cannot be sanitized in-place");try{eo(D)}catch(we){throw mn(D),we}}else if(Bt(D))C=Tr("<!---->"),T=C.ownerDocument.importNode(D,!0),T.nodeType===Be.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?C=T:C.appendChild(T),eo(T);else{if(!it&&!Ne&&!Qe&&D.indexOf("<")===-1)return P&&dn?x(D):D;if(C=Tr(D),!C)return it?null:dn?O:""}C&&Un&&Ye(C.firstChild);const te=$?D:C;try{const Se=_r(te);for(;N=Se.nextNode();)vr(N,te),Lr(N),gt(N.content)&&bn(N.content)}catch(Se){throw $&&(mn(D),rt(t.removed,we=>{we.element&&pn(we.element)})),Se}if($)return rt(t.removed,Se=>{Se.element&&pn(Se.element)}),Ne&&Zn(D),D;if(it){if(Ne&&Zn(C),cn)for(M=j.call(C.ownerDocument);C.firstChild;)M.appendChild(C.firstChild);else M=C;return(ee.shadowroot||ee.shadowrootmode)&&(M=U.call(o,M,!0)),M}let re=Qe?C.outerHTML:C.innerHTML;return Qe&&Z["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&he(Bf,C.ownerDocument.doctype.name)&&(re="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
5
5
|
`+re),Ne&&(re=Cn(re)),P&&dn?x(re):re},t.setConfig=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qn(D),Wn=!0,ln=Z,sn=ee},t.clearConfig=function(){ft=null,Wn=!1,ln=null,sn=null,P=G,O=""},t.isValidAttribute=function(D,i,C){ft||Qn({});const T=ue(D),N=ue(i);return Nr(T,N,C)},t.addHook=function(D,i){typeof i=="function"&&Ee(H,D)&&tn(H[D],i)},t.removeHook=function(D,i){if(Ee(H,D)){if(i!==void 0){const C=sf(H[D],i);return C===-1?void 0:cf(H[D],C,1)[0]}return aa(H[D])}},t.removeHooks=function(D){Ee(H,D)&&(H[D]=[])},t.removeAllHooks=function(){H=ba()},t}Sa();const ur=new Map,ar=new Map,Pf=()=>()=>{},kf=()=>!0,xf=()=>!1;function wa(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 n=Uint8Array.from(atob(t[2]),o=>o.charCodeAt(0));return new TextDecoder("utf-8").decode(n)}catch{return null}}function Ff(e){const t=ar.get(e);if(t)return t;const n=fetch(e).then(o=>o.ok?o.text():null).then(o=>(o!=null&&ur.set(e,o),o)).catch(()=>null).finally(()=>{ar.delete(e)});return ar.set(e,n),n}function jf(e,t=!0){const n=c.useSyncExternalStore(Pf,kf,xf)&&t&&e?wa(e)??ur.get(e)??null:null,[o,r]=c.useState({src:e,enabled:t,svg:n});return c.useEffect(()=>{if(!t||!e){r({src:e,enabled:t,svg:null});return}const u=wa(e)??ur.get(e)??null;if(u!==null){r({src:e,enabled:t,svg:u});return}let a=!0;return Ff(e).then(l=>{a&&r({src:e,enabled:t,svg:l})}),()=>{a=!1}},[e,t]),o.src===e&&o.enabled===t?o.svg:n}const lr=e=>e.split("/").filter(t=>t!=="");function Ea(e){const t=lr(e);return t[t.length-1]??e}function $f(e){const t=lr(e);return t.length>1?t.slice(0,-1).join("/"):null}const Hf=(e,t)=>e?`${e}/${t.trim()}`:t.trim(),Gf=(e,t)=>!!e&&(e===t||e.startsWith(t+"/"));function Vf(e){const t=new Set,n=[];for(const o of e){const r=lr(o);for(let u=1;u<=r.length;u+=1){const a=r.slice(0,u).join("/");t.has(a)||(t.add(a),n.push(a))}}return n}function Wf(e,t){return Vf(e).filter(n=>$f(n)===t)}function Uf(e,t,n){if(!(!e||!Gf(e,t)))return Hf(n,Ea(t))+e.slice(t.length)}function Yf({paths:e,search:t,onOpen:n}){const[o,r]=c.useState(null),u=o&&e.includes(o)?o:null,a=t.trim()!=="",l=c.useCallback(g=>{r(g),n?.()},[n]),s=c.useCallback((g,p)=>{r(h=>Uf(h,g,p)??h)},[]),d=c.useCallback((g,p)=>{r(h=>h===g?p:h?.startsWith(`${g}/`)?p+h.slice(g.length):h)},[]),m=c.useCallback(()=>r(null),[]),f=a?null:u;return{opened:u,searching:a,open:l,reset:m,followMove:s,followRename:d,newFolderParent:f,siblingNames:Wf(e,f).map(Ea)}}const zf=e=>String(e);function Kf(e,t=zf){const[n,o]=c.useState(null),[r,u]=c.useState(null),a=c.useCallback(s=>({draggable:!0,onDragStart:d=>{o(s),d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",t(s))},onDragEnd:()=>{o(null),u(null)}}),[t]),l=c.useCallback((s,d)=>{const m=n!=null&&(!d||d(n));return{onDragOver:f=>{m&&(f.preventDefault(),f.dataTransfer.dropEffect="move",u(s))},onDragEnter:()=>{m&&u(s)},onDragLeave:f=>{m&&!f.currentTarget.contains(f.relatedTarget)&&u(g=>g===s?null:g)},onDrop:f=>{if(!m||n==null)return;f.preventDefault();const g=n;u(null),o(null),e(g,s)}}},[n,e]);return{dragging:n,draggingId:n==null?null:t(n),dragOverKey:r,cardProps:a,groupProps:l}}const Aa=[10,25,50,100];function qf(e=Aa){const{t}=Le.useTranslation(),n=e.join(",");return c.useMemo(()=>e.map(o=>({value:String(o),label:t("common.pageSizeLabel",{n:o,defaultValue:"{{n}}\uAC1C\uC529 \uBCF4\uAE30"})})),[n,t])}function Jf(e,t=!0){const n=Sn(e);c.useEffect(()=>{if(!t)return;const o=()=>{n.current()},r=()=>{document.visibilityState==="hidden"&&o()};return document.addEventListener("visibilitychange",r),window.addEventListener("pagehide",o),()=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("pagehide",o)}},[t,n])}function Xf(e){c.useEffect(()=>{if(!e||typeof navigator>"u")return;const t=navigator.wakeLock;if(!t)return;let n=null,o=!1;const r=async()=>{if(!(o||n||document.visibilityState!=="visible"))try{const a=await t.request("screen");if(o){a.release().catch(()=>{});return}n=a,a.addEventListener("release",()=>{n===a&&(n=null)})}catch{}},u=()=>{document.visibilityState==="visible"&&r()};return r(),document.addEventListener("visibilitychange",u),()=>{o=!0,document.removeEventListener("visibilitychange",u),n&&(n.release().catch(()=>{}),n=null)}},[e])}function Qf(e){return window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}}const Zf=()=>typeof navigator>"u"||navigator.onLine!==!1;function eg(){return c.useSyncExternalStore(Qf,Zf,()=>!0)}function tg(e,t,n){const o=Sn(n);c.useEffect(()=>{if(!e)return;const r=u=>{t.current?.contains(u.target)||o.current()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[e,t,o])}const Ta="__ihabBackClosable",at=[];let Gn=0,_a=!1,ng=1;function ir(){try{const e=window.history.state?.[Ta];return typeof e=="number"?e:void 0}catch{return}}function Da(e){try{const t=window.history.state??{};window.history.pushState({...t,[Ta]:e},"")}catch{}}function og(){if(Gn>0){Gn--;return}const e=at[at.length-1];if(e&&ir()!==e.id){if(e.onBack()===!1){Da(e.id);return}at.pop()}}function rg(){_a||typeof window>"u"||(window.addEventListener("popstate",og),_a=!0)}function ug(e,t){const n=c.useRef(t);c.useEffect(()=>{n.current=t});const o=c.useRef(null);c.useEffect(()=>{if(!e||typeof window>"u")return;rg();const r=o.current??(o.current=ng++),u={id:r,onBack:()=>n.current()};return at.push(u),ir()!==r&&Da(r),()=>{const a=at.indexOf(u);if(a<0){o.current=null;return}at.splice(a,1),setTimeout(()=>{if(!at.some(l=>l.id===r)&&(o.current===r&&(o.current=null),ir()===r)){Gn++;try{window.history.back()}catch{Gn--}}},0)}},[e])}function ag(e){const[t,n]=c.useState(0);c.useEffect(()=>{if(!e||t<=0)return;const u=setTimeout(()=>n(a=>Math.max(0,a-1)),1e3);return()=>clearTimeout(u)},[e,t]);const o=c.useCallback(u=>{n(Number.isFinite(u)?Math.max(0,Math.floor(u)):0)},[]),r=`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`;return{left:t,clock:r,start:o}}const lg=260,ig="(prefers-reduced-motion: reduce)";function sg(){try{return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(ig).matches}catch{return!1}}function cg(e){const t=c.useRef(null),n=c.useCallback(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]);return c.useEffect(()=>n,[n]),c.useCallback(o=>{n();const r=e??(sg()?0:lg);t.current=setTimeout(()=>{t.current=null,o?.()},r)},[n,e])}var Ba={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.",add:"Add"},va={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonthCompact:"{{short}}",weekLabel:"Week {{ord}}",weekLabelCompact:"W{{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"]},Na={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"}},Oa={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},La={selected:"selected"},Ra={placeholder:"Select"},Ia={collapse:"Collapse",expand:"Expand"},Ma={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Pa={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"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"},ka={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"}}}},xa={couponButton:"Enter Coupon"},Fa={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."}}},ja={settings:"Settings",filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Difficulty",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",playSoundFor:"Play {{name}}",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"}},$a={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"}}},Ha={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Ga={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},Va={showN:"Show {{n}}"},Wa={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."}},Ua={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},Ya={title:"Key Words",empty:"No key words available."},za={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}}",replaceItem:"Other words",replacePair:"Other pairs",replaceItemAria:"Swap cell {{n}} only",replacePairAria:"Swap pair {{n}} only",thumbMoreAria_one:"1 more cell: {{words}}",thumbMoreAria_other:"{{count}} more cells: {{words}}",pickForm:"Other forms",pickFormAria:"Change the form in cell {{n}}",pickFormBaseAria:"Change the form of the base word"},Ka={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",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.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoAgeFloor:"Age {{n}}: also includes words for younger ages.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",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"},qa={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removePairFor:"Remove the pair {{name}}",removeWord:"Remove word",removeWordFor:"Remove {{name}}"},Ja={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"}},Xa={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"}},Qa={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}}"}},Za={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."]},el={lead:`IHAB builds trust
|
|
6
6
|
through sound
|