@dialpad/dialtone-vue 2.118.0 → 2.120.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +25 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +5 -5
  5. package/dist/dialtone-vue.js +147 -130
  6. package/dist/directives.cjs +1 -1
  7. package/dist/directives.js +1 -1
  8. package/dist/emoji.cjs +1 -1
  9. package/dist/emoji.js +4 -4
  10. package/dist/{emoji_picker-GfisVsYp.js → emoji_picker-oRqwDR1h.js} +2 -2
  11. package/dist/{emoji_picker-zi8qwHtl.cjs → emoji_picker-pzXZS6X7.cjs} +1 -1
  12. package/dist/{emoji_text_wrapper-JQf6BpGc.cjs → emoji_text_wrapper-6Yl5NIEJ.cjs} +1 -1
  13. package/dist/{emoji_text_wrapper-OrF0kZ6L.js → emoji_text_wrapper-V-Qf4XZv.js} +2 -2
  14. package/dist/{index-G0QxbVGe.js → index-74FmkvkN.js} +1 -1
  15. package/dist/{index-ihXjcrB-.cjs → index-dsfPzyLy.cjs} +1 -1
  16. package/dist/message_input.cjs +1 -1
  17. package/dist/message_input.js +4 -4
  18. package/dist/{rich_text_editor-trHmm1VD.js → rich_text_editor-AZuWkf9m.js} +1740 -1762
  19. package/dist/{rich_text_editor-MzdHNizj.cjs → rich_text_editor-TX19t44m.cjs} +20 -20
  20. package/dist/style.css +1 -1
  21. package/dist/{tooltip-AVHt9lw0.js → tooltip-mMe9F6C6.js} +474 -441
  22. package/dist/tooltip-sE12R_AU.cjs +21 -0
  23. package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
  24. package/dist/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts.map +1 -1
  25. package/dist/types/components/tooltip/tooltip.vue.d.ts +30 -0
  26. package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  27. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +17 -1
  28. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/tooltip-6msmWvq0.cjs +0 -21
@@ -0,0 +1,21 @@
1
+ "use strict";const er=require("vue"),le={ERROR:"error",WARNING:"warning",SUCCESS:"success"},tr={LARGE:"lg",EXTRA_LARGE:"xl"},nr={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},rr={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},ir={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},tn=le.ERROR,or="dt";let ar=0,Nt;const sr=typeof setImmediate=="function"?setImmediate:setTimeout;function wt(e=or){return`${e}${ar++}`}function nn(e,t){if(t){const n=ur(t);return e[Math.abs(n)%e.length]}else return e[rn(e.length)]}function ur(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function rn(e){return Math.floor(Math.random()*e)}function on(e){return e?e.map(t=>typeof t=="string"?{message:t,type:tn}:t):[]}function an(e){const t=Ot(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Ot(e){return e?ot(e,le.ERROR)?le.ERROR:ot(e,le.WARNING)?le.WARNING:ot(e,le.SUCCESS)?le.SUCCESS:null:null}function ot(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const cr={name:"html-fragment",functional:!0,props:["html"],render(e,t){return new er({name:"Inner",beforeCreate(){this.$createElement=e},template:`<div>${t.props.html}</div>`}).$mount()._vnode.children}},lr=()=>new Promise(e=>{sr(e)}),pr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("");function fr(e,t=300){clearTimeout(Nt),Nt=setTimeout(e,t)}function sn(e){const t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(r=>r),n.all=Object.values(n).every(r=>r),n}const dr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,vr=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),hr=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),un=new RegExp("(?:"+[[dr.source,vr.source].join("+"),hr.source].join("|")+")"),mr=/(?:(?:[;/][^#?<>\s]*)?)/,cn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,ln=new RegExp("\\b"+[un.source,mr.source,cn.source,"(?!\\w)"].join("+")),pn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,fn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[un.source,cn.source].join("+")+"(?!\\w)");function Tt(e=7,t=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const dn=Tt(),vn=new RegExp([ln.source,pn.source,fn.source,dn.source].join("|"),"gi");function gr(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=dn.exec(e))==null?void 0:t[0])===e)}function yr(e){var t,n;return!e||typeof e!="string"?!1:((t=ln.exec(e))==null?void 0:t[0])===e||((n=pn.exec(e))==null?void 0:n[0])===e}function br(e){var t;return!e||typeof e!="string"?!1:((t=fn.exec(e))==null?void 0:t[0])===e}function hn(e){return e.filter(t=>!!t).join(" ")}function mn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const Er={getUniqueString:wt,getRandomElement:nn,getRandomInt:rn,formatMessages:on,filterFormattedMessages:an,hasFormattedMessageOfType:ot,getValidationState:Ot,htmlFragment:cr,flushPromises:lr,kebabCaseToPascalCase:pr,debounce:fr,isOutOfViewPort:sn,getPhoneNumberRegex:Tt,linkRegex:vn,isEmailAddress:br,isPhoneNumber:gr,isURL:yr,safeConcatStrings:hn,capitalizeFirstLetter:mn};function At(e,t,n,r,o,s,c,l){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var f;if(c?(f=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),o&&o.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(c)},a._ssrRegister=f):o&&(f=l?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var p=a.render;a.render=function(h,b){return f.call(b),p(h,b)}}else{var y=a.beforeCreate;a.beforeCreate=y?[].concat(y,f):[f]}return{exports:e,options:a}}const wr={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}}};var Or=function(){var t=this,n=t._self._c;return n("transition",t._g({attrs:{name:t.transition,appear:t.appear,css:t.isCSSEnabled}},t.$listeners),[n("div",t._g({directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},t.$listeners),[t.initialized?t._t("default"):t._e()],2)])},Tr=[],Ar=At(wr,Or,Tr,!1,null,null,null,null);const gn=Ar.exports;var j="top",q="bottom",G="right",B="left",xt="auto",We=[j,q,G,B],Se="start",Be="end",xr="clippingParents",yn="viewport",Me="popper",Sr="reference",Vt=We.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+Be])},[]),bn=[].concat(We,[xt]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+Be])},[]),Dr="beforeRead",Rr="read",Pr="afterRead",_r="beforeMain",Cr="main",Lr="afterMain",Ir="beforeWrite",Nr="write",Vr="afterWrite",Mr=[Dr,Rr,Pr,_r,Cr,Lr,Ir,Nr,Vr];function te(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function St(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $r(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Y(s)||!te(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(c){var l=o[c];l===!1?s.removeAttribute(c):s.setAttribute(c,l===!0?"":l)}))})}function kr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=c.reduce(function(a,f){return a[f]="",a},{});!Y(o)||!te(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const En={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:kr,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var ge=Math.max,st=Math.min,De=Math.round;function mt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wn(){return!/^((?!chrome|android).)*safari/i.test(mt())}function Re(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Y(e)&&(o=e.offsetWidth>0&&De(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&De(r.height)/e.offsetHeight||1);var c=ye(e)?W(e):window,l=c.visualViewport,a=!wn()&&n,f=(r.left+(a&&l?l.offsetLeft:0))/o,p=(r.top+(a&&l?l.offsetTop:0))/s,y=r.width/o,g=r.height/s;return{width:y,height:g,top:p,right:f+y,bottom:p+g,left:f,x:f,y:p}}function Dt(e){var t=Re(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function On(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&St(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function se(e){return W(e).getComputedStyle(e)}function jr(e){return["table","td","th"].indexOf(te(e))>=0}function pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function ct(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(St(e)?e.host:null)||pe(e)}function Mt(e){return!Y(e)||se(e).position==="fixed"?null:e.offsetParent}function Br(e){var t=/firefox/i.test(mt()),n=/Trident/i.test(mt());if(n&&Y(e)){var r=se(e);if(r.position==="fixed")return null}var o=ct(e);for(St(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(te(o))<0;){var s=se(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ze(e){for(var t=W(e),n=Mt(e);n&&jr(n)&&se(n).position==="static";)n=Mt(n);return n&&(te(n)==="html"||te(n)==="body"&&se(n).position==="static")?t:n||Br(e)||t}function Rt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return ge(e,st(t,n))}function Ur(e,t,n){var r=$e(e,t,n);return r>n?n:r}function Tn(){return{top:0,right:0,bottom:0,left:0}}function An(e){return Object.assign({},Tn(),e)}function xn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Fr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,An(typeof t!="number"?t:xn(t,We))};function Hr(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,l=ee(n.placement),a=Rt(l),f=[B,G].indexOf(l)>=0,p=f?"height":"width";if(!(!s||!c)){var y=Fr(o.padding,n),g=Dt(s),h=a==="y"?j:B,b=a==="y"?q:G,E=n.rects.reference[p]+n.rects.reference[a]-c[a]-n.rects.popper[p],w=c[a]-n.rects.reference[a],A=ze(s),S=A?a==="y"?A.clientHeight||0:A.clientWidth||0:0,R=E/2-w/2,i=y[h],T=S-g[p]-y[b],d=S/2-g[p]/2+R,D=$e(i,d,T),I=a;n.modifiersData[r]=(t={},t[I]=D,t.centerOffset=D-d,t)}}function Wr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||On(t.elements.popper,o)&&(t.elements.arrow=o))}const zr={name:"arrow",enabled:!0,phase:"main",fn:Hr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pe(e){return e.split("-")[1]}var Yr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qr(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:De(n*o)/o||0,y:De(r*o)/o||0}}function $t(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,l=e.position,a=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,y=e.isFixed,g=c.x,h=g===void 0?0:g,b=c.y,E=b===void 0?0:b,w=typeof p=="function"?p({x:h,y:E}):{x:h,y:E};h=w.x,E=w.y;var A=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),R=B,i=j,T=window;if(f){var d=ze(n),D="clientHeight",I="clientWidth";if(d===W(n)&&(d=pe(n),se(d).position!=="static"&&l==="absolute"&&(D="scrollHeight",I="scrollWidth")),d=d,o===j||(o===B||o===G)&&s===Be){i=q;var L=y&&d===T&&T.visualViewport?T.visualViewport.height:d[D];E-=L-r.height,E*=a?1:-1}if(o===B||(o===j||o===q)&&s===Be){R=G;var _=y&&d===T&&T.visualViewport?T.visualViewport.width:d[I];h-=_-r.width,h*=a?1:-1}}var N=Object.assign({position:l},f&&Yr),C=p===!0?qr({x:h,y:E},W(n)):{x:h,y:E};if(h=C.x,E=C.y,a){var P;return Object.assign({},N,(P={},P[i]=S?"0":"",P[R]=A?"0":"",P.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+E+"px)":"translate3d("+h+"px, "+E+"px, 0)",P))}return Object.assign({},N,(t={},t[i]=S?E+"px":"",t[R]=A?h+"px":"",t.transform="",t))}function Gr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,c=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,f={placement:ee(t.placement),variation:Pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$t(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$t(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gr,data:{}};var rt={passive:!0};function Kr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,c=r.resize,l=c===void 0?!0:c,a=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,rt)}),l&&a.addEventListener("resize",n.update,rt),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,rt)}),l&&a.removeEventListener("resize",n.update,rt)}}const Zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kr,data:{}};var Qr={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,function(t){return Qr[t]})}var Jr={start:"end",end:"start"};function kt(e){return e.replace(/start|end/g,function(t){return Jr[t]})}function Pt(e){var t=W(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _t(e){return Re(pe(e)).left+Pt(e).scrollLeft}function ei(e,t){var n=W(e),r=pe(e),o=n.visualViewport,s=r.clientWidth,c=r.clientHeight,l=0,a=0;if(o){s=o.width,c=o.height;var f=wn();(f||!f&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:c,x:l+_t(e),y:a}}function ti(e){var t,n=pe(e),r=Pt(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ge(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ge(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+_t(e),a=-r.scrollTop;return se(o||n).direction==="rtl"&&(l+=ge(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:l,y:a}}function Ct(e){var t=se(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Sn(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Y(e)&&Ct(e)?e:Sn(ct(e))}function ke(e,t){var n;t===void 0&&(t=[]);var r=Sn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=W(r),c=o?[s].concat(s.visualViewport||[],Ct(r)?r:[]):r,l=t.concat(c);return o?l:l.concat(ke(ct(c)))}function gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ni(e,t){var n=Re(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jt(e,t,n){return t===yn?gt(ei(e,n)):ye(t)?ni(t,n):gt(ti(pe(e)))}function ri(e){var t=ke(ct(e)),n=["absolute","fixed"].indexOf(se(e).position)>=0,r=n&&Y(e)?ze(e):e;return ye(r)?t.filter(function(o){return ye(o)&&On(o,r)&&te(o)!=="body"}):[]}function ii(e,t,n,r){var o=t==="clippingParents"?ri(e):[].concat(t),s=[].concat(o,[n]),c=s[0],l=s.reduce(function(a,f){var p=jt(e,f,r);return a.top=ge(p.top,a.top),a.right=st(p.right,a.right),a.bottom=st(p.bottom,a.bottom),a.left=ge(p.left,a.left),a},jt(e,c,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Dn(e){var t=e.reference,n=e.element,r=e.placement,o=r?ee(r):null,s=r?Pe(r):null,c=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case j:a={x:c,y:t.y-n.height};break;case q:a={x:c,y:t.y+t.height};break;case G:a={x:t.x+t.width,y:l};break;case B:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var f=o?Rt(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Se:a[f]=a[f]-(t[p]/2-n[p]/2);break;case Be:a[f]=a[f]+(t[p]/2-n[p]/2);break}}return a}function Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,c=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?xr:l,f=n.rootBoundary,p=f===void 0?yn:f,y=n.elementContext,g=y===void 0?Me:y,h=n.altBoundary,b=h===void 0?!1:h,E=n.padding,w=E===void 0?0:E,A=An(typeof w!="number"?w:xn(w,We)),S=g===Me?Sr:Me,R=e.rects.popper,i=e.elements[b?S:g],T=ii(ye(i)?i:i.contextElement||pe(e.elements.popper),a,p,c),d=Re(e.elements.reference),D=Dn({reference:d,element:R,strategy:"absolute",placement:o}),I=gt(Object.assign({},R,D)),L=g===Me?I:d,_={top:T.top-L.top+A.top,bottom:L.bottom-T.bottom+A.bottom,left:T.left-L.left+A.left,right:L.right-T.right+A.right},N=e.modifiersData.offset;if(g===Me&&N){var C=N[o];Object.keys(_).forEach(function(P){var U=[G,q].indexOf(P)>=0?1:-1,F=[j,q].indexOf(P)>=0?"y":"x";_[P]+=C[F]*U})}return _}function oi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,f=a===void 0?bn:a,p=Pe(r),y=p?l?Vt:Vt.filter(function(b){return Pe(b)===p}):We,g=y.filter(function(b){return f.indexOf(b)>=0});g.length===0&&(g=y);var h=g.reduce(function(b,E){return b[E]=Ue(e,{placement:E,boundary:o,rootBoundary:s,padding:c})[ee(E)],b},{});return Object.keys(h).sort(function(b,E){return h[b]-h[E]})}function ai(e){if(ee(e)===xt)return[];var t=at(e);return[kt(e),t,kt(t)]}function si(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!0:c,a=n.fallbackPlacements,f=n.padding,p=n.boundary,y=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,E=n.allowedAutoPlacements,w=t.options.placement,A=ee(w),S=A===w,R=a||(S||!b?[at(w)]:ai(w)),i=[w].concat(R).reduce(function(ne,X){return ne.concat(ee(X)===xt?oi(t,{placement:X,boundary:p,rootBoundary:y,padding:f,flipVariations:b,allowedAutoPlacements:E}):X)},[]),T=t.rects.reference,d=t.rects.popper,D=new Map,I=!0,L=i[0],_=0;_<i.length;_++){var N=i[_],C=ee(N),P=Pe(N)===Se,U=[j,q].indexOf(C)>=0,F=U?"width":"height",M=Ue(t,{placement:N,boundary:p,rootBoundary:y,altBoundary:g,padding:f}),$=U?P?G:B:P?q:j;T[F]>d[F]&&($=at($));var V=at($),K=[];if(s&&K.push(M[C]<=0),l&&K.push(M[$]<=0,M[V]<=0),K.every(function(ne){return ne})){L=N,I=!1;break}D.set(N,K)}if(I)for(var Z=b?3:1,fe=function(X){var re=i.find(function(be){var ie=D.get(be);if(ie)return ie.slice(0,X).every(function(Ee){return Ee})});if(re)return L=re,"break"},Q=Z;Q>0;Q--){var de=fe(Q);if(de==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const ui={name:"flip",enabled:!0,phase:"main",fn:si,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[j,G,q,B].some(function(t){return e[t]>=0})}function ci(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Ue(t,{elementContext:"reference"}),l=Ue(t,{altBoundary:!0}),a=Bt(c,r),f=Bt(l,o,s),p=Ut(a),y=Ut(f);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const li={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ci};function pi(e,t,n){var r=ee(e),o=[B,j].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],l=s[1];return c=c||0,l=(l||0)*o,[B,G].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function fi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=bn.reduce(function(p,y){return p[y]=pi(y,t.rects,s),p},{}),l=c[t.placement],a=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=c}const di={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fi};function vi(e){var t=e.state,n=e.name;t.modifiersData[n]=Dn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hi={name:"popperOffsets",enabled:!0,phase:"read",fn:vi,data:{}};function mi(e){return e==="x"?"y":"x"}function gi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!1:c,a=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,E=b===void 0?0:b,w=Ue(t,{boundary:a,rootBoundary:f,padding:y,altBoundary:p}),A=ee(t.placement),S=Pe(t.placement),R=!S,i=Rt(A),T=mi(i),d=t.modifiersData.popperOffsets,D=t.rects.reference,I=t.rects.popper,L=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,_=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(d){if(s){var P,U=i==="y"?j:B,F=i==="y"?q:G,M=i==="y"?"height":"width",$=d[i],V=$+w[U],K=$-w[F],Z=h?-I[M]/2:0,fe=S===Se?D[M]:I[M],Q=S===Se?-I[M]:-D[M],de=t.elements.arrow,ne=h&&de?Dt(de):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tn(),re=X[U],be=X[F],ie=$e(0,D[M],ne[M]),Ee=R?D[M]/2-Z-ie-re-_.mainAxis:fe-ie-re-_.mainAxis,ue=R?-D[M]/2+Z+ie+be+_.mainAxis:Q+ie+be+_.mainAxis,we=t.elements.arrow&&ze(t.elements.arrow),Ye=we?i==="y"?we.clientTop||0:we.clientLeft||0:0,Ce=(P=N==null?void 0:N[i])!=null?P:0,qe=$+Ee-Ce-Ye,Ge=$+ue-Ce,Le=$e(h?st(V,qe):V,$,h?ge(K,Ge):K);d[i]=Le,C[i]=Le-$}if(l){var Ie,Xe=i==="x"?j:B,Ke=i==="x"?q:G,oe=d[T],ce=T==="y"?"height":"width",Ne=oe+w[Xe],ve=oe-w[Ke],Ve=[j,B].indexOf(A)!==-1,Ze=(Ie=N==null?void 0:N[T])!=null?Ie:0,Qe=Ve?Ne:oe-D[ce]-I[ce]-Ze+_.altAxis,Je=Ve?oe+D[ce]+I[ce]-Ze-_.altAxis:ve,et=h&&Ve?Ur(Qe,oe,Je):$e(h?Qe:Ne,oe,h?Je:ve);d[T]=et,C[T]=et-oe}t.modifiersData[r]=C}}const yi={name:"preventOverflow",enabled:!0,phase:"main",fn:gi,requiresIfExists:["offset"]};function bi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ei(e){return e===W(e)||!Y(e)?Pt(e):bi(e)}function wi(e){var t=e.getBoundingClientRect(),n=De(t.width)/e.offsetWidth||1,r=De(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Oi(e,t,n){n===void 0&&(n=!1);var r=Y(t),o=Y(t)&&wi(t),s=pe(t),c=Re(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((te(t)!=="body"||Ct(s))&&(l=Ei(t)),Y(t)?(a=Re(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=_t(s))),{x:c.left+l.scrollLeft-a.x,y:c.top+l.scrollTop-a.y,width:c.width,height:c.height}}function Ti(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Ai(e){var t=Ti(e);return Mr.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Si(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Di(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Ft:o;return function(l,a,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},y=[],g=!1,h={state:p,setOptions:function(A){var S=typeof A=="function"?A(p.options):A;E(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ye(l)?ke(l):l.contextElement?ke(l.contextElement):[],popper:ke(a)};var R=Ai(Si([].concat(r,p.options.modifiers)));return p.orderedModifiers=R.filter(function(i){return i.enabled}),b(),h.update()},forceUpdate:function(){if(!g){var A=p.elements,S=A.reference,R=A.popper;if(Ht(S,R)){p.rects={reference:Oi(S,ze(R),p.options.strategy==="fixed"),popper:Dt(R)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(_){return p.modifiersData[_.name]=Object.assign({},_.data)});for(var i=0;i<p.orderedModifiers.length;i++){if(p.reset===!0){p.reset=!1,i=-1;continue}var T=p.orderedModifiers[i],d=T.fn,D=T.options,I=D===void 0?{}:D,L=T.name;typeof d=="function"&&(p=d({state:p,options:I,name:L,instance:h})||p)}}}},update:xi(function(){return new Promise(function(w){h.forceUpdate(),w(p)})}),destroy:function(){E(),g=!0}};if(!Ht(l,a))return h;h.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function b(){p.orderedModifiers.forEach(function(w){var A=w.name,S=w.options,R=S===void 0?{}:S,i=w.effect;if(typeof i=="function"){var T=i({state:p,name:A,instance:h,options:R}),d=function(){};y.push(T||d)}})}function E(){y.forEach(function(w){return w()}),y=[]}return h}}var Ri=[Zr,hi,Xr,En,di,ui,yi,zr,li],Pi=Di({defaultModifiers:Ri}),_i="tippy-box",Rn="tippy-content",Ci="tippy-backdrop",Pn="tippy-arrow",_n="tippy-svg-arrow",me={passive:!0,capture:!0},Cn=function(){return document.body};function Li(e,t){return{}.hasOwnProperty.call(e,t)}function ft(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Lt(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Ln(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Wt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ii(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Ni(e){return e.split(/\s+/).filter(Boolean)}function xe(e){return[].concat(e)}function zt(e,t){e.indexOf(t)===-1&&e.push(t)}function Vi(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Mi(e){return e.split("-")[0]}function ut(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function je(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return Lt(e,t)})}function $i(e){return Lt(e,"NodeList")}function ki(e){return Lt(e,"MouseEvent")}function ji(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Bi(e){return Fe(e)?[e]:$i(e)?ut(e):Array.isArray(e)?e:ut(document.querySelectorAll(e))}function dt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function qt(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Ui(e){var t,n=xe(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Fi(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var s=o.popperRect,c=o.popperState,l=o.props,a=l.interactiveBorder,f=Mi(c.placement),p=c.modifiersData.offset;if(!p)return!0;var y=f==="bottom"?p.top.y:0,g=f==="top"?p.bottom.y:0,h=f==="right"?p.left.x:0,b=f==="left"?p.right.x:0,E=s.top-r+y>a,w=r-s.bottom-g>a,A=s.left-n+h>a,S=n-s.right-b>a;return E||w||A||S})}function vt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Gt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var J={isTouch:!1},Xt=0;function Hi(){J.isTouch||(J.isTouch=!0,window.performance&&document.addEventListener("mousemove",In))}function In(){var e=performance.now();e-Xt<20&&(J.isTouch=!1,document.removeEventListener("mousemove",In)),Xt=e}function Wi(){var e=document.activeElement;if(ji(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function zi(){document.addEventListener("touchstart",Hi,me),window.addEventListener("blur",Wi)}var Yi=typeof window<"u"&&typeof document<"u",qi=Yi?!!window.msCrypto:!1;function Ae(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Kt(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function Gi(e){return Kt(`
2
+ %ctippy.js
3
+
4
+ %c`+Kt(e)+`
5
+
6
+ %c👷‍ This is a development-only message. It will be removed in production.
7
+ `)}function Nn(e){return[Gi(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var He;process.env.NODE_ENV!=="production"&&Xi();function Xi(){He=new Set}function ae(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).warn.apply(n,Nn(t))}}function yt(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).error.apply(n,Nn(t))}}function Ki(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;yt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Vn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Zi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H=Object.assign({appendTo:Cn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Vn,Zi),Qi=Object.keys(H),Ji=function(t){process.env.NODE_ENV!=="production"&&$n(t,[]);var n=Object.keys(t);n.forEach(function(r){H[r]=t[r]})};function Mn(e){var t=e.plugins||[],n=t.reduce(function(r,o){var s=o.name,c=o.defaultValue;if(s){var l;r[s]=e[s]!==void 0?e[s]:(l=H[s])!=null?l:c}return r},{});return Object.assign({},e,n)}function eo(e,t){var n=t?Object.keys(Mn(Object.assign({},H,{plugins:t}))):Qi,r=n.reduce(function(o,s){var c=(e.getAttribute("data-tippy-"+s)||"").trim();if(!c)return o;if(s==="content")o[s]=c;else try{o[s]=JSON.parse(c)}catch{o[s]=c}return o},{});return r}function Zt(e,t){var n=Object.assign({},t,{content:Ln(t.content,[e])},t.ignoreAttributes?{}:eo(e,t.plugins));return n.aria=Object.assign({},H.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function $n(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var o=Ii(H,Object.keys(Vn)),s=!Li(o,r);s&&(s=t.filter(function(c){return c.name===r}).length===0),ae(s,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
8
+
9
+ `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
10
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var to=function(){return"innerHTML"};function bt(e,t){e[to()]=t}function Qt(e){var t=je();return e===!0?t.className=Pn:(t.className=_n,Fe(e)?t.appendChild(e):bt(t,e)),t}function Jt(e,t){Fe(t.content)?(bt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?bt(e,t.content):e.textContent=t.content)}function Et(e){var t=e.firstElementChild,n=ut(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Rn)}),arrow:n.find(function(r){return r.classList.contains(Pn)||r.classList.contains(_n)}),backdrop:n.find(function(r){return r.classList.contains(Ci)})}}function kn(e){var t=je(),n=je();n.className=_i,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=je();r.className=Rn,r.setAttribute("data-state","hidden"),Jt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(s,c){var l=Et(t),a=l.box,f=l.content,p=l.arrow;c.theme?a.setAttribute("data-theme",c.theme):a.removeAttribute("data-theme"),typeof c.animation=="string"?a.setAttribute("data-animation",c.animation):a.removeAttribute("data-animation"),c.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof c.maxWidth=="number"?c.maxWidth+"px":c.maxWidth,c.role?a.setAttribute("role",c.role):a.removeAttribute("role"),(s.content!==c.content||s.allowHTML!==c.allowHTML)&&Jt(f,e.props),c.arrow?p?s.arrow!==c.arrow&&(a.removeChild(p),a.appendChild(Qt(c.arrow))):a.appendChild(Qt(c.arrow)):p&&a.removeChild(p)}return{popper:t,onUpdate:o}}kn.$$tippy=!0;var no=1,it=[],ht=[];function ro(e,t){var n=Zt(e,Object.assign({},H,Mn(Yt(t)))),r,o,s,c=!1,l=!1,a=!1,f=!1,p,y,g,h=[],b=Wt(qe,n.interactiveDebounce),E,w=no++,A=null,S=Vi(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:w,reference:e,popper:je(),popperInstance:A,props:n,state:R,plugins:S,clearDelayTimeouts:Qe,setProps:Je,setContent:et,show:Gn,hide:Xn,hideWithInteractivity:Kn,enable:Ve,disable:Ze,unmount:Zn,destroy:Qn};if(!n.render)return process.env.NODE_ENV!=="production"&&yt(!0,"render() function has not been supplied."),i;var T=n.render(i),d=T.popper,D=T.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var I=S.map(function(u){return u.fn(i)}),L=e.hasAttribute("aria-expanded");return we(),Z(),$(),V("onCreate",[i]),n.showOnCreate&&Ne(),d.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",b)}),i;function _(){var u=i.props.touch;return Array.isArray(u)?u:[u,0]}function N(){return _()[0]==="hold"}function C(){var u;return!!((u=i.props.render)!=null&&u.$$tippy)}function P(){return E||e}function U(){var u=P().parentNode;return u?Ui(u):document}function F(){return Et(d)}function M(u){return i.state.isMounted&&!i.state.isVisible||J.isTouch||p&&p.type==="focus"?0:ft(i.props.delay,u?0:1,H.delay)}function $(u){u===void 0&&(u=!1),d.style.pointerEvents=i.props.interactive&&!u?"":"none",d.style.zIndex=""+i.props.zIndex}function V(u,v,m){if(m===void 0&&(m=!0),I.forEach(function(O){O[u]&&O[u].apply(O,v)}),m){var x;(x=i.props)[u].apply(x,v)}}function K(){var u=i.props.aria;if(u.content){var v="aria-"+u.content,m=d.id,x=xe(i.props.triggerTarget||e);x.forEach(function(O){var k=O.getAttribute(v);if(i.state.isVisible)O.setAttribute(v,k?k+" "+m:m);else{var z=k&&k.replace(m,"").trim();z?O.setAttribute(v,z):O.removeAttribute(v)}})}}function Z(){if(!(L||!i.props.aria.expanded)){var u=xe(i.props.triggerTarget||e);u.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===P()?"true":"false"):v.removeAttribute("aria-expanded")})}}function fe(){U().removeEventListener("mousemove",b),it=it.filter(function(u){return u!==b})}function Q(u){if(!(J.isTouch&&(a||u.type==="mousedown"))){var v=u.composedPath&&u.composedPath()[0]||u.target;if(!(i.props.interactive&&Gt(d,v))){if(xe(i.props.triggerTarget||e).some(function(m){return Gt(m,v)})){if(J.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else V("onClickOutside",[i,u]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),l=!0,setTimeout(function(){l=!1}),i.state.isMounted||re())}}}function de(){a=!0}function ne(){a=!1}function X(){var u=U();u.addEventListener("mousedown",Q,!0),u.addEventListener("touchend",Q,me),u.addEventListener("touchstart",ne,me),u.addEventListener("touchmove",de,me)}function re(){var u=U();u.removeEventListener("mousedown",Q,!0),u.removeEventListener("touchend",Q,me),u.removeEventListener("touchstart",ne,me),u.removeEventListener("touchmove",de,me)}function be(u,v){Ee(u,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function ie(u,v){Ee(u,v)}function Ee(u,v){var m=F().box;function x(O){O.target===m&&(vt(m,"remove",x),v())}if(u===0)return v();vt(m,"remove",y),vt(m,"add",x),y=x}function ue(u,v,m){m===void 0&&(m=!1);var x=xe(i.props.triggerTarget||e);x.forEach(function(O){O.addEventListener(u,v,m),h.push({node:O,eventType:u,handler:v,options:m})})}function we(){N()&&(ue("touchstart",Ce,{passive:!0}),ue("touchend",Ge,{passive:!0})),Ni(i.props.trigger).forEach(function(u){if(u!=="manual")switch(ue(u,Ce),u){case"mouseenter":ue("mouseleave",Ge);break;case"focus":ue(qi?"focusout":"blur",Le);break;case"focusin":ue("focusout",Le);break}})}function Ye(){h.forEach(function(u){var v=u.node,m=u.eventType,x=u.handler,O=u.options;v.removeEventListener(m,x,O)}),h=[]}function Ce(u){var v,m=!1;if(!(!i.state.isEnabled||Ie(u)||l)){var x=((v=p)==null?void 0:v.type)==="focus";p=u,E=u.currentTarget,Z(),!i.state.isVisible&&ki(u)&&it.forEach(function(O){return O(u)}),u.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||c)&&i.props.hideOnClick!==!1&&i.state.isVisible?m=!0:Ne(u),u.type==="click"&&(c=!m),m&&!x&&ve(u)}}function qe(u){var v=u.target,m=P().contains(v)||d.contains(v);if(!(u.type==="mousemove"&&m)){var x=ce().concat(d).map(function(O){var k,z=O._tippy,Oe=(k=z.popperInstance)==null?void 0:k.state;return Oe?{popperRect:O.getBoundingClientRect(),popperState:Oe,props:n}:null}).filter(Boolean);Fi(x,u)&&(fe(),ve(u))}}function Ge(u){var v=Ie(u)||i.props.trigger.indexOf("click")>=0&&c;if(!v){if(i.props.interactive){i.hideWithInteractivity(u);return}ve(u)}}function Le(u){i.props.trigger.indexOf("focusin")<0&&u.target!==P()||i.props.interactive&&u.relatedTarget&&d.contains(u.relatedTarget)||ve(u)}function Ie(u){return J.isTouch?N()!==u.type.indexOf("touch")>=0:!1}function Xe(){Ke();var u=i.props,v=u.popperOptions,m=u.placement,x=u.offset,O=u.getReferenceClientRect,k=u.moveTransition,z=C()?Et(d).arrow:null,Oe=O?{getBoundingClientRect:O,contextElement:O.contextElement||P()}:e,It={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(tt){var Te=tt.state;if(C()){var Jn=F(),pt=Jn.box;["placement","reference-hidden","escaped"].forEach(function(nt){nt==="placement"?pt.setAttribute("data-placement",Te.placement):Te.attributes.popper["data-popper-"+nt]?pt.setAttribute("data-"+nt,""):pt.removeAttribute("data-"+nt)}),Te.attributes.popper={}}}},he=[{name:"offset",options:{offset:x}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!k}},It];C()&&z&&he.push({name:"arrow",options:{element:z,padding:3}}),he.push.apply(he,(v==null?void 0:v.modifiers)||[]),i.popperInstance=Pi(Oe,d,Object.assign({},v,{placement:m,onFirstUpdate:g,modifiers:he}))}function Ke(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function oe(){var u=i.props.appendTo,v,m=P();i.props.interactive&&u===Cn||u==="parent"?v=m.parentNode:v=Ln(u,[m]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,Xe(),process.env.NODE_ENV!=="production"&&ae(i.props.interactive&&u===H.appendTo&&m.nextElementSibling!==d,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
11
+
12
+ `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
13
+
14
+ `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
15
+
16
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ce(){return ut(d.querySelectorAll("[data-tippy-root]"))}function Ne(u){i.clearDelayTimeouts(),u&&V("onTrigger",[i,u]),X();var v=M(!0),m=_(),x=m[0],O=m[1];J.isTouch&&x==="hold"&&O&&(v=O),v?r=setTimeout(function(){i.show()},v):i.show()}function ve(u){if(i.clearDelayTimeouts(),V("onUntrigger",[i,u]),!i.state.isVisible){re();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&c)){var v=M(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):s=requestAnimationFrame(function(){i.hide()})}}function Ve(){i.state.isEnabled=!0}function Ze(){i.hide(),i.state.isEnabled=!1}function Qe(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function Je(u){if(process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("setProps")),!i.state.isDestroyed){V("onBeforeUpdate",[i,u]),Ye();var v=i.props,m=Zt(e,Object.assign({},v,Yt(u),{ignoreAttributes:!0}));i.props=m,we(),v.interactiveDebounce!==m.interactiveDebounce&&(fe(),b=Wt(qe,m.interactiveDebounce)),v.triggerTarget&&!m.triggerTarget?xe(v.triggerTarget).forEach(function(x){x.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),$(),D&&D(v,m),i.popperInstance&&(Xe(),ce().forEach(function(x){requestAnimationFrame(x._tippy.popperInstance.forceUpdate)})),V("onAfterUpdate",[i,u])}}function et(u){i.setProps({content:u})}function Gn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("show"));var u=i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,x=J.isTouch&&!i.props.touch,O=ft(i.props.duration,0,H.duration);if(!(u||v||m||x)&&!P().hasAttribute("disabled")&&(V("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,C()&&(d.style.visibility="visible"),$(),X(),i.state.isMounted||(d.style.transition="none"),C()){var k=F(),z=k.box,Oe=k.content;dt([z,Oe],0)}g=function(){var he;if(!(!i.state.isVisible||f)){if(f=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,C()&&i.props.animation){var lt=F(),tt=lt.box,Te=lt.content;dt([tt,Te],O),qt([tt,Te],"visible")}K(),Z(),zt(ht,i),(he=i.popperInstance)==null||he.forceUpdate(),V("onMount",[i]),i.props.animation&&C()&&ie(O,function(){i.state.isShown=!0,V("onShown",[i])})}},oe()}}function Xn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("hide"));var u=!i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,x=ft(i.props.duration,1,H.duration);if(!(u||v||m)&&(V("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,f=!1,c=!1,C()&&(d.style.visibility="hidden"),fe(),re(),$(!0),C()){var O=F(),k=O.box,z=O.content;i.props.animation&&(dt([k,z],x),qt([k,z],"hidden"))}K(),Z(),i.props.animation?C()&&be(x,i.unmount):i.unmount()}}function Kn(u){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("hideWithInteractivity")),U().addEventListener("mousemove",b),zt(it,b),b(u)}function Zn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(Ke(),ce().forEach(function(u){u._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),ht=ht.filter(function(u){return u!==i}),i.state.isMounted=!1,V("onHidden",[i]))}function Qn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,Ae("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),Ye(),delete e._tippy,i.state.isDestroyed=!0,V("onDestroy",[i]))}}function _e(e,t){t===void 0&&(t={});var n=H.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(Ki(e),$n(t,n)),zi();var r=Object.assign({},t,{plugins:n}),o=Bi(e);if(process.env.NODE_ENV!=="production"){var s=Fe(r.content),c=o.length>1;ae(s&&c,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
17
+
18
+ `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
19
+
20
+ `,`1) content: element.innerHTML
21
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,f){var p=f&&ro(f,r);return p&&a.push(p),a},[]);return Fe(e)?l[0]:l}_e.defaultProps=H;_e.setDefaultProps=Ji;_e.currentInput=J;Object.assign({},En,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var io={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function s(f){return t.props.sticky===!0||t.props.sticky===f}var c=null,l=null;function a(){var f=s("reference")?o().getBoundingClientRect():null,p=s("popper")?r.getBoundingClientRect():null;(f&&en(c,f)||p&&en(l,p))&&t.popperInstance&&t.popperInstance.update(),c=f,l=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function en(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}_e.setDefaultProps({render:kn});const oo=e=>({name:"arrowDetected",enabled:!0,phase:"main",fn:e,requiresIfExists:["offset"]}),jn=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Bn=[!0,!1,"reference","popper"],Un=(e,t)=>{const{contentElement:n}={...t};return delete t.contentElement,_e(e,{...t,plugins:[io],render:()=>uo(n)})},Fn=({boundary:e="clippingParents",fallbackPlacements:t=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:r=!1,tether:o=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:t,boundary:e}},{name:"hide",enabled:r},{name:"preventOverflow",options:{altAxis:!o,tether:o}},oo(({state:s})=>{n(s.placement)})]}),ao=e=>{const t=document.createElement("span");return t.innerText=e.innerText||"",e.innerText="",e.appendChild(t),t},so=e=>{const t=e==null?void 0:e.children[0];return t||ao(e)},uo=e=>{const t=document.createElement("div");return t.className="tippy-box d-ps-absolute",t.appendChild(e),{popper:t}},co={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},lo={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},po=["dialog","menu","listbox","tree","grid"],fo=["","anchor"],vo=["none","dialog","first"],Hn=["parent","body"],ho=[...Bn],mo=[...jn],Wn=[...jn],zn=300,Yn={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},qn=[...Bn],go=[!0,!1,"toggle"],yo={name:"DtTooltip",components:{DtLazyShow:gn},props:{id:{type:String,default(){return wt()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(e){return Wn.includes(e)}},sticky:{type:[Boolean,String],default:!1,validator:e=>qn.includes(e)},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>Hn.includes(e)||e instanceof HTMLElement},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},enabled:{type:Boolean,default:!0},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0},externalAnchor:{type:String,default:null}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Yn,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement,isTouchDevice:!1}},computed:{isVisible(){var o,s;const e=!!((o=this.message)!=null&&o.trim()),t=!!((s=this.$slots)!=null&&s.default),n=!this.isTouchDevice;return this.isShown&&this.enabled&&(e||t)&&n},tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){return{offset:this.offset,interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:Fn({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchor?document.body.querySelector(this.externalAnchor):so(this.$refs.anchor)}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(e){e!==null&&(this.isShown=e)},immediate:!0},isShown(e){e?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(e){this.tip.setProps({sticky:e})}},mounted(){!this.enabled&&this.show!=null&&(console.warn("Tooltip: You cannot use both the enabled and show props at the same time."),console.warn("The show prop will be ignored.")),this.externalAnchor&&this.addExternalAnchorEventListeners(),this.tip=Un(this.anchor,this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var e;this.externalAnchor&&this.removeExternalAnchorEventListeners(),this.tip&&((e=this.tip)==null||e.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return this.anchor.matches(":focus-visible")},onEnterAnchor(e){this.isTouchDevice&&!e.relatedTarget||(this.delay?this.inTimer=setTimeout((function(t){this.triggerShow(t)}).bind(this,e),zn):this.triggerShow(e),this.isTouchDevice=!1)},triggerShow(e){e.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(e){e.type==="keydown"&&e.code!=="Escape"||(clearTimeout(this.inTimer),this.triggerHide())},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(e){this.currentPlacement=e},onLeaveTransitionComplete(){var e;(e=this.tip)==null||e.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){var e,t;return{contentElement:this.$refs.content.$el,allowHTML:!0,appendTo:this.appendTo==="body"?(t=(e=this.anchor)==null?void 0:e.getRootNode())==null?void 0:t.querySelector("body"):this.appendTo,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}},addExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onLeaveAnchor(t))})},removeExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onLeaveAnchor(t))})},onTouchStart(){this.isTouchDevice=!0}}};var bo=function(){var t=this,n=t._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[t.externalAnchor?t._e():n("span",{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{focusin:t.onEnterAnchor,focusout:t.onLeaveAnchor,mouseenter:t.onEnterAnchor,mouseleave:t.onLeaveAnchor,keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:t.onLeaveAnchor.apply(null,arguments)},touchstart:t.onTouchStart}},[t._t("anchor")],2),n("dt-lazy-show",t._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${t.currentPlacement}`,{[t.TOOLTIP_KIND_MODIFIERS.inverted]:t.inverted},t.contentClass],attrs:{id:t.id,show:t.isVisible,role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:t.transition}},t.tooltipListeners),[t._t("default",function(){return[t._v(" "+t._s(t.message)+" ")]})],2)],1)},Eo=[],wo=At(yo,bo,Eo,!1,null,null,null,null);const Oo=wo.exports;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=tn;exports.DESCRIPTION_SIZE_MODIFIERS=nr;exports.DESCRIPTION_SIZE_TYPES=tr;exports.DtLazyShow=gn;exports.DtTooltip=Oo;exports.EVENT_KEYNAMES=ir;exports.LABEL_SIZE_MODIFIERS=rr;exports.POPOVER_APPEND_TO_VALUES=Hn;exports.POPOVER_CONTENT_WIDTHS=fo;exports.POPOVER_DIRECTIONS=mo;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=lo;exports.POPOVER_INITIAL_FOCUS_STRINGS=vo;exports.POPOVER_PADDING_CLASSES=co;exports.POPOVER_ROLES=po;exports.POPOVER_STICKY_VALUES=ho;exports.TOOLTIP_DELAY_MS=zn;exports.TOOLTIP_DIRECTIONS=Wn;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=go;exports.TOOLTIP_KIND_MODIFIERS=Yn;exports.TOOLTIP_STICKY_VALUES=qn;exports.VALIDATION_MESSAGE_TYPES=le;exports.capitalizeFirstLetter=mn;exports.createTippy=Un;exports.filterFormattedMessages=an;exports.formatMessages=on;exports.getPhoneNumberRegex=Tt;exports.getPopperOptions=Fn;exports.getRandomElement=nn;exports.getUniqueString=wt;exports.getValidationState=Ot;exports.isOutOfViewPort=sn;exports.linkRegex=vn;exports.normalizeComponent=At;exports.safeConcatStrings=hn;exports.tippy=_e;exports.utils=Er;
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"names":[],"mappings":";IAUS;;;;;QAYN;IAEQ;;;;aA0BR;IAEO;;;;;MA4DP"}
1
+ {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../../../components/rich_text_editor/extensions/emoji/suggestion.js"],"names":[],"mappings":";IASS;;;;;QAYN;IAEQ;;;;aA0BR;IAEO;;;;;MA4DP"}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../../../components/rich_text_editor/extensions/mentions/suggestion.js"],"names":[],"mappings":";IAaU;;;;;MA0DP"}
1
+ {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../../../../components/rich_text_editor/extensions/mentions/suggestion.js"],"names":[],"mappings":";IAYU;;;;;MA0DP"}
@@ -86,6 +86,20 @@ declare const _default: import("vue").DefineComponent<{
86
86
  default: boolean;
87
87
  validator: (sticky: unknown) => boolean;
88
88
  };
89
+ /**
90
+ * Sets the element to which the tooltip is going to append to.
91
+ * 'body' will append to the nearest body (supports shadow DOM).
92
+ * This prop is not reactive, must be set on initial render.
93
+ * @values 'body', 'parent', HTMLElement,
94
+ */
95
+ appendTo: {
96
+ type: (StringConstructor | {
97
+ new (): HTMLElement;
98
+ prototype: HTMLElement;
99
+ })[];
100
+ default: string;
101
+ validator: (appendTo: unknown) => boolean;
102
+ };
89
103
  /**
90
104
  * Additional css classes for the tooltip content element.
91
105
  * Can accept all of String, Object, and Array, i.e. has the
@@ -253,6 +267,7 @@ declare const _default: import("vue").DefineComponent<{
253
267
  };
254
268
  contentElement: any;
255
269
  allowHTML: boolean;
270
+ appendTo: any;
256
271
  zIndex: number;
257
272
  onMount: () => void;
258
273
  };
@@ -347,6 +362,20 @@ declare const _default: import("vue").DefineComponent<{
347
362
  default: boolean;
348
363
  validator: (sticky: unknown) => boolean;
349
364
  };
365
+ /**
366
+ * Sets the element to which the tooltip is going to append to.
367
+ * 'body' will append to the nearest body (supports shadow DOM).
368
+ * This prop is not reactive, must be set on initial render.
369
+ * @values 'body', 'parent', HTMLElement,
370
+ */
371
+ appendTo: {
372
+ type: (StringConstructor | {
373
+ new (): HTMLElement;
374
+ prototype: HTMLElement;
375
+ })[];
376
+ default: string;
377
+ validator: (appendTo: unknown) => boolean;
378
+ };
350
379
  /**
351
380
  * Additional css classes for the tooltip content element.
352
381
  * Can accept all of String, Object, and Array, i.e. has the
@@ -415,6 +444,7 @@ declare const _default: import("vue").DefineComponent<{
415
444
  transition: string;
416
445
  offset: unknown[];
417
446
  fallbackPlacements: unknown[];
447
+ appendTo: string | HTMLElement;
418
448
  delay: boolean;
419
449
  placement: string;
420
450
  sticky: string | boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../components/tooltip/tooltip.vue.js"],"names":[],"mappings":";IA6BI;;OAEG;;;;;IAMH;;;;;;;;;;;;SAYK;;;;;IAML;;;OAGG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;OAIG;;;;;IAMH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA7JH;;OAEG;;;;;IAMH;;;;;;;;;;;;SAYK;;;;;IAML;;;OAGG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;OAIG;;;;;IAMH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG"}
1
+ {"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../components/tooltip/tooltip.vue.js"],"names":[],"mappings":";IAgCI;;OAEG;;;;;IAMH;;;;;;;;;;;;SAYK;;;;;IAML;;;OAGG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;OAKG;;;;;;;;;IAUH;;;;OAIG;;;;;IAMH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA5KH;;OAEG;;;;;IAMH;;;;;;;;;;;;SAYK;;;;;IAML;;;OAGG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;;;;;;;;;;OAcG;;;;;;IASH;;;;;OAKG;;;;;;;;;IAUH;;;;OAIG;;;;;IAMH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG"}
@@ -183,6 +183,13 @@ declare const _default: import("vue").DefineComponent<{
183
183
  type: BooleanConstructor;
184
184
  default: boolean;
185
185
  };
186
+ /**
187
+ * Show button to handle quick replies
188
+ */
189
+ showQuickRepliesButton: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
186
193
  /**
187
194
  * Show add link default config.
188
195
  */
@@ -288,11 +295,12 @@ declare const _default: import("vue").DefineComponent<{
288
295
  onBulletListToggle(): void;
289
296
  onOrderedListToggle(): void;
290
297
  onCodeBlockToggle(): void;
298
+ onQuickRepliesClick(): void;
291
299
  onBlockquoteToggle(): void;
292
300
  onFocus(event: any): void;
293
301
  onBlur(event: any): void;
294
302
  onInput(event: any): void;
295
- }, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "focus" | "blur")[], string, Readonly<import("vue").ExtractPropTypes<{
303
+ }, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "focus" | "blur" | "quick-replies-click")[], string, Readonly<import("vue").ExtractPropTypes<{
296
304
  /**
297
305
  * Value of the input. The object format should match TipTap's JSON
298
306
  * document structure: https://tiptap.dev/guide/output#option-1-json
@@ -477,6 +485,13 @@ declare const _default: import("vue").DefineComponent<{
477
485
  type: BooleanConstructor;
478
486
  default: boolean;
479
487
  };
488
+ /**
489
+ * Show button to handle quick replies
490
+ */
491
+ showQuickRepliesButton: {
492
+ type: BooleanConstructor;
493
+ default: boolean;
494
+ };
480
495
  /**
481
496
  * Show add link default config.
482
497
  */
@@ -512,6 +527,7 @@ declare const _default: import("vue").DefineComponent<{
512
527
  showAlignJustifyButton: boolean;
513
528
  showQuoteButton: boolean;
514
529
  showCodeBlockButton: boolean;
530
+ showQuickRepliesButton: boolean;
515
531
  showAddLink: Record<string, any>;
516
532
  }>;
517
533
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"editor.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/editor/editor.vue.js"],"names":[],"mappings":";IAmCI;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA7MH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
1
+ {"version":3,"file":"editor.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/editor/editor.vue.js"],"names":[],"mappings":";IAmCI;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IArNH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-vue",
3
- "version": "2.118.0",
3
+ "version": "2.120.0",
4
4
  "description": "Vue component library for Dialpad's design system Dialtone",
5
5
  "files": [
6
6
  "dist",
@@ -1,21 +0,0 @@
1
- "use strict";const Jn=require("vue"),le={ERROR:"error",WARNING:"warning",SUCCESS:"success"},er={LARGE:"lg",EXTRA_LARGE:"xl"},tr={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},nr={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},rr={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},tn=le.ERROR,ir="dt";let or=0,Nt;const ar=typeof setImmediate=="function"?setImmediate:setTimeout;function Et(e=ir){return`${e}${or++}`}function nn(e,t){if(t){const n=sr(t);return e[Math.abs(n)%e.length]}else return e[rn(e.length)]}function sr(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function rn(e){return Math.floor(Math.random()*e)}function on(e){return e?e.map(t=>typeof t=="string"?{message:t,type:tn}:t):[]}function an(e){const t=Ot(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Ot(e){return e?ot(e,le.ERROR)?le.ERROR:ot(e,le.WARNING)?le.WARNING:ot(e,le.SUCCESS)?le.SUCCESS:null:null}function ot(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const ur={name:"html-fragment",functional:!0,props:["html"],render(e,t){return new Jn({name:"Inner",beforeCreate(){this.$createElement=e},template:`<div>${t.props.html}</div>`}).$mount()._vnode.children}},cr=()=>new Promise(e=>{ar(e)}),lr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("");function fr(e,t=300){clearTimeout(Nt),Nt=setTimeout(e,t)}function sn(e){const t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(r=>r),n.all=Object.values(n).every(r=>r),n}const pr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,dr=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),vr=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),un=new RegExp("(?:"+[[pr.source,dr.source].join("+"),vr.source].join("|")+")"),hr=/(?:(?:[;/][^#?<>\s]*)?)/,cn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,ln=new RegExp("\\b"+[un.source,hr.source,cn.source,"(?!\\w)"].join("+")),fn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,pn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[un.source,cn.source].join("+")+"(?!\\w)");function Tt(e=7,t=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const dn=Tt(),vn=new RegExp([ln.source,fn.source,pn.source,dn.source].join("|"),"gi");function mr(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=dn.exec(e))==null?void 0:t[0])===e)}function gr(e){var t,n;return!e||typeof e!="string"?!1:((t=ln.exec(e))==null?void 0:t[0])===e||((n=fn.exec(e))==null?void 0:n[0])===e}function yr(e){var t;return!e||typeof e!="string"?!1:((t=pn.exec(e))==null?void 0:t[0])===e}function hn(e){return e.filter(t=>!!t).join(" ")}function mn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const br={getUniqueString:Et,getRandomElement:nn,getRandomInt:rn,formatMessages:on,filterFormattedMessages:an,hasFormattedMessageOfType:ot,getValidationState:Ot,htmlFragment:ur,flushPromises:cr,kebabCaseToPascalCase:lr,debounce:fr,isOutOfViewPort:sn,getPhoneNumberRegex:Tt,linkRegex:vn,isEmailAddress:yr,isPhoneNumber:mr,isURL:gr,safeConcatStrings:hn,capitalizeFirstLetter:mn};function xt(e,t,n,r,o,s,c,l){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var p;if(c?(p=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),o&&o.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(c)},a._ssrRegister=p):o&&(p=l?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),p)if(a.functional){a._injectStyles=p;var f=a.render;a.render=function(h,b){return p.call(b),f(h,b)}}else{var y=a.beforeCreate;a.beforeCreate=y?[].concat(y,p):[p]}return{exports:e,options:a}}const wr={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}}};var Er=function(){var t=this,n=t._self._c;return n("transition",t._g({attrs:{name:t.transition,appear:t.appear,css:t.isCSSEnabled}},t.$listeners),[n("div",t._g({directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},t.$listeners),[t.initialized?t._t("default"):t._e()],2)])},Or=[],Tr=xt(wr,Er,Or,!1,null,null,null,null);const gn=Tr.exports;var j="top",q="bottom",X="right",B="left",At="auto",We=[j,q,X,B],Se="start",Be="end",xr="clippingParents",yn="viewport",$e="popper",Ar="reference",Mt=We.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+Be])},[]),bn=[].concat(We,[At]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+Be])},[]),Sr="beforeRead",Dr="read",Cr="afterRead",Rr="beforeMain",Lr="main",_r="afterMain",Ir="beforeWrite",Pr="write",Nr="afterWrite",Mr=[Sr,Dr,Cr,Rr,Lr,_r,Ir,Pr,Nr];function te(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function St(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $r(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Y(s)||!te(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(c){var l=o[c];l===!1?s.removeAttribute(c):s.setAttribute(c,l===!0?"":l)}))})}function kr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=c.reduce(function(a,p){return a[p]="",a},{});!Y(o)||!te(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const wn={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:kr,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var ge=Math.max,st=Math.min,De=Math.round;function mt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function En(){return!/^((?!chrome|android).)*safari/i.test(mt())}function Ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Y(e)&&(o=e.offsetWidth>0&&De(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&De(r.height)/e.offsetHeight||1);var c=ye(e)?W(e):window,l=c.visualViewport,a=!En()&&n,p=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,y=r.width/o,g=r.height/s;return{width:y,height:g,top:f,right:p+y,bottom:f+g,left:p,x:p,y:f}}function Dt(e){var t=Ce(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function On(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&St(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function se(e){return W(e).getComputedStyle(e)}function Vr(e){return["table","td","th"].indexOf(te(e))>=0}function fe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function ct(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(St(e)?e.host:null)||fe(e)}function $t(e){return!Y(e)||se(e).position==="fixed"?null:e.offsetParent}function jr(e){var t=/firefox/i.test(mt()),n=/Trident/i.test(mt());if(n&&Y(e)){var r=se(e);if(r.position==="fixed")return null}var o=ct(e);for(St(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(te(o))<0;){var s=se(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ze(e){for(var t=W(e),n=$t(e);n&&Vr(n)&&se(n).position==="static";)n=$t(n);return n&&(te(n)==="html"||te(n)==="body"&&se(n).position==="static")?t:n||jr(e)||t}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ke(e,t,n){return ge(e,st(t,n))}function Br(e,t,n){var r=ke(e,t,n);return r>n?n:r}function Tn(){return{top:0,right:0,bottom:0,left:0}}function xn(e){return Object.assign({},Tn(),e)}function An(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ur=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xn(typeof t!="number"?t:An(t,We))};function Fr(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,l=ee(n.placement),a=Ct(l),p=[B,X].indexOf(l)>=0,f=p?"height":"width";if(!(!s||!c)){var y=Ur(o.padding,n),g=Dt(s),h=a==="y"?j:B,b=a==="y"?q:X,w=n.rects.reference[f]+n.rects.reference[a]-c[a]-n.rects.popper[f],E=c[a]-n.rects.reference[a],x=ze(s),S=x?a==="y"?x.clientHeight||0:x.clientWidth||0:0,C=w/2-E/2,i=y[h],T=S-g[f]-y[b],d=S/2-g[f]/2+C,D=ke(i,d,T),P=a;n.modifiersData[r]=(t={},t[P]=D,t.centerOffset=D-d,t)}}function Hr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||On(t.elements.popper,o)&&(t.elements.arrow=o))}const Wr={name:"arrow",enabled:!0,phase:"main",fn:Fr,effect:Hr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Re(e){return e.split("-")[1]}var zr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yr(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:De(n*o)/o||0,y:De(r*o)/o||0}}function kt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,l=e.position,a=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,y=e.isFixed,g=c.x,h=g===void 0?0:g,b=c.y,w=b===void 0?0:b,E=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=E.x,w=E.y;var x=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=B,i=j,T=window;if(p){var d=ze(n),D="clientHeight",P="clientWidth";if(d===W(n)&&(d=fe(n),se(d).position!=="static"&&l==="absolute"&&(D="scrollHeight",P="scrollWidth")),d=d,o===j||(o===B||o===X)&&s===Be){i=q;var I=y&&d===T&&T.visualViewport?T.visualViewport.height:d[D];w-=I-r.height,w*=a?1:-1}if(o===B||(o===j||o===q)&&s===Be){C=X;var L=y&&d===T&&T.visualViewport?T.visualViewport.width:d[P];h-=L-r.width,h*=a?1:-1}}var N=Object.assign({position:l},p&&zr),_=f===!0?Yr({x:h,y:w},W(n)):{x:h,y:w};if(h=_.x,w=_.y,a){var R;return Object.assign({},N,(R={},R[i]=S?"0":"",R[C]=x?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",R))}return Object.assign({},N,(t={},t[i]=S?w+"px":"",t[C]=x?h+"px":"",t.transform="",t))}function qr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,c=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,p={placement:ee(t.placement),variation:Re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qr,data:{}};var rt={passive:!0};function Kr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,c=r.resize,l=c===void 0?!0:c,a=W(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(f){f.addEventListener("scroll",n.update,rt)}),l&&a.addEventListener("resize",n.update,rt),function(){s&&p.forEach(function(f){f.removeEventListener("scroll",n.update,rt)}),l&&a.removeEventListener("resize",n.update,rt)}}const Gr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kr,data:{}};var Zr={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,function(t){return Zr[t]})}var Qr={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Qr[t]})}function Rt(e){var t=W(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lt(e){return Ce(fe(e)).left+Rt(e).scrollLeft}function Jr(e,t){var n=W(e),r=fe(e),o=n.visualViewport,s=r.clientWidth,c=r.clientHeight,l=0,a=0;if(o){s=o.width,c=o.height;var p=En();(p||!p&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:c,x:l+Lt(e),y:a}}function ei(e){var t,n=fe(e),r=Rt(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ge(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ge(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Lt(e),a=-r.scrollTop;return se(o||n).direction==="rtl"&&(l+=ge(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:l,y:a}}function _t(e){var t=se(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Sn(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Y(e)&&_t(e)?e:Sn(ct(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var r=Sn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=W(r),c=o?[s].concat(s.visualViewport||[],_t(r)?r:[]):r,l=t.concat(c);return o?l:l.concat(Ve(ct(c)))}function gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ti(e,t){var n=Ce(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jt(e,t,n){return t===yn?gt(Jr(e,n)):ye(t)?ti(t,n):gt(ei(fe(e)))}function ni(e){var t=Ve(ct(e)),n=["absolute","fixed"].indexOf(se(e).position)>=0,r=n&&Y(e)?ze(e):e;return ye(r)?t.filter(function(o){return ye(o)&&On(o,r)&&te(o)!=="body"}):[]}function ri(e,t,n,r){var o=t==="clippingParents"?ni(e):[].concat(t),s=[].concat(o,[n]),c=s[0],l=s.reduce(function(a,p){var f=jt(e,p,r);return a.top=ge(f.top,a.top),a.right=st(f.right,a.right),a.bottom=st(f.bottom,a.bottom),a.left=ge(f.left,a.left),a},jt(e,c,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Dn(e){var t=e.reference,n=e.element,r=e.placement,o=r?ee(r):null,s=r?Re(r):null,c=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case j:a={x:c,y:t.y-n.height};break;case q:a={x:c,y:t.y+t.height};break;case X:a={x:t.x+t.width,y:l};break;case B:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var p=o?Ct(o):null;if(p!=null){var f=p==="y"?"height":"width";switch(s){case Se:a[p]=a[p]-(t[f]/2-n[f]/2);break;case Be:a[p]=a[p]+(t[f]/2-n[f]/2);break}}return a}function Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,c=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?xr:l,p=n.rootBoundary,f=p===void 0?yn:p,y=n.elementContext,g=y===void 0?$e:y,h=n.altBoundary,b=h===void 0?!1:h,w=n.padding,E=w===void 0?0:w,x=xn(typeof E!="number"?E:An(E,We)),S=g===$e?Ar:$e,C=e.rects.popper,i=e.elements[b?S:g],T=ri(ye(i)?i:i.contextElement||fe(e.elements.popper),a,f,c),d=Ce(e.elements.reference),D=Dn({reference:d,element:C,strategy:"absolute",placement:o}),P=gt(Object.assign({},C,D)),I=g===$e?P:d,L={top:T.top-I.top+x.top,bottom:I.bottom-T.bottom+x.bottom,left:T.left-I.left+x.left,right:I.right-T.right+x.right},N=e.modifiersData.offset;if(g===$e&&N){var _=N[o];Object.keys(L).forEach(function(R){var U=[X,q].indexOf(R)>=0?1:-1,F=[j,q].indexOf(R)>=0?"y":"x";L[R]+=_[F]*U})}return L}function ii(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,p=a===void 0?bn:a,f=Re(r),y=f?l?Mt:Mt.filter(function(b){return Re(b)===f}):We,g=y.filter(function(b){return p.indexOf(b)>=0});g.length===0&&(g=y);var h=g.reduce(function(b,w){return b[w]=Ue(e,{placement:w,boundary:o,rootBoundary:s,padding:c})[ee(w)],b},{});return Object.keys(h).sort(function(b,w){return h[b]-h[w]})}function oi(e){if(ee(e)===At)return[];var t=at(e);return[Vt(e),t,Vt(t)]}function ai(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!0:c,a=n.fallbackPlacements,p=n.padding,f=n.boundary,y=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,w=n.allowedAutoPlacements,E=t.options.placement,x=ee(E),S=x===E,C=a||(S||!b?[at(E)]:oi(E)),i=[E].concat(C).reduce(function(ne,K){return ne.concat(ee(K)===At?ii(t,{placement:K,boundary:f,rootBoundary:y,padding:p,flipVariations:b,allowedAutoPlacements:w}):K)},[]),T=t.rects.reference,d=t.rects.popper,D=new Map,P=!0,I=i[0],L=0;L<i.length;L++){var N=i[L],_=ee(N),R=Re(N)===Se,U=[j,q].indexOf(_)>=0,F=U?"width":"height",$=Ue(t,{placement:N,boundary:f,rootBoundary:y,altBoundary:g,padding:p}),k=U?R?X:B:R?q:j;T[F]>d[F]&&(k=at(k));var M=at(k),G=[];if(s&&G.push($[_]<=0),l&&G.push($[k]<=0,$[M]<=0),G.every(function(ne){return ne})){I=N,P=!1;break}D.set(N,G)}if(P)for(var Z=b?3:1,pe=function(K){var re=i.find(function(be){var ie=D.get(be);if(ie)return ie.slice(0,K).every(function(we){return we})});if(re)return I=re,"break"},Q=Z;Q>0;Q--){var de=pe(Q);if(de==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const si={name:"flip",enabled:!0,phase:"main",fn:ai,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[j,X,q,B].some(function(t){return e[t]>=0})}function ui(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Ue(t,{elementContext:"reference"}),l=Ue(t,{altBoundary:!0}),a=Bt(c,r),p=Bt(l,o,s),f=Ut(a),y=Ut(p);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":y})}const ci={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ui};function li(e,t,n){var r=ee(e),o=[B,j].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],l=s[1];return c=c||0,l=(l||0)*o,[B,X].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function fi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=bn.reduce(function(f,y){return f[y]=li(y,t.rects,s),f},{}),l=c[t.placement],a=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=c}const pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fi};function di(e){var t=e.state,n=e.name;t.modifiersData[n]=Dn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vi={name:"popperOffsets",enabled:!0,phase:"read",fn:di,data:{}};function hi(e){return e==="x"?"y":"x"}function mi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!1:c,a=n.boundary,p=n.rootBoundary,f=n.altBoundary,y=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,w=b===void 0?0:b,E=Ue(t,{boundary:a,rootBoundary:p,padding:y,altBoundary:f}),x=ee(t.placement),S=Re(t.placement),C=!S,i=Ct(x),T=hi(i),d=t.modifiersData.popperOffsets,D=t.rects.reference,P=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(d){if(s){var R,U=i==="y"?j:B,F=i==="y"?q:X,$=i==="y"?"height":"width",k=d[i],M=k+E[U],G=k-E[F],Z=h?-P[$]/2:0,pe=S===Se?D[$]:P[$],Q=S===Se?-P[$]:-D[$],de=t.elements.arrow,ne=h&&de?Dt(de):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tn(),re=K[U],be=K[F],ie=ke(0,D[$],ne[$]),we=C?D[$]/2-Z-ie-re-L.mainAxis:pe-ie-re-L.mainAxis,ue=C?-D[$]/2+Z+ie+be+L.mainAxis:Q+ie+be+L.mainAxis,Ee=t.elements.arrow&&ze(t.elements.arrow),Ye=Ee?i==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,_e=(R=N==null?void 0:N[i])!=null?R:0,qe=k+we-_e-Ye,Xe=k+ue-_e,Ie=ke(h?st(M,qe):M,k,h?ge(G,Xe):G);d[i]=Ie,_[i]=Ie-k}if(l){var Pe,Ke=i==="x"?j:B,Ge=i==="x"?q:X,oe=d[T],ce=T==="y"?"height":"width",Ne=oe+E[Ke],ve=oe-E[Ge],Me=[j,B].indexOf(x)!==-1,Ze=(Pe=N==null?void 0:N[T])!=null?Pe:0,Qe=Me?Ne:oe-D[ce]-P[ce]-Ze+L.altAxis,Je=Me?oe+D[ce]+P[ce]-Ze-L.altAxis:ve,et=h&&Me?Br(Qe,oe,Je):ke(h?Qe:Ne,oe,h?Je:ve);d[T]=et,_[T]=et-oe}t.modifiersData[r]=_}}const gi={name:"preventOverflow",enabled:!0,phase:"main",fn:mi,requiresIfExists:["offset"]};function yi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bi(e){return e===W(e)||!Y(e)?Rt(e):yi(e)}function wi(e){var t=e.getBoundingClientRect(),n=De(t.width)/e.offsetWidth||1,r=De(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ei(e,t,n){n===void 0&&(n=!1);var r=Y(t),o=Y(t)&&wi(t),s=fe(t),c=Ce(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((te(t)!=="body"||_t(s))&&(l=bi(t)),Y(t)?(a=Ce(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=Lt(s))),{x:c.left+l.scrollLeft-a.x,y:c.top+l.scrollTop-a.y,width:c.width,height:c.height}}function Oi(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Ti(e){var t=Oi(e);return Mr.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ai(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Si(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Ft:o;return function(l,a,p){p===void 0&&(p=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},y=[],g=!1,h={state:f,setOptions:function(x){var S=typeof x=="function"?x(f.options):x;w(),f.options=Object.assign({},s,f.options,S),f.scrollParents={reference:ye(l)?Ve(l):l.contextElement?Ve(l.contextElement):[],popper:Ve(a)};var C=Ti(Ai([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(i){return i.enabled}),b(),h.update()},forceUpdate:function(){if(!g){var x=f.elements,S=x.reference,C=x.popper;if(Ht(S,C)){f.rects={reference:Ei(S,ze(C),f.options.strategy==="fixed"),popper:Dt(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(L){return f.modifiersData[L.name]=Object.assign({},L.data)});for(var i=0;i<f.orderedModifiers.length;i++){if(f.reset===!0){f.reset=!1,i=-1;continue}var T=f.orderedModifiers[i],d=T.fn,D=T.options,P=D===void 0?{}:D,I=T.name;typeof d=="function"&&(f=d({state:f,options:P,name:I,instance:h})||f)}}}},update:xi(function(){return new Promise(function(E){h.forceUpdate(),E(f)})}),destroy:function(){w(),g=!0}};if(!Ht(l,a))return h;h.setOptions(p).then(function(E){!g&&p.onFirstUpdate&&p.onFirstUpdate(E)});function b(){f.orderedModifiers.forEach(function(E){var x=E.name,S=E.options,C=S===void 0?{}:S,i=E.effect;if(typeof i=="function"){var T=i({state:f,name:x,instance:h,options:C}),d=function(){};y.push(T||d)}})}function w(){y.forEach(function(E){return E()}),y=[]}return h}}var Di=[Gr,vi,Xr,wn,pi,si,gi,Wr,ci],Ci=Si({defaultModifiers:Di}),Ri="tippy-box",Cn="tippy-content",Li="tippy-backdrop",Rn="tippy-arrow",Ln="tippy-svg-arrow",me={passive:!0,capture:!0},_n=function(){return document.body};function _i(e,t){return{}.hasOwnProperty.call(e,t)}function pt(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function It(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function In(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Wt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ii(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Pi(e){return e.split(/\s+/).filter(Boolean)}function Ae(e){return[].concat(e)}function zt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ni(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Mi(e){return e.split("-")[0]}function ut(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function je(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function $i(e){return It(e,"NodeList")}function ki(e){return It(e,"MouseEvent")}function Vi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ji(e){return Fe(e)?[e]:$i(e)?ut(e):Array.isArray(e)?e:ut(document.querySelectorAll(e))}function dt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function qt(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Bi(e){var t,n=Ae(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ui(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var s=o.popperRect,c=o.popperState,l=o.props,a=l.interactiveBorder,p=Mi(c.placement),f=c.modifiersData.offset;if(!f)return!0;var y=p==="bottom"?f.top.y:0,g=p==="top"?f.bottom.y:0,h=p==="right"?f.left.x:0,b=p==="left"?f.right.x:0,w=s.top-r+y>a,E=r-s.bottom-g>a,x=s.left-n+h>a,S=n-s.right-b>a;return w||E||x||S})}function vt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Xt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var J={isTouch:!1},Kt=0;function Fi(){J.isTouch||(J.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pn))}function Pn(){var e=performance.now();e-Kt<20&&(J.isTouch=!1,document.removeEventListener("mousemove",Pn)),Kt=e}function Hi(){var e=document.activeElement;if(Vi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Wi(){document.addEventListener("touchstart",Fi,me),window.addEventListener("blur",Hi)}var zi=typeof window<"u"&&typeof document<"u",Yi=zi?!!window.msCrypto:!1;function xe(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Gt(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function qi(e){return Gt(`
2
- %ctippy.js
3
-
4
- %c`+Gt(e)+`
5
-
6
- %c👷‍ This is a development-only message. It will be removed in production.
7
- `)}function Nn(e){return[qi(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var He;process.env.NODE_ENV!=="production"&&Xi();function Xi(){He=new Set}function ae(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).warn.apply(n,Nn(t))}}function yt(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).error.apply(n,Nn(t))}}function Ki(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;yt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Mn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Gi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H=Object.assign({appendTo:_n,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mn,Gi),Zi=Object.keys(H),Qi=function(t){process.env.NODE_ENV!=="production"&&kn(t,[]);var n=Object.keys(t);n.forEach(function(r){H[r]=t[r]})};function $n(e){var t=e.plugins||[],n=t.reduce(function(r,o){var s=o.name,c=o.defaultValue;if(s){var l;r[s]=e[s]!==void 0?e[s]:(l=H[s])!=null?l:c}return r},{});return Object.assign({},e,n)}function Ji(e,t){var n=t?Object.keys($n(Object.assign({},H,{plugins:t}))):Zi,r=n.reduce(function(o,s){var c=(e.getAttribute("data-tippy-"+s)||"").trim();if(!c)return o;if(s==="content")o[s]=c;else try{o[s]=JSON.parse(c)}catch{o[s]=c}return o},{});return r}function Zt(e,t){var n=Object.assign({},t,{content:In(t.content,[e])},t.ignoreAttributes?{}:Ji(e,t.plugins));return n.aria=Object.assign({},H.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function kn(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var o=Ii(H,Object.keys(Mn)),s=!_i(o,r);s&&(s=t.filter(function(c){return c.name===r}).length===0),ae(s,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
8
-
9
- `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
10
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var eo=function(){return"innerHTML"};function bt(e,t){e[eo()]=t}function Qt(e){var t=je();return e===!0?t.className=Rn:(t.className=Ln,Fe(e)?t.appendChild(e):bt(t,e)),t}function Jt(e,t){Fe(t.content)?(bt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?bt(e,t.content):e.textContent=t.content)}function wt(e){var t=e.firstElementChild,n=ut(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Cn)}),arrow:n.find(function(r){return r.classList.contains(Rn)||r.classList.contains(Ln)}),backdrop:n.find(function(r){return r.classList.contains(Li)})}}function Vn(e){var t=je(),n=je();n.className=Ri,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=je();r.className=Cn,r.setAttribute("data-state","hidden"),Jt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(s,c){var l=wt(t),a=l.box,p=l.content,f=l.arrow;c.theme?a.setAttribute("data-theme",c.theme):a.removeAttribute("data-theme"),typeof c.animation=="string"?a.setAttribute("data-animation",c.animation):a.removeAttribute("data-animation"),c.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof c.maxWidth=="number"?c.maxWidth+"px":c.maxWidth,c.role?a.setAttribute("role",c.role):a.removeAttribute("role"),(s.content!==c.content||s.allowHTML!==c.allowHTML)&&Jt(p,e.props),c.arrow?f?s.arrow!==c.arrow&&(a.removeChild(f),a.appendChild(Qt(c.arrow))):a.appendChild(Qt(c.arrow)):f&&a.removeChild(f)}return{popper:t,onUpdate:o}}Vn.$$tippy=!0;var to=1,it=[],ht=[];function no(e,t){var n=Zt(e,Object.assign({},H,$n(Yt(t)))),r,o,s,c=!1,l=!1,a=!1,p=!1,f,y,g,h=[],b=Wt(qe,n.interactiveDebounce),w,E=to++,x=null,S=Ni(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:E,reference:e,popper:je(),popperInstance:x,props:n,state:C,plugins:S,clearDelayTimeouts:Qe,setProps:Je,setContent:et,show:qn,hide:Xn,hideWithInteractivity:Kn,enable:Me,disable:Ze,unmount:Gn,destroy:Zn};if(!n.render)return process.env.NODE_ENV!=="production"&&yt(!0,"render() function has not been supplied."),i;var T=n.render(i),d=T.popper,D=T.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var P=S.map(function(u){return u.fn(i)}),I=e.hasAttribute("aria-expanded");return Ee(),Z(),k(),M("onCreate",[i]),n.showOnCreate&&Ne(),d.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",b)}),i;function L(){var u=i.props.touch;return Array.isArray(u)?u:[u,0]}function N(){return L()[0]==="hold"}function _(){var u;return!!((u=i.props.render)!=null&&u.$$tippy)}function R(){return w||e}function U(){var u=R().parentNode;return u?Bi(u):document}function F(){return wt(d)}function $(u){return i.state.isMounted&&!i.state.isVisible||J.isTouch||f&&f.type==="focus"?0:pt(i.props.delay,u?0:1,H.delay)}function k(u){u===void 0&&(u=!1),d.style.pointerEvents=i.props.interactive&&!u?"":"none",d.style.zIndex=""+i.props.zIndex}function M(u,v,m){if(m===void 0&&(m=!0),P.forEach(function(O){O[u]&&O[u].apply(O,v)}),m){var A;(A=i.props)[u].apply(A,v)}}function G(){var u=i.props.aria;if(u.content){var v="aria-"+u.content,m=d.id,A=Ae(i.props.triggerTarget||e);A.forEach(function(O){var V=O.getAttribute(v);if(i.state.isVisible)O.setAttribute(v,V?V+" "+m:m);else{var z=V&&V.replace(m,"").trim();z?O.setAttribute(v,z):O.removeAttribute(v)}})}}function Z(){if(!(I||!i.props.aria.expanded)){var u=Ae(i.props.triggerTarget||e);u.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===R()?"true":"false"):v.removeAttribute("aria-expanded")})}}function pe(){U().removeEventListener("mousemove",b),it=it.filter(function(u){return u!==b})}function Q(u){if(!(J.isTouch&&(a||u.type==="mousedown"))){var v=u.composedPath&&u.composedPath()[0]||u.target;if(!(i.props.interactive&&Xt(d,v))){if(Ae(i.props.triggerTarget||e).some(function(m){return Xt(m,v)})){if(J.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[i,u]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),l=!0,setTimeout(function(){l=!1}),i.state.isMounted||re())}}}function de(){a=!0}function ne(){a=!1}function K(){var u=U();u.addEventListener("mousedown",Q,!0),u.addEventListener("touchend",Q,me),u.addEventListener("touchstart",ne,me),u.addEventListener("touchmove",de,me)}function re(){var u=U();u.removeEventListener("mousedown",Q,!0),u.removeEventListener("touchend",Q,me),u.removeEventListener("touchstart",ne,me),u.removeEventListener("touchmove",de,me)}function be(u,v){we(u,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function ie(u,v){we(u,v)}function we(u,v){var m=F().box;function A(O){O.target===m&&(vt(m,"remove",A),v())}if(u===0)return v();vt(m,"remove",y),vt(m,"add",A),y=A}function ue(u,v,m){m===void 0&&(m=!1);var A=Ae(i.props.triggerTarget||e);A.forEach(function(O){O.addEventListener(u,v,m),h.push({node:O,eventType:u,handler:v,options:m})})}function Ee(){N()&&(ue("touchstart",_e,{passive:!0}),ue("touchend",Xe,{passive:!0})),Pi(i.props.trigger).forEach(function(u){if(u!=="manual")switch(ue(u,_e),u){case"mouseenter":ue("mouseleave",Xe);break;case"focus":ue(Yi?"focusout":"blur",Ie);break;case"focusin":ue("focusout",Ie);break}})}function Ye(){h.forEach(function(u){var v=u.node,m=u.eventType,A=u.handler,O=u.options;v.removeEventListener(m,A,O)}),h=[]}function _e(u){var v,m=!1;if(!(!i.state.isEnabled||Pe(u)||l)){var A=((v=f)==null?void 0:v.type)==="focus";f=u,w=u.currentTarget,Z(),!i.state.isVisible&&ki(u)&&it.forEach(function(O){return O(u)}),u.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||c)&&i.props.hideOnClick!==!1&&i.state.isVisible?m=!0:Ne(u),u.type==="click"&&(c=!m),m&&!A&&ve(u)}}function qe(u){var v=u.target,m=R().contains(v)||d.contains(v);if(!(u.type==="mousemove"&&m)){var A=ce().concat(d).map(function(O){var V,z=O._tippy,Oe=(V=z.popperInstance)==null?void 0:V.state;return Oe?{popperRect:O.getBoundingClientRect(),popperState:Oe,props:n}:null}).filter(Boolean);Ui(A,u)&&(pe(),ve(u))}}function Xe(u){var v=Pe(u)||i.props.trigger.indexOf("click")>=0&&c;if(!v){if(i.props.interactive){i.hideWithInteractivity(u);return}ve(u)}}function Ie(u){i.props.trigger.indexOf("focusin")<0&&u.target!==R()||i.props.interactive&&u.relatedTarget&&d.contains(u.relatedTarget)||ve(u)}function Pe(u){return J.isTouch?N()!==u.type.indexOf("touch")>=0:!1}function Ke(){Ge();var u=i.props,v=u.popperOptions,m=u.placement,A=u.offset,O=u.getReferenceClientRect,V=u.moveTransition,z=_()?wt(d).arrow:null,Oe=O?{getBoundingClientRect:O,contextElement:O.contextElement||R()}:e,Pt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(tt){var Te=tt.state;if(_()){var Qn=F(),ft=Qn.box;["placement","reference-hidden","escaped"].forEach(function(nt){nt==="placement"?ft.setAttribute("data-placement",Te.placement):Te.attributes.popper["data-popper-"+nt]?ft.setAttribute("data-"+nt,""):ft.removeAttribute("data-"+nt)}),Te.attributes.popper={}}}},he=[{name:"offset",options:{offset:A}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!V}},Pt];_()&&z&&he.push({name:"arrow",options:{element:z,padding:3}}),he.push.apply(he,(v==null?void 0:v.modifiers)||[]),i.popperInstance=Ci(Oe,d,Object.assign({},v,{placement:m,onFirstUpdate:g,modifiers:he}))}function Ge(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function oe(){var u=i.props.appendTo,v,m=R();i.props.interactive&&u===_n||u==="parent"?v=m.parentNode:v=In(u,[m]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,Ke(),process.env.NODE_ENV!=="production"&&ae(i.props.interactive&&u===H.appendTo&&m.nextElementSibling!==d,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
11
-
12
- `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
13
-
14
- `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
15
-
16
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ce(){return ut(d.querySelectorAll("[data-tippy-root]"))}function Ne(u){i.clearDelayTimeouts(),u&&M("onTrigger",[i,u]),K();var v=$(!0),m=L(),A=m[0],O=m[1];J.isTouch&&A==="hold"&&O&&(v=O),v?r=setTimeout(function(){i.show()},v):i.show()}function ve(u){if(i.clearDelayTimeouts(),M("onUntrigger",[i,u]),!i.state.isVisible){re();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&c)){var v=$(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):s=requestAnimationFrame(function(){i.hide()})}}function Me(){i.state.isEnabled=!0}function Ze(){i.hide(),i.state.isEnabled=!1}function Qe(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function Je(u){if(process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("setProps")),!i.state.isDestroyed){M("onBeforeUpdate",[i,u]),Ye();var v=i.props,m=Zt(e,Object.assign({},v,Yt(u),{ignoreAttributes:!0}));i.props=m,Ee(),v.interactiveDebounce!==m.interactiveDebounce&&(pe(),b=Wt(qe,m.interactiveDebounce)),v.triggerTarget&&!m.triggerTarget?Ae(v.triggerTarget).forEach(function(A){A.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),k(),D&&D(v,m),i.popperInstance&&(Ke(),ce().forEach(function(A){requestAnimationFrame(A._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[i,u])}}function et(u){i.setProps({content:u})}function qn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("show"));var u=i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,A=J.isTouch&&!i.props.touch,O=pt(i.props.duration,0,H.duration);if(!(u||v||m||A)&&!R().hasAttribute("disabled")&&(M("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,_()&&(d.style.visibility="visible"),k(),K(),i.state.isMounted||(d.style.transition="none"),_()){var V=F(),z=V.box,Oe=V.content;dt([z,Oe],0)}g=function(){var he;if(!(!i.state.isVisible||p)){if(p=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,_()&&i.props.animation){var lt=F(),tt=lt.box,Te=lt.content;dt([tt,Te],O),qt([tt,Te],"visible")}G(),Z(),zt(ht,i),(he=i.popperInstance)==null||he.forceUpdate(),M("onMount",[i]),i.props.animation&&_()&&ie(O,function(){i.state.isShown=!0,M("onShown",[i])})}},oe()}}function Xn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("hide"));var u=!i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,A=pt(i.props.duration,1,H.duration);if(!(u||v||m)&&(M("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,p=!1,c=!1,_()&&(d.style.visibility="hidden"),pe(),re(),k(!0),_()){var O=F(),V=O.box,z=O.content;i.props.animation&&(dt([V,z],A),qt([V,z],"hidden"))}G(),Z(),i.props.animation?_()&&be(A,i.unmount):i.unmount()}}function Kn(u){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("hideWithInteractivity")),U().addEventListener("mousemove",b),zt(it,b),b(u)}function Gn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(Ge(),ce().forEach(function(u){u._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),ht=ht.filter(function(u){return u!==i}),i.state.isMounted=!1,M("onHidden",[i]))}function Zn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),Ye(),delete e._tippy,i.state.isDestroyed=!0,M("onDestroy",[i]))}}function Le(e,t){t===void 0&&(t={});var n=H.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(Ki(e),kn(t,n)),Wi();var r=Object.assign({},t,{plugins:n}),o=ji(e);if(process.env.NODE_ENV!=="production"){var s=Fe(r.content),c=o.length>1;ae(s&&c,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
17
-
18
- `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
19
-
20
- `,`1) content: element.innerHTML
21
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,p){var f=p&&no(p,r);return f&&a.push(f),a},[]);return Fe(e)?l[0]:l}Le.defaultProps=H;Le.setDefaultProps=Qi;Le.currentInput=J;Object.assign({},wn,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var ro={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function s(p){return t.props.sticky===!0||t.props.sticky===p}var c=null,l=null;function a(){var p=s("reference")?o().getBoundingClientRect():null,f=s("popper")?r.getBoundingClientRect():null;(p&&en(c,p)||f&&en(l,f))&&t.popperInstance&&t.popperInstance.update(),c=p,l=f,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function en(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Le.setDefaultProps({render:Vn});const io=e=>({name:"arrowDetected",enabled:!0,phase:"main",fn:e,requiresIfExists:["offset"]}),jn=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Bn=[!0,!1,"reference","popper"],Un=(e,t)=>{const{contentElement:n}={...t};return delete t.contentElement,Le(e,{...t,plugins:[ro],render:()=>so(n)})},Fn=({boundary:e="clippingParents",fallbackPlacements:t=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:r=!1,tether:o=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:t,boundary:e}},{name:"hide",enabled:r},{name:"preventOverflow",options:{altAxis:!o,tether:o}},io(({state:s})=>{n(s.placement)})]}),oo=e=>{const t=document.createElement("span");return t.innerText=e.innerText||"",e.innerText="",e.appendChild(t),t},ao=e=>{const t=e==null?void 0:e.children[0];return t||oo(e)},so=e=>{const t=document.createElement("div");return t.className="tippy-box d-ps-absolute",t.appendChild(e),{popper:t}},Hn=[...jn],Wn=300,zn={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Yn=[...Bn],uo=[!0,!1,"toggle"],co={name:"DtTooltip",components:{DtLazyShow:gn},props:{id:{type:String,default(){return Et()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(e){return Hn.includes(e)}},sticky:{type:[Boolean,String],default:!1,validator:e=>Yn.includes(e)},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},enabled:{type:Boolean,default:!0},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0},externalAnchor:{type:String,default:null}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:zn,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement,isTouchDevice:!1}},computed:{isVisible(){var o,s;const e=!!((o=this.message)!=null&&o.trim()),t=!!((s=this.$slots)!=null&&s.default),n=!this.isTouchDevice;return this.isShown&&this.enabled&&(e||t)&&n},tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){return{offset:this.offset,interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:Fn({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchor?document.body.querySelector(this.externalAnchor):ao(this.$refs.anchor)}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(e){e!==null&&(this.isShown=e)},immediate:!0},isShown(e){e?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(e){this.tip.setProps({sticky:e})}},mounted(){!this.enabled&&this.show!=null&&(console.warn("Tooltip: You cannot use both the enabled and show props at the same time."),console.warn("The show prop will be ignored.")),this.externalAnchor&&this.addExternalAnchorEventListeners(),this.tip=Un(this.anchor,this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var e;this.externalAnchor&&this.removeExternalAnchorEventListeners(),this.tip&&((e=this.tip)==null||e.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return this.anchor.matches(":focus-visible")},onEnterAnchor(e){this.isTouchDevice&&!e.relatedTarget||(this.delay?this.inTimer=setTimeout((function(t){this.triggerShow(t)}).bind(this,e),Wn):this.triggerShow(e),this.isTouchDevice=!1)},triggerShow(e){e.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(e){e.type==="keydown"&&e.code!=="Escape"||(clearTimeout(this.inTimer),this.triggerHide())},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(e){this.currentPlacement=e},onLeaveTransitionComplete(){var e;(e=this.tip)==null||e.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){return{contentElement:this.$refs.content.$el,allowHTML:!0,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}},addExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onLeaveAnchor(t))})},removeExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onLeaveAnchor(t))})},onTouchStart(){this.isTouchDevice=!0}}};var lo=function(){var t=this,n=t._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[t.externalAnchor?t._e():n("span",{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{focusin:t.onEnterAnchor,focusout:t.onLeaveAnchor,mouseenter:t.onEnterAnchor,mouseleave:t.onLeaveAnchor,keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:t.onLeaveAnchor.apply(null,arguments)},touchstart:t.onTouchStart}},[t._t("anchor")],2),n("dt-lazy-show",t._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${t.currentPlacement}`,{[t.TOOLTIP_KIND_MODIFIERS.inverted]:t.inverted},t.contentClass],attrs:{id:t.id,show:t.isVisible,role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:t.transition}},t.tooltipListeners),[t._t("default",function(){return[t._v(" "+t._s(t.message)+" ")]})],2)],1)},fo=[],po=xt(co,lo,fo,!1,null,null,null,null);const vo=po.exports;exports.BASE_TIPPY_DIRECTIONS=jn;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=tn;exports.DESCRIPTION_SIZE_MODIFIERS=tr;exports.DESCRIPTION_SIZE_TYPES=er;exports.DtLazyShow=gn;exports.DtTooltip=vo;exports.EVENT_KEYNAMES=rr;exports.LABEL_SIZE_MODIFIERS=nr;exports.TIPPY_STICKY_VALUES=Bn;exports.TOOLTIP_DELAY_MS=Wn;exports.TOOLTIP_DIRECTIONS=Hn;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=uo;exports.TOOLTIP_KIND_MODIFIERS=zn;exports.TOOLTIP_STICKY_VALUES=Yn;exports.VALIDATION_MESSAGE_TYPES=le;exports.capitalizeFirstLetter=mn;exports.createTippy=Un;exports.filterFormattedMessages=an;exports.formatMessages=on;exports.getPhoneNumberRegex=Tt;exports.getPopperOptions=Fn;exports.getRandomElement=nn;exports.getUniqueString=Et;exports.getValidationState=Ot;exports.isOutOfViewPort=sn;exports.linkRegex=vn;exports.normalizeComponent=xt;exports.safeConcatStrings=hn;exports.tippy=Le;exports.utils=br;