Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ddict/bubble

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ddict/bubble - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/bubble.umd.js

@@ -1,1 +0,1 @@

(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 Wt="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='rgba(212,212,212,1)'%20stroke-width='0.5'/%3e%3c/svg%3e",v=Math.min,Q=Math.max,lt=Math.round,rt=Math.floor,G=t=>({x:t,y:t}),qt={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function gt(t,e,n){return Q(t,v(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 Ct(t){return It(q(t))}function Zt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=Ct(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=ct(r)),[r,ct(r)]}function Pt(t){const e=ct(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>jt[e])}function zt(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=zt(J(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(mt)))),l}function ct(t){return t.replace(/left|right|bottom|top/g,e=>qt[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 at(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 Qt(t,e,n){let{reference:o,floating:s}=t;const l=q(e),r=Ct(e),f=ut(r),c=J(e),a=l==="y",A=o.x+o.width/2-s.width/2,d=o.y+o.height/2-s.height/2,h=o[f]/2-s[f]/2;let g;switch(c){case"top":g={x:A,y:o.y-s.height};break;case"bottom":g={x:A,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-s.width,y:d};break;default:g={x:o.x,y:o.y}}switch($(e)){case"start":g[r]-=h*(n&&a?-1:1);break;case"end":g[r]+=h*(n&&a?-1:1);break}return g}const _t=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,f=l.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:A,y:d}=Qt(a,o,c),h=o,g={},C=0;for(let p=0;p<f.length;p++){const{name:B,fn:w}=f[p],{x:m,y:u,data:E,reset:y}=await w({x:A,y:d,initialPlacement:o,placement:h,strategy:s,middlewareData:g,rects:a,platform:r,elements:{reference:t,floating:e}});A=m??A,d=u??d,g={...g,[B]:{...g[B],...E}},y&&C<=50&&(C++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):y.rects),{x:A,y:d}=Qt(a,h,c)),p=-1)}return{x:A,y:d,placement:h,strategy:s,middlewareData:g}};async function ht(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:f,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:A="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=z(e,t),C=bt(g),B=f[h?d==="floating"?"reference":"floating":d],w=at(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(B)))==null||n?B:B.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:a,rootBoundary:A,strategy:c})),m=d==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,u=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),E=await(l.isElement==null?void 0:l.isElement(u))?await(l.getScale==null?void 0:l.getScale(u))||{x:1,y:1}:{x:1,y:1},y=at(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:m,offsetParent:u,strategy:c}):m);return{top:(w.top-y.top+C.top)/E.y,bottom:(y.bottom-w.bottom+C.bottom)/E.y,left:(w.left-y.left+C.left)/E.x,right:(y.right-w.right+C.right)/E.x}}const te=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:f,middlewareData:c}=e,{element:a,padding:A=0}=z(t,e)||{};if(a==null)return{};const d=bt(A),h={x:n,y:o},g=Ct(s),C=ut(g),p=await r.getDimensions(a),B=g==="y",w=B?"top":"left",m=B?"bottom":"right",u=B?"clientHeight":"clientWidth",E=l.reference[C]+l.reference[g]-h[g]-l.floating[C],y=h[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let x=I?I[u]:0;(!x||!await(r.isElement==null?void 0:r.isElement(I)))&&(x=f.floating[u]||l.floating[C]);const F=E/2-y/2,S=x/2-p[C]/2-1,D=v(d[w],S),Y=v(d[m],S),P=D,st=x-p[C]-Y,b=x/2-p[C]/2+F,nt=gt(P,b,st),O=!c.arrow&&$(s)!=null&&b!==nt&&l.reference[C]/2-(b<P?D:Y)-p[C]/2<0,H=O?b<P?b-P:b-st:0;return{[g]:h[g]+H,data:{[g]:nt,centerOffset:b-nt-H,...O&&{alignmentOffset:H}},reset:O}}}),ee=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:f,platform:c,elements:a}=e,{mainAxis:A=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...B}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const w=J(s),m=q(f),u=J(f)===f,E=await(c.isRTL==null?void 0:c.isRTL(a.floating)),y=h||(u||!p?[ct(f)]:Pt(f)),I=C!=="none";!h&&I&&y.push(...$t(f,p,C,E));const x=[f,...y],F=await ht(e,B),S=[];let D=((o=l.flip)==null?void 0:o.overflows)||[];if(A&&S.push(F[w]),d){const b=Zt(s,r,E);S.push(F[b[0]],F[b[1]])}if(D=[...D,{placement:s,overflows:S}],!S.every(b=>b<=0)){var Y,P;const b=(((Y=l.flip)==null?void 0:Y.index)||0)+1,nt=x[b];if(nt)return{data:{index:b,overflows:D},reset:{placement:nt}};let O=(P=D.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:P.placement;if(!O)switch(g){case"bestFit":{var st;const H=(st=D.filter(U=>{if(I){const N=q(U.placement);return N===m||N==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(N=>N>0).reduce((N,M2)=>N+M2,0)]).sort((U,N)=>U[1]-N[1])[0])==null?void 0:st[0];H&&(O=H);break}case"initialPlacement":O=f;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function ne(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=J(n),f=$(n),c=q(n)==="y",a=["left","top"].includes(r)?-1:1,A=l&&c?-1:1,d=z(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&typeof C=="number"&&(g=f==="end"?C*-1:C),c?{x:g*A,y:h*a}:{x:h*a,y:g*A}}const oe=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:f}=e,c=await ne(e,t);return r===((n=f.offset)==null?void 0:n.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},ie=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:f={fn:B=>{let{x:w,y:m}=B;return{x:w,y:m}}},...c}=z(t,e),a={x:n,y:o},A=await ht(e,c),d=q(J(s)),h=It(d);let g=a[h],C=a[d];if(l){const B=h==="y"?"top":"left",w=h==="y"?"bottom":"right",m=g+A[B],u=g-A[w];g=gt(m,g,u)}if(r){const B=d==="y"?"top":"left",w=d==="y"?"bottom":"right",m=C+A[B],u=C-A[w];C=gt(m,C,u)}const p=f.fn({...e,[h]:g,[d]:C});return{...p,data:{x:p.x-n,y:p.y-o}}}}},se=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=()=>{},...f}=z(t,e),c=await ht(e,f),a=J(n),A=$(n),d=q(n)==="y",{width:h,height:g}=o.floating;let C,p;a==="top"||a==="bottom"?(C=a,p=A===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=a,C=A==="end"?"top":"bottom");const B=g-c.top-c.bottom,w=h-c.left-c.right,m=v(g-c[C],B),u=v(h-c[p],w),E=!e.middlewareData.shift;let y=m,I=u;if(d?I=A||E?v(u,w):w:y=A||E?v(m,B):B,E&&!A){const F=Q(c.left,0),S=Q(c.right,0),D=Q(c.top,0),Y=Q(c.bottom,0);d?I=h-2*(F!==0||S!==0?F+S:Q(c.left,c.right)):y=g-2*(D!==0||Y!==0?D+Y:Q(c.top,c.bottom))}await r({...e,availableWidth:I,availableHeight:y});const x=await s.getDimensions(l.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function j(t){return pt(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function T(t){var e;return(e=(pt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pt(t){return t instanceof Node||t instanceof k(t).Node}function R(t){return t instanceof Element||t instanceof k(t).Element}function M(t){return t instanceof HTMLElement||t instanceof k(t).HTMLElement}function kt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(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 le(t){return["table","td","th"].includes(j(t))}function ft(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 re(t){let e=K(t);for(;M(e)&&!X(e);){if(ft(e))return null;if(wt(e))return e;e=K(e)}return null}function Bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(j(t))}function L(t){return k(t).getComputedStyle(t)}function At(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(j(t)==="html")return t;const e=t.assignedSlot||t.parentNode||kt(t)&&t.host||T(t);return kt(e)?e.host:e}function St(t){const e=K(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:M(e)&&ot(e)?e:St(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=St(t),l=s===((o=t.ownerDocument)==null?void 0:o.body),r=k(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,f=lt(n)!==l||lt(o)!==r;return f&&(n=l,o=r),{width:n,height:o,$:f}}function Et(t){return R(t)?t:t.contextElement}function _(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?lt(n.width):n.width)/o,f=(l?lt(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!f||!Number.isFinite(f))&&(f=1),{x:r,y:f}}const ce=G(0);function Ft(t){const e=k(t);return!Bt()||!e.visualViewport?ce:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==k(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=_(o)):r=_(t));const f=ae(l,n,o)?Ft(l):G(0);let c=(s.left+f.x)/r.x,a=(s.top+f.y)/r.y,A=s.width/r.x,d=s.height/r.y;if(l){const h=k(l),g=o&&R(o)?k(o):o;let C=h,p=C.frameElement;for(;p&&o&&g!==C;){const B=_(p),w=p.getBoundingClientRect(),m=L(p),u=w.left+(p.clientLeft+parseFloat(m.paddingLeft))*B.x,E=w.top+(p.clientTop+parseFloat(m.paddingTop))*B.y;c*=B.x,a*=B.y,A*=B.x,d*=B.y,c+=u,a+=E,C=k(p),p=C.frameElement}}return at({width:A,height:d,x:c,y:a})}function fe(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=T(o),f=e?ft(e.floating):!1;if(o===r||f&&l)return n;let c={scrollLeft:0,scrollTop:0},a=G(1);const A=G(0),d=M(o);if((d||!d&&!l)&&((j(o)!=="body"||ot(r))&&(c=At(o)),M(o))){const h=Z(o);a=_(o),A.x=h.x+o.clientLeft,A.y=h.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+A.x,y:n.y*a.y-c.scrollTop*a.y+A.y}}function Ae(t){return Array.from(t.getClientRects())}function Dt(t){return Z(T(t)).left+At(t).scrollLeft}function de(t){const e=T(t),n=At(t),o=t.ownerDocument.body,s=Q(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=Q(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Dt(t);const f=-n.scrollTop;return L(o).direction==="rtl"&&(r+=Q(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:f}}function ge(t,e){const n=k(t),o=T(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,f=0,c=0;if(s){l=s.width,r=s.height;const a=Bt();(!a||a&&e==="fixed")&&(f=s.offsetLeft,c=s.offsetTop)}return{width:l,height:r,x:f,y:c}}function ue(t,e){const n=Z(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=M(t)?_(t):G(1),r=t.clientWidth*l.x,f=t.clientHeight*l.y,c=s*l.x,a=o*l.y;return{width:r,height:f,x:c,y:a}}function vt(t,e,n){let o;if(e==="viewport")o=ge(t,n);else if(e==="document")o=de(T(t));else if(R(e))o=ue(e,n);else{const s=Ft(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return at(o)}function Rt(t,e){const n=K(t);return n===e||!R(n)||X(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(f=>R(f)&&j(f)!=="body"),s=null;const l=L(t).position==="fixed";let r=l?K(t):t;for(;R(r)&&!X(r);){const f=L(r),c=wt(r);!c&&f.position==="fixed"&&(s=null),(l?!c&&!s:!c&&f.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ot(r)&&!c&&Rt(t,r))?o=o.filter(A=>A!==r):s=f,r=K(r)}return e.set(t,o),o}function me(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?ft(e)?[]:Ce(e,this._c):[].concat(n),o],f=r[0],c=r.reduce((a,A)=>{const d=vt(e,A,s);return a.top=Q(d.top,a.top),a.right=v(d.right,a.right),a.bottom=v(d.bottom,a.bottom),a.left=Q(d.left,a.left),a},vt(e,f,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 pe(t,e,n){const o=M(e),s=T(e),l=n==="fixed",r=Z(t,!0,l,e);let f={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!l)if((j(e)!=="body"||ot(s))&&(f=At(e)),o){const d=Z(e,!0,l,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else s&&(c.x=Dt(s));const a=r.left+f.scrollLeft-c.x,A=r.top+f.scrollTop-c.y;return{x:a,y:A,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=k(t);if(ft(t))return n;if(!M(t)){let s=K(t);for(;s&&!X(s);){if(R(s)&&!xt(s))return s;s=K(s)}return n}let o=Mt(t,e);for(;o&&le(o)&&xt(o);)o=Mt(o,e);return o&&X(o)&&xt(o)&&!wt(o)?n:o||re(t)||n}const we=async function(t){const e=this.getOffsetParent||Ht,n=this.getDimensions,o=await n(t.floating);return{reference:pe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Be(t){return L(t).direction==="rtl"}const Ee={convertOffsetParentRelativeRectToViewportRelativeRect:fe,getDocumentElement:T,getClippingRect:me,getOffsetParent:Ht,getElementRects:we,getClientRects:Ae,getDimensions:he,getScale:_,isElement:R,isRTL:Be};function xe(t,e){let n=null,o;const s=T(t);function l(){var f;clearTimeout(o),(f=n)==null||f.disconnect(),n=null}function r(f,c){f===void 0&&(f=!1),c===void 0&&(c=1),l();const{left:a,top:A,width:d,height:h}=t.getBoundingClientRect();if(f||e(),!d||!h)return;const g=rt(A),C=rt(s.clientWidth-(a+d)),p=rt(s.clientHeight-(A+h)),B=rt(a),m={rootMargin:-g+"px "+-C+"px "+-p+"px "+-B+"px",threshold:Q(0,v(1,c))||1};let u=!0;function E(y){const I=y[0].intersectionRatio;if(I!==c){if(!u)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}u=!1}try{n=new IntersectionObserver(E,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(t)}return r(!0),l}function ye(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=Et(t),A=s||l?[...a?it(a):[],...it(e)]:[];A.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),l&&w.addEventListener("resize",n)});const d=a&&f?xe(a,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(w=>{let[m]=w;m&&m.target===a&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var u;(u=g)==null||u.observe(e)})),n()}),a&&!c&&g.observe(a),g.observe(e));let C,p=c?Z(t):null;c&&B();function B(){const w=Z(t);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&n(),p=w,C=requestAnimationFrame(B)}return n(),()=>{var w;A.forEach(m=>{s&&m.removeEventListener("scroll",n),l&&m.removeEventListener("resize",n)}),d==null||d(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(C)}}const Ie=oe,be=ie,Qe=ee,ke=se,Se=te,Le=(t,e,n)=>{const o=new Map,s={platform:Ee,...n},l={...s.platform,_c:o};return _t(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 pt(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?{}:Se({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 ve(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var x;return(x=tt(n.open))!=null?x:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var x;return(x=tt(n.placement))!=null?x:"bottom"}),f=i.computed(()=>{var x;return(x=tt(n.strategy))!=null?x:"absolute"}),c=i.computed(()=>{var x;return(x=tt(n.transform))!=null?x:!0}),a=i.computed(()=>yt(t.value)),A=i.computed(()=>yt(e.value)),d=i.ref(0),h=i.ref(0),g=i.ref(f.value),C=i.ref(r.value),p=i.shallowRef({}),B=i.ref(!1),w=i.computed(()=>{const x={position:g.value,left:"0",top:"0"};if(!A.value)return x;const F=Ot(A.value,d.value),S=Ot(A.value,h.value);return c.value?{...x,transform:"translate("+F+"px, "+S+"px)",...Tt(A.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:F+"px",top:S+"px"}});let m;function u(){a.value==null||A.value==null||Le(a.value,A.value,{middleware:l.value,placement:r.value,strategy:f.value}).then(x=>{d.value=x.x,h.value=x.y,g.value=x.strategy,C.value=x.placement,p.value=x.middlewareData,B.value=!0})}function E(){typeof m=="function"&&(m(),m=void 0)}function y(){if(E(),o===void 0){u();return}if(a.value!=null&&A.value!=null){m=o(a.value,A.value,u);return}}function I(){s.value||(B.value=!1)}return i.watch([l,r,f],u,{flush:"sync"}),i.watch([a,A],y,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(E),{x:i.shallowReadonly(d),y:i.shallowReadonly(h),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(p),isPositioned:i.shallowReadonly(B),floatingStyles:w,update:u}}const Re="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},Me={name:"Logo"},He={src:Re,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function Te(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",He)}const Oe=V(Me,[["render",Te]]),Ge="data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QAKD9onvL4iBrNhLQsL6OINGsJXJCEAIfkEBQMAHwAsGAASACIAFAAABcLgJ45kaY6Ld65eu5KDU1yT+n6ec1HBch8BgeEjKThsJc8BwxAlKBWkCOOoABIlAcc38iwGwhKEUBM5EBnIymAZqDxW7EryOHgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",Je={name:"Loading"},Ke={class:"rounded-lg bg-white p-1 border drop-shadow-2xl border-solid border-neutral-300"},Ve=[i.createElementVNode("img",{src:Ge,alt:"Loading",class:"w-12"},null,-1)];function Ye(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Ke,Ve)}const Ue=V(Je,[["render",Ye]]),Ne={name:"Dict",props:["dictionary"]},We={class:"capitalize text-base italic font-normal text-slate-400"};function qe(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.dictionary,(r,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"mt-2"},[i.createElementVNode("p",We,i.toDisplayString(r.pos),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.terms,(c,a)=>(i.openBlock(),i.createElementBlock("span",{key:a,class:"text-base leading-6 text-textCustom"},i.toDisplayString(c)+", ",1))),128))]))),128))])}const je=V(Ne,[["render",qe]]),Ze="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",Pe="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",ze=[i.createElementVNode("img",{class:"w-5",src:Ze,alt:"Play"},null,-1)],$e=[i.createElementVNode("img",{class:"w-5",src:Pe,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(()=>{a(),r.src=""});function f(){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 a(){r.pause(),r.currentTime=0,l.value=!1}return r.onended=()=>{l.value=!1},(A,d)=>l.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"btn btn-xs btn-ghost btn-circle",onClick:a},$e)):(i.openBlock(),i.createElementBlock("button",{key:0,class:"btn btn-xs btn-ghost btn-circle",onClick:f},ze))}},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",_e="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",t2={name:"Favorite",props:["isFilled"]},e2={class:"btn btn-xs btn-circle btn-ghost"},n2={key:0,class:"w-5",src:Xe,alt:"Clear"},o2={key:1,class:"w-5",src:_e,alt:"Clear"};function i2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",e2,[n.isFilled?(i.openBlock(),i.createElementBlock("img",n2)):(i.openBlock(),i.createElementBlock("img",o2))])}const Jt=V(t2,[["render",i2]]),s2="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",l2={},r2={class:"btn btn-xs btn-ghost btn-circle"},c2=[i.createElementVNode("img",{class:"w-5",src:s2,alt:"Icon description"},null,-1)];function a2(t,e){return i.openBlock(),i.createElementBlock("button",r2,c2)}const Kt=V(l2,[["render",a2]]),f2="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={},d2={class:"btn btn-xs btn-circle btn-ghost"},g2=[i.createElementVNode("img",{class:"w-5",src:f2,alt:"Clear"},null,-1)];function u2(t,e){return i.openBlock(),i.createElementBlock("button",d2,g2)}const Vt=V(A2,[["render",u2]]),C2={name:"Sentences",props:["sentences"]},m2={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",m2,i.toDisplayString(n.sentences),1)}const p2=V(C2,[["render",h2]]),w2={name:"Phonetic",props:["phonetic"]},B2={class:"p-0 m-0"},E2={class:"text-sm font-md text-slate-400"};function x2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",B2,[i.createElementVNode("span",E2,"/"+i.toDisplayString(n.phonetic)+"/",1)])}const y2=V(w2,[["render",x2]]),I2={class:"flex flex-col"},b2={key:0,class:"flex flex-row pb-2 border-b border-[#D3D4D9] 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",I2,[i.createElementVNode("div",{class:i.normalizeClass(["flex p-2 pt-2 pb-0",{"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(Kt,{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(Kt,{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",b2,[n.phonetic?(i.openBlock(),i.createBlock(y2,{key:0,phonetic:n.phonetic},null,8,["phonetic"])):i.createCommentVNode("",!0)]))]))}},et={LOGO:"LOGO",LOADING:"LOADING",DATA:"DATA",ERROR:"ERROR",HIDDEN:"HIDDEN"},Q2={key:0,class:"flex justify-center"},k2={key:1,class:"flex justify-center"},S2={key:2,class:"wrapper drop-shadow-2xl rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},L2=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(){try{this.data=this.translation,!this.data.dictionary||this.data.dictionary.length===0?this.isLongSentence=!0:this.isLongSentence=!1,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",Q2,[i.createVNode(Oe,{onClick:n[0]||(n[0]=o=>e.$emit("logo"))})])):t.status===i.unref(et).LOADING?(i.openBlock(),i.createElementBlock("div",k2,[i.createVNode(Ue)])):t.status!==i.unref(et).HIDDEN?(i.openBlock(),i.createElementBlock("div",S2,[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?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(je,{key:2,class:"p-3 pt-0",dictionary:e.data.dictionary},null,8,["dictionary"]))])):i.createCommentVNode("",!0)}});function F2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ut={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,f){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var c=f&&f.debug||!1;if(c){var a=document.querySelector("#input-textarea-caret-position-mirror-div");a&&a.parentNode.removeChild(a)}var A=document.createElement("div");A.id="input-textarea-caret-position-mirror-div",document.body.appendChild(A);var d=A.style,h=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,g=l.nodeName==="INPUT";d.whiteSpace="pre-wrap",g||(d.wordWrap="break-word"),d.position="absolute",c||(d.visibility="hidden"),e.forEach(function(B){g&&B==="lineHeight"?d.lineHeight=h.height:d[B]=h[B]}),o?l.scrollHeight>parseInt(h.height)&&(d.overflowY="scroll"):d.overflow="hidden",A.textContent=l.value.substring(0,r),g&&(A.textContent=A.textContent.replace(/\s/g," "));var C=document.createElement("span");C.textContent=l.value.substring(r)||".",A.appendChild(C);var p={top:C.offsetTop+parseInt(h.borderTopWidth),left:C.offsetLeft+parseInt(h.borderLeftWidth),height:parseInt(h.lineHeight)};return c?C.style.backgroundColor="#aaa":document.body.removeChild(A),p}t.exports=s})()})(Ut);var D2=Ut.exports;const Nt=F2(D2);function dt(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),!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:f,width:c,height:a}=s;if(!r&&!f){if(!t.selectionEnd)return!1;let A=Nt(t,t.selectionStart),d=Nt(t,t.selectionEnd);s=t.getBoundingClientRect(),f=s.left+A.left,c=d.left-A.left,A.top!=d.top&&(f=s.left,c=s.width),l=s.top+A.top,r=s.top+d.top+20}return a===0&&(a=r-l),{text:n,x:f,y:l,top:l,bottom:r,left:f,right:f+c,width:c,height:a}}const v2={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(!1),l=()=>{setTimeout(()=>{n.textSelected&&c("DoubleClick")},50)},r=a=>{a.key==="Shift"&&(s.value=!0,a.preventDefault()),a.altKey&&a.key.toLowerCase()==="w"&&n.textSelected&&(c("Alt+W"),a.preventDefault()),a.altKey&&a.shiftKey&&a.key.toLowerCase()==="d"&&(c("Alt+Shift+D"),a.preventDefault()),a.key==="Escape"&&(c("Escape"),a.preventDefault())},f=a=>{a.key==="Shift"&&n.textSelected&&(s.value=!1,c("Shift"))},c=a=>{switch(a){case"DoubleClick":o("toggleKey","DoubleClick");break;case"Shift":o("toggleKey","Shift");break;case"Alt+W":o("toggleKey","Alt+W");break;case"Alt+Shift+D":o("toggleKey","Alt+Shift+D");break;case"Escape":o("close");break}};return i.onMounted(()=>{window.addEventListener("dblclick",l),window.addEventListener("keydown",r),window.addEventListener("keyup",f)}),i.onUnmounted(()=>{window.removeEventListener("dblclick",l),window.removeEventListener("keydown",r),window.removeEventListener("keyup",f)}),(a,A)=>(i.openBlock(),i.createElementBlock("div"))}},R2={__name:"BubbleWrapper",props:{translation:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:String},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),f=i.ref(!1),c=i.ref(""),a=i.computed(()=>typeof window>"u"||!r.value||!c.value?null:{getBoundingClientRect:()=>dt(r.value),getClientRects:()=>dt(r.value)}),A=i.computed(()=>{if(!g.value.arrow||n.status===et.LOGO)return{display:"none"};const{x:m,y:u}=g.value.arrow,E={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:m!=null?`${m}px`:"",top:u!=null?`${u}px`:"",[E]:"-8px",position:"absolute"}}),d=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:h,middlewareData:g,update:C}=ve(a,s,{placement:"bottom",middleware:[Ie(8),Qe(),be(),De({element:l}),ke({apply({rects:m,elements:u}){Object.assign(u.floating.style,{maxWidth:`${m.reference.width>250?m.reference.width:250}px`,zIndex:9999})}})],whileElementsMounted(m,u,E){return ye(m,u,E,{ancestorScroll:!0})}});i.onMounted(()=>{document.documentElement.onclick=m=>{const u=dt(m.target);if(!u){c.value="",w();return}p(u,m)},document.documentElement.ontouchend=m=>{const u=dt(m.target);if(!u){c.value="",w();return}p(u,m)}}),i.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const p=(m,u)=>{n.status!==et.LOGO&&o("close"),r.value=u.target,c.value=m.text,f.value=!0,i.nextTick(C)},B=m=>{m.stopPropagation()},w=async()=>{f.value=!1,o("close")};return i.watch(()=>n.status,()=>{f.value&&i.nextTick(C)},{deep:!0}),(m,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(i.unref(h)),onClick:B},[i.createElementVNode("div",{ref_key:"arrowEl",ref:l,style:i.normalizeStyle(A.value),class:"absolute transform"},[i.createElementVNode("img",{style:i.normalizeStyle(d.value),class:"w-5",src:Wt,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]=E=>o("logo")),onFavorite:u[1]||(u[1]=E=>o("favorite")),onSettings:u[2]||(u[2]=E=>o("settings")),onClose:w,onLoadTTS:u[3]||(u[3]=E=>o("loadTTS"))},null,8,["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0),i.createVNode(v2,{textSelected:c.value,onToggleKey:u[4]||(u[4]=E=>o("toggleKey",E)),onClose:w},null,8,["textSelected"])],64))}};W.default=R2,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(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 Wt="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",v=Math.min,S=Math.max,lt=Math.round,rt=Math.floor,J=t=>({x:t,y:t}),qt={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function gt(t,e,n){return S(t,v(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function K(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(K(t))?"y":"x"}function Ct(t){return It(q(t))}function Zt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=Ct(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=ct(r)),[r,ct(r)]}function Pt(t){const e=ct(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>jt[e])}function zt(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=zt(K(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(mt)))),l}function ct(t){return t.replace(/left|right|bottom|top/g,e=>qt[e])}function _t(t){return{top:0,right:0,bottom:0,left:0,...t}}function bt(t){return typeof t!="number"?_t(t):{top:t,right:t,bottom:t,left:t}}function at(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=Ct(e),f=ut(r),c=K(e),a=l==="y",d=o.x+o.width/2-s.width/2,A=o.y+o.height/2-s.height/2,h=o[f]/2-s[f]/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]-=h*(n&&a?-1:1);break;case"end":g[r]+=h*(n&&a?-1:1);break}return g}const Xt=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,f=l.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:A}=St(a,o,c),h=o,g={},C=0;for(let p=0;p<f.length;p++){const{name:B,fn:w}=f[p],{x:m,y:u,data:E,reset:y}=await w({x:d,y:A,initialPlacement:o,placement:h,strategy:s,middlewareData:g,rects:a,platform:r,elements:{reference:t,floating:e}});d=m??d,A=u??A,g={...g,[B]:{...g[B],...E}},y&&C<=50&&(C++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):y.rects),{x:d,y:A}=St(a,h,c)),p=-1)}return{x:d,y:A,placement:h,strategy:s,middlewareData:g}};async function ht(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:f,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:A="floating",altBoundary:h=!1,padding:g=0}=z(e,t),C=bt(g),B=f[h?A==="floating"?"reference":"floating":A],w=at(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(B)))==null||n?B:B.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:a,rootBoundary:d,strategy:c})),m=A==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,u=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),E=await(l.isElement==null?void 0:l.isElement(u))?await(l.getScale==null?void 0:l.getScale(u))||{x:1,y:1}:{x:1,y:1},y=at(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:m,offsetParent:u,strategy:c}):m);return{top:(w.top-y.top+C.top)/E.y,bottom:(y.bottom-w.bottom+C.bottom)/E.y,left:(w.left-y.left+C.left)/E.x,right:(y.right-w.right+C.right)/E.x}}const te=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:f,middlewareData:c}=e,{element:a,padding:d=0}=z(t,e)||{};if(a==null)return{};const A=bt(d),h={x:n,y:o},g=Ct(s),C=ut(g),p=await r.getDimensions(a),B=g==="y",w=B?"top":"left",m=B?"bottom":"right",u=B?"clientHeight":"clientWidth",E=l.reference[C]+l.reference[g]-h[g]-l.floating[C],y=h[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let x=I?I[u]:0;(!x||!await(r.isElement==null?void 0:r.isElement(I)))&&(x=f.floating[u]||l.floating[C]);const F=E/2-y/2,k=x/2-p[C]/2-1,D=v(A[w],k),Y=v(A[m],k),P=D,st=x-p[C]-Y,b=x/2-p[C]/2+F,nt=gt(P,b,st),G=!c.arrow&&$(s)!=null&&b!==nt&&l.reference[C]/2-(b<P?D:Y)-p[C]/2<0,H=G?b<P?b-P:b-st:0;return{[g]:h[g]+H,data:{[g]:nt,centerOffset:b-nt-H,...G&&{alignmentOffset:H}},reset:G}}}),ee=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:f,platform:c,elements:a}=e,{mainAxis:d=!0,crossAxis:A=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...B}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const w=K(s),m=q(f),u=K(f)===f,E=await(c.isRTL==null?void 0:c.isRTL(a.floating)),y=h||(u||!p?[ct(f)]:Pt(f)),I=C!=="none";!h&&I&&y.push(...$t(f,p,C,E));const x=[f,...y],F=await ht(e,B),k=[];let D=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&k.push(F[w]),A){const b=Zt(s,r,E);k.push(F[b[0]],F[b[1]])}if(D=[...D,{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=x[b];if(nt)return{data:{index:b,overflows:D},reset:{placement:nt}};let G=(P=D.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:P.placement;if(!G)switch(g){case"bestFit":{var st;const H=(st=D.filter(U=>{if(I){const N=q(U.placement);return N===m||N==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(N=>N>0).reduce((N,H2)=>N+H2,0)]).sort((U,N)=>U[1]-N[1])[0])==null?void 0:st[0];H&&(G=H);break}case"initialPlacement":G=f;break}if(s!==G)return{reset:{placement:G}}}return{}}}};async function ne(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=K(n),f=$(n),c=q(n)==="y",a=["left","top"].includes(r)?-1:1,d=l&&c?-1:1,A=z(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return f&&typeof C=="number"&&(g=f==="end"?C*-1:C),c?{x:g*d,y:h*a}:{x:h*a,y:g*d}}const oe=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:f}=e,c=await ne(e,t);return r===((n=f.offset)==null?void 0:n.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:s+c.x,y:l+c.y,data:{...c,placement:r}}}}},ie=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:f={fn:B=>{let{x:w,y:m}=B;return{x:w,y:m}}},...c}=z(t,e),a={x:n,y:o},d=await ht(e,c),A=q(K(s)),h=It(A);let g=a[h],C=a[A];if(l){const B=h==="y"?"top":"left",w=h==="y"?"bottom":"right",m=g+d[B],u=g-d[w];g=gt(m,g,u)}if(r){const B=A==="y"?"top":"left",w=A==="y"?"bottom":"right",m=C+d[B],u=C-d[w];C=gt(m,C,u)}const p=f.fn({...e,[h]:g,[A]:C});return{...p,data:{x:p.x-n,y:p.y-o}}}}},se=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=()=>{},...f}=z(t,e),c=await ht(e,f),a=K(n),d=$(n),A=q(n)==="y",{width:h,height:g}=o.floating;let C,p;a==="top"||a==="bottom"?(C=a,p=d===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=a,C=d==="end"?"top":"bottom");const B=g-c.top-c.bottom,w=h-c.left-c.right,m=v(g-c[C],B),u=v(h-c[p],w),E=!e.middlewareData.shift;let y=m,I=u;if(A?I=d||E?v(u,w):w:y=d||E?v(m,B):B,E&&!d){const F=S(c.left,0),k=S(c.right,0),D=S(c.top,0),Y=S(c.bottom,0);A?I=h-2*(F!==0||k!==0?F+k:S(c.left,c.right)):y=g-2*(D!==0||Y!==0?D+Y:S(c.top,c.bottom))}await r({...e,availableWidth:I,availableHeight:y});const x=await s.getDimensions(l.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function j(t){return pt(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=(pt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pt(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 le(t){return["table","td","th"].includes(j(t))}function ft(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 re(t){let e=V(t);for(;M(e)&&!_(e);){if(ft(e))return null;if(wt(e))return e;e=V(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 dt(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(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=V(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,f=lt(n)!==l||lt(o)!==r;return f&&(n=l,o=r),{width:n,height:o,$:f}}function Et(t){return R(t)?t:t.contextElement}function X(t){const e=Et(t);if(!M(e))return J(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=Lt(e);let r=(l?lt(n.width):n.width)/o,f=(l?lt(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!f||!Number.isFinite(f))&&(f=1),{x:r,y:f}}const ce=J(0);function Ft(t){const e=Q(t);return!Bt()||!e.visualViewport?ce:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ae(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=J(1);e&&(o?R(o)&&(r=X(o)):r=X(t));const f=ae(l,n,o)?Ft(l):J(0);let c=(s.left+f.x)/r.x,a=(s.top+f.y)/r.y,d=s.width/r.x,A=s.height/r.y;if(l){const h=Q(l),g=o&&R(o)?Q(o):o;let C=h,p=C.frameElement;for(;p&&o&&g!==C;){const B=X(p),w=p.getBoundingClientRect(),m=L(p),u=w.left+(p.clientLeft+parseFloat(m.paddingLeft))*B.x,E=w.top+(p.clientTop+parseFloat(m.paddingTop))*B.y;c*=B.x,a*=B.y,d*=B.x,A*=B.y,c+=u,a+=E,C=Q(p),p=C.frameElement}}return at({width:d,height:A,x:c,y:a})}function fe(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=T(o),f=e?ft(e.floating):!1;if(o===r||f&&l)return n;let c={scrollLeft:0,scrollTop:0},a=J(1);const d=J(0),A=M(o);if((A||!A&&!l)&&((j(o)!=="body"||ot(r))&&(c=dt(o)),M(o))){const h=Z(o);a=X(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+d.x,y:n.y*a.y-c.scrollTop*a.y+d.y}}function de(t){return Array.from(t.getClientRects())}function Dt(t){return Z(T(t)).left+dt(t).scrollLeft}function Ae(t){const e=T(t),n=dt(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+Dt(t);const f=-n.scrollTop;return L(o).direction==="rtl"&&(r+=S(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:f}}function ge(t,e){const n=Q(t),o=T(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,f=0,c=0;if(s){l=s.width,r=s.height;const a=Bt();(!a||a&&e==="fixed")&&(f=s.offsetLeft,c=s.offsetTop)}return{width:l,height:r,x:f,y:c}}function ue(t,e){const n=Z(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=M(t)?X(t):J(1),r=t.clientWidth*l.x,f=t.clientHeight*l.y,c=s*l.x,a=o*l.y;return{width:r,height:f,x:c,y:a}}function vt(t,e,n){let o;if(e==="viewport")o=ge(t,n);else if(e==="document")o=Ae(T(t));else if(R(e))o=ue(e,n);else{const s=Ft(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return at(o)}function Rt(t,e){const n=V(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(f=>R(f)&&j(f)!=="body"),s=null;const l=L(t).position==="fixed";let r=l?V(t):t;for(;R(r)&&!_(r);){const f=L(r),c=wt(r);!c&&f.position==="fixed"&&(s=null),(l?!c&&!s:!c&&f.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ot(r)&&!c&&Rt(t,r))?o=o.filter(d=>d!==r):s=f,r=V(r)}return e.set(t,o),o}function me(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?ft(e)?[]:Ce(e,this._c):[].concat(n),o],f=r[0],c=r.reduce((a,d)=>{const A=vt(e,d,s);return a.top=S(A.top,a.top),a.right=v(A.right,a.right),a.bottom=v(A.bottom,a.bottom),a.left=S(A.left,a.left),a},vt(e,f,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 pe(t,e,n){const o=M(e),s=T(e),l=n==="fixed",r=Z(t,!0,l,e);let f={scrollLeft:0,scrollTop:0};const c=J(0);if(o||!o&&!l)if((j(e)!=="body"||ot(s))&&(f=dt(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=Dt(s));const a=r.left+f.scrollLeft-c.x,d=r.top+f.scrollTop-c.y;return{x:a,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(ft(t))return n;if(!M(t)){let s=V(t);for(;s&&!_(s);){if(R(s)&&!xt(s))return s;s=V(s)}return n}let o=Mt(t,e);for(;o&&le(o)&&xt(o);)o=Mt(o,e);return o&&_(o)&&xt(o)&&!wt(o)?n:o||re(t)||n}const we=async function(t){const e=this.getOffsetParent||Ht,n=this.getDimensions,o=await n(t.floating);return{reference:pe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Be(t){return L(t).direction==="rtl"}const Ee={convertOffsetParentRelativeRectToViewportRelativeRect:fe,getDocumentElement:T,getClippingRect:me,getOffsetParent:Ht,getElementRects:we,getClientRects:de,getDimensions:he,getScale:X,isElement:R,isRTL:Be};function xe(t,e){let n=null,o;const s=T(t);function l(){var f;clearTimeout(o),(f=n)==null||f.disconnect(),n=null}function r(f,c){f===void 0&&(f=!1),c===void 0&&(c=1),l();const{left:a,top:d,width:A,height:h}=t.getBoundingClientRect();if(f||e(),!A||!h)return;const g=rt(d),C=rt(s.clientWidth-(a+A)),p=rt(s.clientHeight-(d+h)),B=rt(a),m={rootMargin:-g+"px "+-C+"px "+-p+"px "+-B+"px",threshold:S(0,v(1,c))||1};let u=!0;function E(y){const I=y[0].intersectionRatio;if(I!==c){if(!u)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}u=!1}try{n=new IntersectionObserver(E,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(t)}return r(!0),l}function ye(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=Et(t),d=s||l?[...a?it(a):[],...it(e)]:[];d.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),l&&w.addEventListener("resize",n)});const A=a&&f?xe(a,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(w=>{let[m]=w;m&&m.target===a&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var u;(u=g)==null||u.observe(e)})),n()}),a&&!c&&g.observe(a),g.observe(e));let C,p=c?Z(t):null;c&&B();function B(){const w=Z(t);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&n(),p=w,C=requestAnimationFrame(B)}return n(),()=>{var w;d.forEach(m=>{s&&m.removeEventListener("scroll",n),l&&m.removeEventListener("resize",n)}),A==null||A(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(C)}}const Ie=oe,be=ie,Se=ee,Qe=se,ke=te,Le=(t,e,n)=>{const o=new Map,s={platform:Ee,...n},l={...s.platform,_c:o};return Xt(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 pt(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?{}:ke({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 ve(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var x;return(x=tt(n.open))!=null?x:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var x;return(x=tt(n.placement))!=null?x:"bottom"}),f=i.computed(()=>{var x;return(x=tt(n.strategy))!=null?x:"absolute"}),c=i.computed(()=>{var x;return(x=tt(n.transform))!=null?x:!0}),a=i.computed(()=>yt(t.value)),d=i.computed(()=>yt(e.value)),A=i.ref(0),h=i.ref(0),g=i.ref(f.value),C=i.ref(r.value),p=i.shallowRef({}),B=i.ref(!1),w=i.computed(()=>{const x={position:g.value,left:"0",top:"0"};if(!d.value)return x;const F=Ot(d.value,A.value),k=Ot(d.value,h.value);return c.value?{...x,transform:"translate("+F+"px, "+k+"px)",...Tt(d.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:F+"px",top:k+"px"}});let m;function u(){a.value==null||d.value==null||Le(a.value,d.value,{middleware:l.value,placement:r.value,strategy:f.value}).then(x=>{A.value=x.x,h.value=x.y,g.value=x.strategy,C.value=x.placement,p.value=x.middlewareData,B.value=!0})}function E(){typeof m=="function"&&(m(),m=void 0)}function y(){if(E(),o===void 0){u();return}if(a.value!=null&&d.value!=null){m=o(a.value,d.value,u);return}}function I(){s.value||(B.value=!1)}return i.watch([l,r,f],u,{flush:"sync"}),i.watch([a,d],y,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(E),{x:i.shallowReadonly(A),y:i.shallowReadonly(h),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(p),isPositioned:i.shallowReadonly(B),floatingStyles:w,update:u}}const Re="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",O=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},Me={name:"Logo"},He={src:Re,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function Te(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",He)}const Oe=O(Me,[["render",Te]]),Ge="data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57Ozs////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAwAfACwAAAAAQAAmAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33guL8vb67EFhwGosA4FCaUBbC0Glo40sWGehAJpB3JxNFMVgEGr5XpHT8uY3IkUDl/SJJNgs909hGZtlzI4cSIbfXYGRgCEbAZnX4OJZEZRj1KLgY6THZGYHZVxl5OamJ2Nm5kekpOjTZ+PoamMq6Wuj6pArISGp5u1OhVqjxAbcAECfH0KFz9xBxzFdgkaRiNIDH3BVk0LARvSDgXVlBYDPcwECCIOFxFa0NJIBBM5YXXXIhMXCgIccGljyPEeGmxQYCFAD23O3MCK0SADhDtd7J2poKEOGQkFzjTgN0AMmz9wYNxTkIjBGxECH7v2MaDvRwUKFgsVVLZigQRRGjxMWJeKgIcKJCclwODigLFEAjwgOEooZ4BSPlsY3ZR06SanUIsy7VN1qx2sm6Ie8cqm61UPT8NqpaqULBmwmMSumIrJLCa4k+SqoDupaim8j/SmWIAqkQGfDr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opeId(),t),Ve={class:"rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300"},Ye=[Ke(()=>i.createElementVNode("img",{src:Ge,alt:"Loading",class:"w-12"},null,-1))];function Ue(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Ve,Ye)}const Ne=O(Je,[["render",Ue],["__scopeId","data-v-a0957544"]]),We={name:"Dict",props:["dictionary"]},qe={class:"capitalize text-base italic font-normal text-slate-400"};function je(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.dictionary,(r,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"mt-2"},[i.createElementVNode("p",qe,i.toDisplayString(r.pos),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.terms,(c,a)=>(i.openBlock(),i.createElementBlock("span",{key:a,class:"text-base leading-6 text-textCustom"},i.toDisplayString(c)+", ",1))),128))]))),128))])}const Ze=O(We,[["render",je]]),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(()=>{a(),r.src=""});function f(){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 a(){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:a},_e)):(i.openBlock(),i.createElementBlock("button",{key:0,class:"btn btn-xs btn-ghost btn-circle",onClick:f},$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=O(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 Kt=O(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 C2(t,e){return i.openBlock(),i.createElementBlock("button",g2,u2)}const Vt=O(A2,[["render",C2]]),m2={name:"Sentences",props:["sentences"]},h2={class:"text-base text-textCustom leading-tight p-0 mr-2"};function p2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",h2,i.toDisplayString(n.sentences),1)}const w2=O(m2,[["render",p2]]),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=O(B2,[["render",y2]]),b2={class:"flex flex-col"},S2={key:0,class:"flex flex-row pb-2 border-b border-[#D3D4D9] 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-0",{"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(Kt,{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(Kt,{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={key:0,class:"flex justify-center"},k2={key:1,class:"flex justify-center"},L2={key:2,class:"wrapper shadow-custom rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},F2=O(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(){try{this.data=this.translation,!this.data.dictionary||this.data.dictionary.length===0?this.isLongSentence=!0:this.isLongSentence=!1,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",Q2,[i.createVNode(Oe,{onClick:n[0]||(n[0]=o=>e.$emit("logo"))})])):t.status===i.unref(et).LOADING?(i.openBlock(),i.createElementBlock("div",k2,[i.createVNode(Ne)])):t.status!==i.unref(et).HIDDEN?(i.openBlock(),i.createElementBlock("div",L2,[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?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Ze,{key:2,class:"p-3 pt-0",dictionary:e.data.dictionary},null,8,["dictionary"]))])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-bcaf84fc"]]);function D2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ut={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,f){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var c=f&&f.debug||!1;if(c){var a=document.querySelector("#input-textarea-caret-position-mirror-div");a&&a.parentNode.removeChild(a)}var d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);var A=d.style,h=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(B){g&&B==="lineHeight"?A.lineHeight=h.height:A[B]=h[B]}),o?l.scrollHeight>parseInt(h.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 p={top:C.offsetTop+parseInt(h.borderTopWidth),left:C.offsetLeft+parseInt(h.borderLeftWidth),height:parseInt(h.lineHeight)};return c?C.style.backgroundColor="#aaa":document.body.removeChild(d),p}t.exports=s})()})(Ut);var v2=Ut.exports;const Nt=D2(v2);function At(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),!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:f,width:c,height:a}=s;if(!r&&!f){if(!t.selectionEnd)return!1;let d=Nt(t,t.selectionStart),A=Nt(t,t.selectionEnd);s=t.getBoundingClientRect(),f=s.left+d.left,c=A.left-d.left,d.top!=A.top&&(f=s.left,c=s.width),l=s.top+d.top,r=s.top+A.top+20}return a===0&&(a=r-l),{text:n,x:f,y:l,top:l,bottom:r,left:f,right:f+c,width:c,height:a}}const R2={__name:"HotKeysListener",props:{textSelected:String},emits:["toggleKey","close"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(!1),l=()=>{setTimeout(()=>{n.textSelected&&c("DoubleClick")},50)},r=a=>{a.key==="Shift"&&(s.value=!0,a.preventDefault()),a.altKey&&a.key.toLowerCase()==="w"&&n.textSelected&&(c("Alt+W"),a.preventDefault()),a.altKey&&a.shiftKey&&a.key.toLowerCase()==="d"&&(c("Alt+Shift+D"),a.preventDefault()),a.key==="Escape"&&(c("Escape"),a.preventDefault())},f=a=>{a.key==="Shift"&&n.textSelected&&(s.value=!1,c("Shift"))},c=a=>{switch(a){case"DoubleClick":o("toggleKey","DoubleClick");break;case"Shift":o("toggleKey","Shift");break;case"Alt+W":o("toggleKey","Alt+W");break;case"Alt+Shift+D":o("toggleKey","Alt+Shift+D");break;case"Escape":o("close");break}};return i.onMounted(()=>{window.addEventListener("dblclick",l),window.addEventListener("keydown",r),window.addEventListener("keyup",f)}),i.onUnmounted(()=>{window.removeEventListener("dblclick",l),window.removeEventListener("keydown",r),window.removeEventListener("keyup",f)}),(a,d)=>(i.openBlock(),i.createElementBlock("div"))}},M2={__name:"BubbleWrapper",props:{translation:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:String},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),f=i.ref(!1),c=i.ref(""),a=i.computed(()=>typeof window>"u"||!r.value||!c.value?null:{getBoundingClientRect:()=>At(r.value),getClientRects:()=>At(r.value)}),d=i.computed(()=>{if(!g.value.arrow||n.status===et.LOGO)return{display:"none"};const{x:m,y:u}=g.value.arrow,E={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:m!=null?`${m}px`:"",top:u!=null?`${u}px`:"",[E]:"-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:h,middlewareData:g,update:C}=ve(a,s,{placement:"bottom",middleware:[Ie(8),Se(),be(),De({element:l}),Qe({apply({rects:m,elements:u}){Object.assign(u.floating.style,{maxWidth:`${m.reference.width>250?m.reference.width:250}px`,zIndex:9999})}})],whileElementsMounted(m,u,E){return ye(m,u,E,{ancestorScroll:!0})}});i.onMounted(()=>{document.documentElement.onclick=m=>{const u=At(m.target);if(!u){c.value="",w();return}p(u,m)},document.documentElement.ontouchend=m=>{const u=At(m.target);if(!u){c.value="",w();return}p(u,m)}}),i.onUnmounted(()=>{document.documentElement.onclick=null,document.documentElement.ontouchend=null});const p=(m,u)=>{n.status!==et.LOGO&&o("close"),r.value=u.target,c.value=m.text,f.value=!0,i.nextTick(C)},B=m=>{m.stopPropagation()},w=async()=>{f.value=!1,o("close")};return i.watch(()=>n.status,()=>{f.value&&i.nextTick(C)},{deep:!0}),(m,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(i.unref(h)),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:Wt,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]=E=>o("logo")),onFavorite:u[1]||(u[1]=E=>o("favorite")),onSettings:u[2]||(u[2]=E=>o("settings")),onClose:w,onLoadTTS:u[3]||(u[3]=E=>o("loadTTS"))},null,8,["translation","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0),i.createVNode(R2,{textSelected:c.value,onToggleKey:u[4]||(u[4]=E=>o("toggleKey",E)),onClose:w},null,8,["textSelected"])],64))}};W.default=M2,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "@ddict/bubble",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc