@ddict/bubble
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -1,1 +0,2 @@ | ||
(function(W,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(W=typeof globalThis<"u"?globalThis:W||self,i(W.Bubble={},W.Vue))})(this,function(W,i){"use strict";const qt="data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e",D=Math.min,S=Math.max,rt=Math.round,ct=Math.floor,G=t=>({x:t,y:t}),jt={left:"right",right:"left",bottom:"top",top:"bottom"},Zt={start:"end",end:"start"};function gt(t,e,n){return S(t,D(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function J(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function ut(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(J(t))?"y":"x"}function mt(t){return It(q(t))}function Pt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=mt(t),l=ut(s);let r=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=at(r)),[r,at(r)]}function zt(t){const e=at(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Zt[e])}function $t(t,e,n){const o=["left","right"],s=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:o:e?o:s;case"left":case"right":return e?l:r;default:return[]}}function _t(t,e,n,o){const s=$(t);let l=$t(J(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(Ct)))),l}function at(t){return t.replace(/left|right|bottom|top/g,e=>jt[e])}function Xt(t){return{top:0,right:0,bottom:0,left:0,...t}}function bt(t){return typeof t!="number"?Xt(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:s}=t;return{width:o,height:s,top:n,left:e,right:e+o,bottom:n+s,x:e,y:n}}function St(t,e,n){let{reference:o,floating:s}=t;const l=q(e),r=mt(e),a=ut(r),c=J(e),f=l==="y",d=o.x+o.width/2-s.width/2,A=o.y+o.height/2-s.height/2,m=o[a]/2-s[a]/2;let g;switch(c){case"top":g={x:d,y:o.y-s.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:A};break;case"left":g={x:o.x-s.width,y:A};break;default:g={x:o.x,y:o.y}}switch($(e)){case"start":g[r]-=m*(n&&f?-1:1);break;case"end":g[r]+=m*(n&&f?-1:1);break}return g}const te=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,a=l.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:A}=St(f,o,c),m=o,g={},C=0;for(let h=0;h<a.length;h++){const{name:w,fn:B}=a[h],{x:E,y:x,data:p,reset:u}=await B({x:d,y:A,initialPlacement:o,placement:m,strategy:s,middlewareData:g,rects:f,platform:r,elements:{reference:t,floating:e}});d=E??d,A=x??A,g={...g,[w]:{...g[w],...p}},u&&C<=50&&(C++,typeof u=="object"&&(u.placement&&(m=u.placement),u.rects&&(f=u.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):u.rects),{x:d,y:A}=St(f,m,c)),h=-1)}return{x:d,y:A,placement:m,strategy:s,middlewareData:g}};async function pt(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:a,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:A="floating",altBoundary:m=!1,padding:g=0}=z(e,t),C=bt(g),w=a[m?A==="floating"?"reference":"floating":A],B=ft(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(w)))==null||n?w:w.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:c})),E=A==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),p=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},u=ft(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:x,strategy:c}):E);return{top:(B.top-u.top+C.top)/p.y,bottom:(u.bottom-B.bottom+C.bottom)/p.y,left:(B.left-u.left+C.left)/p.x,right:(u.right-B.right+C.right)/p.x}}const ee=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:a,middlewareData:c}=e,{element:f,padding:d=0}=z(t,e)||{};if(f==null)return{};const A=bt(d),m={x:n,y:o},g=mt(s),C=ut(g),h=await r.getDimensions(f),w=g==="y",B=w?"top":"left",E=w?"bottom":"right",x=w?"clientHeight":"clientWidth",p=l.reference[C]+l.reference[g]-m[g]-l.floating[C],u=m[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let y=I?I[x]:0;(!y||!await(r.isElement==null?void 0:r.isElement(I)))&&(y=a.floating[x]||l.floating[C]);const v=p/2-u/2,k=y/2-h[C]/2-1,F=D(A[B],k),Y=D(A[E],k),P=F,lt=y-h[C]-Y,b=y/2-h[C]/2+v,nt=gt(P,b,lt),O=!c.arrow&&$(s)!=null&&b!==nt&&l.reference[C]/2-(b<P?F:Y)-h[C]/2<0,H=O?b<P?b-P:b-lt:0;return{[g]:m[g]+H,data:{[g]:nt,centerOffset:b-nt-H,...O&&{alignmentOffset:H}},reset:O}}}),ne=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:s,middlewareData:l,rects:r,initialPlacement:a,platform:c,elements:f}=e,{mainAxis:d=!0,crossAxis:A=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:h=!0,...w}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const B=J(s),E=q(a),x=J(a)===a,p=await(c.isRTL==null?void 0:c.isRTL(f.floating)),u=m||(x||!h?[at(a)]:zt(a)),I=C!=="none";!m&&I&&u.push(..._t(a,h,C,p));const y=[a,...u],v=await pt(e,w),k=[];let F=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&k.push(v[B]),A){const b=Pt(s,r,p);k.push(v[b[0]],v[b[1]])}if(F=[...F,{placement:s,overflows:k}],!k.every(b=>b<=0)){var Y,P;const b=(((Y=l.flip)==null?void 0:Y.index)||0)+1,nt=y[b];if(nt)return{data:{index:b,overflows:F},reset:{placement:nt}};let O=(P=F.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:P.placement;if(!O)switch(g){case"bestFit":{var lt;const H=(lt=F.filter(K=>{if(I){const N=q(K.placement);return N===E||N==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(N=>N>0).reduce((N,G2)=>N+G2,0)]).sort((K,N)=>K[1]-N[1])[0])==null?void 0:lt[0];H&&(O=H);break}case"initialPlacement":O=a;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function oe(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=J(n),a=$(n),c=q(n)==="y",f=["left","top"].includes(r)?-1:1,d=l&&c?-1:1,A=z(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:C}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),c?{x:g*d,y:m*f}:{x:m*f,y:g*d}}const ie=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:s,y:l,placement:r,middlewareData:a}=e,c=await oe(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:w=>{let{x:B,y:E}=w;return{x:B,y:E}}},...c}=z(t,e),f={x:n,y:o},d=await pt(e,c),A=q(J(s)),m=It(A);let g=f[m],C=f[A];if(l){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",E=g+d[w],x=g-d[B];g=gt(E,g,x)}if(r){const w=A==="y"?"top":"left",B=A==="y"?"bottom":"right",E=C+d[w],x=C-d[B];C=gt(E,C,x)}const h=a.fn({...e,[m]:g,[A]:C});return{...h,data:{x:h.x-n,y:h.y-o}}}}},le=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:s,elements:l}=e,{apply:r=()=>{},...a}=z(t,e),c=await pt(e,a),f=J(n),d=$(n),A=q(n)==="y",{width:m,height:g}=o.floating;let C,h;f==="top"||f==="bottom"?(C=f,h=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,C=d==="end"?"top":"bottom");const w=g-c.top-c.bottom,B=m-c.left-c.right,E=D(g-c[C],w),x=D(m-c[h],B),p=!e.middlewareData.shift;let u=E,I=x;if(A?I=d||p?D(x,B):B:u=d||p?D(E,w):w,p&&!d){const v=S(c.left,0),k=S(c.right,0),F=S(c.top,0),Y=S(c.bottom,0);A?I=m-2*(v!==0||k!==0?v+k:S(c.left,c.right)):u=g-2*(F!==0||Y!==0?F+Y:S(c.top,c.bottom))}await r({...e,availableWidth:I,availableHeight:u});const y=await s.getDimensions(l.floating);return m!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function j(t){return ht(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function T(t){var e;return(e=(ht(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ht(t){return t instanceof Node||t instanceof Q(t).Node}function R(t){return t instanceof Element||t instanceof Q(t).Element}function M(t){return t instanceof HTMLElement||t instanceof Q(t).HTMLElement}function Qt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot}function ot(t){const{overflow:e,overflowX:n,overflowY:o,display:s}=L(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(s)}function re(t){return["table","td","th"].includes(j(t))}function dt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function wt(t){const e=Bt(),n=L(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ce(t){let e=U(t);for(;M(e)&&!_(e);){if(dt(e))return null;if(wt(e))return e;e=U(e)}return null}function Bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(j(t))}function L(t){return Q(t).getComputedStyle(t)}function At(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if(j(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qt(t)&&t.host||T(t);return Qt(e)?e.host:e}function kt(t){const e=U(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:M(e)&&ot(e)?e:kt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=kt(t),l=s===((o=t.ownerDocument)==null?void 0:o.body),r=Q(s);return l?e.concat(r,r.visualViewport||[],ot(s)?s:[],r.frameElement&&n?it(r.frameElement):[]):e.concat(s,it(s,[],n))}function Lt(t){const e=L(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=M(t),l=s?t.offsetWidth:n,r=s?t.offsetHeight:o,a=rt(n)!==l||rt(o)!==r;return a&&(n=l,o=r),{width:n,height:o,$:a}}function Et(t){return R(t)?t:t.contextElement}function X(t){const e=Et(t);if(!M(e))return G(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=Lt(e);let r=(l?rt(n.width):n.width)/o,a=(l?rt(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const ae=G(0);function vt(t){const e=Q(t);return!Bt()||!e.visualViewport?ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Q(t)?!1:e}function Z(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Et(t);let r=G(1);e&&(o?R(o)&&(r=X(o)):r=X(t));const a=fe(l,n,o)?vt(l):G(0);let c=(s.left+a.x)/r.x,f=(s.top+a.y)/r.y,d=s.width/r.x,A=s.height/r.y;if(l){const m=Q(l),g=o&&R(o)?Q(o):o;let C=m,h=C.frameElement;for(;h&&o&&g!==C;){const w=X(h),B=h.getBoundingClientRect(),E=L(h),x=B.left+(h.clientLeft+parseFloat(E.paddingLeft))*w.x,p=B.top+(h.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,A*=w.y,c+=x,f+=p,C=Q(h),h=C.frameElement}}return ft({width:d,height:A,x:c,y:f})}function de(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=T(o),a=e?dt(e.floating):!1;if(o===r||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const d=G(0),A=M(o);if((A||!A&&!l)&&((j(o)!=="body"||ot(r))&&(c=At(o)),M(o))){const m=Z(o);f=X(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function Ae(t){return Array.from(t.getClientRects())}function Ft(t){return Z(T(t)).left+At(t).scrollLeft}function ge(t){const e=T(t),n=At(t),o=t.ownerDocument.body,s=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Ft(t);const a=-n.scrollTop;return L(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:a}}function ue(t,e){const n=Q(t),o=T(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,a=0,c=0;if(s){l=s.width,r=s.height;const f=Bt();(!f||f&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:l,height:r,x:a,y:c}}function me(t,e){const n=Z(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=M(t)?X(t):G(1),r=t.clientWidth*l.x,a=t.clientHeight*l.y,c=s*l.x,f=o*l.y;return{width:r,height:a,x:c,y:f}}function Dt(t,e,n){let o;if(e==="viewport")o=ue(t,n);else if(e==="document")o=ge(T(t));else if(R(e))o=me(e,n);else{const s=vt(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return ft(o)}function Rt(t,e){const n=U(t);return n===e||!R(n)||_(n)?!1:L(n).position==="fixed"||Rt(n,e)}function Ce(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(a=>R(a)&&j(a)!=="body"),s=null;const l=L(t).position==="fixed";let r=l?U(t):t;for(;R(r)&&!_(r);){const a=L(r),c=wt(r);!c&&a.position==="fixed"&&(s=null),(l?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ot(r)&&!c&&Rt(t,r))?o=o.filter(d=>d!==r):s=a,r=U(r)}return e.set(t,o),o}function pe(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?dt(e)?[]:Ce(e,this._c):[].concat(n),o],a=r[0],c=r.reduce((f,d)=>{const A=Dt(e,d,s);return f.top=S(A.top,f.top),f.right=D(A.right,f.right),f.bottom=D(A.bottom,f.bottom),f.left=S(A.left,f.left),f},Dt(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function he(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}}function we(t,e,n){const o=M(e),s=T(e),l=n==="fixed",r=Z(t,!0,l,e);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!l)if((j(e)!=="body"||ot(s))&&(a=At(e)),o){const A=Z(e,!0,l,e);c.x=A.x+e.clientLeft,c.y=A.y+e.clientTop}else s&&(c.x=Ft(s));const f=r.left+a.scrollLeft-c.x,d=r.top+a.scrollTop-c.y;return{x:f,y:d,width:r.width,height:r.height}}function xt(t){return L(t).position==="static"}function Mt(t,e){return!M(t)||L(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ht(t,e){const n=Q(t);if(dt(t))return n;if(!M(t)){let s=U(t);for(;s&&!_(s);){if(R(s)&&!xt(s))return s;s=U(s)}return n}let o=Mt(t,e);for(;o&&re(o)&&xt(o);)o=Mt(o,e);return o&&_(o)&&xt(o)&&!wt(o)?n:o||ce(t)||n}const Be=async function(t){const e=this.getOffsetParent||Ht,n=this.getDimensions,o=await n(t.floating);return{reference:we(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ee(t){return L(t).direction==="rtl"}const xe={convertOffsetParentRelativeRectToViewportRelativeRect:de,getDocumentElement:T,getClippingRect:pe,getOffsetParent:Ht,getElementRects:Be,getClientRects:Ae,getDimensions:he,getScale:X,isElement:R,isRTL:Ee};function ye(t,e){let n=null,o;const s=T(t);function l(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),l();const{left:f,top:d,width:A,height:m}=t.getBoundingClientRect();if(a||e(),!A||!m)return;const g=ct(d),C=ct(s.clientWidth-(f+A)),h=ct(s.clientHeight-(d+m)),w=ct(f),E={rootMargin:-g+"px "+-C+"px "+-h+"px "+-w+"px",threshold:S(0,D(1,c))||1};let x=!0;function p(u){const I=u[0].intersectionRatio;if(I!==c){if(!x)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(p,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(p,E)}n.observe(t)}return r(!0),l}function Ie(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Et(t),d=s||l?[...f?it(f):[],...it(e)]:[];d.forEach(B=>{s&&B.addEventListener("scroll",n,{passive:!0}),l&&B.addEventListener("resize",n)});const A=f&&a?ye(f,n):null;let m=-1,g=null;r&&(g=new ResizeObserver(B=>{let[E]=B;E&&E.target===f&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),n()}),f&&!c&&g.observe(f),g.observe(e));let C,h=c?Z(t):null;c&&w();function w(){const B=Z(t);h&&(B.x!==h.x||B.y!==h.y||B.width!==h.width||B.height!==h.height)&&n(),h=B,C=requestAnimationFrame(w)}return n(),()=>{var B;d.forEach(E=>{s&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),A==null||A(),(B=g)==null||B.disconnect(),g=null,c&&cancelAnimationFrame(C)}}const be=ie,Se=se,Qe=ne,ke=le,Le=ee,ve=(t,e,n)=>{const o=new Map,s={platform:xe,...n},l={...s.platform,_c:o};return te(t,e,{...s,platform:l})};function Fe(t){return t!=null&&typeof t=="object"&&"$el"in t}function yt(t){if(Fe(t)){const e=t.$el;return ht(e)&&j(e)==="#comment"?null:e}return t}function tt(t){return typeof t=="function"?t():i.unref(t)}function De(t){return{name:"arrow",options:t,fn(e){const n=yt(tt(t.element));return n==null?{}:Le({element:n,padding:t.padding}).fn(e)}}}function Tt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ot(t,e){const n=Tt(t);return Math.round(e*n)/n}function Re(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var y;return(y=tt(n.open))!=null?y:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var y;return(y=tt(n.placement))!=null?y:"bottom"}),a=i.computed(()=>{var y;return(y=tt(n.strategy))!=null?y:"absolute"}),c=i.computed(()=>{var y;return(y=tt(n.transform))!=null?y:!0}),f=i.computed(()=>yt(t.value)),d=i.computed(()=>yt(e.value)),A=i.ref(0),m=i.ref(0),g=i.ref(a.value),C=i.ref(r.value),h=i.shallowRef({}),w=i.ref(!1),B=i.computed(()=>{const y={position:g.value,left:"0",top:"0"};if(!d.value)return y;const v=Ot(d.value,A.value),k=Ot(d.value,m.value);return c.value?{...y,transform:"translate("+v+"px, "+k+"px)",...Tt(d.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:v+"px",top:k+"px"}});let E;function x(){f.value==null||d.value==null||ve(f.value,d.value,{middleware:l.value,placement:r.value,strategy:a.value}).then(y=>{A.value=y.x,m.value=y.y,g.value=y.strategy,C.value=y.placement,h.value=y.middlewareData,w.value=!0})}function p(){typeof E=="function"&&(E(),E=void 0)}function u(){if(p(),o===void 0){x();return}if(f.value!=null&&d.value!=null){E=o(f.value,d.value,x);return}}function I(){s.value||(w.value=!1)}return i.watch([l,r,a],x,{flush:"sync"}),i.watch([f,d],u,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(p),{x:i.shallowReadonly(A),y:i.shallowReadonly(m),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(h),isPositioned:i.shallowReadonly(w),floatingStyles:B,update:x}}const Me="data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e",V=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},He={name:"Logo"},Te={src:Me,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function Oe(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",Te)}const Ge=V(He,[["render",Oe]]),Je="data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57Ozs////////yH/C05FVFNDQVBFMi4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IYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",Ue={name:"Loading"},Ve=t=>(i.pushScopeId("data-v-a0957544"),t=t(),i.popScopeId(),t),Ye={class:"rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300"},Ke=[Ve(()=>i.createElementVNode("img",{src:Je,alt:"Loading",class:"w-12"},null,-1))];function Ne(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Ye,Ke)}const We=V(Ue,[["render",Ne],["__scopeId","data-v-a0957544"]]),qe={class:"capitalize text-base italic font-normal text-slate-400"},je={class:"text-base leading-6 text-textCustom"},Ze={__name:"Dict",props:{dictionary:Array},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.dictionary,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"mt-2"},[i.createElementVNode("p",qe,i.toDisplayString(o.pos),1),i.createElementVNode("span",je,i.toDisplayString(o.terms.join(", ")),1)]))),128))]))}},Pe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e",ze="data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e",$e=[i.createElementVNode("img",{class:"w-5",src:Pe,alt:"Play"},null,-1)],_e=[i.createElementVNode("img",{class:"w-5",src:ze,alt:"Stop"},null,-1)],Gt={__name:"Player",props:{tts:{type:String,default:""}},emits:["loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.computed(()=>n.tts),l=i.ref(!1),r=new Audio;i.watch(s,()=>{if(!s.value){l.value=!1;return}c()},{immediate:!0}),i.onUnmounted(()=>{f(),r.src=""});function a(){if(s.value){c();return}l.value=!0,o("loadTTS")}function c(){s.value&&(r.src=s.value,l.value=!0,r.play().catch(()=>{l.value=!1}))}function f(){r.pause(),r.currentTime=0,l.value=!1}return r.onended=()=>{l.value=!1},(d,A)=>l.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"btn btn-xs btn-ghost btn-circle",onClick:f},_e)):(i.openBlock(),i.createElementBlock("button",{key:0,class:"btn btn-xs btn-ghost btn-circle",onClick:a},$e))}},Xe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e",t2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e",e2={name:"Favorite",props:["isFilled"]},n2={class:"btn btn-xs btn-circle btn-ghost"},o2={key:0,class:"w-5",src:Xe,alt:"Clear"},i2={key:1,class:"w-5",src:t2,alt:"Clear"};function s2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",n2,[n.isFilled?(i.openBlock(),i.createElementBlock("img",o2)):(i.openBlock(),i.createElementBlock("img",i2))])}const Jt=V(e2,[["render",s2]]),l2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",r2={},c2={class:"btn btn-xs btn-ghost btn-circle"},a2=[i.createElementVNode("img",{class:"w-5",src:l2,alt:"Icon description"},null,-1)];function f2(t,e){return i.openBlock(),i.createElementBlock("button",c2,a2)}const Ut=V(r2,[["render",f2]]),d2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",A2={},g2={class:"btn btn-xs btn-circle btn-ghost"},u2=[i.createElementVNode("img",{class:"w-5",src:d2,alt:"Clear"},null,-1)];function m2(t,e){return i.openBlock(),i.createElementBlock("button",g2,u2)}const Vt=V(A2,[["render",m2]]),C2={name:"Sentences",props:["sentences"]},p2={class:"text-base text-textCustom leading-tight p-0 mr-2"};function h2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",p2,i.toDisplayString(n.sentences),1)}const w2=V(C2,[["render",h2]]),B2={name:"Phonetic",props:["phonetic"]},E2={class:"p-0 m-0"},x2={class:"text-sm font-md text-slate-400"};function y2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",E2,[i.createElementVNode("span",x2,"/"+i.toDisplayString(n.phonetic)+"/",1)])}const I2=V(B2,[["render",y2]]),b2={class:"flex flex-col"},S2={key:0,class:"flex flex-row pb-2 pl-10"},Yt={__name:"Header",props:{tts:String,sentences:String,phonetic:String,isLongSentence:Boolean,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean},emits:["favorite","setting","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e;return(s,l)=>(i.openBlock(),i.createElementBlock("div",b2,[i.createElementVNode("div",{class:i.normalizeClass(["flex p-2 pt-2 pb-1",{"flex-row-reverse":n.isLongSentence,"flex-row justify-between":!n.isLongSentence}])},[i.createElementVNode("div",{class:i.normalizeClass(["flex flex-row gap-2",{"order-2":n.isLongSentence,"items-center":!n.isLongSentence}])},[t.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Gt,{key:0,tts:n.tts,onLoadTTS:l[0]||(l[0]=r=>s.$emit("loadTTS"))},null,8,["tts"])),i.createVNode(w2,{sentences:t.isServiceUnavailable?"Service Unavailable":n.sentences},null,8,["sentences"])],2),i.createElementVNode("div",{class:i.normalizeClass(["flex",{"flex-col items-end":n.isLongSentence,"flex-row justify-right items-center ml-2":!n.isLongSentence}])},[n.isLongSentence?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Vt,{onClick:l[1]||(l[1]=r=>o("close"))}),i.createVNode(Gt,{tts:n.tts,onLoadTTS:l[2]||(l[2]=r=>s.$emit("loadTTS"))},null,8,["tts"]),!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[3]||(l[3]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[4]||(l[4]=r=>o("setting"))})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[5]||(l[5]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[6]||(l[6]=r=>o("setting"))}),i.createVNode(Vt,{onClick:l[7]||(l[7]=r=>o("close"))})],64))],2)],2),n.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",S2,[n.phonetic?(i.openBlock(),i.createBlock(I2,{key:0,phonetic:n.phonetic},null,8,["phonetic"])):i.createCommentVNode("",!0)]))]))}},et={LOGO:"LOGO",LOADING:"LOADING",DATA:"DATA",ERROR:"ERROR",HIDDEN:"HIDDEN"},Q2=["ar","fa","iw","yi","ur","pa"],k2={key:0,class:"flex justify-center"},L2={key:1,class:"flex justify-center"},v2={key:2,class:"wrapper shadow-custom rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},F2=V(Object.assign({name:"Bubble",props:["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"],emits:["logo","favorite","settings","close","loadTTS"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1}},watch:{translation:{handler(){var t,e,n,o;try{this.data=this.translation,this.isLongSentence=!((e=(t=this.data)==null?void 0:t.phonetic)!=null&&e.src||((o=(n=this.data)==null?void 0:n.dictionary)==null?void 0:o.length)>0),this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}},immediate:!0},status(){this.status===et.ERROR&&(this.isServiceUnavailable=!0)}}},{setup(t){return(e,n)=>t.status===i.unref(et).LOGO?(i.openBlock(),i.createElementBlock("div",k2,[i.createVNode(Ge,{onClick:n[0]||(n[0]=o=>e.$emit("logo"))})])):t.status===i.unref(et).LOADING?(i.openBlock(),i.createElementBlock("div",L2,[i.createVNode(We)])):t.status!==i.unref(et).HIDDEN?(i.openBlock(),i.createElementBlock("div",v2,[e.isServiceUnavailable?(i.openBlock(),i.createBlock(Yt,{key:0,isServiceUnavailable:e.isServiceUnavailable,isLongSentence:!1,onFavorite:n[1]||(n[1]=o=>e.$emit("favorite")),onSetting:n[2]||(n[2]=o=>e.$emit("settings")),onClose:n[3]||(n[3]=o=>e.$emit("close")),onLoadTTS:n[4]||(n[4]=o=>e.$emit("loadTTS"))},null,8,["isServiceUnavailable"])):(i.openBlock(),i.createBlock(Yt,{key:1,tts:t.tts,sentences:e.data.result,phonetic:e.data.phonetic.src,isFavorite:t.isFavorite,isFavoriteFeatureEnabled:t.isFavoriteFeatureEnabled,isLongSentence:e.isLongSentence,onFavorite:n[5]||(n[5]=o=>e.$emit("favorite")),onSetting:n[6]||(n[6]=o=>e.$emit("settings")),onClose:n[7]||(n[7]=o=>e.$emit("close")),onLoadTTS:n[8]||(n[8]=o=>e.$emit("loadTTS"))},null,8,["tts","sentences","phonetic","isFavorite","isFavoriteFeatureEnabled","isLongSentence"])),!e.isServiceUnavailable&&e.data.dictionary.length>0?(i.openBlock(),i.createBlock(Ze,{key:2,class:"p-3 pt-0 border-t border-[#D3D4D9]",dictionary:e.data.dictionary},null,8,["dictionary"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-5f316748"]]);function D2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}};(function(t){(function(){var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",o=n&&window.mozInnerScreenX!=null;function s(l,r,a){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var c=a&&a.debug||!1;if(c){var f=document.querySelector("#input-textarea-caret-position-mirror-div");f&&f.parentNode.removeChild(f)}var d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);var A=d.style,m=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,g=l.nodeName==="INPUT";A.whiteSpace="pre-wrap",g||(A.wordWrap="break-word"),A.position="absolute",c||(A.visibility="hidden"),e.forEach(function(w){g&&w==="lineHeight"?A.lineHeight=m.height:A[w]=m[w]}),o?l.scrollHeight>parseInt(m.height)&&(A.overflowY="scroll"):A.overflow="hidden",d.textContent=l.value.substring(0,r),g&&(d.textContent=d.textContent.replace(/\s/g," "));var C=document.createElement("span");C.textContent=l.value.substring(r)||".",d.appendChild(C);var h={top:C.offsetTop+parseInt(m.borderTopWidth),left:C.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return c?C.style.backgroundColor="#aaa":document.body.removeChild(d),h}t.exports=s})()})(Kt);var R2=Kt.exports;const Nt=D2(R2);function st(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),t&&t.type==="password"||!n.length&&(!(t&&t.selectionEnd)||(n=t.value.substring(t.selectionStart,t.selectionEnd),n=n.trim(),!n.length)))return!1;let s=e.getRangeAt(0).getBoundingClientRect(),{top:l,bottom:r,left:a,width:c,height:f}=s;if(!r&&!a){if(!t.selectionEnd)return!1;let d=Nt(t,t.selectionStart),A=Nt(t,t.selectionEnd);s=t.getBoundingClientRect(),a=s.left+d.left,c=A.left-d.left,d.top!=A.top&&(a=s.left,c=s.width),l=s.top+d.top,r=s.top+A.top+20}return f===0&&(f=r-l),{text:n,x:a,y:l,top:l,bottom:r,left:a,right:a+c,width:c,height:f}}function M2(){const t=document.getElementsByTagName("ddict-div");for(let e of t)if(!e.parentNode.matches('wrapper[dir="rtl"]')){const n=document.createElement("wrapper");n.setAttribute("dir","rtl"),e.parentNode.insertBefore(n,e),n.appendChild(e)}}function H2(){const t=document.querySelectorAll('wrapper[dir="rtl"]');for(let e of t){const n=e.querySelector("ddict-div");n&&(e.parentNode.insertBefore(n,e),e.remove())}}const Wt={supportRTL:M2,removeRTL:H2},T2={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(t,{emit:e}){const n=t,o=e,s=()=>{setTimeout(()=>{n.textSelected&&a("DoubleClick")},50)},l=c=>{(c.altKey&&c.key.toLowerCase()==="w"||c.key==="∑")&&n.textSelected&&(a("Alt+W"),c.preventDefault()),c.key==="Escape"&&(a("Escape"),c.preventDefault())},r=c=>{c.key==="Shift"&&n.textSelected&&a("Shift")},a=c=>{switch(c){case"DoubleClick":o("toggleKey","DoubleClick");break;case"Shift":o("toggleKey","Shift");break;case"Alt+W":o("toggleKey","Alt+W");break;case"Escape":o("close");break}};return i.onMounted(()=>{window.addEventListener("dblclick",s),window.addEventListener("keydown",l),window.addEventListener("keyup",r)}),i.onUnmounted(()=>{window.removeEventListener("dblclick",s),window.removeEventListener("keydown",l),window.removeEventListener("keyup",r)}),(c,f)=>(i.openBlock(),i.createElementBlock("div"))}},O2={__name:"BubbleWrapper",props:{translation:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:String,scale:{type:Number,default:1}},emits:["toggleKey","logo","favorite","settings","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(null),l=i.ref(null),r=i.ref(null),a=i.ref(!1),c=i.ref(""),f=i.computed(()=>typeof window>"u"||!r.value||!c.value?null:{getBoundingClientRect:()=>st(r.value),getClientRects:()=>st(r.value)}),d=i.computed(()=>{if(!g.value.arrow||n.status===et.LOGO)return{display:"none"};const{x:p,y:u}=g.value.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:p!=null?`${p}px`:"",top:u!=null?`${u}px`:"",[I]:"-8px",position:"absolute"}}),A=i.computed(()=>{var u;switch((u=g.value.offset)==null?void 0:u.placement){case"top":return{transform:"rotate(180deg)"};case"left":return{transform:"rotate(90deg)"};case"right":return{transform:"rotate(-90deg)"};default:return{}}}),{floatingStyles:m,middlewareData:g,update:C}=Re(f,s,{placement:"bottom",middleware:[be(8),Qe(),Se(),De({element:l}),ke({apply({rects:p,elements:u}){Object.assign(u.floating.style,{maxWidth:`${p.reference.width>250?p.reference.width/n.scale:250}px`,zIndex:9999})}})],whileElementsMounted(p,u,I){return Ie(p,u,I,{ancestorScroll:!0})}}),h=i.computed(()=>{if(n.scale===1)return m.value;const p=m.value.transform;return{...m.value,transform:`${p} scale(${n.scale})`}});i.onMounted(()=>{document.addEventListener("keyup",p=>{if(!st(p.target)){c.value="",E();return}}),document.documentElement.onclick=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)},document.documentElement.ontouchend=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)}}),i.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const w=(p,u)=>{n.status!==et.LOGO&&o("close"),r.value=u.target,c.value=p.text,a.value=!0,i.nextTick(C)},B=p=>{p.stopPropagation()},E=async()=>{a.value=!1,o("close")},x=()=>{var u;const p=(u=n==null?void 0:n.translation)==null?void 0:u.target;Q2.includes(p)?Wt.supportRTL():Wt.removeRTL()};return i.watch(()=>n.status,()=>{a.value&&i.nextTick(C),x()}),(p,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(h.value),onClick:B},[i.createElementVNode("div",{ref_key:"arrowEl",ref:l,style:i.normalizeStyle(d.value),class:"absolute transform z-10"},[i.createElementVNode("img",{style:i.normalizeStyle(A.value),class:"w-5",src:qt,alt:"arrow"},null,4)],4),i.createVNode(F2,{translation:n.translation,tts:n.tts,status:n.status,isFavorite:n.isFavorite,isFavoriteFeatureEnabled:n.isFavoriteFeatureEnabled,onLogo:u[0]||(u[0]=I=>o("logo")),onFavorite:u[1]||(u[1]=I=>o("favorite")),onSettings:u[2]||(u[2]=I=>o("settings")),onClose:E,onLoadTTS:u[3]||(u[3]=I=>o("loadTTS"))},null,8,["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0),i.createVNode(T2,{textSelected:c.value,onToggleKey:u[4]||(u[4]=I=>o("toggleKey",I)),onClose:E},null,8,["textSelected"])],64))}};W.default=O2,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(N,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(N=typeof globalThis<"u"?globalThis:N||self,i(N.Bubble={},N.Vue))})(this,function(N,i){"use strict";const qt="data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e",D=Math.min,S=Math.max,rt=Math.round,ct=Math.floor,G=t=>({x:t,y:t}),jt={left:"right",right:"left",bottom:"top",top:"bottom"},Zt={start:"end",end:"start"};function gt(t,e,n){return S(t,D(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function J(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function ut(t){return t==="y"?"height":"width"}function W(t){return["top","bottom"].includes(J(t))?"y":"x"}function mt(t){return It(W(t))}function Pt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=mt(t),l=ut(s);let r=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=at(r)),[r,at(r)]}function zt(t){const e=at(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>Zt[e])}function $t(t,e,n){const o=["left","right"],s=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:o:e?o:s;case"left":case"right":return e?l:r;default:return[]}}function _t(t,e,n,o){const s=$(t);let l=$t(J(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(Ct)))),l}function at(t){return t.replace(/left|right|bottom|top/g,e=>jt[e])}function Xt(t){return{top:0,right:0,bottom:0,left:0,...t}}function bt(t){return typeof t!="number"?Xt(t):{top:t,right:t,bottom:t,left:t}}function ft(t){const{x:e,y:n,width:o,height:s}=t;return{width:o,height:s,top:n,left:e,right:e+o,bottom:n+s,x:e,y:n}}function St(t,e,n){let{reference:o,floating:s}=t;const l=W(e),r=mt(e),a=ut(r),c=J(e),f=l==="y",d=o.x+o.width/2-s.width/2,A=o.y+o.height/2-s.height/2,m=o[a]/2-s[a]/2;let g;switch(c){case"top":g={x:d,y:o.y-s.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:A};break;case"left":g={x:o.x-s.width,y:A};break;default:g={x:o.x,y:o.y}}switch($(e)){case"start":g[r]-=m*(n&&f?-1:1);break;case"end":g[r]+=m*(n&&f?-1:1);break}return g}const te=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,a=l.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:A}=St(f,o,c),m=o,g={},C=0;for(let h=0;h<a.length;h++){const{name:w,fn:B}=a[h],{x:E,y:x,data:p,reset:u}=await B({x:d,y:A,initialPlacement:o,placement:m,strategy:s,middlewareData:g,rects:f,platform:r,elements:{reference:t,floating:e}});d=E??d,A=x??A,g={...g,[w]:{...g[w],...p}},u&&C<=50&&(C++,typeof u=="object"&&(u.placement&&(m=u.placement),u.rects&&(f=u.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):u.rects),{x:d,y:A}=St(f,m,c)),h=-1)}return{x:d,y:A,placement:m,strategy:s,middlewareData:g}};async function pt(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:a,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:A="floating",altBoundary:m=!1,padding:g=0}=z(e,t),C=bt(g),w=a[m?A==="floating"?"reference":"floating":A],B=ft(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(w)))==null||n?w:w.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:c})),E=A==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),p=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},u=ft(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:x,strategy:c}):E);return{top:(B.top-u.top+C.top)/p.y,bottom:(u.bottom-B.bottom+C.bottom)/p.y,left:(B.left-u.left+C.left)/p.x,right:(u.right-B.right+C.right)/p.x}}const ee=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:a,middlewareData:c}=e,{element:f,padding:d=0}=z(t,e)||{};if(f==null)return{};const A=bt(d),m={x:n,y:o},g=mt(s),C=ut(g),h=await r.getDimensions(f),w=g==="y",B=w?"top":"left",E=w?"bottom":"right",x=w?"clientHeight":"clientWidth",p=l.reference[C]+l.reference[g]-m[g]-l.floating[C],u=m[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let y=I?I[x]:0;(!y||!await(r.isElement==null?void 0:r.isElement(I)))&&(y=a.floating[x]||l.floating[C]);const F=p/2-u/2,k=y/2-h[C]/2-1,v=D(A[B],k),V=D(A[E],k),P=v,lt=y-h[C]-V,b=y/2-h[C]/2+F,nt=gt(P,b,lt),O=!c.arrow&&$(s)!=null&&b!==nt&&l.reference[C]/2-(b<P?v:V)-h[C]/2<0,H=O?b<P?b-P:b-lt:0;return{[g]:m[g]+H,data:{[g]:nt,centerOffset:b-nt-H,...O&&{alignmentOffset:H}},reset:O}}}),ne=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:s,middlewareData:l,rects:r,initialPlacement:a,platform:c,elements:f}=e,{mainAxis:d=!0,crossAxis:A=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:h=!0,...w}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const B=J(s),E=W(a),x=J(a)===a,p=await(c.isRTL==null?void 0:c.isRTL(f.floating)),u=m||(x||!h?[at(a)]:zt(a)),I=C!=="none";!m&&I&&u.push(..._t(a,h,C,p));const y=[a,...u],F=await pt(e,w),k=[];let v=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&k.push(F[B]),A){const b=Pt(s,r,p);k.push(F[b[0]],F[b[1]])}if(v=[...v,{placement:s,overflows:k}],!k.every(b=>b<=0)){var V,P;const b=(((V=l.flip)==null?void 0:V.index)||0)+1,nt=y[b];if(nt)return{data:{index:b,overflows:v},reset:{placement:nt}};let O=(P=v.filter(H=>H.overflows[0]<=0).sort((H,Y)=>H.overflows[1]-Y.overflows[1])[0])==null?void 0:P.placement;if(!O)switch(g){case"bestFit":{var lt;const H=(lt=v.filter(Y=>{if(I){const K=W(Y.placement);return K===E||K==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(K=>K>0).reduce((K,T2)=>K+T2,0)]).sort((Y,K)=>Y[1]-K[1])[0])==null?void 0:lt[0];H&&(O=H);break}case"initialPlacement":O=a;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function oe(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=J(n),a=$(n),c=W(n)==="y",f=["left","top"].includes(r)?-1:1,d=l&&c?-1:1,A=z(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:C}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return a&&typeof C=="number"&&(g=a==="end"?C*-1:C),c?{x:g*d,y:m*f}:{x:m*f,y:g*d}}const ie=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:s,y:l,placement:r,middlewareData:a}=e,c=await oe(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:w=>{let{x:B,y:E}=w;return{x:B,y:E}}},...c}=z(t,e),f={x:n,y:o},d=await pt(e,c),A=W(J(s)),m=It(A);let g=f[m],C=f[A];if(l){const w=m==="y"?"top":"left",B=m==="y"?"bottom":"right",E=g+d[w],x=g-d[B];g=gt(E,g,x)}if(r){const w=A==="y"?"top":"left",B=A==="y"?"bottom":"right",E=C+d[w],x=C-d[B];C=gt(E,C,x)}const h=a.fn({...e,[m]:g,[A]:C});return{...h,data:{x:h.x-n,y:h.y-o}}}}},le=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:s,elements:l}=e,{apply:r=()=>{},...a}=z(t,e),c=await pt(e,a),f=J(n),d=$(n),A=W(n)==="y",{width:m,height:g}=o.floating;let C,h;f==="top"||f==="bottom"?(C=f,h=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,C=d==="end"?"top":"bottom");const w=g-c.top-c.bottom,B=m-c.left-c.right,E=D(g-c[C],w),x=D(m-c[h],B),p=!e.middlewareData.shift;let u=E,I=x;if(A?I=d||p?D(x,B):B:u=d||p?D(E,w):w,p&&!d){const F=S(c.left,0),k=S(c.right,0),v=S(c.top,0),V=S(c.bottom,0);A?I=m-2*(F!==0||k!==0?F+k:S(c.left,c.right)):u=g-2*(v!==0||V!==0?v+V:S(c.top,c.bottom))}await r({...e,availableWidth:I,availableHeight:u});const y=await s.getDimensions(l.floating);return m!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function q(t){return ht(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function T(t){var e;return(e=(ht(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ht(t){return t instanceof Node||t instanceof Q(t).Node}function R(t){return t instanceof Element||t instanceof Q(t).Element}function M(t){return t instanceof HTMLElement||t instanceof Q(t).HTMLElement}function Qt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot}function ot(t){const{overflow:e,overflowX:n,overflowY:o,display:s}=L(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(s)}function re(t){return["table","td","th"].includes(q(t))}function dt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function wt(t){const e=Bt(),n=L(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ce(t){let e=U(t);for(;M(e)&&!_(e);){if(dt(e))return null;if(wt(e))return e;e=U(e)}return null}function Bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _(t){return["html","body","#document"].includes(q(t))}function L(t){return Q(t).getComputedStyle(t)}function At(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if(q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qt(t)&&t.host||T(t);return Qt(e)?e.host:e}function kt(t){const e=U(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:M(e)&&ot(e)?e:kt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=kt(t),l=s===((o=t.ownerDocument)==null?void 0:o.body),r=Q(s);return l?e.concat(r,r.visualViewport||[],ot(s)?s:[],r.frameElement&&n?it(r.frameElement):[]):e.concat(s,it(s,[],n))}function Lt(t){const e=L(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=M(t),l=s?t.offsetWidth:n,r=s?t.offsetHeight:o,a=rt(n)!==l||rt(o)!==r;return a&&(n=l,o=r),{width:n,height:o,$:a}}function Et(t){return R(t)?t:t.contextElement}function X(t){const e=Et(t);if(!M(e))return G(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=Lt(e);let r=(l?rt(n.width):n.width)/o,a=(l?rt(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const ae=G(0);function Ft(t){const e=Q(t);return!Bt()||!e.visualViewport?ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Q(t)?!1:e}function j(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Et(t);let r=G(1);e&&(o?R(o)&&(r=X(o)):r=X(t));const a=fe(l,n,o)?Ft(l):G(0);let c=(s.left+a.x)/r.x,f=(s.top+a.y)/r.y,d=s.width/r.x,A=s.height/r.y;if(l){const m=Q(l),g=o&&R(o)?Q(o):o;let C=m,h=C.frameElement;for(;h&&o&&g!==C;){const w=X(h),B=h.getBoundingClientRect(),E=L(h),x=B.left+(h.clientLeft+parseFloat(E.paddingLeft))*w.x,p=B.top+(h.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,A*=w.y,c+=x,f+=p,C=Q(h),h=C.frameElement}}return ft({width:d,height:A,x:c,y:f})}function de(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=T(o),a=e?dt(e.floating):!1;if(o===r||a&&l)return n;let c={scrollLeft:0,scrollTop:0},f=G(1);const d=G(0),A=M(o);if((A||!A&&!l)&&((q(o)!=="body"||ot(r))&&(c=At(o)),M(o))){const m=j(o);f=X(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function Ae(t){return Array.from(t.getClientRects())}function vt(t){return j(T(t)).left+At(t).scrollLeft}function ge(t){const e=T(t),n=At(t),o=t.ownerDocument.body,s=S(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=S(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+vt(t);const a=-n.scrollTop;return L(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:a}}function ue(t,e){const n=Q(t),o=T(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,a=0,c=0;if(s){l=s.width,r=s.height;const f=Bt();(!f||f&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:l,height:r,x:a,y:c}}function me(t,e){const n=j(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=M(t)?X(t):G(1),r=t.clientWidth*l.x,a=t.clientHeight*l.y,c=s*l.x,f=o*l.y;return{width:r,height:a,x:c,y:f}}function Dt(t,e,n){let o;if(e==="viewport")o=ue(t,n);else if(e==="document")o=ge(T(t));else if(R(e))o=me(e,n);else{const s=Ft(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return ft(o)}function Rt(t,e){const n=U(t);return n===e||!R(n)||_(n)?!1:L(n).position==="fixed"||Rt(n,e)}function Ce(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(a=>R(a)&&q(a)!=="body"),s=null;const l=L(t).position==="fixed";let r=l?U(t):t;for(;R(r)&&!_(r);){const a=L(r),c=wt(r);!c&&a.position==="fixed"&&(s=null),(l?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ot(r)&&!c&&Rt(t,r))?o=o.filter(d=>d!==r):s=a,r=U(r)}return e.set(t,o),o}function pe(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?dt(e)?[]:Ce(e,this._c):[].concat(n),o],a=r[0],c=r.reduce((f,d)=>{const A=Dt(e,d,s);return f.top=S(A.top,f.top),f.right=D(A.right,f.right),f.bottom=D(A.bottom,f.bottom),f.left=S(A.left,f.left),f},Dt(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function he(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}}function we(t,e,n){const o=M(e),s=T(e),l=n==="fixed",r=j(t,!0,l,e);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!l)if((q(e)!=="body"||ot(s))&&(a=At(e)),o){const A=j(e,!0,l,e);c.x=A.x+e.clientLeft,c.y=A.y+e.clientTop}else s&&(c.x=vt(s));const f=r.left+a.scrollLeft-c.x,d=r.top+a.scrollTop-c.y;return{x:f,y:d,width:r.width,height:r.height}}function xt(t){return L(t).position==="static"}function Mt(t,e){return!M(t)||L(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ht(t,e){const n=Q(t);if(dt(t))return n;if(!M(t)){let s=U(t);for(;s&&!_(s);){if(R(s)&&!xt(s))return s;s=U(s)}return n}let o=Mt(t,e);for(;o&&re(o)&&xt(o);)o=Mt(o,e);return o&&_(o)&&xt(o)&&!wt(o)?n:o||ce(t)||n}const Be=async function(t){const e=this.getOffsetParent||Ht,n=this.getDimensions,o=await n(t.floating);return{reference:we(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ee(t){return L(t).direction==="rtl"}const xe={convertOffsetParentRelativeRectToViewportRelativeRect:de,getDocumentElement:T,getClippingRect:pe,getOffsetParent:Ht,getElementRects:Be,getClientRects:Ae,getDimensions:he,getScale:X,isElement:R,isRTL:Ee};function ye(t,e){let n=null,o;const s=T(t);function l(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),l();const{left:f,top:d,width:A,height:m}=t.getBoundingClientRect();if(a||e(),!A||!m)return;const g=ct(d),C=ct(s.clientWidth-(f+A)),h=ct(s.clientHeight-(d+m)),w=ct(f),E={rootMargin:-g+"px "+-C+"px "+-h+"px "+-w+"px",threshold:S(0,D(1,c))||1};let x=!0;function p(u){const I=u[0].intersectionRatio;if(I!==c){if(!x)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(p,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(p,E)}n.observe(t)}return r(!0),l}function Ie(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=Et(t),d=s||l?[...f?it(f):[],...it(e)]:[];d.forEach(B=>{s&&B.addEventListener("scroll",n,{passive:!0}),l&&B.addEventListener("resize",n)});const A=f&&a?ye(f,n):null;let m=-1,g=null;r&&(g=new ResizeObserver(B=>{let[E]=B;E&&E.target===f&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),n()}),f&&!c&&g.observe(f),g.observe(e));let C,h=c?j(t):null;c&&w();function w(){const B=j(t);h&&(B.x!==h.x||B.y!==h.y||B.width!==h.width||B.height!==h.height)&&n(),h=B,C=requestAnimationFrame(w)}return n(),()=>{var B;d.forEach(E=>{s&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),A==null||A(),(B=g)==null||B.disconnect(),g=null,c&&cancelAnimationFrame(C)}}const be=ie,Se=se,Qe=ne,ke=le,Le=ee,Fe=(t,e,n)=>{const o=new Map,s={platform:xe,...n},l={...s.platform,_c:o};return te(t,e,{...s,platform:l})};function ve(t){return t!=null&&typeof t=="object"&&"$el"in t}function yt(t){if(ve(t)){const e=t.$el;return ht(e)&&q(e)==="#comment"?null:e}return t}function tt(t){return typeof t=="function"?t():i.unref(t)}function De(t){return{name:"arrow",options:t,fn(e){const n=yt(tt(t.element));return n==null?{}:Le({element:n,padding:t.padding}).fn(e)}}}function Tt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ot(t,e){const n=Tt(t);return Math.round(e*n)/n}function Re(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var y;return(y=tt(n.open))!=null?y:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var y;return(y=tt(n.placement))!=null?y:"bottom"}),a=i.computed(()=>{var y;return(y=tt(n.strategy))!=null?y:"absolute"}),c=i.computed(()=>{var y;return(y=tt(n.transform))!=null?y:!0}),f=i.computed(()=>yt(t.value)),d=i.computed(()=>yt(e.value)),A=i.ref(0),m=i.ref(0),g=i.ref(a.value),C=i.ref(r.value),h=i.shallowRef({}),w=i.ref(!1),B=i.computed(()=>{const y={position:g.value,left:"0",top:"0"};if(!d.value)return y;const F=Ot(d.value,A.value),k=Ot(d.value,m.value);return c.value?{...y,transform:"translate("+F+"px, "+k+"px)",...Tt(d.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:F+"px",top:k+"px"}});let E;function x(){f.value==null||d.value==null||Fe(f.value,d.value,{middleware:l.value,placement:r.value,strategy:a.value}).then(y=>{A.value=y.x,m.value=y.y,g.value=y.strategy,C.value=y.placement,h.value=y.middlewareData,w.value=!0})}function p(){typeof E=="function"&&(E(),E=void 0)}function u(){if(p(),o===void 0){x();return}if(f.value!=null&&d.value!=null){E=o(f.value,d.value,x);return}}function I(){s.value||(w.value=!1)}return i.watch([l,r,a],x,{flush:"sync"}),i.watch([f,d],u,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(p),{x:i.shallowReadonly(A),y:i.shallowReadonly(m),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(h),isPositioned:i.shallowReadonly(w),floatingStyles:B,update:x}}const Me="data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e",Z=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},He={name:"Logo"},Te={src:Me,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function Oe(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",Te)}const Ge=Z(He,[["render",Oe]]),Je="data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57Ozs////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAwAfACwAAAAAQAAmAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33guL8vb67EFhwGosA4FCaUBbC0Glo40sWGehAJpB3JxNFMVgEGr5XpHT8uY3IkUDl/SJJNgs909hGZtlzI4cSIbfXYGRgCEbAZnX4OJZEZRj1KLgY6THZGYHZVxl5OamJ2Nm5kekpOjTZ+PoamMq6Wuj6pArISGp5u1OhVqjxAbcAECfH0KFz9xBxzFdgkaRiNIDH3BVk0LARvSDgXVlBYDPcwECCIOFxFa0NJIBBM5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B4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",Ue={name:"Loading"},Ve=t=>(i.pushScopeId("data-v-a0957544"),t=t(),i.popScopeId(),t),Ye={class:"rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300"},Ke=[Ve(()=>i.createElementVNode("img",{src:Je,alt:"Loading",class:"w-12"},null,-1))];function Ne(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Ye,Ke)}const We=Z(Ue,[["render",Ne],["__scopeId","data-v-a0957544"]]),qe={class:"capitalize text-base italic font-normal text-slate-400"},je={class:"text-base leading-6 text-textCustom"},Ze={__name:"Dict",props:{dictionary:Array},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.dictionary,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:s,class:"mt-2"},[i.createElementVNode("p",qe,i.toDisplayString(o.pos),1),i.createElementVNode("span",je,i.toDisplayString(o.terms.join(", ")),1)]))),128))]))}},Pe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e",ze="data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e",$e=[i.createElementVNode("img",{class:"w-5",src:Pe,alt:"Play"},null,-1)],_e=[i.createElementVNode("img",{class:"w-5",src:ze,alt:"Stop"},null,-1)],Gt={__name:"Player",props:{tts:{type:String,default:""}},emits:["loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.computed(()=>n.tts),l=i.ref(!1),r=new Audio;i.watch(s,()=>{if(!s.value){l.value=!1;return}c()},{immediate:!0}),i.onUnmounted(()=>{f(),r.src=""});function a(){if(s.value){c();return}l.value=!0,o("loadTTS")}function c(){s.value&&(r.src=s.value,l.value=!0,r.play().catch(()=>{l.value=!1}))}function f(){r.pause(),r.currentTime=0,l.value=!1}return r.onended=()=>{l.value=!1},(d,A)=>l.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"btn btn-xs btn-ghost btn-circle",onClick:f},_e)):(i.openBlock(),i.createElementBlock("button",{key:0,class:"btn btn-xs btn-ghost btn-circle",onClick:a},$e))}},Xe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e",t2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e",e2={name:"Favorite",props:["isFilled"]},n2={class:"btn btn-xs btn-circle btn-ghost"},o2={key:0,class:"w-5",src:Xe,alt:"Clear"},i2={key:1,class:"w-5",src:t2,alt:"Clear"};function s2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",n2,[n.isFilled?(i.openBlock(),i.createElementBlock("img",o2)):(i.openBlock(),i.createElementBlock("img",i2))])}const Jt=Z(e2,[["render",s2]]),l2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",r2={},c2={class:"btn btn-xs btn-ghost btn-circle"},a2=[i.createElementVNode("img",{class:"w-5",src:l2,alt:"Icon description"},null,-1)];function f2(t,e){return i.openBlock(),i.createElementBlock("button",c2,a2)}const Ut=Z(r2,[["render",f2]]),d2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",A2={},g2={class:"btn btn-xs btn-circle btn-ghost"},u2=[i.createElementVNode("img",{class:"w-5",src:d2,alt:"Clear"},null,-1)];function m2(t,e){return i.openBlock(),i.createElementBlock("button",g2,u2)}const Vt=Z(A2,[["render",m2]]),C2={class:"flex flex-col gap-2"},p2={__name:"Sentences",props:{sentences:{type:String,default:""}},setup(t){const e=t,n=i.computed(()=>e.sentences.split(` | ||
`));return(o,s)=>(i.openBlock(),i.createElementBlock("div",C2,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(l,r)=>(i.openBlock(),i.createElementBlock("p",{key:r,class:"text-base text-textCustom leading-tight p-0 mr-2"},i.toDisplayString(l),1))),128))]))}},h2={name:"Phonetic",props:["phonetic"]},w2={class:"p-0 m-0"},B2={class:"text-sm font-md text-slate-400"};function E2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",w2,[i.createElementVNode("span",B2,"/"+i.toDisplayString(n.phonetic)+"/",1)])}const x2=Z(h2,[["render",E2]]),y2={class:"flex flex-col"},I2={key:0,class:"flex flex-row pb-2 pl-10"},Yt={__name:"Header",props:{tts:String,sentences:String,phonetic:String,isLongSentence:Boolean,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean},emits:["favorite","setting","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e;return(s,l)=>(i.openBlock(),i.createElementBlock("div",y2,[i.createElementVNode("div",{class:i.normalizeClass(["flex p-2 pt-2 pb-1",{"flex-row-reverse":n.isLongSentence,"flex-row justify-between":!n.isLongSentence}])},[i.createElementVNode("div",{class:i.normalizeClass(["flex flex-row gap-2",{"order-2":n.isLongSentence,"items-center":!n.isLongSentence}])},[t.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Gt,{key:0,tts:n.tts,onLoadTTS:l[0]||(l[0]=r=>s.$emit("loadTTS"))},null,8,["tts"])),i.createVNode(p2,{sentences:t.isServiceUnavailable?"Service Unavailable":n.sentences},null,8,["sentences"])],2),i.createElementVNode("div",{class:i.normalizeClass(["flex",{"flex-col items-end":n.isLongSentence,"flex-row justify-right items-center ml-2":!n.isLongSentence}])},[n.isLongSentence?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Vt,{onClick:l[1]||(l[1]=r=>o("close"))}),i.createVNode(Gt,{tts:n.tts,onLoadTTS:l[2]||(l[2]=r=>s.$emit("loadTTS"))},null,8,["tts"]),!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[3]||(l[3]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[4]||(l[4]=r=>o("setting"))})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[5]||(l[5]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Ut,{onClick:l[6]||(l[6]=r=>o("setting"))}),i.createVNode(Vt,{onClick:l[7]||(l[7]=r=>o("close"))})],64))],2)],2),n.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",I2,[n.phonetic?(i.openBlock(),i.createBlock(x2,{key:0,phonetic:n.phonetic},null,8,["phonetic"])):i.createCommentVNode("",!0)]))]))}},et={LOGO:"LOGO",LOADING:"LOADING",DATA:"DATA",ERROR:"ERROR",HIDDEN:"HIDDEN"},b2=["ar","fa","iw","yi","ur","pa"],S2={key:0,class:"flex justify-center"},Q2={key:1,class:"flex justify-center"},k2={key:2,class:"wrapper shadow-custom rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},L2=Z(Object.assign({name:"Bubble",props:["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"],emits:["logo","favorite","settings","close","loadTTS"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1}},watch:{translation:{handler(){var t,e,n,o;try{this.data=this.translation,this.isLongSentence=!((e=(t=this.data)==null?void 0:t.phonetic)!=null&&e.src||((o=(n=this.data)==null?void 0:n.dictionary)==null?void 0:o.length)>0),this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}},immediate:!0},status(){this.status===et.ERROR&&(this.isServiceUnavailable=!0)}}},{setup(t){return(e,n)=>t.status===i.unref(et).LOGO?(i.openBlock(),i.createElementBlock("div",S2,[i.createVNode(Ge,{onClick:n[0]||(n[0]=o=>e.$emit("logo"))})])):t.status===i.unref(et).LOADING?(i.openBlock(),i.createElementBlock("div",Q2,[i.createVNode(We)])):t.status!==i.unref(et).HIDDEN?(i.openBlock(),i.createElementBlock("div",k2,[e.isServiceUnavailable?(i.openBlock(),i.createBlock(Yt,{key:0,isServiceUnavailable:e.isServiceUnavailable,isLongSentence:!1,onFavorite:n[1]||(n[1]=o=>e.$emit("favorite")),onSetting:n[2]||(n[2]=o=>e.$emit("settings")),onClose:n[3]||(n[3]=o=>e.$emit("close")),onLoadTTS:n[4]||(n[4]=o=>e.$emit("loadTTS"))},null,8,["isServiceUnavailable"])):(i.openBlock(),i.createBlock(Yt,{key:1,tts:t.tts,sentences:e.data.result,phonetic:e.data.phonetic.src,isFavorite:t.isFavorite,isFavoriteFeatureEnabled:t.isFavoriteFeatureEnabled,isLongSentence:e.isLongSentence,onFavorite:n[5]||(n[5]=o=>e.$emit("favorite")),onSetting:n[6]||(n[6]=o=>e.$emit("settings")),onClose:n[7]||(n[7]=o=>e.$emit("close")),onLoadTTS:n[8]||(n[8]=o=>e.$emit("loadTTS"))},null,8,["tts","sentences","phonetic","isFavorite","isFavoriteFeatureEnabled","isLongSentence"])),!e.isServiceUnavailable&&e.data.dictionary.length>0?(i.openBlock(),i.createBlock(Ze,{key:2,class:"p-3 pt-0 border-t border-[#D3D4D9]",dictionary:e.data.dictionary},null,8,["dictionary"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-5f316748"]]);function F2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}};(function(t){(function(){var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",o=n&&window.mozInnerScreenX!=null;function s(l,r,a){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var c=a&&a.debug||!1;if(c){var f=document.querySelector("#input-textarea-caret-position-mirror-div");f&&f.parentNode.removeChild(f)}var d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);var A=d.style,m=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,g=l.nodeName==="INPUT";A.whiteSpace="pre-wrap",g||(A.wordWrap="break-word"),A.position="absolute",c||(A.visibility="hidden"),e.forEach(function(w){g&&w==="lineHeight"?A.lineHeight=m.height:A[w]=m[w]}),o?l.scrollHeight>parseInt(m.height)&&(A.overflowY="scroll"):A.overflow="hidden",d.textContent=l.value.substring(0,r),g&&(d.textContent=d.textContent.replace(/\s/g," "));var C=document.createElement("span");C.textContent=l.value.substring(r)||".",d.appendChild(C);var h={top:C.offsetTop+parseInt(m.borderTopWidth),left:C.offsetLeft+parseInt(m.borderLeftWidth),height:parseInt(m.lineHeight)};return c?C.style.backgroundColor="#aaa":document.body.removeChild(d),h}t.exports=s})()})(Kt);var v2=Kt.exports;const Nt=F2(v2);function st(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),t&&t.type==="password"||!n.length&&(!(t&&t.selectionEnd)||(n=t.value.substring(t.selectionStart,t.selectionEnd),n=n.trim(),!n.length)))return!1;let s=e.getRangeAt(0).getBoundingClientRect(),{top:l,bottom:r,left:a,width:c,height:f}=s;if(!r&&!a){if(!t.selectionEnd)return!1;let d=Nt(t,t.selectionStart),A=Nt(t,t.selectionEnd);s=t.getBoundingClientRect(),a=s.left+d.left,c=A.left-d.left,d.top!=A.top&&(a=s.left,c=s.width),l=s.top+d.top,r=s.top+A.top+20}return f===0&&(f=r-l),{text:n,x:a,y:l,top:l,bottom:r,left:a,right:a+c,width:c,height:f}}function D2(){const t=document.getElementsByTagName("ddict-div");for(let e of t)if(!e.parentNode.matches('wrapper[dir="rtl"]')){const n=document.createElement("wrapper");n.setAttribute("dir","rtl"),e.parentNode.insertBefore(n,e),n.appendChild(e)}}function R2(){const t=document.querySelectorAll('wrapper[dir="rtl"]');for(let e of t){const n=e.querySelector("ddict-div");n&&(e.parentNode.insertBefore(n,e),e.remove())}}const Wt={supportRTL:D2,removeRTL:R2},M2={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(t,{emit:e}){const n=t,o=e,s=()=>{setTimeout(()=>{n.textSelected&&a("DoubleClick")},50)},l=c=>{(c.altKey&&c.key.toLowerCase()==="w"||c.key==="∑")&&n.textSelected&&(a("Alt+W"),c.preventDefault()),c.key==="Escape"&&(a("Escape"),c.preventDefault())},r=c=>{c.key==="Shift"&&n.textSelected&&a("Shift")},a=c=>{switch(c){case"DoubleClick":o("toggleKey","DoubleClick");break;case"Shift":o("toggleKey","Shift");break;case"Alt+W":o("toggleKey","Alt+W");break;case"Escape":o("close");break}};return i.onMounted(()=>{window.addEventListener("dblclick",s),window.addEventListener("keydown",l),window.addEventListener("keyup",r)}),i.onUnmounted(()=>{window.removeEventListener("dblclick",s),window.removeEventListener("keydown",l),window.removeEventListener("keyup",r)}),(c,f)=>(i.openBlock(),i.createElementBlock("div"))}},H2={__name:"BubbleWrapper",props:{translation:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:String,scale:{type:Number,default:1}},emits:["toggleKey","logo","favorite","settings","close","loadTTS"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(null),l=i.ref(null),r=i.ref(null),a=i.ref(!1),c=i.ref(""),f=i.computed(()=>typeof window>"u"||!r.value||!c.value?null:{getBoundingClientRect:()=>st(r.value),getClientRects:()=>st(r.value)}),d=i.computed(()=>{if(!g.value.arrow||n.status===et.LOGO)return{display:"none"};const{x:p,y:u}=g.value.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:p!=null?`${p}px`:"",top:u!=null?`${u}px`:"",[I]:"-8px",position:"absolute"}}),A=i.computed(()=>{var u;switch((u=g.value.offset)==null?void 0:u.placement){case"top":return{transform:"rotate(180deg)"};case"left":return{transform:"rotate(90deg)"};case"right":return{transform:"rotate(-90deg)"};default:return{}}}),{floatingStyles:m,middlewareData:g,update:C}=Re(f,s,{placement:"bottom",middleware:[be(8),Qe(),Se(),De({element:l}),ke({apply({rects:p,elements:u}){Object.assign(u.floating.style,{maxWidth:`${p.reference.width>250?p.reference.width/n.scale:250}px`,zIndex:9999})}})],whileElementsMounted(p,u,I){return Ie(p,u,I,{ancestorScroll:!0})}}),h=i.computed(()=>{if(n.scale===1)return m.value;const p=m.value.transform;return{...m.value,transform:`${p} scale(${n.scale})`}});i.onMounted(()=>{document.addEventListener("keyup",p=>{if(!st(p.target)){c.value="",E();return}}),document.documentElement.onclick=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)},document.documentElement.ontouchend=p=>{const u=st(p.target);if(!u){c.value="",E();return}w(u,p)}}),i.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const w=(p,u)=>{n.status!==et.LOGO&&o("close"),r.value=u.target,c.value=p.text,a.value=!0,i.nextTick(C)},B=p=>{p.stopPropagation()},E=async()=>{a.value=!1,o("close")},x=()=>{var u;const p=(u=n==null?void 0:n.translation)==null?void 0:u.target;b2.includes(p)?Wt.supportRTL():Wt.removeRTL()};return i.watch(()=>n.status,()=>{a.value&&i.nextTick(C),x()}),(p,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(h.value),onClick:B},[i.createElementVNode("div",{ref_key:"arrowEl",ref:l,style:i.normalizeStyle(d.value),class:"absolute transform z-10"},[i.createElementVNode("img",{style:i.normalizeStyle(A.value),class:"w-5",src:qt,alt:"arrow"},null,4)],4),i.createVNode(L2,{translation:n.translation,tts:n.tts,status:n.status,isFavorite:n.isFavorite,isFavoriteFeatureEnabled:n.isFavoriteFeatureEnabled,onLogo:u[0]||(u[0]=I=>o("logo")),onFavorite:u[1]||(u[1]=I=>o("favorite")),onSettings:u[2]||(u[2]=I=>o("settings")),onClose:E,onLoadTTS:u[3]||(u[3]=I=>o("loadTTS"))},null,8,["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0),i.createVNode(M2,{textSelected:c.value,onToggleKey:u[4]||(u[4]=I=>o("toggleKey",I)),onClose:E},null,8,["textSelected"])],64))}};N.default=H2,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
{ | ||
"name": "@ddict/bubble", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207012
2211