(window.saladictEntry=window.saladictEntry||[]).push([[66],{1353:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),l=a.n(n),r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const s=e=>{const{tag:t="div",html:a,...s}=e,m=Object(n.useMemo)(()=>{try{const e=document.createDocumentFragment(),t=(new DOMParser).parseFromString(a,"text/html");return Array.from(t.body.childNodes).forEach(t=>{e.appendChild(t)}),e}catch(e){!1}return null},[a]),[c,o]=Object(n.useState)(null);return r(()=>{if(m&&c){for(;c.childNodes.length>0;)c.childNodes[0].remove();c.appendChild(m)}},[m,c]),l.a.createElement(t,{...s,ref:o})}},1356:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),l=a.n(n);class r extends l.a.PureComponent{render(){const e=this.props.className||"widget-StarRates",t=this.props.max||5,a=Number(this.props.rate)%(t+1)||0,n=this.props.height||"1.5em",r=this.props.gutter||"0.3em",s={height:n,...this.props.style||{}};return l.a.createElement("div",{className:e,style:s},Array.from(Array(t)).map((e,s)=>l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 426.67 426.67",key:s+a,width:n,height:n,style:{marginRight:s===t-1?"":r}},l.a.createElement("path",{fill:s<a?"#FAC917":"#d1d8de",d:"M213.33 10.44l65.92 133.58 147.42 21.42L320 269.4l25.17 146.83-131.84-69.32-131.85 69.34 25.2-146.82L0 165.45l147.4-21.42"}))))}}},666:function(e,t,a){"use strict";a.r(t),a.d(t,"DictLongman",(function(){return c}));var n=a(0),l=a.n(n),r=a(123),s=a(1356),m=a(1353);const c=({result:e})=>"lex"===e.type?function(e){const t=e.bussinessFirst?["bussiness","contemporary"]:["contemporary","bussiness"];return l.a.createElement(l.a.Fragment,null,e.wordfams&&l.a.createElement(m.a,{className:"dictLongman-Wordfams",html:e.wordfams}),t.map((t,a)=>e[t].length>0?l.a.createElement("div",{className:"dictLongman-Dict",key:t+a},e[t].map(o)):null))}(e):"related"===e.type?function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"Did you mean:"),l.a.createElement(m.a,{tag:"ul",className:"dictLongman-Related",html:e.list}))}(e):null;function o(e){return l.a.createElement("section",{key:e.title.HWD+e.title.HOMNUM,className:"dictLongman-Entry"},l.a.createElement("header",null,l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("h1",{className:"dictLongman-Title"},l.a.createElement("span",{className:"dictLongman-Title_HWD"},e.title.HWD),l.a.createElement("span",{className:"dictLongman-Title_HYPHENATION"},e.title.HYPHENATION),l.a.createElement("span",{className:"dictLongman-Title_HOMNUM"},e.title.HOMNUM)),e.level?l.a.createElement("span",{title:e.level.title,className:"dictLongman-Level"},l.a.createElement(s.a,{max:3,rate:e.level.rate,className:"dictLongman-Level_Rate"})):null,e.freq&&e.freq.map(e=>l.a.createElement("span",{key:e.rank,className:"dictLongman-FREQ",title:e.title},e.rank))),l.a.createElement("div",{className:"dictLongman-HeaderContainer"},l.a.createElement("span",{className:"dictLongman-Pos"},e.pos),l.a.createElement("span",{className:"dictLongman-Phsym"},e.phsym),e.prons&&e.prons.map(e=>l.a.createElement(l.a.Fragment,{key:e.pron},e.lang.toUpperCase(),": ",l.a.createElement(r.c,{src:e.pron}))),e.topic&&l.a.createElement(l.a.Fragment,null,"Topic:"," ",l.a.createElement("a",{href:e.topic.href,rel:"nofollow noopener noreferrer"},e.topic.title)))),e.senses.map(e=>l.a.createElement(m.a,{key:e,className:"dictLongman-Sense",html:e})),e.collocations&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.collocations}),e.grammar&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.grammar}),e.thesaurus&&l.a.createElement(m.a,{className:"dictLongman-Box",html:e.thesaurus}),e.examples&&e.examples.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement("h2",{className:"dictLongman-Examples_Title"},"Examples from the Corpus"),e.examples.map(e=>l.a.createElement(m.a,{key:e,className:"dictLongman-Examples",html:e}))))}t.default=c}}]);